Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Pending breakpoints
@ 2006-10-21  3:28 Russell Shaw
  2006-10-21  5:14 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Russell Shaw @ 2006-10-21  3:28 UTC (permalink / raw)
  To: gdb

Hi,
I'm debugging a project with dlopen-ed modules.

In gdb, setting a breakpoint for an as-yet unloaded symbol
makes gdb say:

   (gdb) b func_realize
   Function "func_realize" not defined.
   Make breakpoint pending on future shared library load? (y or [n]) y
   Breakpoint 1 (func_realize) pending.


However, the dialog doesn't happen in DDD, making it useless.

I'm using it on debian:

   GNU DDD 3.3.11 (i486-pc-linux-gnu)
   GNU gdb 6.4.90-debian


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pending breakpoints
  2006-10-21  3:28 Pending breakpoints Russell Shaw
@ 2006-10-21  5:14 ` Daniel Jacobowitz
  2006-10-21  5:20   ` Russell Shaw
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-10-21  5:14 UTC (permalink / raw)
  To: Russell Shaw; +Cc: gdb

On Sat, Oct 21, 2006 at 01:28:23PM +1000, Russell Shaw wrote:
> Hi,
> I'm debugging a project with dlopen-ed modules.
> 
> In gdb, setting a breakpoint for an as-yet unloaded symbol
> makes gdb say:
> 
>   (gdb) b func_realize
>   Function "func_realize" not defined.
>   Make breakpoint pending on future shared library load? (y or [n]) y
>   Breakpoint 1 (func_realize) pending.
> 
> 
> However, the dialog doesn't happen in DDD, making it useless.

That's a problem with ddd, then; ask them.  Meanwhile, set break
pending on may help, but who knows how badly that will confuse ddd.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pending breakpoints
  2006-10-21  5:14 ` Daniel Jacobowitz
@ 2006-10-21  5:20   ` Russell Shaw
  0 siblings, 0 replies; 5+ messages in thread
From: Russell Shaw @ 2006-10-21  5:20 UTC (permalink / raw)
  Cc: gdb

Daniel Jacobowitz wrote:
> On Sat, Oct 21, 2006 at 01:28:23PM +1000, Russell Shaw wrote:
> 
>>Hi,
>>I'm debugging a project with dlopen-ed modules.
>>
>>In gdb, setting a breakpoint for an as-yet unloaded symbol
>>makes gdb say:
>>
>>  (gdb) b func_realize
>>  Function "func_realize" not defined.
>>  Make breakpoint pending on future shared library load? (y or [n]) y
>>  Breakpoint 1 (func_realize) pending.
>>
>>However, the dialog doesn't happen in DDD, making it useless.
> 
> That's a problem with ddd, then; ask them.  Meanwhile, set break
> pending on may help, but who knows how badly that will confuse ddd.

Hi,
That worked ok. Now there's a bug in gdb (when run stand-alone).

The dlopened module is loaded, the breakpoint symbol is resolved,
but the program continues running instead of stopping at the
breakpoint. I'll look into gdb source myself.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Pending breakpoints
  2006-10-26 18:18 Russell Shaw
@ 2006-10-26 21:29 ` Jim Blandy
  0 siblings, 0 replies; 5+ messages in thread
From: Jim Blandy @ 2006-10-26 21:29 UTC (permalink / raw)
  To: Russell Shaw; +Cc: gdb


Russell Shaw <rjshaw@netspace.net.au> writes:
> In breakpoint.c:break_command_1():line-5214, "pending = 1" is set
> when do_captured_parse_breakpoint() does not find a breakpoint.
>
> Does this only ever happen with unloaded shared libraries, or can
> other things like overlays cause it too?

Breakpoints in overlays are never made pending.  So I think that's
just for shared libraries.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Pending breakpoints
@ 2006-10-26 18:18 Russell Shaw
  2006-10-26 21:29 ` Jim Blandy
  0 siblings, 1 reply; 5+ messages in thread
From: Russell Shaw @ 2006-10-26 18:18 UTC (permalink / raw)
  To: gdb

Hi,
In breakpoint.c:break_command_1():line-5214, "pending = 1" is set
when do_captured_parse_breakpoint() does not find a breakpoint.

Does this only ever happen with unloaded shared libraries, or can
other things like overlays cause it too?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-26 21:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-21  3:28 Pending breakpoints Russell Shaw
2006-10-21  5:14 ` Daniel Jacobowitz
2006-10-21  5:20   ` Russell Shaw
2006-10-26 18:18 Russell Shaw
2006-10-26 21:29 ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox