This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC v2] fix regressions with target-async
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org, Joel Brobecker <brobecker at adacore dot com>
- Date: Wed, 05 Mar 2014 00:14:43 +0000
- Subject: Re: [RFC v2] fix regressions with target-async
- Authentication-results: sourceware.org; auth=none
- References: <1393609699-26407-1-git-send-email-tromey at redhat dot com> <5310D2F9 dot 2090507 at redhat dot com> <87mwh7cks4 dot fsf at fleche dot redhat dot com> <5314AFEA dot 8020705 at redhat dot com> <87y50q9h3e dot fsf at fleche dot redhat dot com> <531644AE dot 1070404 at redhat dot com>
On 03/04/2014 09:25 PM, Pedro Alves wrote:
> On 03/04/2014 02:24 PM, Tom Tromey wrote:
>
>> I couldn't try 4d1eb6b4d299f3e46aab18e08fe4ef3063a39565 because I didn't
>> build with the expat support
>
> Well, that sounds like the problem right there. expat support is _mandatory_
> for shared library support on AIX. The TARGET_OBJECT_LIBRARIES_AIX target
> object is xml.
>
Confirmed, building with expat makes threaded debugging work:
$ ./gdb ~/CT
GNU gdb (GDB) 7.7.50.20140304-cvs
(...)
Reading symbols from /home/tromey/CT...done.
(gdb) start
Temporary breakpoint 1 at 0x10000634: file /home/tromey/ct.c, line 37.
Starting program: /home/tromey/CT
[New Thread 1]
[Switching to Thread 1]
Temporary breakpoint 1, main () at /home/tromey/ct.c:37
37 thread0 = pthread_self ();
(gdb) info threads
Id Target Id Frame
* 2 Thread 1 (tid 18285219, running) main () at /home/tromey/ct.c:37
1 process 44237024 main () at /home/tromey/ct.c:37
(gdb)
(You can find an expat build at ~palves:/home/palves/opt/)
--
Pedro Alves