[Bug gdb/34288] gdb accepts invalid DW_OP_bra / DW_OP_skip branch targets
simark at simark dot ca 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 --- Comment #5 from Simon Marchi <simark at simark dot ca> --- (In reply to Tom Tromey from comment #4) > (In reply to Simon Marchi from comment #3) > > > Detecting whether the expression jumps in the middle of an instruction, I > > think it would be more difficult and not as important. If the expression is > > buggy, well, it will yield bogus results. > > If you were really motivated you could write expressions where the bytes > have double meaning and branching to the middle would work fine, a la > Mel the Real Programmer. I think for gimli I wrote some tests like this. Right, just like you could do with instructions on a real CPU, so I don't think we should prevent that. -- You are receiving this mail because: You are on the CC list for the bug.