projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't let bin2hex call strlen
[deliverable/binutils-gdb.git]
/
gdb
/
i386-sol2-tdep.c
diff --git
a/gdb/i386-sol2-tdep.c
b/gdb/i386-sol2-tdep.c
index d391aaf818f8b08d08b157f961bad5d3f9a9a363..07957545453a1f087d16058cc4b61091e3133eeb 100644
(file)
--- a/
gdb/i386-sol2-tdep.c
+++ b/
gdb/i386-sol2-tdep.c
@@
-1,7
+1,6
@@
/* Target-dependent code for Solaris x86.
/* Target-dependent code for Solaris x86.
- Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008
- Free Software Foundation, Inc.
+ Copyright (C) 2002-2014 Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-22,7
+21,7
@@
#include "value.h"
#include "osabi.h"
#include "value.h"
#include "osabi.h"
-#include
"gdb_string.h"
+#include
<string.h>
#include "sol2-tdep.h"
#include "i386-tdep.h"
#include "sol2-tdep.h"
#include "i386-tdep.h"
@@
-49,14
+48,14
@@
static int i386_sol2_gregset_reg_offset[] =
0 * 4 /* %gs */
};
0 * 4 /* %gs */
};
-/* Return whether
the frame preceding NEXT_FRAME corresponds to a
-
Solaris sigtramp
routine. */
+/* Return whether
THIS_FRAME corresponds to a Solaris sigtramp
+ routine. */
static int
static int
-i386_sol2_sigtramp_p (struct frame_info *
next
_frame)
+i386_sol2_sigtramp_p (struct frame_info *
this
_frame)
{
{
- CORE_ADDR pc =
frame_pc_unwind (next
_frame);
- char *name;
+ CORE_ADDR pc =
get_frame_pc (this
_frame);
+ c
onst c
har *name;
find_pc_partial_function (pc, &name, NULL, NULL);
return (name && (strcmp ("sigacthandler", name) == 0
find_pc_partial_function (pc, &name, NULL, NULL);
return (name && (strcmp ("sigacthandler", name) == 0
@@
-67,12
+66,12
@@
i386_sol2_sigtramp_p (struct frame_info *next_frame)
`mcontext_t' that contains the saved set of machine registers. */
static CORE_ADDR
`mcontext_t' that contains the saved set of machine registers. */
static CORE_ADDR
-i386_sol2_mcontext_addr (struct frame_info *
next
_frame)
+i386_sol2_mcontext_addr (struct frame_info *
this
_frame)
{
CORE_ADDR sp, ucontext_addr;
{
CORE_ADDR sp, ucontext_addr;
- sp =
frame_unwind_register_unsigned (next
_frame, I386_ESP_REGNUM);
- ucontext_addr = get_frame_memory_unsigned (
next
_frame, sp + 8, 4);
+ sp =
get_frame_register_unsigned (this
_frame, I386_ESP_REGNUM);
+ ucontext_addr = get_frame_memory_unsigned (
this
_frame, sp + 8, 4);
return ucontext_addr + 36;
}
return ucontext_addr + 36;
}
@@
-80,8
+79,8
@@
i386_sol2_mcontext_addr (struct frame_info *next_frame)
/* SunPRO encodes the static variables. This is not related to C++
mangling, it is done for C too. */
/* SunPRO encodes the static variables. This is not related to C++
mangling, it is done for C too. */
-static char *
-i386_sol2_static_transform_name (char *name)
+static c
onst c
har *
+i386_sol2_static_transform_name (c
onst c
har *name)
{
char *p;
if (name[0] == '.')
{
char *p;
if (name[0] == '.')
@@
-135,6
+134,9
@@
i386_sol2_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_skip_solib_resolver (gdbarch, sol2_skip_solib_resolver);
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
set_gdbarch_skip_solib_resolver (gdbarch, sol2_skip_solib_resolver);
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_ilp32_fetch_link_map_offsets);
+
+ /* How to print LWP PTIDs from core files. */
+ set_gdbarch_core_pid_to_str (gdbarch, sol2_core_pid_to_str);
}
\f
}
\f
This page took
0.025289 seconds
and
4
git commands to generate.