This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog linespec.c
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Thu, 30 May 2013 16:57:38 +0000
- Subject: src/gdb ChangeLog linespec.c
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2013-05-30 16:57:38
Modified files:
gdb : ChangeLog linespec.c
Log message:
fix linespec bug noticed by the checker
This fixes a linespec bug noticed by the cleanup checker.
find_linespec_symbols did this:
cleanup = demangle_for_lookup (name, state->language->la_language,
&lookup_name);
[...]
cleanup = make_cleanup (xfree, canon);
But this is wrong, as it makes a subsequent call to do_cleanups not
clean up all the local state.
* linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15641&r2=1.15642
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linespec.c.diff?cvsroot=src&r1=1.184&r2=1.185