Bug 6023 - shared object breakpoints are not being hit
Summary: shared object breakpoints are not being hit
Status: SUSPENDED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Tim Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-02 14:48 UTC by Stan Cox
Modified: 2011-10-19 15:40 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
testcase makefile (151 bytes, text/plain)
2008-04-02 14:51 UTC, Stan Cox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stan Cox 2008-04-02 14:48:37 UTC
Given the attached makefile and
frysk/src/frysk-core/frysk/pkglibdir/funit-{quicksort,bubblesort}.c
If a breakpoint is set at bubblesort with static linking it works fine,
but if a breakpoint is set at at bubblesort when funit-bubblesort is a
shared object, it doesn't hit the breakpoint.

LD_LIBRARY_PATH=`pwd` frysk-core/frysk/bindir/fhpd ./funit-quicksort.x
[0.0] Loaded executable file: /work/scox/accu/funit-quicksort.x
(fhpd) break main
breakpoint 0 deferred
(fhpd) break bubblesort
breakpoint 1
(fhpd) run
Attached to process 30943
running with this command: ./funit-quicksort.x
Running process 30943
(fhpd) Breakpoint 0 main 0x400822
go
Running process 30943
(fhpd) Task 30943 is exiting with status 0
(fhpd) q
Quitting...

frysk-core/frysk/bindir/fhpd ./funit-quicksort-static.x
[0.0] Loaded executable file: /work/scox/accu/funit-quicksort-static.x
(fhpd) break main
breakpoint 0 deferred
(fhpd) break bubblesort
breakpoint 1 deferred
(fhpd) run
Attached to process 30949
running with this command: ./funit-quicksort-static.x
Running process 30949
(fhpd) Breakpoint 0 main 0x4006e2
go
Running process 30949
(fhpd) Breakpoint 1 bubblesort 0x4007ae
go
Running process 30949
(fhpd) Task 30949 is exiting with status 0
Comment 1 Stan Cox 2008-04-02 14:51:19 UTC
Created attachment 2346 [details]
testcase makefile

creates a shared library and a non-shared library version of the testcase
Comment 2 Stan Cox 2008-04-09 14:21:02 UTC
frysk.hpd.TestSysRoot uses a shared object setup by the makefile, so a test
could be added there to test a breakpoint in a shared object.