Re: DDD doesn't display 32-bit asembly variables anymore
Andreas Zeller <[email protected]> Wed, 6 Mar 2019 09:46:54 +0100
| Newsgroups | gmane.comp.debugging.ddd.bugs,gmane.comp.debugging.ddd.general |
|---|---|
| Message-ID | <[email protected]> |
Dear Zarko, Thanks a lot! Please include a .ddd/log file such that people on this list (or better: the bug-ddd list) have a chance to reproduce) and thus fix) the problem. Better yet: Find the problem in DDD (likely some regex that handles GDB display output) and submit a fix :-) Cheers, Andreas > On 5. Mar 2019, at 16:22, Žarko Živanov <[email protected]> wrote: > > 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 > > Prof. Dr. Andreas Zeller | Faculty CISPA Helmholtz Center for Information Security <https://www.cispa.saarland/> Stuhlsatzenhaus 5, Saarland Informatics Campus <https://saarland-informatics-campus.de/> 66123 Saarbrücken, Germany Phone: +49 681 302-70971 | Fax: +49 681 302-70972 Mail: [email protected] <mailto:[email protected]> | Web: https://www.cispa.saarland/people/zeller <https://www.cispa.saarland/people/zeller> | Twitter: @AndreasZeller <https://twitter.com/AndreasZeller>
smime.p7s
(application/pkcs7-signature, 5.1 KB) - not displayed