Fixed test case to compile & run on FreeBSD
authorRajendra SY <rajendra.sy@gmail.com>
Sun, 22 Apr 2018 22:19:26 +0000 (18:19 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 22 Apr 2018 22:20:05 +0000 (18:20 -0400)
commitdb86b02b3ac8426f3fc0754f48f3645235cc2ae6
tree2317e038c8d994a48c37c595cd3b98534216c952
parentb2c5b54ee3b2906d72d390f90722d517e2f96e85
Fixed test case to compile & run on FreeBSD

Problems:
1. linking -dl lib on FreeBSD platform
2. backtrace from ld-elf shows r_debug_state() instead of _dl_debug_state()

Cause:
1. There is no dl library on FreeBSD platform test has to ignore linking "-ldl"
2. The stop due to a shared library event shows backtrace frame #0
   function as r_debug_state()

gdb/ChangeLog:

PR gdb/23095
* gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
prepare_for_testing.  Set normal_bp to r_debug_state if target
is bsd.
gdb/ChangeLog
gdb/testsuite/gdb.base/break-probes.exp
This page took 0.032504 seconds and 4 git commands to generate.