From 61d96d7e2e0a44336fc53eb79ccb59b41705cdb3 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 15 Apr 2015 13:25:42 -0700 Subject: [PATCH] Make info fun|var|types interruptable. "info fun foo" can be a pain when it's not interruptable, especially if you're not exactly sure of what you're looking for and provide something that matches too much. gdb/ChangeLog: * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls. --- gdb/ChangeLog | 4 ++++ gdb/dwarf2read.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 033def0ff4a..8e9aaf93271 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-04-15 Doug Evans + + * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls. + 2015-04-15 Simon Marchi * python/lib/gdb/command/unwinders.py: Add parentheses. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index f6b0c016232..b91fbf5d34f 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -3875,6 +3875,8 @@ dw2_expand_symtabs_matching struct quick_file_names *file_data; void **slot; + QUIT; + per_cu->v.quick->mark = 0; /* We only need to look at symtabs not already expanded. */ @@ -3935,6 +3937,8 @@ dw2_expand_symtabs_matching offset_type *vec, vec_len, vec_idx; int global_seen = 0; + QUIT; + if (index->symbol_table[idx] == 0 && index->symbol_table[idx + 1] == 0) continue; -- 2.30.2