trace.cc (4074:f2c4afa8cd46) trace.cc (4212:0d50e6c98d13)
1/*
2 * Copyright (c) 2001-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 178 unchanged lines hidden (view full) ---

187 cprintf("%s\n", flagStrings[i]);
188 }
189}
190
191/* namespace Trace */ }
192
193
194// add a set of functions that can easily be invoked from gdb
1/*
2 * Copyright (c) 2001-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 178 unchanged lines hidden (view full) ---

187 cprintf("%s\n", flagStrings[i]);
188 }
189}
190
191/* namespace Trace */ }
192
193
194// add a set of functions that can easily be invoked from gdb
195extern "C" {
196 void
197 setTraceFlag(const char *string)
198 {
199 Trace::changeFlag(string, true);
200 }
195void
196setTraceFlag(const char *string)
197{
198 Trace::changeFlag(string, true);
199}
201
200
202 void
203 clearTraceFlag(const char *string)
204 {
205 Trace::changeFlag(string, false);
206 }
201void
202clearTraceFlag(const char *string)
203{
204 Trace::changeFlag(string, false);
205}
207
206
208 void
209 dumpTraceStatus()
210 {
211 Trace::dumpStatus();
212 }
213/* extern "C" */ }
207void
208dumpTraceStatus()
209{
210 Trace::dumpStatus();
211}