diff options
author | Pedro Alves <palves@redhat.com> | 2010-06-15 10:44:48 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-06-15 10:44:48 +0000 |
commit | 4e29fb547ead13cd1f2856f1af3d4029a81ea196 (patch) | |
tree | 0f1f312e6703c16533ef9d98f3cdbf783c111e58 /gdb/gdbserver/linux-x86-low.c | |
parent | d70546dee99bfc85b6ef47c479611109271ccffa (diff) | |
download | gdb-4e29fb547ead13cd1f2856f1af3d4029a81ea196.zip gdb-4e29fb547ead13cd1f2856f1af3d4029a81ea196.tar.gz gdb-4e29fb547ead13cd1f2856f1af3d4029a81ea196.tar.bz2 |
* linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
(i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
LONGEST uses.
* server.h (struct emit_ops): Replace int64_t uses with LONGEST
uses.
* tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
uses with LONGEST uses.
Diffstat (limited to 'gdb/gdbserver/linux-x86-low.c')
-rw-r--r-- | gdb/gdbserver/linux-x86-low.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index cf00f7c..772aaa3 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -1764,7 +1764,7 @@ amd64_write_goto_address (CORE_ADDR from, CORE_ADDR to, int size) } static void -amd64_emit_const (int64_t num) +amd64_emit_const (LONGEST num) { unsigned char buf[16]; int i; @@ -1772,7 +1772,7 @@ amd64_emit_const (int64_t num) i = 0; buf[i++] = 0x48; buf[i++] = 0xb8; /* mov $<n>,%rax */ - *((int64_t *) (&buf[i])) = num; + *((LONGEST *) (&buf[i])) = num; i += 8; append_insns (&buildaddr, i, buf); current_insn_ptr = buildaddr; @@ -1784,7 +1784,7 @@ amd64_emit_call (CORE_ADDR fn) unsigned char buf[16]; int i; CORE_ADDR buildaddr; - int64_t offset64; + LONGEST offset64; /* The destination function being in the shared library, may be >31-bits away off the compiled code pad. */ @@ -1919,7 +1919,7 @@ amd64_emit_int_call_1 (CORE_ADDR fn, int arg1) amd64_emit_call (fn); } -/* FN's prototype is `void(*fn)(int,int64_t)'. */ +/* FN's prototype is `void(*fn)(int,LONGEST)'. */ static void amd64_emit_void_call_2 (CORE_ADDR fn, int arg1) @@ -2251,7 +2251,7 @@ i386_write_goto_address (CORE_ADDR from, CORE_ADDR to, int size) } static void -i386_emit_const (int64_t num) +i386_emit_const (LONGEST num) { unsigned char buf[16]; int i, hi; @@ -2414,7 +2414,7 @@ i386_emit_int_call_1 (CORE_ADDR fn, int arg1) "lea 0x8(%esp),%esp"); } -/* FN's prototype is `void(*fn)(int,int64_t)'. */ +/* FN's prototype is `void(*fn)(int,LONGEST)'. */ static void i386_emit_void_call_2 (CORE_ADDR fn, int arg1) |