public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/17579] New: can't set breakpoint using demangled name
@ 2014-11-11 18:44 tromey at sourceware dot org
2014-11-12 10:15 ` [Bug breakpoints/17579] " gbenson at redhat dot com
2025-01-11 18:51 ` tromey at sourceware dot org
0 siblings, 2 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2014-11-11 18:44 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17579
Bug ID: 17579
Summary: can't set breakpoint using demangled name
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
I'm afraid I don't have a simple reproducer for this.
I built firefox trunk ("mozilla-central") with debugging
enabled and optimization disabled. Then I started
gdb on libxul.so.
Next I tried to set a breakpoint:
(gdb) break
'js::baseops::SetPropertyHelper<(js::ExecutionMode)1>(js::ExecutionModeTraits<(js::ExecutionMode)1>::ContextType,
JS::Handle<js::NativeObject*>, JS::Handle<JSObject*>, JS::Handle<jsid>,
js::baseops::QualifiedBool, JS::MutableHandle<JS::Value>, bool)'
(I actually did this via TAB completion, so I know gdb knows
about this symbol...)
However gdb doesn't like it:
Function
"js::baseops::SetPropertyHelper<(js::ExecutionMode)1>(js::ExecutionModeTraits<(js::ExecutionMode)1>::ContextType,
JS::Handle<js::NativeObject*>, JS::Handle<JSObject*>, JS::Handle<jsid>,
js::baseops::QualifiedBool, JS::MutableHandle<JS::Value>, bool)" not defined.
Make breakpoint pending on future shared library load? (y or [n]) n
But the symbol is definitely defined. In fact I can print it
and disassemble the address:
(gdb) p
'js::baseops::SetPropertyHelper<(js::ExecutionMode)1>(js::ExecutionModeTraits<(js::ExecutionMode)1>::ContextType,
JS::Handle<js::NativeObject*>, JS::Handle<JSObject*>, JS::Handle<jsid>,
js::baseops::QualifiedBool, JS::MutableHandle<JS::Value>, bool)'
$1 = {bool (js::ExecutionModeTraits<(js::ExecutionMode)1>::ContextType,
js::HandleNativeObject, JS::HandleObject, JS::HandleId,
js::baseops::QualifiedBool, JS::MutableHandleValue,
bool)} 0x558389d
<js::baseops::SetPropertyHelper<(js::ExecutionMode)1>(js::ExecutionModeTraits<(js::ExecutionMode)1>::ContextType,
JS::Handle<js::NativeObject*>, JS::Handle<JSObject*>, JS::Handle<jsid>,
js::baseops::QualifiedBool, JS::MutableHandle<JS::Value>, bool)>
(gdb) disassemble 0x558389d
Dump of assembler code for function
js::baseops::SetPropertyHelper<(js::ExecutionMode)1>(js::ExecutionModeTraits<(js::ExecutionMode)1>::ContextType,
JS::Handle<js::NativeObject*>, JS::Handle<JSObject*>, JS::Handle<jsid>,
js::baseops::QualifiedBool, JS::MutableHandle<JS::Value>, bool):
0x000000000558389d <+0>: push %rbp
0x000000000558389e <+1>: mov %rsp,%rbp
0x00000000055838a1 <+4>: push %r12
0x00000000055838a3 <+6>: push %rbx
[...]
Setting the breakpoint works fine if I use the mangled name or
file:line.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug breakpoints/17579] can't set breakpoint using demangled name
2014-11-11 18:44 [Bug breakpoints/17579] New: can't set breakpoint using demangled name tromey at sourceware dot org
@ 2014-11-12 10:15 ` gbenson at redhat dot com
2025-01-11 18:51 ` tromey at sourceware dot org
1 sibling, 0 replies; 3+ messages in thread
From: gbenson at redhat dot com @ 2014-11-12 10:15 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17579
Gary Benson <gbenson at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gbenson at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug breakpoints/17579] can't set breakpoint using demangled name
2014-11-11 18:44 [Bug breakpoints/17579] New: can't set breakpoint using demangled name tromey at sourceware dot org
2014-11-12 10:15 ` [Bug breakpoints/17579] " gbenson at redhat dot com
@ 2025-01-11 18:51 ` tromey at sourceware dot org
1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2025-01-11 18:51 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17579
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |OBSOLETE
Status|NEW |RESOLVED
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I don't think we're going to be able to dig this up and fix it now.
It's been too long since I reported it.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-11 18:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-11 18:44 [Bug breakpoints/17579] New: can't set breakpoint using demangled name tromey at sourceware dot org
2014-11-12 10:15 ` [Bug breakpoints/17579] " gbenson at redhat dot com
2025-01-11 18:51 ` 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).