diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:47:35 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:47:35 +0000 |
commit | 3b7538c0317072d430eca4e808b183dac5bd5e45 (patch) | |
tree | 5d181808a477c585f4840272098ebd6c8b9f8321 /gdb/objc-lang.h | |
parent | e6c014f28ffa7d52bf7e9b599422f5ca910a17dd (diff) | |
download | gdb-3b7538c0317072d430eca4e808b183dac5bd5e45.zip gdb-3b7538c0317072d430eca4e808b183dac5bd5e45.tar.gz gdb-3b7538c0317072d430eca4e808b183dac5bd5e45.tar.bz2 |
* gdbtypes.c (create_string_type): Receive character type as argument.
* gdbtypes.h (create_string_type): Add character type argument.
* dwarf2read.c (read_tag_string_type): Pass character type to
create_string_type.
* value.h (value_string): Add character type argument.
* valops.c (value_string): Add character type argument. Pass it to
create_string_type. Do not allocate space in inferior.
* valarith.c (value_concat): Pass character type to value_string.
* value.h (value_typed_string): Rename to ...
(value_cstring): ... this.
* valops.c (value_typed_string): Rename to ...
(value_cstring): ... this.
* c-lang.c (evaluate_subexp_c): Update.
* python/python-value.c (builtin_type_pychar): New define.
(convert_value_from_python): Call value_cstring instead
of value_from_string.
* value.c (value_from_string): Remove.
* value.h (value_from_string): Remove.
* eval.c (evaluate_subexp_standard): Pass character type to
value_string. Pass expression architecture to value_nsstring
and lookup_child_selector.
* objc-lang.h (lookup_objc_class): Add GDBARCH parameter.
(lookup_child_selector): Likewise.
(value_nsstring): Likewise.
* objc-lang.c (lookup_objc_class): Add GDBARCH parameter.
Pass character type to value_string..
(lookup_child_selector): Likewise.
(value_nsstring): Add GDBARCH parameter, use it instead of
objfile architecture. Pass architecture to lookup_objc_class
and lookup_child_selector. Pass character type to value_string.
(end_msglist): Pass architecture to lookup_objc_class.
* objc-exp.y: Pass architecture to lookup_objc_class.
Diffstat (limited to 'gdb/objc-lang.h')
-rw-r--r-- | gdb/objc-lang.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/objc-lang.h b/gdb/objc-lang.h index d0cbb8d..0d23467 100644 --- a/gdb/objc-lang.h +++ b/gdb/objc-lang.h @@ -29,8 +29,10 @@ extern int objc_parse (void); /* Defined in c-exp.y */ extern void objc_error (char *); /* Defined in c-exp.y */ -extern CORE_ADDR lookup_objc_class (char *classname); -extern CORE_ADDR lookup_child_selector (char *methodname); +extern CORE_ADDR lookup_objc_class (struct gdbarch *gdbarch, + char *classname); +extern CORE_ADDR lookup_child_selector (struct gdbarch *gdbarch, + char *methodname); extern char *objc_demangle (const char *mangled, int options); @@ -46,7 +48,8 @@ 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); +extern struct value *value_nsstring (struct gdbarch *gdbarch, + char *ptr, int len); /* for parsing Objective C */ extern void start_msglist (void); |