* eval.c (evaluate_subexp_standard): Use expression architecture
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 24 Jun 2009 16:45:49 +0000 (16:45 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 24 Jun 2009 16:45:49 +0000 (16:45 +0000)
instead of current_gdbarch.

* infrun.c (handle_inferior_event): Avoid unncessary reference
to current_gdbarch and get_current_frame ().

gdb/ChangeLog
gdb/eval.c
gdb/infrun.c

index 91a9ca9c47a4bc17d9760eaacc963477253232df..fff6bba1b3890a1a654cdacd3ff8d109b7ab00d1 100644 (file)
@@ -1,3 +1,11 @@
+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.
index c7698729861451dd308d77e050a3fe3ef19a62a6..4770197ddd9e7d464b1e71da1e68618d9578bacd 100644 (file)
@@ -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;
index e9d870d242c6b7380cebabaebf60efb0c1b3890f..980bde83469d6807cf03133d1f0d2d1b051c9401 100644 (file)
@@ -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.  */