mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 05:00:01 +00:00
* c-valprint.c (c_val_print): Fix thinko with unspecified length
arrays.
This commit is contained in:
parent
eabbe766c0
commit
1326dacef9
@ -1,5 +1,8 @@
|
|||||||
Mon Jul 12 11:29:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Mon Jul 12 11:29:44 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* c-valprint.c (c_val_print): Fix thinko with unspecified length
|
||||||
|
arrays.
|
||||||
|
|
||||||
* hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
|
* hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
|
||||||
use it.
|
use it.
|
||||||
|
|
||||||
|
@ -137,8 +137,8 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/* Array of unspecified length: treat like pointer to first elt. */
|
/* Array of unspecified length: treat like pointer to first elt. */
|
||||||
valaddr = (char *) &address;
|
addr = address;
|
||||||
/* FALL THROUGH */
|
goto print_unpacked_pointer;
|
||||||
|
|
||||||
case TYPE_CODE_PTR:
|
case TYPE_CODE_PTR:
|
||||||
if (format && format != 's')
|
if (format && format != 's')
|
||||||
@ -159,6 +159,7 @@ c_val_print (type, valaddr, address, stream, format, deref_ref, recurse,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
addr = unpack_pointer (type, valaddr);
|
addr = unpack_pointer (type, valaddr);
|
||||||
|
print_unpacked_pointer:
|
||||||
elttype = TYPE_TARGET_TYPE (type);
|
elttype = TYPE_TARGET_TYPE (type);
|
||||||
|
|
||||||
if (TYPE_CODE (elttype) == TYPE_CODE_FUNC)
|
if (TYPE_CODE (elttype) == TYPE_CODE_FUNC)
|
||||||
|
Loading…
Reference in New Issue
Block a user