]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: make lookup_minimal_symbol objf and sfile parameters optional
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 17 Jul 2024 03:52:00 +0000 (23:52 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 12 Aug 2024 14:31:09 +0000 (10:31 -0400)
commitc8979ae4fbcc2b84b4192d0596597c3352fa430b
treef5a24bbbe6ab8b3aee270ce5bb586933371fae93
parent03b40f6f55bed82bd16b2a1fd94fb8c8dbf797bf
gdb: make lookup_minimal_symbol objf and sfile parameters optional

Most calls to lookup_minimal_symbol don't pass a value for sfile and
objf.  Make these parameters optional (have a default value of
nullptr).  And since passing a value to `objf` is much more common than
passing a value to `sfile`, swap the order so `objf` comes first, to
avoid having to pass a nullptr value to `sfile` when wanting to pass a
value to `objf`.

Change-Id: I8e9cc6b942e593bec640f9dfd30f62786b0f5a27
Reviewed-by: Keith Seitz <keiths@redhat.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
57 files changed:
gdb/ada-lang.c
gdb/ada-tasks.c
gdb/aix-thread.c
gdb/arc-linux-tdep.c
gdb/arm-tdep.c
gdb/auxv.c
gdb/avr-tdep.c
gdb/ax-gdb.c
gdb/breakpoint.c
gdb/bsd-uthread.c
gdb/c-exp.y
gdb/coffread.c
gdb/compile/compile-c-symbols.c
gdb/compile/compile-object-load.c
gdb/ctfread.c
gdb/d-lang.c
gdb/dbxread.c
gdb/dwarf2/loc.c
gdb/elfread.c
gdb/eval.c
gdb/fbsd-tdep.c
gdb/findvar.c
gdb/frame.c
gdb/frv-tdep.c
gdb/ft32-tdep.c
gdb/gcore.c
gdb/glibc-tdep.c
gdb/gnu-v3-abi.c
gdb/go-lang.c
gdb/hppa-tdep.c
gdb/linux-fork.c
gdb/linux-thread-db.c
gdb/m32c-tdep.c
gdb/m32r-tdep.c
gdb/m68hc11-tdep.c
gdb/machoread.c
gdb/minsyms.c
gdb/minsyms.h
gdb/mips-linux-tdep.c
gdb/netbsd-tdep.c
gdb/objc-lang.c
gdb/obsd-tdep.c
gdb/p-lang.c
gdb/ppc-sysv-tdep.c
gdb/proc-service.c
gdb/ravenscar-thread.c
gdb/remote.c
gdb/sol-thread.c
gdb/sol2-tdep.c
gdb/solib-dsbt.c
gdb/solib-frv.c
gdb/solib-svr4.c
gdb/symfile.c
gdb/tracepoint.c
gdb/tui/tui-disasm.c
gdb/value.c
gdb/z80-tdep.c