diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-07-12 12:11:44 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-07-12 12:11:44 +0000 |
commit | 22a44745e3c45871c3124196752c5b7bf0c593e3 (patch) | |
tree | e6c571992f26026173bad7ba624ffcc78e580a3f /gdb/objc-lang.c | |
parent | 2910ae96496ceef7c18aa1fc76378461a4d8f65b (diff) | |
download | gdb-22a44745e3c45871c3124196752c5b7bf0c593e3.zip gdb-22a44745e3c45871c3124196752c5b7bf0c593e3.tar.gz gdb-22a44745e3c45871c3124196752c5b7bf0c593e3.tar.bz2 |
* objc-lang.c (print_object_command): Use gdb_byte for c.
* arch-utils.c (legacy_extract_return_value): Use 'gdb_byte *' for
registers.
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r-- | gdb/objc-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index f306b94..a27ff68 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -1528,7 +1528,7 @@ print_object_command (char *args, int from_tty) struct value *object, *function, *description; CORE_ADDR string_addr, object_addr; int i = 0; - char c = -1; + gdb_byte c = 0; if (!args || !*args) error ( @@ -1560,7 +1560,7 @@ print_object_command (char *args, int from_tty) error (_("object returns null description")); read_memory (string_addr + i++, &c, 1); - if (c != '\0') + if (c != 0) do { /* Read and print characters up to EOS. */ QUIT; |