aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-06-24 16:45:49 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-06-24 16:45:49 +0000
commit34e13b5b1eb2661e03ce86b039256328857ba2d8 (patch)
treec8667729b9c7563a6b3d2ebc1009fc81b2f0049d /gdb/eval.c
parent0fd8e87fea23317d3db05d5d4ec5c97a5250bb21 (diff)
downloadgdb-34e13b5b1eb2661e03ce86b039256328857ba2d8.zip
gdb-34e13b5b1eb2661e03ce86b039256328857ba2d8.tar.gz
gdb-34e13b5b1eb2661e03ce86b039256328857ba2d8.tar.bz2
* eval.c (evaluate_subexp_standard): Use expression architecture
instead of current_gdbarch. * infrun.c (handle_inferior_event): Avoid unncessary reference to current_gdbarch and get_current_frame ().
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index c769872..4770197 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -938,7 +938,7 @@ evaluate_subexp_standard (struct type *expect_type,
for (; range_low <= range_high; range_low++)
{
int bit_index = (unsigned) range_low % TARGET_CHAR_BIT;
- if (gdbarch_bits_big_endian (current_gdbarch))
+ if (gdbarch_bits_big_endian (exp->gdbarch))
bit_index = TARGET_CHAR_BIT - 1 - bit_index;
valaddr[(unsigned) range_low / TARGET_CHAR_BIT]
|= 1 << bit_index;