This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 193764 - debugger doesn't stop on breakpoints in dynamic libraries
Summary: debugger doesn't stop on breakpoints in dynamic libraries
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC All
: P2 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-23 11:23 UTC by igor_nikiforov
Modified: 2011-01-16 06:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description igor_nikiforov 2010-12-23 11:23:47 UTC
The following scenario doesn't work:
    1. Create "C/C++/Fortran Dynamic Library" project.
    2. Create some "hello world" library function.
    3. Create "C/C++/Fortran Application" project.
    4. Use the library in this project (Properties->Linker->Libraries)
    5. Set breakpoint in the library code.
    6. Debug the application.
Debugger will start but, won't stop on the breakpoint in the library code.

Doesn't work for both OSS and GNU toolchains. System: Ubuntu 8.04 x86_64.

For OSS toolchain "The spro.home property is not set" message is displayed during the debugger start.

This issue should be fixed to make libraries debugging work.
Comment 1 igor_nikiforov 2010-12-23 12:54:43 UTC
More information about the issue.

The following scenario works:
    1. Set breakpoint in the library project.      
    2. Start the library project debugging by "Debug" or "Step into" command.
    3. Select "Executable to use" from build result of the application project.
The debugger will stop successfully  on  the  breakpoint in the  library.
Comment 2 Egor Ushakov 2011-01-11 16:43:56 UTC
breakpoints should be set on program stop in main, where libraries are loaded
Comment 3 ivan 2011-01-13 20:44:54 UTC
Is this dbx or gdb?
With dbx things should work unless the dynamic library is dlopened.
Comment 4 igor_nikiforov 2011-01-14 10:21:36 UTC
This scenario do works with OSS. So problem is only with GNU debugger.
Comment 5 Egor Ushakov 2011-01-14 14:02:46 UTC
more simple test case:
- create Subproject sample
- set breakpoint in hello4 (dynamic library)
- debug main application
It does not stop anywhere.
Comment 6 Egor Ushakov 2011-01-14 14:41:10 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/19474a96e05c
now we're using gdb pending breakpoints.
Also warn if gdb older than 6.8 is being used.
We'll stop supporting such in 7.0.
Comment 7 Quality Engineering 2011-01-16 06:15:10 UTC
Integrated into 'main-golden', will be available in build *201101160000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/19474a96e05c
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #193764 (debugger doesn't stop on breakpoints in dynamic libraries)