2004-10-30 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Sun, 31 Oct 2004 04:33:14 +0000 (04:33 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 31 Oct 2004 04:33:14 +0000 (04:33 +0000)
* mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
(struct mdebug_extra_func_info): Define.
* config/alpha/tm-alpha.h: Delete same.
* config/mips/tm-mips.h: Delete same.
* mdebugread.c: Delete same.
* Makefile.in: Update dependencies.
* mips-mdebug-tdep.c: Include "mdebugread.h".

gdb/ChangeLog
gdb/Makefile.in
gdb/config/alpha/tm-alpha.h
gdb/config/mips/tm-mips.h
gdb/mdebugread.c
gdb/mdebugread.h
gdb/mips-mdebug-tdep.c

index 602ad2fc53fb3cfdbcf0d7bd93d8a13d98ab328e..26f9b2ed5201a923303adb43b36db073e03f639e 100644 (file)
@@ -1,5 +1,13 @@
 2004-10-30  Andrew Cagney  <cagney@gnu.org>
 
+       * mdebugread.h: Include "coff/sym.h" and "coff/symconst.h".
+       (struct mdebug_extra_func_info): Define.
+       * config/alpha/tm-alpha.h: Delete same.
+       * config/mips/tm-mips.h: Delete same.
+       * mdebugread.c: Delete same.
+       * Makefile.in: Update dependencies.
+       * mips-mdebug-tdep.c: Include "mdebugread.h".
+
        * objfiles.c: Include "mdebugread.h".
        * mdebugread.c: Include "mdebugread.h".
        (ecoff_relocate_cfi): Delete.
index 3fbe255109bb4b91b20f00af9c2e91152a672bd8..7abd4698e53fa23c20b0b1a4a3e14cd89a4db667 100644 (file)
@@ -727,7 +727,7 @@ macroexp_h = macroexp.h
 macroscope_h = macroscope.h $(macrotab_h) $(symtab_h)
 macrotab_h = macrotab.h
 main_h = main.h
-mdebugread_h = mdebugread.h
+mdebugread_h = mdebugread.h $(coff_sym_h) $(coff_symconst_h)
 memattr_h = memattr.h
 mips_mdebug_tdep_h = mips-mdebug-tdep.h
 mipsnbsd_tdep_h = mipsnbsd-tdep.h
@@ -2222,9 +2222,9 @@ mcore-tdep.o: mcore-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(value_h) \
 mdebugread.o: mdebugread.c $(defs_h) $(symtab_h) $(gdbtypes_h) $(gdbcore_h) \
        $(objfiles_h) $(gdb_obstack_h) $(buildsym_h) $(stabsread_h) \
        $(complaints_h) $(demangle_h) $(gdb_assert_h) $(block_h) \
-       $(dictionary_h) $(mdebugread_h) $(coff_sym_h) $(coff_symconst_h) \
-       $(gdb_stat_h) $(gdb_string_h) $(bfd_h) $(coff_ecoff_h) $(libaout_h) \
-       $(aout_aout64_h) $(aout_stab_gnu_h) $(expression_h)
+       $(dictionary_h) $(mdebugread_h) $(gdb_stat_h) $(gdb_string_h) \
+       $(bfd_h) $(coff_ecoff_h) $(libaout_h) $(aout_aout64_h) \
+       $(aout_stab_gnu_h) $(expression_h)
 memattr.o: memattr.c $(defs_h) $(command_h) $(gdbcmd_h) $(memattr_h) \
        $(target_h) $(value_h) $(language_h) $(gdb_string_h)
 mem-break.o: mem-break.c $(defs_h) $(symtab_h) $(breakpoint_h) $(inferior_h) \
@@ -2243,7 +2243,7 @@ mips-linux-tdep.o: mips-linux-tdep.c $(defs_h) $(gdbcore_h) $(target_h) \
 mips-mdebug-tdep.o: mips-mdebug-tdep.c $(defs_h) $(frame_h) $(mips_tdep_h) \
        $(trad_frame_h) $(block_h) $(symtab_h) $(objfiles_h) $(elf_mips_h) \
        $(elf_bfd_h) $(gdb_assert_h) $(frame_unwind_h) $(frame_base_h) \
-       $(mips_mdebug_tdep_h)
+       $(mips_mdebug_tdep_h) $(mdebugread_h)
 mipsnbsd-nat.o: mipsnbsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \
        $(mips_tdep_h) $(mipsnbsd_tdep_h)
 mipsnbsd-tdep.o: mipsnbsd-tdep.c $(defs_h) $(gdbcore_h) $(regcache_h) \
index fcf90deab3224ffad0f367dee1cc246c397380ae..468798b4711a58d2d84527d160081127fcbf3349 100644 (file)
 #ifndef TM_ALPHA_H
 #define TM_ALPHA_H
 
-#include "bfd.h"
-#include "coff/sym.h"          /* Needed for PDR below.  */
-#include "coff/symconst.h"
-
-struct frame_info;
-struct symbol;
-
 /* Special symbol found in blocks associated with routines.  We can hang
    alpha_extra_func_info_t's off of this.  */
 
@@ -38,14 +31,4 @@ struct symbol;
 
 #define RA_REGNUM 26           /* XXXJRT needed by mdebugread.c */
 
-/* Specific information about a procedure.
-   This overlays the ALPHA's PDR records, 
-   alpharead.c (ab)uses this to save memory */
-
-struct mdebug_extra_func_info
-{
-  long numargs;                /* number of args to procedure (was iopt) */
-  PDR pdr;                     /* Procedure descriptor record */
-};
-
 #endif /* TM_ALPHA_H */
index 2f2ab9d7d402fd85a81130adc5b27ed11b696cb1..344c98e94a8e8af7bb352f68aca53a269e5af2c2 100644 (file)
@@ -33,10 +33,6 @@ struct symbol;
 struct type;
 struct value;
 
-#include <bfd.h>
-#include "coff/sym.h"          /* Needed for PDR below.  */
-#include "coff/symconst.h"
-
 /* Return non-zero if PC points to an instruction which will cause a step
    to execute both the instruction at PC and an instruction at PC+4.  */
 extern int mips_step_skips_delay (CORE_ADDR);
@@ -50,16 +46,6 @@ extern int mips_step_skips_delay (CORE_ADDR);
 
 #define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
 
-/* Specific information about a procedure.
-   This overlays the MIPS's PDR records, 
-   mipsread.c (ab)uses this to save memory */
-
-struct mdebug_extra_func_info
-{
-  long numargs;                /* number of args to procedure (was iopt) */
-  PDR pdr;                     /* Procedure descriptor record */
-};
-
 /* Functions for dealing with MIPS16 call and return stubs.  */
 #define DEPRECATED_IGNORE_HELPER_CALL(pc)                      mips_ignore_helper (pc)
 extern int mips_ignore_helper (CORE_ADDR pc);
index 009430c020ad2c6703d31cb916a6254403e30c4a..26b9de6c71ad0428c0bcf77477cf33d24791f064 100644 (file)
 
 #ifndef MDEBUG_EFI_SYMBOL_NAME
 #define MDEBUG_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
-#include "coff/sym.h"
-#include "coff/symconst.h"
-struct mdebug_extra_func_info
-{
-  long numargs;
-  PDR pdr;
-};
 #ifndef RA_REGNUM
 #define RA_REGNUM 0
 #endif
index e1a5d1a23cd2238fee527ade99709666af1d7067..25b7beef13ee90729745b1831a196ccf8953a7fe 100644 (file)
 #ifndef MDEBUGREAD_H
 #define MDEBUGREAD_H
 
+#include "coff/sym.h"          /* Needed for PDR below.  */
+#include "coff/symconst.h"
+
 extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
 
+/* Specific information about a procedure.  Architectures (ab)uses
+   this to save memory.  */
+
+struct mdebug_extra_func_info
+{
+  long numargs;                /* number of args to procedure (was iopt) */
+  PDR pdr;                     /* Procedure descriptor record */
+};
+
 #endif /* MDEBUGREAD_H */
index b13cba4e79fcc48e4d5802ce49cd6e7c59fc7bc9..538e37476a23490da9b90b812c7b46f7093e3bb9 100644 (file)
@@ -35,6 +35,7 @@
 #include "frame-unwind.h"
 #include "frame-base.h"
 #include "mips-mdebug-tdep.h"
+#include "mdebugread.h"
 
 #define PROC_LOW_ADDR(proc) ((proc)->pdr.adr)  /* least address */
 #define PROC_FRAME_OFFSET(proc) ((proc)->pdr.frameoffset)
This page took 0.035167 seconds and 4 git commands to generate.