]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: remove bp_location::objfile
authorAndrew Burgess <aburgess@redhat.com>
Tue, 5 Nov 2024 14:03:17 +0000 (14:03 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 25 Nov 2024 16:45:25 +0000 (16:45 +0000)
The bp_location::objfile member variable is never used, so lets delete
it.

There should be no user visible changes after this commit.

gdb/breakpoint.c
gdb/breakpoint.h

index 9983e905e1b4060161e5a2d37f180b60bd30815c..9c0d39b60cdbbbb7189da711ec4c47f698f4e67a 100644 (file)
@@ -8594,7 +8594,6 @@ code_breakpoint::add_location (const symtab_and_line &sal)
   new_loc->symtab = sal.symtab;
   new_loc->symbol = sal.symbol;
   new_loc->msymbol = sal.msymbol;
-  new_loc->objfile = sal.objfile;
 
   breakpoint::add_location (*new_loc);
 
index cef1d727ed256eed919914646e40a2fa06715ec8..1c890f7569359dd5e6e69006e6b2cb384faf783d 100644 (file)
@@ -513,9 +513,6 @@ public:
      originally set on a GNU ifunc symbol.  */
   const minimal_symbol *msymbol = NULL;
 
-  /* The objfile the symbol or minimal symbol were found in.  */
-  const struct objfile *objfile = NULL;
-
   /* Return a string representation of the bp_location.
      This is only meant to be used in debug messages.  */
   std::string to_string () const;