From: Andrew Burgess Date: Tue, 5 Nov 2024 14:03:17 +0000 (+0000) Subject: gdb: remove bp_location::objfile X-Git-Tag: gdb-16-branchpoint~328 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2778a124e30439c1801d3d19a47d8233935051af;p=thirdparty%2Fbinutils-gdb.git gdb: remove bp_location::objfile The bp_location::objfile member variable is never used, so lets delete it. There should be no user visible changes after this commit. --- diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 9983e905e1b..9c0d39b60cd 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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); diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h index cef1d727ed2..1c890f75693 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h @@ -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;