* objc-lang.c (print_object_command): Use gdb_byte for c.
* arch-utils.c (legacy_extract_return_value): Use 'gdb_byte *' for registers.
This commit is contained in:
parent
2910ae9649
commit
22a44745e3
3 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2005-07-12 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* objc-lang.c (print_object_command): Use gdb_byte for c.
|
||||||
|
* arch-utils.c (legacy_extract_return_value): Use 'gdb_byte *' for
|
||||||
|
registers.
|
||||||
|
|
||||||
2005-07-11 Mark Kettenis <kettenis@gnu.org>
|
2005-07-11 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* bsd-kvm.c: Include <paths.h>.
|
* bsd-kvm.c: Include <paths.h>.
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* Dynamic architecture support for GDB, the GNU debugger.
|
/* Dynamic architecture support for GDB, the GNU debugger.
|
||||||
|
|
||||||
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software
|
Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||||
Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ void
|
||||||
legacy_extract_return_value (struct type *type, struct regcache *regcache,
|
legacy_extract_return_value (struct type *type, struct regcache *regcache,
|
||||||
gdb_byte *valbuf)
|
gdb_byte *valbuf)
|
||||||
{
|
{
|
||||||
char *registers = deprecated_grub_regcache_for_registers (regcache);
|
gdb_byte *registers = deprecated_grub_regcache_for_registers (regcache);
|
||||||
gdb_byte *buf = valbuf;
|
gdb_byte *buf = valbuf;
|
||||||
DEPRECATED_EXTRACT_RETURN_VALUE (type, registers, buf); /* OK */
|
DEPRECATED_EXTRACT_RETURN_VALUE (type, registers, buf); /* OK */
|
||||||
}
|
}
|
||||||
|
|
|
@ -1528,7 +1528,7 @@ print_object_command (char *args, int from_tty)
|
||||||
struct value *object, *function, *description;
|
struct value *object, *function, *description;
|
||||||
CORE_ADDR string_addr, object_addr;
|
CORE_ADDR string_addr, object_addr;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
char c = -1;
|
gdb_byte c = 0;
|
||||||
|
|
||||||
if (!args || !*args)
|
if (!args || !*args)
|
||||||
error (
|
error (
|
||||||
|
@ -1560,7 +1560,7 @@ print_object_command (char *args, int from_tty)
|
||||||
error (_("object returns null description"));
|
error (_("object returns null description"));
|
||||||
|
|
||||||
read_memory (string_addr + i++, &c, 1);
|
read_memory (string_addr + i++, &c, 1);
|
||||||
if (c != '\0')
|
if (c != 0)
|
||||||
do
|
do
|
||||||
{ /* Read and print characters up to EOS. */
|
{ /* Read and print characters up to EOS. */
|
||||||
QUIT;
|
QUIT;
|
||||||
|
|
Loading…
Reference in a new issue