]> 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, 28 Jan 2025 19:23:50 +0000 (16:23 -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, but
considering how outdated the format is, I think this is fine.

gdb/dbxread.c

index 4cd721057bc7ad3069ed47ef950791300be7cd77..8135f21bfec20bdd21351dfd9dfa60bf2cdc4f21 100644 (file)
@@ -42,7 +42,6 @@
 #include "filenames.h"
 #include "objfiles.h"
 #include "buildsym-legacy.h"
-#include "stabsread.h"
 #include "gdb-stabs.h"
 #include "demangle.h"
 #include "complaints.h"
@@ -53,9 +52,6 @@
 #include "block.h"
 #include "aout/aout64.h"
 #include "aout/stab_gnu.h"
-\f
-/* Required for the following registry.  */
-#include "gdb-stabs.h"
 
 \f
 \f
@@ -98,7 +94,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
@@ -108,8 +103,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 ();
 }
 
 
@@ -244,7 +237,6 @@ dbx_symfile_init (struct objfile *objfile)
 static void
 dbx_symfile_finish (struct objfile *objfile)
 {
-  free_header_files ();
 }
 
 \f