aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2010-06-26 14:05:29 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2010-06-26 14:05:29 +0000
commit43dabe425d3b45ba15ba88aeadda3bc8064293c8 (patch)
treec6e7ceecbd15acb93dd2d4599592fda95cd1f4d8 /gdb
parent0f3bb72eb70f61f3154fd51eaac173bd6486f3d6 (diff)
downloadgdb-43dabe425d3b45ba15ba88aeadda3bc8064293c8.zip
gdb-43dabe425d3b45ba15ba88aeadda3bc8064293c8.tar.gz
gdb-43dabe425d3b45ba15ba88aeadda3bc8064293c8.tar.bz2
* dwarf2expr.c (execute_stack_op): Place preprocessor
directives at the start of the source line.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2expr.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 48cd478..079a3db 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * dwarf2expr.c (execute_stack_op): Place preprocessor
+ directives at the start of the source line.
+
2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
* defs.h (make_command_stats_cleanup): Declare.
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index c11c410..af9fc0f 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -335,7 +335,7 @@ static void
execute_stack_op (struct dwarf_expr_context *ctx,
const gdb_byte *op_ptr, const gdb_byte *op_end)
{
- #define sign_ext(x) ((LONGEST) (((x) ^ sign_bit) - sign_bit))
+#define sign_ext(x) ((LONGEST) (((x) ^ sign_bit) - sign_bit))
ULONGEST sign_bit = (ctx->addr_size >= sizeof (ULONGEST) ? 0
: ((ULONGEST) 1) << (ctx->addr_size * 8 - 1));
enum bfd_endian byte_order = gdbarch_byte_order (ctx->gdbarch);
@@ -880,5 +880,5 @@ execute_stack_op (struct dwarf_expr_context *ctx,
ctx->recursion_depth--;
gdb_assert (ctx->recursion_depth >= 0);
- #undef sign_ext
+#undef sign_ext
}