]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: Remove stabs support from dbx
authorGuinevere Larsen <guinevere@redhat.com>
Mon, 27 Jan 2025 14:33:11 +0000 (11:33 -0300)
committerGuinevere Larsen <guinevere@redhat.com>
Tue, 21 Oct 2025 19:40:06 +0000 (16:40 -0300)
This commit makes it so reading dbx inferiors will not read stabs
debuginfo from the inferiors.

This has the side effect of making reading DBX inferiors a noop.  It
will be removed in a future commit, however, the present series of
commit is focused on just removing stabs.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/dbxread.c

index 86d2cef925e8f3419e5ff91d77f5b3fb20e2ee8e..da2156e33801618f9c47b9269bddb892e4693b5a 100644 (file)
 #include "target.h"
 #include "libaout.h"
 #include "objfiles.h"
-#include "stabsread.h"
+#include "buildsym-legacy.h"
 #include "gdb-stabs.h"
 #include "cp-support.h"
-
-/* Required for the following registry.  */
-#include "gdb-stabs.h"
+#include "c-lang.h"
+#include "psymtab.h"
+#include "block.h"
+#include "aout/aout64.h"
+#include "aout/stab_gnu.h"
 
 /* Local function prototypes.  */
 
@@ -80,7 +82,6 @@ explicit_lookup_type (int real_filenum, int index)
 static void
 dbx_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags)
 {
-  read_stabs_symtab (objfile, symfile_flags);
 }
 
 /* Initialize anything that needs initializing when a completely new
@@ -90,9 +91,6 @@ dbx_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags)
 static void
 dbx_new_init (struct objfile *ignore)
 {
-  stabsread_new_init ();
-  init_header_files ();
-  warning (_("The a.out file format is deprecated and will be removed soon."));
 }
 
 
@@ -227,7 +225,6 @@ dbx_symfile_init (struct objfile *objfile)
 static void
 dbx_symfile_finish (struct objfile *objfile)
 {
-  free_header_files ();
 }
 
 \f