This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] aix: Add fork-inferior.o to NATDEPFILES
- From: Nitish Kumar Mishra <mishra dot nitish dot 88 at gmail dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: gdb-patches at sourceware dot org, sangamesh dot swamy at in dot ibm dot com
- Date: Tue, 13 Jun 2017 17:38:06 +0530
- Subject: Re: [PATCH 1/2] aix: Add fork-inferior.o to NATDEPFILES
- Authentication-results: sourceware.org; auth=none
- References: <1497119266-19643-1-git-send-email-simon.marchi@ericsson.com>
Hi Simon !
I and Sangamesh (in cc) have tested this patch in AIX environment and
it is working fine without any issue.
Thanks,
Nitish
On Sat, Jun 10, 2017 at 11:57 PM, Simon Marchi
<simon.marchi@ericsson.com> wrote:
> 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.
> ---
> gdb/configure.nat | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> 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
> --
> 2.7.4
>