Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-dd-dev] breakpoint in a shared library

On Wednesday 03 December 2008 02:04:07 Ling.5.Wang@xxxxxxxxx wrote:
> Hi,
>
> I find that with DSF/GDB a breakpoint set in a shared library (which is
> loaded on program start) is not resolved/installed after the debugger
> starts. CDI/GDB does not have such problem.
>
> I see this bug
>   https://bugs.eclipse.org/bugs/show_bug.cgi?id=248595
> but it seems a special bug for GDB 6.8.  With any version of GDB, I
> think DSF debugger should try to install unresolved breakpoints whenever
> a shared libary is loaded, as is done in CDI/GDB.

I would suggest to 
- Use GDB 6.8
- Change DSF to use -f option to -break-insert

Trying to reinstalling a breakpoint is a hack, which will lead to bugs. See:

    http://vladimir_prus.blogspot.com/2007/12/debugger-stories-pending-breakpoints.html

- Volodya



Back to the top