Both methods seem to work properly.
gdb help output:
--eval-command=COMMAND, -ex
Execute a single GDB command.
May be used multiple times and in conjunction
with --command.
Have you found out a way to actually make lazarus to use the intel syntax for a disassembly ?
I tried entering:
-eval-command="set disassembly-flavor intel"into the environment->options->debugger -> debugger_startup_options
but:
1) they do not take effect immediately
2) they are not being saved to disk, so if you close and restart lazarus, this setting is lost
so the only way seems to be:
restart lazarus -> set this option BEFORE using the debugger.
But even this attempt did not work.
Instead I got this error message:
Debugger
Initialization output:
"Undefined command: \"\". Try \"help\".\n"
[OK]
or do you need to modify the source and recompile lazarus to make this change apply ?
btw: could there be another way ?
Is it somehow possible to make gdb always execute some textfile's content as command immediately when gdb is started ?
That way, if it's possible, it could be done outside of lazarus but it would still apply.