diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-30 17:20:02 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-30 17:20:02 +0000 |
commit | 1abaf0423f9c1391c193baa0f54445a1b5367ab6 (patch) | |
tree | f1f54b33fc2094111ed08b094e66147a8c52dd6c /gdb/symtab.c | |
parent | edefe1dab2efc4cd0c9f3ee448a1ff3745705554 (diff) | |
download | gdb-1abaf0423f9c1391c193baa0f54445a1b5367ab6.zip gdb-1abaf0423f9c1391c193baa0f54445a1b5367ab6.tar.gz gdb-1abaf0423f9c1391c193baa0f54445a1b5367ab6.tar.bz2 |
fix symtab.c
search_symbols had some bad code resulting in a cleanup being both
discarded and run.
* symtab.c (search_symbols): Introduce a null cleanup for
'retval_chain'.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index def556b..9040035 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -3529,7 +3529,7 @@ search_symbols (char *regexp, enum search_domain kind, &datum); } - retval_chain = old_chain; + retval_chain = make_cleanup (null_cleanup, NULL); /* Here, we search through the minimal symbol tables for functions and variables that match, and force their symbols to be read. |