bug-ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DDD doesn't display 32-bit asembly variables anymore


From: Andreas Zeller
Subject: Re: DDD doesn't display 32-bit asembly variables anymore
Date: Wed, 6 Mar 2019 09:46:54 +0100

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 <address@hidden> 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
Stuhlsatzenhaus 5, Saarland Informatics Campus
66123 Saarbrücken, Germany

Phone: +49 681 302-70971  |  Fax: +49 681 302-70972

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]