diff options
author | Tom Tromey <tromey@redhat.com> | 2012-07-26 16:57:16 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-07-26 16:57:16 +0000 |
commit | f598e2f93e7b529ffe93d8e5137f40c2884ab796 (patch) | |
tree | 89fe041fe2e0afd61468533c7065c194339f916b /gdb/psymtab.c | |
parent | 5134bbd001531c5c6d02573d4d7fb86b17a549ec (diff) | |
download | gdb-f598e2f93e7b529ffe93d8e5137f40c2884ab796.tar.gz |
* 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 5623e2dc5f8..93be0854688 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); } |