public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/12816] New: No 'pending' support for breakpoints created from Python
@ 2011-05-27  8:57 kevin.pouget at gmail dot com
  2011-12-08 13:56 ` [Bug python/12816] " kevin.pouget at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: kevin.pouget at gmail dot com @ 2011-05-27  8:57 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12816

           Summary: No 'pending' support for breakpoints created from
                    Python
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: kevin.pouget@gmail.com


when one creates a gdb.Breakpoint object, s/he has no control on its pending
state:

> (gdb) python gdb.Breakpoint('send')
> No symbol table is loaded.  Use the "file" command.
> Breakpoint 4 (send) pending.

it would be convenient to 
1) specify if we allow or not the breakpoint to be pending
2) remove the two lines written by GDB
3) know whether the breakpoint has actually been set or is pending

(I should provide a solution for 3 soon)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug python/12816] No 'pending' support for breakpoints created from Python
  2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
@ 2011-12-08 13:56 ` kevin.pouget at gmail dot com
  2011-12-08 13:57 ` kevin.pouget at gmail dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: kevin.pouget at gmail dot com @ 2011-12-08 13:56 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12816

--- Comment #1 from Kevin Pouget <kevin.pouget at gmail dot com> 2011-12-08 13:56:15 UTC ---
the problem about 1) is:

(gdb) set breakpoint pending off
(gdb) py gdb.Breakpoint("nop")
Function "nop" not defined.
Breakpoint 7 (nop) pending.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug python/12816] No 'pending' support for breakpoints created from Python
  2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
  2011-12-08 13:56 ` [Bug python/12816] " kevin.pouget at gmail dot com
@ 2011-12-08 13:57 ` kevin.pouget at gmail dot com
  2022-01-03 15:13 ` ssbssa at sourceware dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: kevin.pouget at gmail dot com @ 2011-12-08 13:57 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12816

Kevin Pouget <kevin.pouget at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kevin.pouget at gmail dot
                   |                            |com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

* [Bug python/12816] No 'pending' support for breakpoints created from Python
  2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
  2011-12-08 13:56 ` [Bug python/12816] " kevin.pouget at gmail dot com
  2011-12-08 13:57 ` kevin.pouget at gmail dot com
@ 2022-01-03 15:13 ` ssbssa at sourceware dot org
  2022-01-04 14:43 ` simark at simark dot ca
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: ssbssa at sourceware dot org @ 2022-01-03 15:13 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12816

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

--- Comment #2 from Hannes Domani <ssbssa at sourceware dot org> ---
Since gdb 7.12, gdb.Breakpoint has the (read-only) "pending" attribute.
Is more needed to resolve this ticket?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/12816] No 'pending' support for breakpoints created from Python
  2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
                   ` (2 preceding siblings ...)
  2022-01-03 15:13 ` ssbssa at sourceware dot org
@ 2022-01-04 14:43 ` simark at simark dot ca
  2022-06-05 14:54 ` tromey at sourceware dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: simark at simark dot ca @ 2022-01-04 14:43 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12816

Simon Marchi <simark at simark dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simark at simark dot ca

--- Comment #3 from Simon Marchi <simark at simark dot ca> ---
(In reply to Hannes Domani from comment #2)
> Since gdb 7.12, gdb.Breakpoint has the (read-only) "pending" attribute.
> Is more needed to resolve this ticket?

AFAIU, it doesn't.  This bug is about being able to decide whether to allow
pending breakpoints when creating a gdb.Breakpoint.  I would imagine a
parameter like:

  gdb.Breakpoint("my_function", allow_pending=True)

for example.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/12816] No 'pending' support for breakpoints created from Python
  2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
                   ` (3 preceding siblings ...)
  2022-01-04 14:43 ` simark at simark dot ca
@ 2022-06-05 14:54 ` tromey at sourceware dot org
  2022-12-07 15:53 ` tromey at sourceware dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-06-05 14:54 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12816

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
*** Bug 12688 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/12816] No 'pending' support for breakpoints created from Python
  2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
                   ` (4 preceding siblings ...)
  2022-06-05 14:54 ` tromey at sourceware dot org
@ 2022-12-07 15:53 ` tromey at sourceware dot org
  2022-12-08 18:39 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-12-07 15:53 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12816

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |tromey at sourceware dot org
                 CC|                            |tromey at sourceware dot org

--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
Working on a patch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/12816] No 'pending' support for breakpoints created from Python
  2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
                   ` (5 preceding siblings ...)
  2022-12-07 15:53 ` tromey at sourceware dot org
@ 2022-12-08 18:39 ` tromey at sourceware dot org
  2022-12-21 20:21 ` tromey at sourceware dot org
  2024-03-12 14:08 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-12-08 18:39 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12816

--- Comment #6 from Tom Tromey <tromey at sourceware dot org> ---
I belatedly discovered that a breakpoint created from Python
is always marked pending.  So maybe there's nothing really needed here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/12816] No 'pending' support for breakpoints created from Python
  2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
                   ` (6 preceding siblings ...)
  2022-12-08 18:39 ` tromey at sourceware dot org
@ 2022-12-21 20:21 ` tromey at sourceware dot org
  2024-03-12 14:08 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-12-21 20:21 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12816

--- Comment #7 from Tom Tromey <tromey at sourceware dot org> ---
I misread the bug and see it's asking for a "non-pending" option.
I guess that makes sense :)

The "announce" issue mentioned is addressed here:

https://sourceware.org/pipermail/gdb-patches/2022-December/194576.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug python/12816] No 'pending' support for breakpoints created from Python
  2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
                   ` (7 preceding siblings ...)
  2022-12-21 20:21 ` tromey at sourceware dot org
@ 2024-03-12 14:08 ` tromey at sourceware dot org
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2024-03-12 14:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=12816

--- Comment #8 from Tom Tromey <tromey at sourceware dot org> ---
I pushed my current hacks to my github, branch "submit/pr-py-12816-pending".
Needs rebasing and probably other work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-03-12 14:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-27  8:57 [Bug python/12816] New: No 'pending' support for breakpoints created from Python kevin.pouget at gmail dot com
2011-12-08 13:56 ` [Bug python/12816] " kevin.pouget at gmail dot com
2011-12-08 13:57 ` kevin.pouget at gmail dot com
2022-01-03 15:13 ` ssbssa at sourceware dot org
2022-01-04 14:43 ` simark at simark dot ca
2022-06-05 14:54 ` tromey at sourceware dot org
2022-12-07 15:53 ` tromey at sourceware dot org
2022-12-08 18:39 ` tromey at sourceware dot org
2022-12-21 20:21 ` tromey at sourceware dot org
2024-03-12 14:08 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).