OSDN Git Service

gdb/
authorjkratoch <jkratoch>
Thu, 24 Dec 2009 07:24:48 +0000 (07:24 +0000)
committerjkratoch <jkratoch>
Thu, 24 Dec 2009 07:24:48 +0000 (07:24 +0000)
commit9c7df5b9a360eb13c36b5d7abb3a6db667adf7b4
tree9808ad0fb04e5387e23750302655863d51d23b9a
parenteb1139714ee124b22e943d2fbb6697e32c8edbf5
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]