public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/9952] New: Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
@ 2009-03-13 22:03 dyek at real dot com
  2009-04-04 21:30 ` [Bug breakpoints/9952] " bauermann at sourceware dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: dyek at real dot com @ 2009-03-13 22:03 UTC (permalink / raw)
  To: gdb-prs

This is a feature request.

I would like the ability to set pending breakpoints in DSOs (dynamic libraries)
that are yet to be loaded.

For example, it would be nice to be able to set a breakpoint in a specific
plugin, something like this:

(gdb) b np.so:NP_Initialize

Then, when np.so is loaded, and the function, NP_Initialize(), is called, it
should break there.

Thanks.

-- 
           Summary: Feature Request: Cannot set pending breakpoints in DSOs
                    (dynamic libraries) that are yet to be loaded.
           Product: gdb
           Version: 6.8
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: dyek at real dot com
                CC: gdb-prs at sourceware dot org


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
  2009-03-13 22:03 [Bug breakpoints/9952] New: Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded dyek at real dot com
  2009-04-04 21:30 ` [Bug breakpoints/9952] " bauermann at sourceware dot org
@ 2009-04-04 21:30 ` bauermann at sourceware dot org
  2009-04-05  6:59 ` dyek at real dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: bauermann at sourceware dot org @ 2009-04-04 21:30 UTC (permalink / raw)
  To: gdb-prs



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


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
  2009-03-13 22:03 [Bug breakpoints/9952] New: Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded dyek at real dot com
@ 2009-04-04 21:30 ` bauermann at sourceware dot org
  2009-04-04 21:30 ` bauermann at sourceware dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: bauermann at sourceware dot org @ 2009-04-04 21:30 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From bauermann at sourceware dot org  2009-04-04 21:30 -------
GDB already supports pending breakpoints which are resolved when DSOs are
loaded. The only missing feature in your request is to be able to specify the
DSO name explicitly. Is my understanding correct here?

Do you think it's bad to specify the actual source code file where NP_Initialize
is defined? Or, if NP_Initialize is unique to one DSO, just NP_Initialize as in:

(gdb) b foo.c:NP_initialize

or

(gdb) b NP_initialize

In many cases, the DSO name will not be something neat like np.so, but really
np.so.0.2.1. You realise your feature wouldn't work in that case, right?

I'm asking this question to assess how useful it would be to add this new behaviour.

-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
  2009-03-13 22:03 [Bug breakpoints/9952] New: Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded dyek at real dot com
  2009-04-04 21:30 ` [Bug breakpoints/9952] " bauermann at sourceware dot org
  2009-04-04 21:30 ` bauermann at sourceware dot org
@ 2009-04-05  6:59 ` dyek at real dot com
  2009-04-05 19:05 ` tromey at redhat dot com
  2010-08-14  2:50 ` pedro at codesourcery dot com
  4 siblings, 0 replies; 11+ messages in thread
From: dyek at real dot com @ 2009-04-05  6:59 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From dyek at real dot com  2009-04-05 06:59 -------
> GDB already supports pending breakpoints which are resolved when DSOs are
loaded. 

You are right that it works, at least for my simpler test case.

Now I wonder why it didn't work at all for me when I tried to set the
NP_Initialize() breakpoint when firefox loads plugins. I have more to
investigate before I tell what is going on.

(Sorry, I can't do it anytime soon, but eventually spend time to figure out more
and update this with any useful information.)


> The only missing feature in your request is to be able to specify the
DSO name explicitly. Is my understanding correct here?

It would be nice to be able to specify a specific DSO name, but that is just a
matter of convenience.

I thought I couldn't set pending breakpoints for DSO files that are yet to be
loaded for some reason.


> In many cases, the DSO name will not be something neat like np.so, but really
np.so.0.2.1. 

Shared libraries have SONAMEs in ELF header and file names with version numbers.

Plugins, though, usually have no version number in their file names.

> You realise your feature wouldn't work in that case, right?

No, I don't understand this comment.

Why something like this can't work?
b np.so.0.2.1:NP_Initialize 

Thanks.


-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
  2009-03-13 22:03 [Bug breakpoints/9952] New: Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded dyek at real dot com
                   ` (2 preceding siblings ...)
  2009-04-05  6:59 ` dyek at real dot com
@ 2009-04-05 19:05 ` tromey at redhat dot com
  2010-08-14  2:50 ` pedro at codesourcery dot com
  4 siblings, 0 replies; 11+ messages in thread
From: tromey at redhat dot com @ 2009-04-05 19:05 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2009-04-05 19:05 -------
FWIW, I've seen other requests for a way to specify functions
by shared library, or other objfile.  Perhaps some HPD-inspired syntax
could be used.  E.g., it may be handy with rbreak to be able to:
rbreak #something.so#.*


-- 


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
  2009-03-13 22:03 [Bug breakpoints/9952] New: Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded dyek at real dot com
                   ` (3 preceding siblings ...)
  2009-04-05 19:05 ` tromey at redhat dot com
@ 2010-08-14  2:50 ` pedro at codesourcery dot com
  4 siblings, 0 replies; 11+ messages in thread
From: pedro at codesourcery dot com @ 2010-08-14  2:50 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
       [not found] <bug-9952-4717@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2011-08-18 12:53 ` gbenson at redhat dot com
@ 2011-12-06 19:27 ` tromey at redhat dot com
  4 siblings, 0 replies; 11+ messages in thread
From: tromey at redhat dot com @ 2011-12-06 19:27 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-12-06
     Ever Confirmed|0                           |1

--- Comment #4 from Tom Tromey <tromey at redhat dot com> 2011-12-06 19:16:10 UTC ---
I think this got somewhat better with the fix for #13105.
With that change, "break NP_Initialize" will resolve to the
matching function in all plugins, including ones that are
loaded after the breakpoint has been created.

I am leaving this bug open, though, because I think that
letting a linespec have an objfile prefix is still a good idea.

-- 
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] 11+ messages in thread

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
       [not found] <bug-9952-4717@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-08-17 16:18 ` tromey at redhat dot com
@ 2011-08-18 12:53 ` gbenson at redhat dot com
  2011-12-06 19:27 ` tromey at redhat dot com
  4 siblings, 0 replies; 11+ messages in thread
From: gbenson at redhat dot com @ 2011-08-18 12:53 UTC (permalink / raw)
  To: gdb-prs

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

Gary Benson <gbenson at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gbenson at redhat 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] 11+ messages in thread

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
       [not found] <bug-9952-4717@http.sourceware.org/bugzilla/>
  2011-08-17 15:45 ` tromey at redhat dot com
  2011-08-17 15:51 ` tromey at redhat dot com
@ 2011-08-17 16:18 ` tromey at redhat dot com
  2011-08-18 12:53 ` gbenson at redhat dot com
  2011-12-06 19:27 ` tromey at redhat dot com
  4 siblings, 0 replies; 11+ messages in thread
From: tromey at redhat dot com @ 2011-08-17 16:18 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |13105

-- 
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] 11+ messages in thread

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
       [not found] <bug-9952-4717@http.sourceware.org/bugzilla/>
  2011-08-17 15:45 ` tromey at redhat dot com
@ 2011-08-17 15:51 ` tromey at redhat dot com
  2011-08-17 16:18 ` tromey at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: tromey at redhat dot com @ 2011-08-17 15:51 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|13105                       |

-- 
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] 11+ messages in thread

* [Bug breakpoints/9952] Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded.
       [not found] <bug-9952-4717@http.sourceware.org/bugzilla/>
@ 2011-08-17 15:45 ` tromey at redhat dot com
  2011-08-17 15:51 ` tromey at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: tromey at redhat dot com @ 2011-08-17 15:45 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at redhat dot com
             Blocks|                            |13105

-- 
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] 11+ messages in thread

end of thread, other threads:[~2011-12-06 19:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-13 22:03 [Bug breakpoints/9952] New: Feature Request: Cannot set pending breakpoints in DSOs (dynamic libraries) that are yet to be loaded dyek at real dot com
2009-04-04 21:30 ` [Bug breakpoints/9952] " bauermann at sourceware dot org
2009-04-04 21:30 ` bauermann at sourceware dot org
2009-04-05  6:59 ` dyek at real dot com
2009-04-05 19:05 ` tromey at redhat dot com
2010-08-14  2:50 ` pedro at codesourcery dot com
     [not found] <bug-9952-4717@http.sourceware.org/bugzilla/>
2011-08-17 15:45 ` tromey at redhat dot com
2011-08-17 15:51 ` tromey at redhat dot com
2011-08-17 16:18 ` tromey at redhat dot com
2011-08-18 12:53 ` gbenson at redhat dot com
2011-12-06 19:27 ` tromey at redhat dot com

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).