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 }
201
202 void
203 clearTraceFlag(const char *string)
204 {
205 Trace::changeFlag(string, false);
206 }
207
208 void
209 dumpTraceStatus()
210 {
211 Trace::dumpStatus();
212 }
213/* extern "C" */ }
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 }
201
202 void
203 clearTraceFlag(const char *string)
204 {
205 Trace::changeFlag(string, false);
206 }
207
208 void
209 dumpTraceStatus()
210 {
211 Trace::dumpStatus();
212 }
213/* extern "C" */ }