aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorGrace Sainsbury <graces@redhat.com>2002-06-21 15:47:35 +0000
committerGrace Sainsbury <graces@redhat.com>2002-06-21 15:47:35 +0000
commita2c6a6d59783ccb6b37cb899e422533bf686de23 (patch)
treebaff2c68e4759136b49190f3b3751ba614cc7f1f /gdb
parent7f8e742495d482de373f6414b11e0f5a81c6199a (diff)
downloadgdb-a2c6a6d59783ccb6b37cb899e422533bf686de23.zip
gdb-a2c6a6d59783ccb6b37cb899e422533bf686de23.tar.gz
gdb-a2c6a6d59783ccb6b37cb899e422533bf686de23.tar.bz2
Fixed changelog entry. Indented m68k-tdep.c
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog13
-rw-r--r--gdb/m68k-tdep.c27
2 files changed, 25 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a8d2fe3..bf43c33 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,13 +1,20 @@
2002-06-21 Grace Sainsbury <graces@redhat.com>
- * m68k-tdep.c (m68k_frame_init_saved_regs): Replaced
+ * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
m68k_find_saved_regs.
(m68k_pop_frame): Removed saved_regs structure, and replaced
references to it with frasme->saved_regs.
(m68k_gdbarch_init): Added function calls to initialize the
gdbarch structure.
- * config/m68k/tm-m68k.h: Removed FRAME_FIND_SAVED_REGS and
- macros associated with CALL_DUMMY
+ (m68k_fix_call_dummy): Add.
+ * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
+ (CALL_DUMMY): Remove.
+ (CALL_DUMMY_LENGTH): Remove.
+ (CALL_DUMMY_START_OFFSET): Remove.
+ (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
+ (FIX_CALL_DUMMY): Remove.
+ (PUSH_DUMMY_FRAME): Remove.
+ (POP_FRAME): Remove.
2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 2ddb1eb..39d2a22 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -173,11 +173,12 @@ news_frame_num_args (struct frame_info *fi)
We use the BFD routines to store a big-endian value of known size. */
void
-m68k_fix_call_dummy(char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs,
- struct value **args, struct type *type, int gcc_p)
+m68k_fix_call_dummy (char *dummy, CORE_ADDR pc, CORE_ADDR fun, int nargs,
+ struct value **args, struct type *type, int gcc_p)
{
- bfd_putb32 (fun, (unsigned char *) dummy + CALL_DUMMY_START_OFFSET + 2);
- bfd_putb32 (nargs*4, (unsigned char *) dummy + CALL_DUMMY_START_OFFSET + 8);
+ bfd_putb32 (fun, (unsigned char *) dummy + CALL_DUMMY_START_OFFSET + 2);
+ bfd_putb32 (nargs * 4,
+ (unsigned char *) dummy + CALL_DUMMY_START_OFFSET + 8);
}
@@ -235,7 +236,8 @@ m68k_pop_frame (void)
{
if (frame->saved_regs[regnum])
{
- write_register (regnum, read_memory_integer (frame->saved_regs[regnum], 4));
+ write_register (regnum,
+ read_memory_integer (frame->saved_regs[regnum], 4));
}
}
if (frame->saved_regs[PS_REGNUM])
@@ -711,9 +713,10 @@ m68k_saved_pc_after_call (struct frame_info *frame)
static struct gdbarch *
m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
{
- static LONGEST call_dummy_words[7] = {0xf227e0ff, 0x48e7fffc, 0x426742e7,
- 0x4eb93232, 0x3232dffc, 0x69696969,
- (0x4e404e71 | (BPT_VECTOR << 16))};
+ static LONGEST call_dummy_words[7] = { 0xf227e0ff, 0x48e7fffc, 0x426742e7,
+ 0x4eb93232, 0x3232dffc, 0x69696969,
+ (0x4e404e71 | (BPT_VECTOR << 16))
+ };
struct gdbarch_tdep *tdep = NULL;
struct gdbarch *gdbarch;
@@ -729,24 +732,24 @@ m68k_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
gdbarch = gdbarch_alloc (&info, 0);
set_gdbarch_frame_init_saved_regs (gdbarch, m68k_frame_init_saved_regs);
-
+
set_gdbarch_use_generic_dummy_frames (gdbarch, 0);
set_gdbarch_call_dummy_location (gdbarch, ON_STACK);
set_gdbarch_call_dummy_breakpoint_offset_p (gdbarch, 1);
- set_gdbarch_call_dummy_breakpoint_offset (gdbarch, 24);
+ set_gdbarch_call_dummy_breakpoint_offset (gdbarch, 24);
set_gdbarch_pc_in_call_dummy (gdbarch, pc_in_call_dummy_on_stack);
set_gdbarch_call_dummy_p (gdbarch, 1);
set_gdbarch_call_dummy_stack_adjust_p (gdbarch, 0);
set_gdbarch_call_dummy_length (gdbarch, 28);
set_gdbarch_call_dummy_start_offset (gdbarch, 12);
-
+
set_gdbarch_call_dummy_words (gdbarch, call_dummy_words);
set_gdbarch_sizeof_call_dummy_words (gdbarch, sizeof (call_dummy_words));
set_gdbarch_call_dummy_stack_adjust_p (gdbarch, 0);
set_gdbarch_fix_call_dummy (gdbarch, m68k_fix_call_dummy);
set_gdbarch_push_dummy_frame (gdbarch, m68k_push_dummy_frame);
set_gdbarch_pop_frame (gdbarch, m68k_pop_frame);
-
+
return gdbarch;
}