dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.

Message ID yjt2wq1y5aje.fsf@ruffy.mtv.corp.google.com
State New, archived
Headers

Commit Message

Doug Evans March 30, 2015, 11:29 p.m. UTC
  Hi.

"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.

2015-03-30  Doug Evans  <dje@google.com>

	* dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
  

Comments

Doug Evans April 15, 2015, 8:27 p.m. UTC | #1
Doug Evans writes:
 > Hi.
 > 
 > "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.
 > 
 > 2015-03-30  Doug Evans  <dje@google.com>
 > 
 > 	* dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.

Committed.
  

Patch

diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index f6b0c01..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;