This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/14844] Tracepoints are not reinserted in reloadedlibraries.


http://sourceware.org/bugzilla/show_bug.cgi?id=14844

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qiyao at gcc dot gnu.org

--- Comment #1 from Yao Qi <qiyao at gcc dot gnu.org> 2012-11-15 14:21:03 UTC ---
First of all, the test case is great!  Thanks.

Running 'run-test.sh' can expose the problem on GDB trunk, but a little bit
differently,

---------------------------------------
$ ./run-test.sh 
make: Nothing to be done for `all'.
Process ./bar created; pid = 26114
Listening on port 7777
Python Exception <type 'exceptions.ImportError'> No module named gdb: 

warning: Could not load the Python gdb module from
`/usr/local/share/gdb/python'.

warning: Limited Python support is available from the _gdb module.
Remote debugging from host 127.0.0.1
0x4ce4c2b0 in _start () from /lib/ld-linux.so.2
Breakpoint 1 at 0x80485cc: file bar.c, line 15.

Breakpoint 1, load_lib () at bar.c:15
15          printf("Loading libfoo.so\n");
Loading libfoo.so
main () at bar.c:42
42              
Tracepoint 2 at 0xb7ffb416: file foo.c, line 5.
Breakpoint 3 at 0x80486ba: file bar.c, line 45.
        1
        2
Unloading libfoo.so
warning: Temporarily disabling breakpoints for unloaded shared library
"./libfoo.so"
Loading libfoo.so
Error in re-setting breakpoint 2: Target returns error code '01'.
Error in re-setting breakpoint 3: Target returns error code '01'.
gdb-script:9: Error in sourced command file:
Target returns error code '01'.
Killing all inferiors
----------------------------------------------------------

It is related to breakpoint re-setting, afaics.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]