[Lldb-commits] [PATCH] D12977: LLDB MI addition for getting process stopped at first instruction right after launch via -exec-run

Kirill Lapshin via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 21 11:00:56 PDT 2015

KLapshin added a comment.

In http://reviews.llvm.org/D12977#249437, @enlight wrote:

> According to the GDB-MI spec the exec-run <https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Program-Execution.html#GDB_002fMI-Program-Execution> command already has a **start** option. Support for the **start** option can be detected by checking for **exec-run-start-option** in the list of features returned by the list-features <https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Support-Commands.html#GDB_002fMI-Support-Commands> command. So, what's the rationale for diverging from the spec in this case?
> In GDB your example would be written as:
>  -exec-run --start

Fully agreed.

At same time - this option is relatively new, was not present in older GDBs. For example - GDB used in Xcode before switch to lldb just do stop at _dyld_start unconditionally always, no option.

Thanks for review, patch will be changed.



More information about the lldb-commits mailing list