aboutsummaryrefslogtreecommitdiff
path: root/gdb/microblaze-linux-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/microblaze-linux-tdep.c')
-rw-r--r--gdb/microblaze-linux-tdep.c41
1 files changed, 18 insertions, 23 deletions
diff --git a/gdb/microblaze-linux-tdep.c b/gdb/microblaze-linux-tdep.c
index ae33cb5..9b7ca2b 100644
--- a/gdb/microblaze-linux-tdep.c
+++ b/gdb/microblaze-linux-tdep.c
@@ -38,7 +38,7 @@
#include "linux-tdep.h"
static int
-microblaze_linux_memory_remove_breakpoint (struct gdbarch *gdbarch,
+microblaze_linux_memory_remove_breakpoint (struct gdbarch *gdbarch,
struct bp_target_info *bp_tgt)
{
CORE_ADDR addr = bp_tgt->reqstd_address;
@@ -64,8 +64,7 @@ microblaze_linux_memory_remove_breakpoint (struct gdbarch *gdbarch,
static void
microblaze_linux_sigtramp_cache (frame_info_ptr next_frame,
struct trad_frame_cache *this_cache,
- CORE_ADDR func, LONGEST offset,
- int bias)
+ CORE_ADDR func, LONGEST offset, int bias)
{
CORE_ADDR base;
CORE_ADDR gpregs;
@@ -82,12 +81,11 @@ microblaze_linux_sigtramp_cache (frame_info_ptr next_frame,
/* Registers saved on stack. */
for (regnum = 0; regnum < MICROBLAZE_BTR_REGNUM; regnum++)
- trad_frame_set_reg_addr (this_cache, regnum,
+ trad_frame_set_reg_addr (this_cache, regnum,
gpregs + regnum * MICROBLAZE_REGISTER_SIZE);
trad_frame_set_id (this_cache, frame_id_build (base, func));
}
-
static void
microblaze_linux_sighandler_cache_init (const struct tramp_frame *self,
frame_info_ptr next_frame,
@@ -96,31 +94,27 @@ microblaze_linux_sighandler_cache_init (const struct tramp_frame *self,
{
microblaze_linux_sigtramp_cache (next_frame, this_cache, func,
0 /* Offset to ucontext_t. */
- + 24 /* Offset to .reg. */,
+ + 24 /* Offset to .reg. */,
0);
}
-static struct tramp_frame microblaze_linux_sighandler_tramp_frame =
-{
- SIGTRAMP_FRAME,
- 4,
- {
- { 0x31800077, ULONGEST_MAX }, /* addik R12,R0,119. */
- { 0xb9cc0008, ULONGEST_MAX }, /* brki R14,8. */
- { TRAMP_SENTINEL_INSN },
- },
- microblaze_linux_sighandler_cache_init
-};
-
+static struct tramp_frame microblaze_linux_sighandler_tramp_frame
+ = { SIGTRAMP_FRAME,
+ 4,
+ {
+ { 0x31800077, ULONGEST_MAX }, /* addik R12,R0,119. */
+ { 0xb9cc0008, ULONGEST_MAX }, /* brki R14,8. */
+ { TRAMP_SENTINEL_INSN },
+ },
+ microblaze_linux_sighandler_cache_init };
static void
-microblaze_linux_init_abi (struct gdbarch_info info,
- struct gdbarch *gdbarch)
+microblaze_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
linux_init_abi (info, gdbarch, 0);
- set_gdbarch_memory_remove_breakpoint (gdbarch,
- microblaze_linux_memory_remove_breakpoint);
+ set_gdbarch_memory_remove_breakpoint (
+ gdbarch, microblaze_linux_memory_remove_breakpoint);
/* Shared library handling. */
set_solib_svr4_fetch_link_map_offsets (gdbarch,
@@ -132,9 +126,10 @@ microblaze_linux_init_abi (struct gdbarch_info info,
}
void _initialize_microblaze_linux_tdep ();
+
void
_initialize_microblaze_linux_tdep ()
{
- gdbarch_register_osabi (bfd_arch_microblaze, 0, GDB_OSABI_LINUX,
+ gdbarch_register_osabi (bfd_arch_microblaze, 0, GDB_OSABI_LINUX,
microblaze_linux_init_abi);
}