This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 9022
  Setting pending breakpoints is not scriptable, at least not intuitively Last modified: 2009-01-06 17:19:57
     Query page      Enter new bug
Bug#: 9022   Hardware:   Reporter: Robin Green <greenrd@greenrd.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: FIXED   Severity:  
Assigned To: Not yet assigned to anyone <unassigned@sourceware.org>   Target Milestone:  
Summary:
Keywords:

Attachment Description Type Created Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 9022 depends on: Show dependency tree
Show dependency graph
Bug 9022 blocks:

Additional Comments:


Leave as RESOLVED FIXED
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2005-04-14 16:58
[Converted from Gnats 1917]

I wanted to script the setting of a pending breakpoint for another gdb bug report, but I could not work out how to do so. When gdb is used interactively, attempting to set a breakpoint on a symbol that does not yet exist will trigger the question:

Make breakpoint pending on future shared library load? (y or [n])

However, in scripting mode, this question does not occur, and there is no documented option to the b command in "help b" to do a pending breakpoint from a script.

Release:
6.3.50.20050413

Environment:
Fedora Core 4 test 1

How-To-Repeat:
echo b bogussymbol >tempfile
/usr/src/build/gdb/gdb -x tempfile ls

------- Additional Comment #1 From drow@false.org 2005-04-14 17:05 -------
From: Daniel Jacobowitz <drow@false.org>
To: greenrd@greenrd.org
Cc: gdb-gnats@sources.redhat.com
Subject: Re: breakpoints/1917: Setting pending breakpoints is not scriptable, at least not intuitively
Date: Thu, 14 Apr 2005 13:05:20 -0400

 On Thu, Apr 14, 2005 at 04:54:10PM -0000, greenrd@greenrd.org wrote:
 > I wanted to script the setting of a pending breakpoint for another
 > gdb bug report, but I could not work out how to do so. When gdb is
 > used interactively, attempting to set a breakpoint on a symbol that
 > does not yet exist will trigger the question:
 > 
 > Make breakpoint pending on future shared library load? (y or [n])
 > 
 > However, in scripting mode, this question does not occur, and there
 > is no documented option to the b command in "help b" to do a pending
 > breakpoint from a script.
 
 Take a look at the documentation of the "set breakpoint pending"
 command.
 
 -- 
 Daniel Jacobowitz
 CodeSourcery, LLC

------- Additional Comment #2 From Tom Tromey 2009-01-06 17:19 -------
I think "set breakpoint pending" covers this.
If you disagree, say why and we can reopen the bug.

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In