diff options
author | Doug Evans <dje@google.com> | 2015-04-15 13:25:42 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2015-04-15 13:25:42 -0700 |
commit | 61d96d7e2e0a44336fc53eb79ccb59b41705cdb3 (patch) | |
tree | 4a8d03ba9dda7e7db6dd6c95257c6267909c408e /gdb/dwarf2read.c | |
parent | 3888916da84288994be10d6ae1a2db5b45b3f8f8 (diff) | |
download | gdb-61d96d7e2e0a44336fc53eb79ccb59b41705cdb3.zip gdb-61d96d7e2e0a44336fc53eb79ccb59b41705cdb3.tar.gz gdb-61d96d7e2e0a44336fc53eb79ccb59b41705cdb3.tar.bz2 |
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.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index f6b0c016..b91fbf5 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; |