gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 23 Dec 2009 22:24:51 +0000 (22:24 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 23 Dec 2009 22:24:51 +0000 (22:24 +0000)
commit859825b8578d03e0fd93ec5946297c6c8bc2e637
treede48e7a914ac2b25d9e031de6bba6eee255c4b57
parentf747b78daab5cdb984599facaff322ee9cdfa49b
gdb/
* breakpoint.c (bpstat_stop_status): Check BL->SHLIB_DISABLED.
(print_breakpoint_location): New comment.  Check LOC->SHLIB_DISABLED.
Check LOC validity before printing it.  Use LOC instead of B->LOC.
Swap the if conditionals order.

gdb/testsuite/
* gdb.base/unload.c (main): Change the UNLOADSHR parameter to 1.
Replace the printf call of Y by provided "y-set-1" label.  New block
for the second shared library.
* gdb.base/unload.exp: Compile also the second library, call
gdb_load_shlibs also for it.  Use now gdb_breakpoint.
(single pending breakpoint info): Rename to ...
(pending breakpoint info before run): ... this extended test.
(libfile2, libname2, libsrcfile2, libsrc2)
(lib_sl2): New variables.
(exec_opts): Set also SHLIB_NAME2.
(pending breakpoint info on first run at shrfunc1)
(pending breakpoint info on second run at shrfunc1)
(pending breakpoint info on second run at shrfunc2)
(print y from libfile, print y from libfile2): New tests.
* gdb.base/unloadshr.c (shrfunc1): Change the returned value.
* gdb.base/unloadshr2.c: New.
gdb/ChangeLog
gdb/breakpoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/unload.c
gdb/testsuite/gdb.base/unload.exp
gdb/testsuite/gdb.base/unloadshr.c
gdb/testsuite/gdb.base/unloadshr2.c [new file with mode: 0644]