diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-02-19 18:56:11 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-02-19 18:56:11 +0000 |
commit | 5f75f801ee2adbf1d64cf745e118861c51ad2dfe (patch) | |
tree | edd70a98e11087524d9891fe75112eaca4a880d3 /gdb | |
parent | 879b11b03ee0b3124e021fb54b62b0f874f8f170 (diff) | |
download | gdb-5f75f801ee2adbf1d64cf745e118861c51ad2dfe.tar.gz |
2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Andrew Cagney <cagney@b1.cygnus.com>:
* symfile.c (add_symbol_file_command): Always initialize
my_cleanup using a NULL cleanup.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/symfile.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fada1562fb7..5a3fdc515f1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-02-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com> + + From Andrew Cagney <cagney@b1.cygnus.com>: + * symfile.c (add_symbol_file_command): Always initialize + my_cleanup using a NULL cleanup. + 2001-02-19 Eli Zaretskii <eliz@is.elta.co.il> * demangle.c (demangling_style_names): New variable. diff --git a/gdb/symfile.c b/gdb/symfile.c index e4bc6f61dc8..2222d74b9c9 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1420,7 +1420,7 @@ add_symbol_file_command (char *args, int from_tty) } sect_opts[SECT_OFF_MAX]; struct section_addr_info section_addrs; - struct cleanup *my_cleanups; + struct cleanup *my_cleanups = make_cleanup (null_cleanup, NULL); dont_repeat (); @@ -1456,7 +1456,7 @@ add_symbol_file_command (char *args, int from_tty) { /* The first argument is the file name. */ filename = tilde_expand (arg); - my_cleanups = make_cleanup (xfree, filename); + make_cleanup (xfree, filename); } else if (argcnt == 1) |