2004-05-08 Andrew Cagney <cagney@redhat.com>
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated_call_dummy_breakpoint_offset or deprecated_call_dummy_start_offset. * dummy-frame.c, arm-tdep.c: Update comments. * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET) (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete. * gdbarch.h, gdbarch.c: Re-generate. Index: doc/ChangeLog 2004-05-08 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Delete reference to DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET.
This commit is contained in:
parent
d371282841
commit
e4a2df64e7
9 changed files with 16 additions and 88 deletions
|
@ -1,5 +1,13 @@
|
|||
2004-05-08 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set
|
||||
deprecated_call_dummy_breakpoint_offset or
|
||||
deprecated_call_dummy_start_offset.
|
||||
* dummy-frame.c, arm-tdep.c: Update comments.
|
||||
* gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
|
||||
(DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
|
||||
* gdbarch.h, gdbarch.c: Re-generate.
|
||||
|
||||
* infcall.c (legacy_push_dummy_code): Delete function.
|
||||
(push_dummy_code): Delete call.
|
||||
|
||||
|
|
|
@ -191,7 +191,7 @@ static int target_is_thumb;
|
|||
|
||||
/* Flag set by arm_fix_call_dummy that tells whether the calling
|
||||
function is a Thumb function. This flag is checked by
|
||||
arm_pc_is_thumb and arm_call_dummy_breakpoint_offset. */
|
||||
arm_pc_is_thumb. */
|
||||
|
||||
static int caller_is_thumb;
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2004-05-08 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* gdbint.texinfo (Target Architecture Definition): Delete
|
||||
reference to DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET.
|
||||
|
||||
2004-05-07 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* observer.texi (GDB Observers): Add "Debugging" section. Include
|
||||
|
|
|
@ -3702,8 +3702,7 @@ reserved for that breakpoint, and @var{real_pc} set to @var{funaddr}.
|
|||
|
||||
This method replaces @code{DEPRECATED_CALL_DUMMY_WORDS},
|
||||
@code{DEPRECATED_SIZEOF_CALL_DUMMY_WORDS}, @code{CALL_DUMMY},
|
||||
@code{CALL_DUMMY_LOCATION}, @code{DEPRECATED_REGISTER_SIZE},
|
||||
@code{DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET}, and
|
||||
@code{CALL_DUMMY_LOCATION}, @code{DEPRECATED_REGISTER_SIZE}, and
|
||||
@code{DEPRECATED_FIX_CALL_DUMMY}.
|
||||
|
||||
@item DEPRECATED_PUSH_DUMMY_FRAME
|
||||
|
|
|
@ -151,11 +151,7 @@ deprecated_pc_in_call_dummy (CORE_ADDR pc, CORE_ADDR sp, CORE_ADDR fp)
|
|||
|
||||
FIXME: cagney/2002-11-23: This is silly. Surely "infrun.c" can
|
||||
figure out what the real PC (as in the resume address) is BEFORE
|
||||
calling this function (Oh, and I'm not even sure that this function
|
||||
is called with an decremented PC, the call to pc_in_call_dummy() in
|
||||
that file is conditional on
|
||||
!DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET_P yet generic dummy
|
||||
targets set DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET. True?). */
|
||||
calling this function. */
|
||||
|
||||
static int
|
||||
pc_in_dummy_frame (CORE_ADDR pc)
|
||||
|
|
|
@ -162,8 +162,6 @@ struct gdbarch
|
|||
gdbarch_deprecated_dummy_write_sp_ftype *deprecated_dummy_write_sp;
|
||||
int deprecated_register_size;
|
||||
int call_dummy_location;
|
||||
CORE_ADDR deprecated_call_dummy_start_offset;
|
||||
CORE_ADDR deprecated_call_dummy_breakpoint_offset;
|
||||
LONGEST * deprecated_call_dummy_words;
|
||||
int deprecated_sizeof_call_dummy_words;
|
||||
gdbarch_deprecated_fix_call_dummy_ftype *deprecated_fix_call_dummy;
|
||||
|
@ -321,8 +319,6 @@ struct gdbarch startup_gdbarch =
|
|||
0, /* deprecated_dummy_write_sp */
|
||||
0, /* deprecated_register_size */
|
||||
0, /* call_dummy_location */
|
||||
0, /* deprecated_call_dummy_start_offset */
|
||||
0, /* deprecated_call_dummy_breakpoint_offset */
|
||||
0, /* deprecated_call_dummy_words */
|
||||
0, /* deprecated_sizeof_call_dummy_words */
|
||||
0, /* deprecated_fix_call_dummy */
|
||||
|
@ -921,22 +917,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file)
|
|||
"gdbarch_dump: DECR_PC_AFTER_BREAK = %ld\n",
|
||||
(long) DECR_PC_AFTER_BREAK);
|
||||
#endif
|
||||
#ifdef DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET
|
||||
fprintf_unfiltered (file,
|
||||
"gdbarch_dump: DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET # %s\n",
|
||||
XSTRING (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET));
|
||||
fprintf_unfiltered (file,
|
||||
"gdbarch_dump: DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET = %ld\n",
|
||||
(long) DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET);
|
||||
#endif
|
||||
#ifdef DEPRECATED_CALL_DUMMY_START_OFFSET
|
||||
fprintf_unfiltered (file,
|
||||
"gdbarch_dump: DEPRECATED_CALL_DUMMY_START_OFFSET # %s\n",
|
||||
XSTRING (DEPRECATED_CALL_DUMMY_START_OFFSET));
|
||||
fprintf_unfiltered (file,
|
||||
"gdbarch_dump: DEPRECATED_CALL_DUMMY_START_OFFSET = %ld\n",
|
||||
(long) DEPRECATED_CALL_DUMMY_START_OFFSET);
|
||||
#endif
|
||||
#ifdef DEPRECATED_CALL_DUMMY_WORDS
|
||||
fprintf_unfiltered (file,
|
||||
"gdbarch_dump: DEPRECATED_CALL_DUMMY_WORDS # %s\n",
|
||||
|
@ -3282,38 +3262,6 @@ set_gdbarch_call_dummy_location (struct gdbarch *gdbarch,
|
|||
gdbarch->call_dummy_location = call_dummy_location;
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
gdbarch_deprecated_call_dummy_start_offset (struct gdbarch *gdbarch)
|
||||
{
|
||||
gdb_assert (gdbarch != NULL);
|
||||
if (gdbarch_debug >= 2)
|
||||
fprintf_unfiltered (gdb_stdlog, "gdbarch_deprecated_call_dummy_start_offset called\n");
|
||||
return gdbarch->deprecated_call_dummy_start_offset;
|
||||
}
|
||||
|
||||
void
|
||||
set_gdbarch_deprecated_call_dummy_start_offset (struct gdbarch *gdbarch,
|
||||
CORE_ADDR deprecated_call_dummy_start_offset)
|
||||
{
|
||||
gdbarch->deprecated_call_dummy_start_offset = deprecated_call_dummy_start_offset;
|
||||
}
|
||||
|
||||
CORE_ADDR
|
||||
gdbarch_deprecated_call_dummy_breakpoint_offset (struct gdbarch *gdbarch)
|
||||
{
|
||||
gdb_assert (gdbarch != NULL);
|
||||
if (gdbarch_debug >= 2)
|
||||
fprintf_unfiltered (gdb_stdlog, "gdbarch_deprecated_call_dummy_breakpoint_offset called\n");
|
||||
return gdbarch->deprecated_call_dummy_breakpoint_offset;
|
||||
}
|
||||
|
||||
void
|
||||
set_gdbarch_deprecated_call_dummy_breakpoint_offset (struct gdbarch *gdbarch,
|
||||
CORE_ADDR deprecated_call_dummy_breakpoint_offset)
|
||||
{
|
||||
gdbarch->deprecated_call_dummy_breakpoint_offset = deprecated_call_dummy_breakpoint_offset;
|
||||
}
|
||||
|
||||
LONGEST *
|
||||
gdbarch_deprecated_call_dummy_words (struct gdbarch *gdbarch)
|
||||
{
|
||||
|
|
|
@ -827,28 +827,6 @@ extern void set_gdbarch_call_dummy_location (struct gdbarch *gdbarch, int call_d
|
|||
#define CALL_DUMMY_LOCATION (gdbarch_call_dummy_location (current_gdbarch))
|
||||
#endif
|
||||
|
||||
/* DEPRECATED_CALL_DUMMY_START_OFFSET can be deleted. */
|
||||
|
||||
extern CORE_ADDR gdbarch_deprecated_call_dummy_start_offset (struct gdbarch *gdbarch);
|
||||
extern void set_gdbarch_deprecated_call_dummy_start_offset (struct gdbarch *gdbarch, CORE_ADDR deprecated_call_dummy_start_offset);
|
||||
#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_CALL_DUMMY_START_OFFSET)
|
||||
#error "Non multi-arch definition of DEPRECATED_CALL_DUMMY_START_OFFSET"
|
||||
#endif
|
||||
#if !defined (DEPRECATED_CALL_DUMMY_START_OFFSET)
|
||||
#define DEPRECATED_CALL_DUMMY_START_OFFSET (gdbarch_deprecated_call_dummy_start_offset (current_gdbarch))
|
||||
#endif
|
||||
|
||||
/* DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET can be deleted. */
|
||||
|
||||
extern CORE_ADDR gdbarch_deprecated_call_dummy_breakpoint_offset (struct gdbarch *gdbarch);
|
||||
extern void set_gdbarch_deprecated_call_dummy_breakpoint_offset (struct gdbarch *gdbarch, CORE_ADDR deprecated_call_dummy_breakpoint_offset);
|
||||
#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
|
||||
#error "Non multi-arch definition of DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET"
|
||||
#endif
|
||||
#if !defined (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
|
||||
#define DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET (gdbarch_deprecated_call_dummy_breakpoint_offset (current_gdbarch))
|
||||
#endif
|
||||
|
||||
/* DEPRECATED_CALL_DUMMY_WORDS can be deleted. */
|
||||
|
||||
extern LONGEST * gdbarch_deprecated_call_dummy_words (struct gdbarch *gdbarch);
|
||||
|
|
|
@ -525,10 +525,6 @@ F:2:DEPRECATED_DUMMY_WRITE_SP:void:deprecated_dummy_write_sp:CORE_ADDR val:val
|
|||
# DEPRECATED_REGISTER_SIZE can be deleted.
|
||||
v::DEPRECATED_REGISTER_SIZE:int:deprecated_register_size
|
||||
v::CALL_DUMMY_LOCATION:int:call_dummy_location:::::AT_ENTRY_POINT::0
|
||||
# DEPRECATED_CALL_DUMMY_START_OFFSET can be deleted.
|
||||
v::DEPRECATED_CALL_DUMMY_START_OFFSET:CORE_ADDR:deprecated_call_dummy_start_offset
|
||||
# DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET can be deleted.
|
||||
v::DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET:CORE_ADDR:deprecated_call_dummy_breakpoint_offset
|
||||
# DEPRECATED_CALL_DUMMY_WORDS can be deleted.
|
||||
v::DEPRECATED_CALL_DUMMY_WORDS:LONGEST *:deprecated_call_dummy_words::::0:legacy_call_dummy_words::0:0x%08lx
|
||||
# Implement PUSH_DUMMY_CALL, then delete DEPRECATED_SIZEOF_CALL_DUMMY_WORDS.
|
||||
|
|
|
@ -580,8 +580,6 @@ ns32k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
|
|||
set_gdbarch_deprecated_call_dummy_words (gdbarch, ns32k_call_dummy_words);
|
||||
set_gdbarch_deprecated_sizeof_call_dummy_words (gdbarch, sizeof_ns32k_call_dummy_words);
|
||||
set_gdbarch_deprecated_fix_call_dummy (gdbarch, ns32k_fix_call_dummy);
|
||||
set_gdbarch_deprecated_call_dummy_start_offset (gdbarch, 3);
|
||||
set_gdbarch_deprecated_call_dummy_breakpoint_offset (gdbarch, 15);
|
||||
|
||||
/* Breakpoint info */
|
||||
set_gdbarch_breakpoint_from_pc (gdbarch, ns32k_breakpoint_from_pc);
|
||||
|
|
Loading…
Reference in a new issue