This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC v2 2/9] move some rsp bits into rsp-low.h
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, gdb-patches at sourceware dot org
- Date: Thu, 13 Feb 2014 10:37:10 +0000
- Subject: Re: [RFC v2 2/9] move some rsp bits into rsp-low.h
- Authentication-results: sourceware.org; auth=none
- References: <1391714966-12125-1-git-send-email-tromey at redhat dot com> <1391714966-12125-3-git-send-email-tromey at redhat dot com> <52FC89A6 dot 8010806 at codesourcery dot com>
On 02/13/2014 09:00 AM, Yao Qi wrote:
> We also need to compile rsp-low.c for IPA, and link rsp-low-ipa.o
> in IPA. I get the ipa build error below,
>
> gcc -shared -fPIC -Wl,--no-undefined -g -O2 -I. -I../../../../git/gdb/gdbserver -I../../../../git/gdb/gdbserver/../common -I../../../../git/gdb/gdbserver/../regformats -I../../../../git/gdb/gdbserver/.. -I../../../../git/gdb/gdbserver/../../include -I../../../../git/gdb/gdbserver/../gnulib/import -Ibuild-gnulib-gdbserver/import -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body -Werror -DGDBSERVER \
> -Wl,--dynamic-list=../../../../git/gdb/gdbserver/proc-service.list -o libinproctrace.so ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o regcache-ipa.o remote-utils-ipa.o common-utils-ipa.o tdesc-ipa.o print-utils-ipa.o i386-linux-ipa.o linux-i386-ipa.o -ldl -pthread
> tracepoint-ipa.o: In function `cstr_to_hexstr':
> /home/yao/Source/gnu/gdb/build-git/x86/gdb/gdbserver/../../../../git/gdb/gdbserver/tracepoint.c:6933: undefined reference to `bin2hex'
> tracepoint-ipa.o: In function `cmd_qtstmat':
> /home/yao/Source/gnu/gdb/build-git/x86/gdb/gdbserver/../../../../git/gdb/gdbserver/tracepoint.c:7080: undefined reference to `unpack_varlen_hex'
> tracepoint-ipa.o: In function `probe_marker_at':
> /home/yao/Source/gnu/gdb/build-git/x86/gdb/gdbserver/../../../../git/gdb/gdbserver/tracepoint.c:7034: undefined reference to `unpack_varlen_hex'
> tracepoint-ipa.o: In function `unprobe_marker_at':
> /home/yao/Source/gnu/gdb/build-git/x86/gdb/gdbserver/../../../../git/gdb/gdbserver/tracepoint.c:7003: undefined reference to `unpack_varlen_hex'
>
As these functions are only included if HAVE_UST, it's not
surprising Tom didn't see this.
> The fix is to compile rsp-low and link it with ipa, as below.
> The compile error is fixed.
OK, thanks!
--
Pedro Alves