+2009-05-17 Hui Zhu <teawater@gmail.com>
+
+ * i386-tdep.c (i386_process_record): Make it extern.
+ (i386_gdbarch_init): Don't call set_gdbarch_process_record
+ here.
+ * i386-tdep.c (i386_process_record): Declare.
+ * i386-linux-tdep.c (i386_linux_init_abi): Call
+ set_gdbarch_process_record.
+
2009-05-17 Vladimir Prus <vladimir@codesourcery.com>
Always report varobj as changed when in_scope attribute changes.
tdep->sc_reg_offset = i386_linux_sc_reg_offset;
tdep->sc_num_regs = ARRAY_SIZE (i386_linux_sc_reg_offset);
+ set_gdbarch_process_record (gdbarch, i386_process_record);
+
/* Initialize the i386_linux_record_tdep. */
i386_linux_record_tdep.size__old_kernel_stat =
I386_LINUX_RECORD_SIZE__old_kernel_stat;
memory that will be changed in current instruction to "record_arch_list".
Return -1 if something wrong. */
-static int
+int
i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache,
CORE_ADDR addr)
{
set_gdbarch_skip_permanent_breakpoint (gdbarch,
i386_skip_permanent_breakpoint);
- set_gdbarch_process_record (gdbarch, i386_process_record);
-
return gdbarch;
}
/* Initialize a SVR4 architecture variant. */
extern void i386_svr4_init_abi (struct gdbarch_info, struct gdbarch *);
+
+extern int i386_process_record (struct gdbarch *gdbarch,
+ struct regcache *regcache, CORE_ADDR addr);
\f
/* Functions and variables exported from i386bsd-tdep.c. */