Ignore machine-check MSRs
[freebsd-src/fkvm-freebsd.git] / contrib / gperf / src / trace.cc
blobe571abae42398c9eeb040b6a32b08302a09f7802
1 /* Tracing function calls.
2 Copyright (C) 1989-1998 Free Software Foundation, Inc.
3 written by Douglas C. Schmidt (schmidt@ics.uci.edu)
5 This file is part of GNU GPERF.
7 GNU GPERF is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 1, or (at your option)
10 any later version.
12 GNU GPERF is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU GPERF; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
21 #include "trace.h"
23 #include <stdio.h>
25 int Trace::nesting = 0;
27 Trace::Trace (const char *n)
29 fprintf (stderr, "%*scalling %s\n", 3 * nesting++, "", name = n);
32 Trace::~Trace (void)
34 fprintf (stderr, "%*sleaving %s\n", 3 * --nesting, "", name);