diff options
author | Tom Tromey <tromey@redhat.com> | 2012-07-26 16:57:22 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-07-26 16:57:22 +0000 |
commit | 27618ce42a9eaeb1c95bca6ed8f2a261df0e6981 (patch) | |
tree | 7dfb3727c93632e3332fbe7cfb4e0a869f51bee2 /gdb/psymtab.c | |
parent | dd3818c82cb19570b6b7ddaac277d5f212a432c2 (diff) | |
download | gdb-27618ce42a9eaeb1c95bca6ed8f2a261df0e6981.zip gdb-27618ce42a9eaeb1c95bca6ed8f2a261df0e6981.tar.gz gdb-27618ce42a9eaeb1c95bca6ed8f2a261df0e6981.tar.bz2 |
* symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
immediate_quit.
(print_objfile_statistics): Likewise.
(maintenance_print_symbols): Likewise.
(maintenance_print_msymbols): Likewise.
(maintenance_print_objfiles): Likewise.
* psymtab.c (print_partial_symbols): Call QUIT.
(maintenance_print_psymbols): Likewise. Don't modify
immediate_quit.
* copying.c (show_copying_command): Don't modify immediate_quit.
(show_warranty_command): Likewise.
* cli/cli-cmds.c (show_version): Don't modify immediate_quit.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 5623e2d..93be085 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -888,6 +888,7 @@ print_partial_symbols (struct gdbarch *gdbarch, fprintf_filtered (outfile, " %s partial symbols:\n", what); while (count-- > 0) { + QUIT; fprintf_filtered (outfile, " `%s'", SYMBOL_LINKAGE_NAME (*p)); if (SYMBOL_DEMANGLED_NAME (*p) != NULL) { @@ -1852,11 +1853,12 @@ print-psymbols takes an output file name and optional symbol file name")); perror_with_name (filename); make_cleanup_ui_file_delete (outfile); - immediate_quit++; ALL_PSYMTABS (objfile, ps) - if (symname == NULL || filename_cmp (symname, ps->filename) == 0) - dump_psymtab (objfile, ps, outfile); - immediate_quit--; + { + QUIT; + if (symname == NULL || filename_cmp (symname, ps->filename) == 0) + dump_psymtab (objfile, ps, outfile); + } do_cleanups (cleanups); } |