mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-14 04:17:58 +08:00
* dwarf2expr.c (execute_stack_op): Place preprocessor
directives at the start of the source line.
This commit is contained in:
@ -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>
|
2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
|
||||||
|
|
||||||
* defs.h (make_command_stats_cleanup): Declare.
|
* defs.h (make_command_stats_cleanup): Declare.
|
||||||
|
@ -335,7 +335,7 @@ static void
|
|||||||
execute_stack_op (struct dwarf_expr_context *ctx,
|
execute_stack_op (struct dwarf_expr_context *ctx,
|
||||||
const gdb_byte *op_ptr, const gdb_byte *op_end)
|
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 sign_bit = (ctx->addr_size >= sizeof (ULONGEST) ? 0
|
||||||
: ((ULONGEST) 1) << (ctx->addr_size * 8 - 1));
|
: ((ULONGEST) 1) << (ctx->addr_size * 8 - 1));
|
||||||
enum bfd_endian byte_order = gdbarch_byte_order (ctx->gdbarch);
|
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--;
|
ctx->recursion_depth--;
|
||||||
gdb_assert (ctx->recursion_depth >= 0);
|
gdb_assert (ctx->recursion_depth >= 0);
|
||||||
#undef sign_ext
|
#undef sign_ext
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user