[Bug gdb/34288] gdb accepts invalid DW_OP_bra / DW_OP_skip branch targets

tromey at sourceware dot org via Gdb-prs <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34288

Tom Tromey <tromey at sourceware dot org> changed:

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

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Jielun Wu from comment #0)

> - the decoded target lands in the middle of another opcode's operand bytes

AFAIK nothing in the DWARF standard prohibits this, so I think gdb
has to accept it.

If you know otherwise, that would be interesting to learn.

> This may also be related to bug #34239. I would be interested in others'
> opinions on whether these cases should be treated as invalid DWARF
> expressions and rejected by GDB.

Fixing this & the other things you found would be completely fine.
Historically gdb is pretty lax about things like this,
since malformed DWARF is unusual in practice.

Here's some info on how to send patches:
https://sourceware.org/gdb/wiki/ContributionChecklist

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.