summaryrefslogtreecommitdiff
path: root/gdb/objc-lang.h
diff options
context:
space:
mode:
authorAdam Fedor <fedor@gnu.org>2002-12-03 03:52:37 +0000
committerAdam Fedor <fedor@gnu.org>2002-12-03 03:52:37 +0000
commit36e53c6341449469a2e4a48e4692349ddb0e45e6 (patch)
tree7e2d47c5567b60d86e4d2fb837f1a868468ff1f0 /gdb/objc-lang.h
parent504d5c7e6af52a59551dfa0b4a008f730eec5203 (diff)
downloadbinutils-gdb-36e53c6341449469a2e4a48e4692349ddb0e45e6.tar.gz
* gdb/objc-lang.c (objc_printstr): Add width arg to match
printstr prototype. (compare_selectors): Add 'const' to arg types. (compare_classes): Likewise. (find_imps): Cast msym pointer to avoid compiler warning. (print_object_command): Validate the address before passing it to the print routine. (find_objc_msgcall_submethod): Change function argument to return an int. * objc-lang.h: Add 'extern' to all function declaration. (value_nsstring): Add declaration.
Diffstat (limited to 'gdb/objc-lang.h')
-rw-r--r--gdb/objc-lang.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/gdb/objc-lang.h b/gdb/objc-lang.h
index 9fd93e7a5fc..58f1884c602 100644
--- a/gdb/objc-lang.h
+++ b/gdb/objc-lang.h
@@ -35,21 +35,23 @@ extern int c_value_print (struct value *, struct ui_file *,
extern CORE_ADDR lookup_objc_class (char *classname);
extern int lookup_child_selector (char *methodname);
-char *objc_demangle (const char *mangled);
+extern char *objc_demangle (const char *mangled);
-int find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc);
+extern int find_objc_msgcall (CORE_ADDR pc, CORE_ADDR *new_pc);
-char *parse_selector (char *method, char **selector);
+extern char *parse_selector (char *method, char **selector);
-char *parse_method (char *method, char *type,
- char **class, char **category,
- char **selector);
+extern char *parse_method (char *method, char *type,
+ char **class, char **category,
+ char **selector);
-void find_methods (struct symtab *symtab, char type,
- const char *class, const char *category,
- const char *selector, struct symbol **syms,
- unsigned int *nsym, unsigned int *ndebug);
+extern void find_methods (struct symtab *symtab, char type,
+ const char *class, const char *category,
+ const char *selector, struct symbol **syms,
+ unsigned int *nsym, unsigned int *ndebug);
-char *find_imps (struct symtab *symtab, struct block *block,
- char *method, struct symbol **syms,
- unsigned int *nsym, unsigned int *ndebug);
+extern char *find_imps (struct symtab *symtab, struct block *block,
+ char *method, struct symbol **syms,
+ unsigned int *nsym, unsigned int *ndebug);
+
+extern struct value *value_nsstring (char *ptr, int len);