summaryrefslogtreecommitdiff
path: root/gdb/amd64-linux-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-05-08 22:07:27 +0000
committerMark Kettenis <kettenis@gnu.org>2005-05-08 22:07:27 +0000
commit4252dc94bdafcf25eaa62721d12d403737598005 (patch)
tree94c3f28dca61b98488144197893a46dbe161471f /gdb/amd64-linux-tdep.c
parentd46bfb5c37b47361f9a357f493fb74133009cb4a (diff)
downloadbinutils-gdb-4252dc94bdafcf25eaa62721d12d403737598005.tar.gz
* i386-linux-tdep.c (linux_sigtramp_code, linux_rt_sigtramp_code):
Change type to `static const gdb_byte'. (i386_linux_sigtramp_start, i386_linux_rt_sigtramp_start) (i386_linux_sigcontext_addr): Use gdb_byte for buf. * amd64-linux-tdep.c (linux_sigtramp_code): Change type to `static const gdb_byte'. (amd64_linux_sigtramp_start, amd64_linux_sigcontext_addr): Use gdb_byte for buf. * amd64fbsd-tdep.c (amd64fbsd_supply_uthread) (amd64fbsd_collect_uthread): Use gdb_byte for buf.
Diffstat (limited to 'gdb/amd64-linux-tdep.c')
-rw-r--r--gdb/amd64-linux-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index fd90d53e1fb..05b2eae24be 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -72,7 +72,7 @@ static int amd64_linux_gregset_reg_offset[] =
#define LINUX_SIGTRAMP_INSN1 0x0f /* syscall */
#define LINUX_SIGTRAMP_OFFSET1 7
-static const unsigned char linux_sigtramp_code[] =
+static const gdb_byte linux_sigtramp_code[] =
{
/* mov $__NR_rt_sigreturn, %rax */
LINUX_SIGTRAMP_INSN0, 0xc7, 0xc0, 0x0f, 0x00, 0x00, 0x00,
@@ -89,7 +89,7 @@ static CORE_ADDR
amd64_linux_sigtramp_start (struct frame_info *next_frame)
{
CORE_ADDR pc = frame_pc_unwind (next_frame);
- unsigned char buf[LINUX_SIGTRAMP_LEN];
+ gdb_byte buf[LINUX_SIGTRAMP_LEN];
/* We only recognize a signal trampoline if PC is at the start of
one of the two instructions. We optimize for finding the PC at
@@ -150,7 +150,7 @@ static CORE_ADDR
amd64_linux_sigcontext_addr (struct frame_info *next_frame)
{
CORE_ADDR sp;
- char buf[8];
+ gdb_byte buf[8];
frame_unwind_register (next_frame, SP_REGNUM, buf);
sp = extract_unsigned_integer (buf, 8);