mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* 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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user