summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-06-24 16:45:46 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-06-24 16:45:46 +0000
commitbc4c522239504bf3927696b78f48bbd043b3d96a (patch)
tree7fecd1fc940217b0c5a0201b698ebd23ec639bf1
parent930cb640334354cb47260d9c3892ffa58dbbb190 (diff)
downloadgdb-bc4c522239504bf3927696b78f48bbd043b3d96a.tar.gz
* 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 ().
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/eval.c2
-rw-r--r--gdb/infrun.c4
3 files changed, 10 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 91a9ca9c47a..fff6bba1b38 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
+ * 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 ().
+
+2009-06-23 Ulrich Weigand <uweigand@de.ibm.com>
+
* breakpoint.h (set_longjmp_breakpoint): Add THREAD argument.
(enum bptype): Add bp_longjmp_master.
diff --git a/gdb/eval.c b/gdb/eval.c
index c7698729861..4770197ddd9 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;
diff --git a/gdb/infrun.c b/gdb/infrun.c
index e9d870d242c..980bde83469 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3777,9 +3777,7 @@ infrun: not switching back to stepped thread, it has vanished\n");
keep_going (ecs);
return;
}
- if (gdbarch_skip_trampoline_code(current_gdbarch,
- get_current_frame (),
- stop_pc))
+ if (gdbarch_skip_trampoline_code (gdbarch, frame, stop_pc))
{
/* We are in a function call trampoline.
Keep stepping backward to get to the caller. */