aboutsummaryrefslogtreecommitdiff
path: root/gdb/features/mips64-linux.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-10-04 19:24:32 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-10-10 17:36:21 +0100
commitcb5997da94752f35bbbc38fe5b1eedc307b0731c (patch)
treee012f73fa4cf578208e924f2d42450d4be11d955 /gdb/features/mips64-linux.c
parent9c13221eaf486d6c140f6202f836d80e2a8a69fe (diff)
downloadbinutils-cb5997da94752f35bbbc38fe5b1eedc307b0731c.zip
binutils-cb5997da94752f35bbbc38fe5b1eedc307b0731c.tar.gz
binutils-cb5997da94752f35bbbc38fe5b1eedc307b0731c.tar.bz2
gdb: make use of set_tdesc_osabi overload in features/ files
There are two versions of the set_tdesc_osabi function in GDB: void set_tdesc_osabi (struct target_desc *target_desc, const char *name) { set_tdesc_osabi (target_desc, osabi_from_tdesc_string (name)); } void set_tdesc_osabi (struct target_desc *target_desc, enum gdb_osabi osabi) { target_desc->osabi = osabi; } In the gdb/features/ files we call the second of these functions, like this: set_tdesc_osabi (result.get (), osabi_from_tdesc_string ("GNU/Linux")); This can be replaced with a call to the first set_tdesc_osabi function, so lets do that. I think that this makes the features/ code slightly simpler and easier to understand. There should be no user visible changes after this commit. Approved-By: Tom Tromey <tom@tromey.com> Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/features/mips64-linux.c')
0 files changed, 0 insertions, 0 deletions