2003-04-28 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Mon, 28 Apr 2003 16:17:29 +0000 (16:17 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 28 Apr 2003 16:17:29 +0000 (16:17 +0000)
* gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
* gdbarch.h, gdbarch.c: Re-generate.
* xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
* vax-tdep.c (_initialize_vax_tdep): Update.
* v850-tdep.c (_initialize_v850_tdep): Update.
* sparc-tdep.c (_initialize_sparc_tdep): Update.
* s390-tdep.c (_initialize_s390_tdep): Update.
* ns32k-tdep.c (_initialize_ns32k_tdep): Update.
* mn10300-tdep.c (_initialize_mn10300_tdep): Update.
* mips-tdep.c (_initialize_mips_tdep): Update.
* mcore-tdep.c (_initialize_mcore_tdep): Update.
* m68k-tdep.c (_initialize_m68k_tdep): Update.
* ia64-tdep.c (_initialize_ia64_tdep): Update.
* hppa-tdep.c (_initialize_hppa_tdep): Update.
* h8300-tdep.c (_initialize_h8300_tdep): Update.
* frv-tdep.c (_initialize_frv_tdep): Update.
* cris-tdep.c (cris_delayed_get_disassembler): Update.
(_initialize_cris_tdep): Update.
* arch-utils.c (legacy_print_insn): Update.
* alpha-tdep.c (_initialize_alpha_tdep): Update.

2003-04-28  Andrew Cagney  <cagney@redhat.com>

* gdbint.texinfo (Target Architecture Definition): Rename
"tm_print_insn" to "deprecated_tm_print_insn".

23 files changed:
gdb/ChangeLog
gdb/alpha-tdep.c
gdb/arch-utils.c
gdb/cris-tdep.c
gdb/doc/ChangeLog
gdb/doc/gdbint.texinfo
gdb/frv-tdep.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/h8300-tdep.c
gdb/hppa-tdep.c
gdb/ia64-tdep.c
gdb/m68k-tdep.c
gdb/mcore-tdep.c
gdb/mips-tdep.c
gdb/mn10300-tdep.c
gdb/ns32k-tdep.c
gdb/s390-tdep.c
gdb/sparc-tdep.c
gdb/v850-tdep.c
gdb/vax-tdep.c
gdb/xstormy16-tdep.c

index 6d50c68a20c508c06eac41edfe0fc4273e431bfa..b585d95f89cb3731259c38cba8279d5d93c4b008 100644 (file)
@@ -1,3 +1,26 @@
+2003-04-28  Andrew Cagney  <cagney@redhat.com>
+
+       * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
+       * gdbarch.h, gdbarch.c: Re-generate.
+       * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
+       * vax-tdep.c (_initialize_vax_tdep): Update.
+       * v850-tdep.c (_initialize_v850_tdep): Update.
+       * sparc-tdep.c (_initialize_sparc_tdep): Update.
+       * s390-tdep.c (_initialize_s390_tdep): Update.
+       * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
+       * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
+       * mips-tdep.c (_initialize_mips_tdep): Update.
+       * mcore-tdep.c (_initialize_mcore_tdep): Update.
+       * m68k-tdep.c (_initialize_m68k_tdep): Update.
+       * ia64-tdep.c (_initialize_ia64_tdep): Update.
+       * hppa-tdep.c (_initialize_hppa_tdep): Update.
+       * h8300-tdep.c (_initialize_h8300_tdep): Update.
+       * frv-tdep.c (_initialize_frv_tdep): Update.
+       * cris-tdep.c (cris_delayed_get_disassembler): Update.
+       (_initialize_cris_tdep): Update.
+       * arch-utils.c (legacy_print_insn): Update.
+       * alpha-tdep.c (_initialize_alpha_tdep): Update.
+
 2003-04-26  Adam Fedor  <fedor@gnu.org>
 
        * linespec.c (decode_objc): New function to decode ObjC calls
index d61f359c1f51bc5fa3e7850b545884d0e1ab4811..d694be5278f6f61013c2c4a024aa634fe7ed9c67 100644 (file)
@@ -1925,7 +1925,7 @@ _initialize_alpha_tdep (void)
 
   gdbarch_register (bfd_arch_alpha, alpha_gdbarch_init, alpha_dump_tdep);
 
-  tm_print_insn = print_insn_alpha;
+  deprecated_tm_print_insn = print_insn_alpha;
 
   /* Let the user set the fence post for heuristic_proc_start.  */
 
index 825bd5cb76f57de45b9ffc79c92ffebe787cde7f..7a4a1db9c5348f9d28871c9333dc9c5f0a77d55a 100644 (file)
@@ -209,7 +209,7 @@ generic_prologue_frameless_p (CORE_ADDR ip)
 int
 legacy_print_insn (bfd_vma vma, disassemble_info *info)
 {
-  return (*tm_print_insn) (vma, info);
+  return (*deprecated_tm_print_insn) (vma, info);
 }
 
 /* Helper functions for INNER_THAN */
index ef5e072020d3c3c3596f642fd7c66b94936362ea..c3ebe4d08c6e10c1dc962859d122fc9f622f14b6 100644 (file)
@@ -3548,7 +3548,7 @@ static void cris_gdb_func (enum cris_op_type op_type, unsigned short inst,
 static int
 cris_delayed_get_disassembler (bfd_vma addr, disassemble_info *info)
 {
-  tm_print_insn = cris_get_disassembler (exec_bfd);
+  deprecated_tm_print_insn = cris_get_disassembler (exec_bfd);
   return TARGET_PRINT_INSN (addr, info);
 }
 
@@ -3861,7 +3861,7 @@ _initialize_cris_tdep (void)
   gdbarch_register (bfd_arch_cris, cris_gdbarch_init, cris_dump_tdep);
   
   /* Used in disassembly.  */
-  tm_print_insn = cris_delayed_get_disassembler;
+  deprecated_tm_print_insn = cris_delayed_get_disassembler;
 
   /* CRIS-specific user-commands.  */
   c = add_set_cmd ("cris-version", class_support, var_integer, 
index 473eb155d0e10c77b7d2a3e4d62a9887050dc997..e42448c3016481ff5852a93bb85caaab07485abf 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-28  Andrew Cagney  <cagney@redhat.com>
+
+       * gdbint.texinfo (Target Architecture Definition): Rename
+       "tm_print_insn" to "deprecated_tm_print_insn".
+
 2003-04-09  Jim Blandy  <jimb@redhat.com>
 
        * gdb.texinfo (Symbols): Document 'maint list symtabs' and 'maint
index 4ca81f6777ddb43a9f2dfcfadee15b01c45654a0..3a82c91bffc3f25dd272435cbe4f773fdfee5e57 100644 (file)
@@ -3908,11 +3908,12 @@ This is the function used by @value{GDBN} to print an assembly
 instruction.  It prints the instruction at address @var{addr} in
 debugged memory and returns the length of the instruction, in bytes.  If
 a target doesn't define its own printing routine, it defaults to an
-accessor function for the global pointer @code{tm_print_insn}. This
-usually points to a function in the @code{opcodes} library (@pxref{Support
-Libraries, ,Opcodes}).  @var{info} is a structure (of type
-@code{disassemble_info}) defined in @file{include/dis-asm.h} used to
-pass information to the instruction decoding routine.
+accessor function for the global pointer
+@code{deprecated_tm_print_insn}.  This usually points to a function in
+the @code{opcodes} library (@pxref{Support Libraries, ,Opcodes}).
+@var{info} is a structure (of type @code{disassemble_info}) defined in
+@file{include/dis-asm.h} used to pass information to the instruction
+decoding routine.
 
 @item struct frame_id unwind_dummy_id (struct frame_info *@var{frame})
 @findex unwind_dummy_id
index bab37760ad016ea33b35b9fecc1f5a9d1f8f6482..90cf4f33143c63fd905eba7008e2cfb1d204ca9e 100644 (file)
@@ -1147,7 +1147,7 @@ _initialize_frv_tdep (void)
 {
   register_gdbarch_init (bfd_arch_frv, frv_gdbarch_init);
 
-  tm_print_insn = print_insn_frv;
+  deprecated_tm_print_insn = print_insn_frv;
 }
 
 \f
index 3b5a80762c35767dbf339e46cc78563495479af3..98080613ffe3cadeceab40e4bb5c27120efc7ca6 100644 (file)
@@ -6203,7 +6203,7 @@ gdbarch_update_p (struct gdbarch_info info)
 /* Disassembler */
 
 /* Pointer to the target-dependent disassembly function.  */
-int (*tm_print_insn) (bfd_vma, disassemble_info *);
+int (*deprecated_tm_print_insn) (bfd_vma, disassemble_info *);
 disassemble_info tm_print_insn_info;
 
 
index 7b2641b4c1ecf38cddfc5ceda3fe74527c1939f5..a8a63ebc04dedafcc91df98410ab045c055b9f3e 100644 (file)
@@ -3364,7 +3364,8 @@ extern void dis_asm_memory_error (int status, bfd_vma memaddr,
 extern void dis_asm_print_address (bfd_vma addr,
                                   disassemble_info *info);
 
-extern int (*tm_print_insn) (bfd_vma, disassemble_info*);
+/* Use set_gdbarch_print_insn instead.  */
+extern int (*deprecated_tm_print_insn) (bfd_vma, disassemble_info*);
 extern disassemble_info tm_print_insn_info;
 #ifndef TARGET_PRINT_INSN_INFO
 #define TARGET_PRINT_INSN_INFO (&tm_print_insn_info)
index 7a17b63c3d9a6347c8227e0718fa3b6dc244cc8b..129e09aaff944219ca12d20e79221b5de352e031 100755 (executable)
@@ -1218,7 +1218,8 @@ extern void dis_asm_memory_error (int status, bfd_vma memaddr,
 extern void dis_asm_print_address (bfd_vma addr,
                                   disassemble_info *info);
 
-extern int (*tm_print_insn) (bfd_vma, disassemble_info*);
+/* Use set_gdbarch_print_insn instead.  */
+extern int (*deprecated_tm_print_insn) (bfd_vma, disassemble_info*);
 extern disassemble_info tm_print_insn_info;
 #ifndef TARGET_PRINT_INSN_INFO
 #define TARGET_PRINT_INSN_INFO (&tm_print_insn_info)
@@ -2377,7 +2378,7 @@ gdbarch_update_p (struct gdbarch_info info)
 /* Disassembler */
 
 /* Pointer to the target-dependent disassembly function.  */
-int (*tm_print_insn) (bfd_vma, disassemble_info *);
+int (*deprecated_tm_print_insn) (bfd_vma, disassemble_info *);
 disassemble_info tm_print_insn_info;
 
 
index 2423a9a40a553d666546b89b169fa01ec5542e23..f1ab95c494bc3183185719201083c89e0195de31 100644 (file)
@@ -1177,6 +1177,6 @@ h8300_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 void
 _initialize_h8300_tdep (void)
 {
-  tm_print_insn = gdb_print_insn_h8300;
+  deprecated_tm_print_insn = gdb_print_insn_h8300;
   register_gdbarch_init (bfd_arch_h8300, h8300_gdbarch_init);
 }
index 482e4751fa153421ada3132674d26f99b4e2c57f..4c60c24380ed35e269c7abf961f6b955f21aca5f 100644 (file)
@@ -5050,7 +5050,7 @@ _initialize_hppa_tdep (void)
   void break_at_finish_at_depth_command (char *arg, int from_tty);
 
   gdbarch_register (bfd_arch_hppa, hppa_gdbarch_init, hppa_dump_tdep);
-  tm_print_insn = print_insn_hppa;
+  deprecated_tm_print_insn = print_insn_hppa;
 
   add_cmd ("unwind", class_maintenance, unwind_command,
           "Print unwind table entry at given address.",
index 86638fb37ba6155b5c509dde9ac343549b1aa206..b0c29d8a9f065e0a8f38e983470a11e99be04c05 100644 (file)
@@ -2251,6 +2251,6 @@ _initialize_ia64_tdep (void)
 {
   register_gdbarch_init (bfd_arch_ia64, ia64_gdbarch_init);
 
-  tm_print_insn = print_insn_ia64;
+  deprecated_tm_print_insn = print_insn_ia64;
   tm_print_insn_info.bytes_per_line = SLOT_MULTIPLIER;
 }
index 1ad176e3ad0a5ca825e615aa004ae27038f7c3f4..bdc2da6bf7c96892b935cce78b50d23e53317824 100644 (file)
@@ -1066,5 +1066,5 @@ void
 _initialize_m68k_tdep (void)
 {
   gdbarch_register (bfd_arch_m68k, m68k_gdbarch_init, m68k_dump_tdep);
-  tm_print_insn = print_insn_m68k;
+  deprecated_tm_print_insn = print_insn_m68k;
 }
index 5d18ce838816019ce3538ee48f61c0992adaeacb..970e56c7d30961a73624a95f395532ba3f05969f 100644 (file)
@@ -1173,7 +1173,7 @@ _initialize_mcore_tdep (void)
 {
   extern int print_insn_mcore (bfd_vma, disassemble_info *);
   gdbarch_register (bfd_arch_mcore, mcore_gdbarch_init, mcore_dump_tdep);
-  tm_print_insn = print_insn_mcore;
+  deprecated_tm_print_insn = print_insn_mcore;
 
 #ifdef MCORE_DEBUG
   add_show_from_set (add_set_cmd ("mcoredebug", no_class,
index 7956be492499af560a89d54b88df6c701166de50..b70e6aa97780902ac0fdb068be57c8d5686010be 100644 (file)
@@ -6396,8 +6396,8 @@ _initialize_mips_tdep (void)
     internal_error (__FILE__, __LINE__, "mips_abi_strings out of sync");
 
   gdbarch_register (bfd_arch_mips, mips_gdbarch_init, mips_dump_tdep);
-  if (!tm_print_insn)          /* Someone may have already set it */
-    tm_print_insn = gdb_print_insn_mips;
+  if (!deprecated_tm_print_insn)        /* Someone may have already set it */
+    deprecated_tm_print_insn = gdb_print_insn_mips;
 
   /* Add root prefix command for all "set mips"/"show mips" commands */
   add_prefix_cmd ("mips", no_class, set_mips_command,
index d411b74156483a9018dd7cefa12b785e9de9078f..60ef14e8e129f289480e752e6b4ae3360917707f 100644 (file)
@@ -1209,7 +1209,7 @@ _initialize_mn10300_tdep (void)
 {
 /*  printf("_initialize_mn10300_tdep\n"); */
 
-  tm_print_insn = print_insn_mn10300;
+  deprecated_tm_print_insn = print_insn_mn10300;
 
   register_gdbarch_init (bfd_arch_mn10300, mn10300_gdbarch_init);
 }
index 3a31ddbb8d953206ed74b44f16254c1b845ba8c4..44da1bf469fa0d885092fe488e7b698d178b0355 100644 (file)
@@ -624,5 +624,5 @@ _initialize_ns32k_tdep (void)
 {
   gdbarch_register (bfd_arch_ns32k, ns32k_gdbarch_init, NULL);
 
-  tm_print_insn = print_insn_ns32k;
+  deprecated_tm_print_insn = print_insn_ns32k;
 }
index 415fde7b4801d5d8117314359f30d65e54cb186b..6a490c786cfda97f5245e949424739ec35b26997 100644 (file)
@@ -1925,8 +1925,8 @@ _initialize_s390_tdep (void)
 
   /* Hook us into the gdbarch mechanism.  */
   register_gdbarch_init (bfd_arch_s390, s390_gdbarch_init);
-  if (!tm_print_insn)          /* Someone may have already set it */
-    tm_print_insn = gdb_print_insn_s390;
+  if (!deprecated_tm_print_insn)       /* Someone may have already set it */
+    deprecated_tm_print_insn = gdb_print_insn_s390;
 }
 
 #endif /* GDBSERVER */
index 18311f6c161bd8e37800bf1472a4412f3d49abc2..95342a8b5229d8c2de10d41c4cd6f2275f0acd8c 100644 (file)
@@ -2460,7 +2460,7 @@ _initialize_sparc_tdep (void)
   /* Hook us into the gdbarch mechanism.  */
   gdbarch_register (bfd_arch_sparc, sparc_gdbarch_init, sparc_dump_tdep);
 
-  tm_print_insn = gdb_print_insn_sparc;
+  deprecated_tm_print_insn = gdb_print_insn_sparc;
   tm_print_insn_info.mach = TM_PRINT_INSN_MACH;                /* Selects sparc/sparclite */
   /* OBSOLETE target_architecture_hook = sparc_target_architecture_hook; */
 }
index 1b14cf6584f517e3a3c26b0100d2a95e19a90835..beb84dfc822464d4b1c096d930c5617cca10cc3c 100644 (file)
@@ -1296,6 +1296,6 @@ v850_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 void
 _initialize_v850_tdep (void)
 {
-  tm_print_insn = print_insn_v850;
+  deprecated_tm_print_insn = print_insn_v850;
   register_gdbarch_init (bfd_arch_v850, v850_gdbarch_init);
 }
index 859e2b377d5adce8f91cf766b6fc3744c1befe3b..c851b50a4aa91cef3ec2f2b49b22515de2a1523c 100644 (file)
@@ -696,5 +696,5 @@ _initialize_vax_tdep (void)
 {
   gdbarch_register (bfd_arch_vax, vax_gdbarch_init, NULL);
 
-  tm_print_insn = vax_print_insn;
+  deprecated_tm_print_insn = vax_print_insn;
 }
index 2d3b7afe41c30372ee7be0e70c61b68eae07ae52..a8045d8073650d21de3057720e7fc4712d7514f4 100644 (file)
@@ -1130,5 +1130,5 @@ _initialize_xstormy16_tdep (void)
   extern int print_insn_xstormy16 ();
 
   register_gdbarch_init (bfd_arch_xstormy16, xstormy16_gdbarch_init);
-  tm_print_insn = print_insn_xstormy16;
+  deprecated_tm_print_insn = print_insn_xstormy16;
 }
This page took 0.054562 seconds and 4 git commands to generate.