[binutils-gdb] Don't call set_last_source_file from xcoffread.c

Tom Tromey tromey@sourceware.org
Thu Jan 8 13:42:17 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2469417f58e474f2e87aa89287485fad569ba403

commit 2469417f58e474f2e87aa89287485fad569ba403
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Jan 7 09:41:58 2026 -0700

    Don't call set_last_source_file from xcoffread.c
    
    xcoffread.c is no longer really using the buildsym code.  This removes
    the last call, which should not be needed, and then removes the
    include.
    
    Approved-By: Simon Marchi <simon.marchi@efficios.com>

Diff:
---
 gdb/xcoffread.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 2418c2b6e9e..74ce92bace0 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -31,7 +31,6 @@
 #include "gdbtypes.h"
 #include "symfile.h"
 #include "objfiles.h"
-#include "buildsym-legacy.h"
 #include "complaints.h"
 #include "dwarf2/sect-names.h"
 #include "dwarf2/public.h"
@@ -262,8 +261,6 @@ scan_xcoff_symtab (struct objfile *objfile)
   union internal_auxent main_aux[5];
   unsigned int ssymnum;
 
-  set_last_source_file (NULL);
-
   abfd = objfile->obfd.get ();
 
   sraw_symbol = XCOFF_DATA (objfile)->symtbl;


More information about the Gdb-cvs mailing list