public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/11662] New: agent expressions can't represent all DWARF locations
@ 2010-06-02 21:11 tromey at redhat dot com
  2010-06-02 22:27 ` [Bug breakpoints/11662] " tromey at redhat dot com
  0 siblings, 1 reply; 3+ messages in thread
From: tromey at redhat dot com @ 2010-06-02 21:11 UTC (permalink / raw)
  To: gdb-prs

It is difficult to translate all DWARF location expressions into
agent expressions.  This is true even for expressions which GCC
actually generates.

I think the best fix would be to add a few more opcodes to agent
expressions.

The difficult DWARF opcodes are enumerated here:

http://sourceware.org/ml/gdb-patches/2010-05/msg00407.html

-- 
           Summary: agent expressions can't represent all DWARF locations
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: tromey at redhat dot com
                CC: gdb-prs at sourceware dot org


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

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

* [Bug breakpoints/11662] agent expressions can't represent all DWARF locations
  2010-06-02 21:11 [Bug breakpoints/11662] New: agent expressions can't represent all DWARF locations tromey at redhat dot com
@ 2010-06-02 22:27 ` tromey at redhat dot com
  0 siblings, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2010-06-02 22:27 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From tromey at redhat dot com  2010-06-02 22:27 -------
Also, DWARF does not have many restrictions on how an expression
can manipulate the stack.  For example, a DWARF expression may
push any number of values, while only the last value is used.
Branching can mean that the number of values on the stack at
any given point is not constant.

One simple way to deal with this problem would be to add new agent
opcodes to mark the stack depth and then pop to the mark.

-- 


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

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

* [Bug breakpoints/11662] agent expressions can't represent all DWARF locations
       [not found] <bug-11662-4717@http.sourceware.org/bugzilla/>
@ 2011-05-17 14:48 ` tromey at redhat dot com
  0 siblings, 0 replies; 3+ messages in thread
From: tromey at redhat dot com @ 2011-05-17 14:48 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2011-05-17 14:48:12 UTC ---
The DWARF->AX compiler also does not handle the typed DWARF extension.
See Bug 12617 for links.  At least integral types of various sizes
could be supported.

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

end of thread, other threads:[~2011-05-17 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-02 21:11 [Bug breakpoints/11662] New: agent expressions can't represent all DWARF locations tromey at redhat dot com
2010-06-02 22:27 ` [Bug breakpoints/11662] " tromey at redhat dot com
     [not found] <bug-11662-4717@http.sourceware.org/bugzilla/>
2011-05-17 14:48 ` 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).