Bug 6023

Summary: shared object breakpoints are not being hit
Product: frysk Reporter: Stan Cox <scox>
Component: generalAssignee: Tim Moore <timoore>
Status: SUSPENDED ---    
Severity: normal CC: avijitg.das, swagiaal
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: testcase makefile

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.