This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
}




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]