diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-06-13 21:14:25 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-06-13 21:14:25 +0200 |
commit | 3b912944f4257dd935c91b77a51bc2e4baa1018e (patch) | |
tree | 51c4325440d70b5bc363aa320b27aa19e30d31bb /gdb | |
parent | da614360f520b84a9c87506eb0c880f7a056468b (diff) | |
download | gdb-3b912944f4257dd935c91b77a51bc2e4baa1018e.zip gdb-3b912944f4257dd935c91b77a51bc2e4baa1018e.tar.gz gdb-3b912944f4257dd935c91b77a51bc2e4baa1018e.tar.bz2 |
aix: Add fork-inferior.o to NATDEPFILES
Trying to build on AIX gives:
ld: 0711-317 ERROR: Undefined symbol: .trace_start_error_with_name(char const*)
ld: 0711-317 ERROR: Undefined symbol: .fork_inferior(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, char**, void (*)(), void (*)(int), void (*)(), char const*, void (*)(char const*, char* const*, char* const*))
ld: 0711-317 ERROR: Undefined symbol: .startup_inferior(int, int, target_waitstatus*, ptid_t*)
Including fork-inferior.o in the build should help. I also factored out
the AIX bits that are not architecture-specific to be consistent with the other
OSes.
gdb/ChangeLog:
* configure.nat: Factor out AIX bits that are not
architecture-specific. Add fork-inferior.o.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/configure.nat | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b26b46..ce3feaf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-06-13 Simon Marchi <simon.marchi@ericsson.com> + + * configure.nat: Factor out AIX bits that are not + architecture-specific. Add fork-inferior.o. + 2017-06-13 Andreas Arnez <arnez@linux.vnet.ibm.com> * dwarf2loc.c (rw_pieced_value): New. Merge logic from... diff --git a/gdb/configure.nat b/gdb/configure.nat index e6da599..b9b9a40 100644 --- a/gdb/configure.nat +++ b/gdb/configure.nat @@ -78,6 +78,9 @@ case ${gdb_host} in mingw*) NATDEPFILES='x86-nat.o x86-dregs.o windows-nat.o' ;; + aix) + NATDEPFILES='fork-inferior.o fork-child.o inf-ptrace.o' + ;; esac # This is where we actually filter by host and host CPU. @@ -88,7 +91,7 @@ case ${gdb_host} in # Host: IBM PowerPC running AIX aix-thread.o is not # listed in NATDEPFILES as it is pulled in by # configure. - NATDEPFILES='fork-child.o inf-ptrace.o rs6000-nat.o' + NATDEPFILES="${NATDEPFILES} rs6000-nat.o" # When compiled with cc, for debugging, this argument # should be passed. We have no idea who our current |