Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Pending breakpoints and scripts
@ 2004-02-09 20:02 Andrew Cagney
  2004-02-09 22:32 ` Daniel Jacobowitz
  0 siblings, 1 reply; 24+ messages in thread
From: Andrew Cagney @ 2004-02-09 20:02 UTC (permalink / raw)
  To: gdb

Anyone noticed this?

(top-gdb) run testsuite/gdb.base/advance
Starting program: ...
Setting up the environment for debugging gdb.
Function "internal_error" not defined.
Breakpoint 1 (internal_error) pending.
Function "info_command" not defined.
Breakpoint 2 (info_command) pending.
(top-gdb)

It's caused by this:

           if (!query ("Make breakpoint pending on future shared library 
load? ")
)
             return rc;

The old behavior was: when in batch mode, throw an error (and hence 
abandon the script) if the breakpoint insert fails.

The new behavior is: when in batch mode, always insert the breakpoint. 
when not in batch mode never throw an error.

For the existing behavior to be restored the query's logic would need to 
be reversed (ask the oposite question) and then re-throw the error.  A 
/pending qualifier could then be added.

Thoughts?
Andrew


^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: how to include subdirectories too, for the source directory
@ 2004-02-12 12:07 Michael Elizabeth Chastain
  0 siblings, 0 replies; 24+ messages in thread
From: Michael Elizabeth Chastain @ 2004-02-12 12:07 UTC (permalink / raw)
  To: gdb, mukeshgct

How about:

  gdb $(find /home -type d -print | sed -e 's/.*/--directory=&')

Michael C


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

end of thread, other threads:[~2004-02-23 15:56 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-09 20:02 Pending breakpoints and scripts Andrew Cagney
2004-02-09 22:32 ` Daniel Jacobowitz
2004-02-10 21:22   ` Andrew Cagney
2004-02-10 22:26     ` Daniel Jacobowitz
2004-02-11  3:48       ` System calls debugging MuthuKumar-Hotpop
2004-02-12  9:58         ` how to include subdirectories too, for the source directory murugesan
2004-02-12 13:07           ` Bob Rossi
2004-02-13  4:23             ` murugesan
2004-02-11 14:31       ` Pending breakpoints and scripts Andrew Cagney
2004-02-11 14:47         ` Daniel Jacobowitz
2004-02-17 19:24           ` Andrew Cagney
2004-02-17 19:31             ` Daniel Jacobowitz
2004-02-17 19:39               ` Andrew Cagney
2004-02-17 19:41                 ` Daniel Jacobowitz
2004-02-17 20:07                   ` Jeff Johnston
2004-02-17 20:14                     ` Andrew Cagney
2004-02-17 20:15                       ` Daniel Jacobowitz
2004-02-17 20:13                   ` Andrew Cagney
2004-02-17 20:15                     ` Daniel Jacobowitz
2004-02-17 20:30                       ` Andrew Cagney
2004-02-17 20:35                         ` Daniel Jacobowitz
2004-02-19 22:42           ` [RFA]: Patch for pending " Jeff Johnston
2004-02-23 15:56             ` Andrew Cagney
2004-02-12 12:07 how to include subdirectories too, for the source directory Michael Elizabeth Chastain

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