This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Add missing trace state variable cleanup
- From: Stan Shebs <stan at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 16 Apr 2010 11:37:00 -0700
- Subject: [PATCH] Add missing trace state variable cleanup
As a reminder not to be careless about cleanups, our customer found an
easy way to crash GDB due to this one's absence. Committed to trunk.
Stan
2010-04-16 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (trace_variable_command): Run a cleanup.
Index: tracepoint.c
===================================================================
RCS file: /cvs/src/src/gdb/tracepoint.c,v
retrieving revision 1.179
diff -p -r1.179 tracepoint.c
*** tracepoint.c 16 Apr 2010 01:12:07 -0000 1.179
--- tracepoint.c 16 Apr 2010 18:21:06 -0000
*************** trace_variable_command (char *args, int
*** 365,370 ****
--- 365,371 ----
tsv->initial_value = initval;
printf_filtered (_("Trace state variable $%s now has initial
value %s.\n"),
tsv->name, plongest (tsv->initial_value));
+ do_cleanups (old_chain);
return;
}