This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] bug fix for gdb 16039
- From: Tom Tromey <tromey at redhat dot com>
- To: "Dave.Tian" <xhengdf at gmail dot com>
- Cc: gdb-patches at sourceware dot org, Sergio Durigan Junior <sergiodj at redhat dot com>
- Date: Thu, 17 Oct 2013 14:25:10 -0600
- Subject: Re: [PATCH] bug fix for gdb 16039
- Authentication-results: sourceware.org; auth=none
- References: <CAKjgB1NmhyvBFfBF2HgQc-9KP0OMPMb9fNXJAe3QxejdD3-X1g at mail dot gmail dot com> <m3bo2pj3ha dot fsf at redhat dot com> <CAKjgB1OyrUtz9xqcqDSxEe72kDGEWBKy9LxZEkXDDd7RbX7y=A at mail dot gmail dot com>
>>>>> ">" == Dave Tian <xhengdf@gmail.com> writes:
>> 1 Description: Gdb bug 16039 created by me
>> Title: Gdb next" command stop working when shared library unloaded.
>> Root Cause: There is "libc++" static linked into the shared library,
>> and since gdb insert internal breakpoints on std::terminate/longjump/...
>> so after dlclose, the memory address is
>> invalid,remove_breakpoints/insert_breakpoints
>> failed with EIO error.
The patch seems reasonable to me, but I think it would be good to have a
regression test for it.
Tom