aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-11-10 17:14:41 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-11-10 17:14:41 +0000
commit22355c9080f27ed22e4aac714e95729970d48c4b (patch)
tree0b6ccbdda26946a879eb6020a8038ba070bf7857 /gdb/source.c
parente28cade762a84feb67e0864b0e66e380f7cc60d5 (diff)
downloadbinutils-22355c9080f27ed22e4aac714e95729970d48c4b.zip
binutils-22355c9080f27ed22e4aac714e95729970d48c4b.tar.gz
binutils-22355c9080f27ed22e4aac714e95729970d48c4b.tar.bz2
read_frame_register_value and big endian arches
The read_frame_register_value function as it was implemented introduced a regression on big-endian targets. The problem appears when trying to get the value of an entity stored inside a register, and when the size of the entity is smaller than the size of the register. In that case, we were always reading the first N bytes of the register, which is wrong for big-endian architectures, where we need to read the last N bytes of the register. gdb/ChangeLog: * findvar.c (read_frame_register_value): Read correct bytes from register on big-endian architectures. gdb/testsuite/ChangeLog: * gdb.ada/small_reg_param: New testcase.
Diffstat (limited to 'gdb/source.c')
0 files changed, 0 insertions, 0 deletions