aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2003-06-17 20:58:32 +0000
committerStephane Carrez <stcarrez@nerim.fr>2003-06-17 20:58:32 +0000
commit7cb47b14e952223cd7ada1c0457c36e1a3a9217e (patch)
treeadf00c98a6cbe2b74fd3394cfff81f2a5801a731
parent6ad8ae5c579e2e6198870b21d10459edba9457ca (diff)
downloadgdb-7cb47b14e952223cd7ada1c0457c36e1a3a9217e.zip
gdb-7cb47b14e952223cd7ada1c0457c36e1a3a9217e.tar.gz
gdb-7cb47b14e952223cd7ada1c0457c36e1a3a9217e.tar.bz2
* ada-tasks.c (find_function_in_inferior): Don't declare it.
("regcache.h"): Include it. * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ada-lex.l8
-rw-r--r--gdb/ada-tasks.c3
3 files changed, 11 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dfae4df..f6bef91 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
+
+ * ada-tasks.c (find_function_in_inferior): Don't declare it.
+ ("regcache.h"): Include it.
+ * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
+
2003-06-17 Daniel Jacobowitz <drow@mvista.com>
* NEWS: Mention gdbserver detach change and "disconnect" command.
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index 2252d52..d8bc789 100644
--- a/gdb/ada-lex.l
+++ b/gdb/ada-lex.l
@@ -627,7 +627,7 @@ block_lookup (name, err_name)
int nsyms;
struct symtab *symtab;
nsyms = ada_lookup_symbol_list (name, left_block_context,
- VAR_NAMESPACE, &syms, &blocks);
+ VAR_DOMAIN, &syms, &blocks);
if (left_block_context == NULL &&
(nsyms == 0 || SYMBOL_CLASS (syms[0]) != LOC_BLOCK))
symtab = lookup_symtab (name);
@@ -652,7 +652,7 @@ block_lookup (name, err_name)
}
}
-/* Look up NAME0 (assumed to be mangled) as a name in VAR_NAMESPACE,
+/* Look up NAME0 (assumed to be mangled) as a name in VAR_DOMAIN,
setting *TOKEN_TYPE to NAME or TYPENAME, depending on what is
found. Try first the entire name, then the name without the last
segment (i.e., after the last .id), etc., and return the number of
@@ -685,10 +685,10 @@ name_lookup (name0, err_name, token_type)
if (left_block_context == NULL)
nsyms = ada_lookup_symbol_list (name, expression_context_block,
- VAR_NAMESPACE, &syms, &blocks);
+ VAR_DOMAIN, &syms, &blocks);
else
nsyms = ada_lookup_symbol_list (name, left_block_context,
- VAR_NAMESPACE, &syms, &blocks);
+ VAR_DOMAIN, &syms, &blocks);
/* Check for a type definition. */
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c
index ad67cba..0cf4d83 100644
--- a/gdb/ada-tasks.c
+++ b/gdb/ada-tasks.c
@@ -22,6 +22,7 @@
#include "inferior.h"
#include "symtab.h"
#include "target.h"
+#include "regcache.h"
#include "gdbcore.h"
#if (defined(__alpha__) && defined(__osf__) && !defined(__alpha_vxworks))
@@ -90,8 +91,6 @@ extern void *GET_CURRENT_THREAD ();
#define READ_MEMORY(addr, var) read_memory (addr, (char*) &var, sizeof (var))
/* external declarations */
-extern struct value *find_function_in_inferior (char *);
-
/* Global visible variables */
struct task_entry *task_list = NULL;