DDD doesn't display 32-bit asembly variables anymore
Žarko Živanov <[email protected]> Tue, 5 Mar 2019 16:22:35 +0100
| Newsgroups | gmane.comp.debugging.ddd.general |
|---|---|
| Message-ID | <[email protected]> |
When I moved from older version of Ubuntu to 18.04 a few days ago, I have tried DDD with assembly (GAS) files that we use in Computer architecture course at my faculty. It turned out that 32-bit variables cannot be shown as easily as before. Older versions of GDB were using 32-bit int as default when no type was known, and that was used by DDD to show 32-bit assembly variables, for example: A: .long 12345 When one clicks on A, and then on Display, 32-bit vaule of A would be shown. In newer GDB, there is no default type, so when one tries the same to display assembly variable in DDD on Ubuntu 18.04, this is shown: <error: 'A' has unknown type; cast it to its declared type> One workaround is to type (int)A into display line, then to click on Display. Unfortunately, when the value is displayed this way, it cannot be changed form Right click/Set value anymore, and this is shown in GDB output pane: Left operand of assignment is not an lvalue. It is a real shame that DDD is more and more out of date with GDB and current widgets... Best regards, Zarko Zivanov /Sent from my Commodore 64/