projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a gdbarch 'print_auxv_entry' method for FreeBSD ABIs.
[deliverable/binutils-gdb.git]
/
gdb
/
sparcobsd-tdep.c
diff --git
a/gdb/sparcobsd-tdep.c
b/gdb/sparcobsd-tdep.c
index 6a3c43cb74fa5878e033b7bfd1a6fccfdc2b0fb2..21c8d6a81489a7d21bf2e1a955c03dd9e33da860 100644
(file)
--- a/
gdb/sparcobsd-tdep.c
+++ b/
gdb/sparcobsd-tdep.c
@@
-1,7
+1,6
@@
/* Target-dependent code for OpenBSD/sparc.
/* Target-dependent code for OpenBSD/sparc.
- Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
- Free Software Foundation, Inc.
+ Copyright (C) 2004-2016 Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-28,8
+27,6
@@
#include "symtab.h"
#include "trad-frame.h"
#include "symtab.h"
#include "trad-frame.h"
-#include "gdb_assert.h"
-
#include "obsd-tdep.h"
#include "sparc-tdep.h"
#include "solib-svr4.h"
#include "obsd-tdep.h"
#include "sparc-tdep.h"
#include "solib-svr4.h"
@@
-48,7
+45,7
@@
static const int sparc32obsd_page_size = 4096;
static int
static const int sparc32obsd_page_size = 4096;
static int
-sparc32obsd_pc_in_sigtramp (CORE_ADDR pc, char *name)
+sparc32obsd_pc_in_sigtramp (CORE_ADDR pc, c
onst c
har *name)
{
CORE_ADDR start_pc = (pc & ~(sparc32obsd_page_size - 1));
unsigned long insn;
{
CORE_ADDR start_pc = (pc & ~(sparc32obsd_page_size - 1));
unsigned long insn;
@@
-77,7
+74,7
@@
sparc32obsd_sigtramp_frame_cache (struct frame_info *this_frame,
CORE_ADDR addr;
if (*this_cache)
CORE_ADDR addr;
if (*this_cache)
- return *this_cache;
+ return
(struct sparc_frame_cache *)
*this_cache;
cache = sparc_frame_cache (this_frame, this_cache);
gdb_assert (cache == *this_cache);
cache = sparc_frame_cache (this_frame, this_cache);
gdb_assert (cache == *this_cache);
@@
-91,7
+88,7
@@
sparc32obsd_sigtramp_frame_cache (struct frame_info *this_frame,
/* Since we couldn't find the frame's function, the cache was
initialized under the assumption that we're frameless. */
/* Since we couldn't find the frame's function, the cache was
initialized under the assumption that we're frameless. */
-
cache->frameless_p = 0
;
+
sparc_record_save_insn (cache)
;
addr = get_frame_register_unsigned (this_frame, SPARC_FP_REGNUM);
cache->base = addr;
}
addr = get_frame_register_unsigned (this_frame, SPARC_FP_REGNUM);
cache->base = addr;
}
@@
-128,7
+125,7
@@
sparc32obsd_sigtramp_frame_sniffer (const struct frame_unwind *self,
void **this_cache)
{
CORE_ADDR pc = get_frame_pc (this_frame);
void **this_cache)
{
CORE_ADDR pc = get_frame_pc (this_frame);
- char *name;
+ c
onst c
har *name;
find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc32obsd_pc_in_sigtramp (pc, name))
find_pc_partial_function (pc, &name, NULL, NULL);
if (sparc32obsd_pc_in_sigtramp (pc, name))
@@
-139,6
+136,7
@@
sparc32obsd_sigtramp_frame_sniffer (const struct frame_unwind *self,
static const struct frame_unwind sparc32obsd_sigtramp_frame_unwind =
{
SIGTRAMP_FRAME,
static const struct frame_unwind sparc32obsd_sigtramp_frame_unwind =
{
SIGTRAMP_FRAME,
+ default_frame_unwind_stop_reason,
sparc32obsd_sigtramp_frame_this_id,
sparc32obsd_sigtramp_frame_prev_register,
NULL,
sparc32obsd_sigtramp_frame_this_id,
sparc32obsd_sigtramp_frame_prev_register,
NULL,
@@
-236,8
+234,6
@@
sparc32obsd_collect_uthread(const struct regcache *regcache,
static void
sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
static void
sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
- struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-
/* OpenBSD/sparc is very similar to NetBSD/sparc ELF. */
sparc32nbsd_elf_init_abi (info, gdbarch);
/* OpenBSD/sparc is very similar to NetBSD/sparc ELF. */
sparc32nbsd_elf_init_abi (info, gdbarch);
This page took
0.025425 seconds
and
4
git commands to generate.