From 9b05f993b4fcbeccea7ed07bd709990f8a88a690 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 7 Mar 2003 23:34:15 +0000 Subject: [PATCH] 2003-03-07 Andrew Cagney * gdbarch.sh: Don't generate two macro definitions when an undefined macro taking no arguments. * gdbarch.h: Regenerate. --- gdb/ChangeLog | 6 ++++++ gdb/gdbarch.h | 2 -- gdb/gdbarch.sh | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0456098c984..a89411fe883 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-03-07 Andrew Cagney + + * gdbarch.sh: Don't generate two macro definitions when an + undefined macro taking no arguments. + * gdbarch.h: Regenerate. + 2002-03-07 Michal Ludvig * x86-64-tdep.c (x86_64_save_dummy_frame_tos) diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index b1cb72bd185..26424ef5a99 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -1655,7 +1655,6 @@ extern int gdbarch_deprecated_push_dummy_frame_p (struct gdbarch *gdbarch); /* Default (function) for non- multi-arch platforms. */ #if (!GDB_MULTI_ARCH) && !defined (DEPRECATED_PUSH_DUMMY_FRAME) #define DEPRECATED_PUSH_DUMMY_FRAME (internal_error (__FILE__, __LINE__, "DEPRECATED_PUSH_DUMMY_FRAME"), 0) -#define DEPRECATED_PUSH_DUMMY_FRAME (gdbarch_deprecated_push_dummy_frame (current_gdbarch)) #endif typedef void (gdbarch_deprecated_push_dummy_frame_ftype) (void); @@ -1730,7 +1729,6 @@ extern int gdbarch_pop_frame_p (struct gdbarch *gdbarch); /* Default (function) for non- multi-arch platforms. */ #if (!GDB_MULTI_ARCH) && !defined (POP_FRAME) #define POP_FRAME (internal_error (__FILE__, __LINE__, "POP_FRAME"), 0) -#define POP_FRAME (gdbarch_pop_frame (current_gdbarch)) #endif typedef void (gdbarch_pop_frame_ftype) (void); diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index b367fda7b7f..ed8a9e74420 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -939,7 +939,6 @@ do if [ "x${actual}" = "x-" ] then printf "#define ${macro} (internal_error (__FILE__, __LINE__, \"${macro}\"), 0)\n" - printf "#define ${macro} (gdbarch_${function} (current_gdbarch))\n" else printf "#define ${macro}(${actual}) (internal_error (__FILE__, __LINE__, \"${macro}\"), 0)\n" fi -- 2.30.2