Is there a way to see the assembler debug window in Intel format instead of AT&T?
It seems the code is always displayed in AT&T syntax.
Tried in Win32/Win64, latest SVN Lazarus and FPC build.

Mailing lists / lazarus / 2012-08
6 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Is there a way to see the assembler debug window in Intel format instead of AT&T?
It seems the code is always displayed in AT&T syntax.
Tried in Win32/Win64, latest SVN Lazarus and FPC build.
I don't see any way to interact with the debugger, so it's not possible ATM. GDB can be set to display disassembly in intel syntax through "set disassembly-flavor intel" but we need a way to feed it to GDB. Please file a feature request.
Thanks, this helped.
Using this "disassembly-flavor" variable I found this old thread on the forums
http://www.lazarus.freepascal.org/index.php?topic=8741.0
and from there I was able to figure it out and set this in Lazarus -> Tools -> Options -> Debugger -> General The "Debugger_Startup_Options" value to
-eval-command="set disassembly-flavor intel"
and voila, it works.
AB
I don't see any way to interact with the debugger, so it's not possible ATM. GDB can be…
It should be possible to add this to the debugger startup options. there is a field in the option dialog.
But you must specify it for being passed as command-line.
Oh, I didn't know what that field is for. If only it's named "Debugger command line options" or something it similar it would be clearer to me. I can get the feature running as well now, thanks :)
leledumbo wroteOh, I didn't know what that field is for. If only it's named "Debugger command line options" or something it similar it would be clearer to me. I can get the feature running as well now, thanks :)
Unfortunately, those options are currently using the published property names (object inspector like).
So changing them, will mean a lot of work, because old data, would no longer load.