aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppab-tdep.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1993-04-23 18:01:02 +0000
committerStu Grossman <grossman@cygnus>1993-04-23 18:01:02 +0000
commitb5728692b43217ea2babbe08a94552cb4b2ffeff (patch)
treec8d9bdff58794e4ef37a05faa4111665f7626829 /gdb/hppab-tdep.c
parentc156f3c1c9395bcb721678e07a5cf10b7c0d7b18 (diff)
downloadgdb-b5728692b43217ea2babbe08a94552cb4b2ffeff.zip
gdb-b5728692b43217ea2babbe08a94552cb4b2ffeff.tar.gz
gdb-b5728692b43217ea2babbe08a94552cb4b2ffeff.tar.bz2
* Fix two bugs found by deja-gnu. One is the incorrect reporting
of the PC being in a stack dummy when looking at a core file without symbols. The other is the incorrect passing of char arguments during expression evaluation (ie: p foo('a','b') would mess up the passing of it's args because it wasn't coercing the char's to ints). * hppah-tdep.c: Rename global functions to have consistent hppa_ prefix. Make more functions static. Drop hp_ prefix from static functions. (hppa_push_arguments): Call value_arg_coerce to cast char to int args if necessary. (hppa_fix_call_dummy): Create this routine from FIX_CALL_DUMMY macro in tm-hppa.h. * inferior.h (PC_IN_CALL_DUMMY): Check for frame_address being valid (ie: != 0) before doing comparison against PC. * valops.c (call_function_by_hand): Adjust call to FIX_CALL_DUMMY to reflect new arguments. * config/pa/tm-hppa.h (POP_FRAME, PUSH_ARGUMENTS): Use new hppa_ prefix for func name. (FIX_CALL_DUMMY): Move code into hppah-tdep.c. * testsuite/gdb.t16/gdbme.c, testsuite/gdb.t17/gdbme.c: Add calls to malloc() so that we can test GDB eval of dynamically created arrays (like char strings in `print "foo"').
Diffstat (limited to 'gdb/hppab-tdep.c')
0 files changed, 0 insertions, 0 deletions