+2010-06-15 Pedro Alves <pedro@codesourcery.com>
+
+ * 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.
+
2010-06-14 Stan Shebs <stan@codesourcery.com>
Pedro Alves <pedro@codesourcery.com>
}
static void
-amd64_emit_const (int64_t num)
+amd64_emit_const (LONGEST num)
{
unsigned char buf[16];
int i;
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;
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. */
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)
}
static void
-i386_emit_const (int64_t num)
+i386_emit_const (LONGEST num)
{
unsigned char buf[16];
int i, hi;
"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)
void (*emit_if_goto) (int *offset_p, int *size_p);
void (*emit_goto) (int *offset_p, int *size_p);
void (*write_goto_address) (CORE_ADDR from, CORE_ADDR to, int size);
- void (*emit_const) (int64_t num);
+ void (*emit_const) (LONGEST num);
void (*emit_call) (CORE_ADDR fn);
void (*emit_reg) (int reg);
void (*emit_pop) (void);
}
static void
-emit_const (int64_t num)
+emit_const (LONGEST num)
{
target_emit_ops ()->emit_const (num);
}
target_emit_ops ()->emit_int_call_1 (fn, arg1);
}
-/* FN's prototype is `void(*fn)(int,int64_t)'. */
+/* FN's prototype is `void(*fn)(int,LONGEST)'. */
static void
emit_void_call_2 (CORE_ADDR fn, int arg1)