From: Guinevere Larsen Date: Mon, 27 Jan 2025 14:33:11 +0000 (-0300) Subject: gdb: Remove stabs support from dbx X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58a2b23c5353b467325825fa9447a3636522feb1;p=thirdparty%2Fbinutils-gdb.git gdb: Remove stabs support from dbx 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. --- diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 4cd721057bc..8135f21bfec 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -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" - -/* Required for the following registry. */ -#include "gdb-stabs.h" @@ -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 (); }