aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-10-26 10:42:26 -0700
committerDoug Evans <xdje42@gmail.com>2014-10-26 10:42:26 -0700
commitf08e8df3ab2f98b68c6cba6dc9ff5ae2ff3ecb6c (patch)
tree723dbbe4290e7aaffc02d9199bc8fd98a0b45a35 /gdb
parentcf901d3bbac471a581776dbe88dd838d96a894c0 (diff)
downloadgdb-f08e8df3ab2f98b68c6cba6dc9ff5ae2ff3ecb6c.zip
gdb-f08e8df3ab2f98b68c6cba6dc9ff5ae2ff3ecb6c.tar.gz
gdb-f08e8df3ab2f98b68c6cba6dc9ff5ae2ff3ecb6c.tar.bz2
Move block_found decl to symtab.h.
gdb/ChangeLog: * parser-defs.h (block_found): Move decl from here ... * symtab.h (block_found): ... to here.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/parser-defs.h5
-rw-r--r--gdb/symtab.h4
3 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 62c015d..fd417f7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2014-10-26 Doug Evans <xdje42@gmail.com>
+ * parser-defs.h (block_found): Move decl from here ...
+ * symtab.h (block_found): ... to here.
+
+2014-10-26 Doug Evans <xdje42@gmail.com>
+
* symtab.h (struct field_of_this_result): Fix typo in comment.
(lookup_symbol_in_language): Move function comment here.
(lookup_symbol): Improve function comment.
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h
index e43b1ae..2ba6e05 100644
--- a/gdb/parser-defs.h
+++ b/gdb/parser-defs.h
@@ -67,11 +67,6 @@ extern CORE_ADDR expression_context_pc;
we've encountered so far. */
extern const struct block *innermost_block;
-/* The block in which the most recently discovered symbol was found.
- FIXME: Should be declared along with lookup_symbol in symtab.h; is not
- related specifically to parsing. */
-extern const struct block *block_found;
-
/* Number of arguments seen so far in innermost function call. */
extern int arglist_len;
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 9d1aa98..73108f0 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1011,6 +1011,10 @@ DEF_VEC_P (symtab_ptr);
extern int currently_reading_symtab;
+/* The block in which the most recently looked up symbol was found. */
+
+extern const struct block *block_found;
+
/* symtab.c lookup functions */
extern const char multiple_symbols_ask[];