ddd
[Top][All Lists]
Advanced

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

Re: assembly code display (intel vs att format)


From: Andreas Zeller
Subject: Re: assembly code display (intel vs att format)
Date: 30 Mar 2001 10:05:46 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

Hi!

Tony Wetmore <address@hidden> writes:

> Whenever I start DDD, the disassembly (machine code) window displays
> the code using AT&T syntax, rather than Intel syntax This happens
> even when I have the GDB Settings "Disassembly flavor" set to
> "intel"
> 
> If I immediately (re)open my executable with File>Open, I get a
> warning dialog:
> 
>    warning: i386 architecture file may be incompatible with i386:intel
>    target.  Load new symbol table from "(program)"?
> 
> If I hit the "Yes" button, it reloads my executable and displays the assembly
> code using my "preferred" (Intel) syntax.
> 
> Is it possible to avoid this extraneous re-load of the executable
> and simply have DDD always display my code using Intel syntax?  Is
> there some other setting I need to adjust perhaps?

Normally, DDD should preserve all GDB settings, so this looks like a
GDB problem.  

Try putting `set disassembly-flavor intel' (or whatever the
appropriate command is) into your .gdbinit file and run GDB
standalone; if it disassembles correctly (using `disassemble main' at
the GDB prompt, for instance), then DDD is at fault.

In case GDB standalone runs fine, do you have a ~/.ddd/log file
available?  That one lists all the communication between GDB and DDD.

Best wishes,

Andreas

-- 
Andreas Zeller     Universitaet Passau
                   http://www.fmi.uni-passau.de/st/staff/zeller/



reply via email to

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