This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[committed] use set_gdbarch_print_insn
- From: Richard Henderson <rth at twiddle dot net>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 1 Jun 2003 20:36:48 -0700
- Subject: [committed] use set_gdbarch_print_insn
I think this one qualifies for the obvious rule.
r~
* alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
(_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
--- alpha-tdep.c.12 2003-06-01 20:26:19.000000000 -0700
+++ alpha-tdep.c 2003-06-01 20:26:47.000000000 -0700
@@ -1458,6 +1458,9 @@ alpha_gdbarch_init (struct gdbarch_info
/* Prologue heuristics. */
set_gdbarch_skip_prologue (gdbarch, alpha_skip_prologue);
+ /* Disassembler. */
+ set_gdbarch_print_insn (gdbarch, print_insn_alpha);
+
/* Call info. */
set_gdbarch_frame_num_args (gdbarch, frame_num_args_unknown);
set_gdbarch_frameless_function_invocation (gdbarch,
@@ -1511,7 +1514,6 @@ _initialize_alpha_tdep (void)
struct cmd_list_element *c;
gdbarch_register (bfd_arch_alpha, alpha_gdbarch_init, NULL);
- deprecated_tm_print_insn = print_insn_alpha;
/* Let the user set the fence post for heuristic_proc_start. */