diff options
author | Doug Evans <dje@google.com> | 2009-04-07 20:43:49 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2009-04-07 20:43:49 +0000 |
commit | 21fde43c54c9ed7790684b3ad25a547d00f8f0a1 (patch) | |
tree | d5e0c8e2b672bce7280020a222232bff7e8d9e55 | |
parent | 09326346a4afccb09444836b5516a85c00e278e9 (diff) | |
download | gdb-21fde43c54c9ed7790684b3ad25a547d00f8f0a1.tar.gz |
* symfile.c (symbol_file_clear): Fix indentation.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/symfile.c | 18 |
2 files changed, 13 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8f9609fd4c8..0df9e94acb8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-04-07 Doug Evans <dje@google.com> + + * symfile.c (symbol_file_clear): Fix indentation. + 2009-04-06 Mark Kettenis <kettenis@gnu.org> * sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment. diff --git a/gdb/symfile.c b/gdb/symfile.c index f25c45ebc21..af1ab744b40 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1155,17 +1155,17 @@ symbol_file_clear (int from_tty) symfile_objfile->name) : !query (_("Discard symbol table? ")))) error (_("Not confirmed.")); - free_all_objfiles (); - /* solib descriptors may have handles to objfiles. Since their - storage has just been released, we'd better wipe the solib - descriptors as well. - */ - no_shared_libraries (NULL, from_tty); + free_all_objfiles (); - symfile_objfile = NULL; - if (from_tty) - printf_unfiltered (_("No symbol file now.\n")); + /* solib descriptors may have handles to objfiles. Since their + storage has just been released, we'd better wipe the solib + descriptors as well. */ + no_shared_libraries (NULL, from_tty); + + symfile_objfile = NULL; + if (from_tty) + printf_unfiltered (_("No symbol file now.\n")); } struct build_id |