aboutsummaryrefslogtreecommitdiff
path: root/binutils/sysdump.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-04-20 22:40:36 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-04-20 22:40:36 +0000
commit438c98a1ed6ca9fd9058ad25078f3a9c67d2b7d8 (patch)
tree2d90b467482ad766581141531ea292efbc0844e1 /binutils/sysdump.c
parent2971b56ba623542a0232473f110922758588fe2c (diff)
downloadgdb-438c98a1ed6ca9fd9058ad25078f3a9c67d2b7d8.zip
gdb-438c98a1ed6ca9fd9058ad25078f3a9c67d2b7d8.tar.gz
gdb-438c98a1ed6ca9fd9058ad25078f3a9c67d2b7d8.tar.bz2
[AVR] inferior call of subprogram with pointer as argument
On AVR, the gdb view of an address is different from the machine view of the same address. We need to use special machinery implemented by value_pointer to take the pointer of a value. For instance, considering the following function... procedure Trace (Unit : T; Message : String); ... where T is an access Integer (a pointer to an integer), call to this function currently triggers the following warnings: (gdb) call debug.trace (me, "You") warning: Value does not fit in 16 bits. warning: Value does not fit in 16 bits. Tracing message: You It could have been worse if Trace actually tried to dereference the Unit argument... gdb/ChangeLog (from Tristan Gingold): * ada-lang.c (value_pointer): New function. (make_array_descriptor): Call value_pointer to convert addresses to pointers. Tested on avr and x86_64-linux.
Diffstat (limited to 'binutils/sysdump.c')
0 files changed, 0 insertions, 0 deletions