aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64-tdep.h
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2020-06-25 13:54:42 +0200
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2020-06-25 13:54:42 +0200
commita7e6196bb886ff17d0c87650b6f458d5366122ac (patch)
treed262e9083140449a0b3fce60af59fe1c0da5a8dc /gdb/sparc64-tdep.h
parentd412e69677c6ca145ea8f5ff8c61a22952cb0855 (diff)
downloadgdb-a7e6196bb886ff17d0c87650b6f458d5366122ac.zip
gdb-a7e6196bb886ff17d0c87650b6f458d5366122ac.tar.gz
gdb-a7e6196bb886ff17d0c87650b6f458d5366122ac.tar.bz2
Don't include *sol2-tdep.o on Linux/sparc*
Linux/sparc* currently links Solaris-specific files (sparc-sol2-tdep.o, sparc64-sol2-tdep.o, sol2-tdep.o) for no apparent reason. It has no business doing so, and none of the functions/variables defined there are used explicitly. If support for the Solaris OSABI were desired, this should be done using --enable-targets instead. Since neither sparc{32,64}_sol2_init_abi currently declared in common headers (sparc*-tdep.h) are used outside their source files, they are made static and the declarations removed. Tested on sparcv9-sun-solaris2.11 and sparc64-unknown-linux-gnu. * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o, sol2-tdep.o, sparc-sol2-tdep.o. * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. * sparc-tdep.h (sparc32_sol2_init_abi): Remove. * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
Diffstat (limited to 'gdb/sparc64-tdep.h')
-rw-r--r--gdb/sparc64-tdep.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/sparc64-tdep.h b/gdb/sparc64-tdep.h
index 614160e..d3ba9e2 100644
--- a/gdb/sparc64-tdep.h
+++ b/gdb/sparc64-tdep.h
@@ -119,9 +119,6 @@ extern void sparc64_collect_fpregset (const struct sparc_fpregmap *fpregmap,
extern const struct sparc_gregmap sparc64_sol2_gregmap;
extern const struct sparc_fpregmap sparc64_sol2_fpregmap;
-extern void sparc64_sol2_init_abi (struct gdbarch_info info,
- struct gdbarch *gdbarch);
-
/* Variables exported from sparc64-fbsd-tdep.c. */
/* Register offsets for FreeBSD/sparc64. */