summaryrefslogtreecommitdiff
path: root/gdb/objc-lang.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-05-01 00:46:59 +0000
committerDavid Carlton <carlton@bactrian.org>2003-05-01 00:46:59 +0000
commit4f80c69dc297b083c5fe6e3b76f8270697447216 (patch)
tree962bdfdec2a5a24f87bd8d280c6ef5f9f95850ae /gdb/objc-lang.c
parente94aa4004a61c05e5da2e43b210c9fc44199d410 (diff)
downloadgdb-4f80c69dc297b083c5fe6e3b76f8270697447216.tar.gz
2003-04-30 David Carlton <carlton@bactrian.org>
* cp-namespace.c (get_namespace_objfile): Copy the namespace objfile's name. * block.h (ALL_BLOCK_SYMBOLS): Move here from dictionary.h. * dictionary.c: Sync up with mainline version I just posted. Specifically, update some commments, and: (dict_create_hashed): Fiddle with nsyms updating. (dict_create_linear): Ditto. (dict_lookup): Delete. (iterator_next_hashed): Delete FIXME comment. (iter_name_first_hashed): Replace 'sym' by 'sym != NULL'. (iter_name_next_hashed): Replate 'next' by 'next != NULL'. * dictionary.h: Sync up with mainline version I just posted: add inclusion guards, delete declaration of dict_lookup, delete ALL_BLOCK_SYMBOLs. * Merge with mainline; tag is carlton_dictionary-20030430-merge.
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r--gdb/objc-lang.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index bbb142217d7..1fe761b14ca 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -42,6 +42,8 @@
#include "gdb_regex.h"
#include "regcache.h"
#include "block.h"
+#include "infcall.h"
+#include "valprint.h"
#include <ctype.h>
@@ -1467,7 +1469,6 @@ char *find_imps (struct symtab *symtab, struct block *block,
}
if (sym == NULL)
- {
/* FIXME: carlton/2003-03-07: I don't know what SELECTOR looks
like: is it a linkage name or a natural name? I'll accept
natural names for now, to be on the safe side. */
@@ -1753,6 +1754,19 @@ _initialize_objc_language (void)
add_com_alias ("po", "print-object", class_vars, 1);
}
+#if 1
+/* Disable these functions until we put them in the gdbarch vector. */
+static unsigned long FETCH_ARGUMENT (int i)
+{
+ internal_error (__FILE__, __LINE__, "FETCH_ARGUMENT not implemented");
+ return 0;
+}
+static CORE_ADDR CONVERT_FUNCPTR (CORE_ADDR pc)
+{
+ internal_error (__FILE__, __LINE__, "CONVERT_FUNCPTR not implemented");
+ return pc;
+}
+#else
#if defined (__powerpc__) || defined (__ppc__)
static unsigned long FETCH_ARGUMENT (int i)
{
@@ -1792,6 +1806,7 @@ static CORE_ADDR CONVERT_FUNCPTR (CORE_ADDR pc)
return pc;
}
#endif
+#endif
static void
read_objc_method (CORE_ADDR addr, struct objc_method *method)