[Lldb-commits] [lldb] [lldb] add command start (PR #67019)

via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 22 09:00:32 PDT 2023


=?utf-8?q?José?= L. Junior <jljuniorpb at gmail.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/67019/lldb at github.com>


https://github.com/jimingham commented:

The reason that gdb has a "start" command is that not all languages and their runtimes use the same name for the the entry point function.  So `start` does "figure out what the start function in the main executable is and set a breakpoint there".  Or maybe it just knows the start points of all the languages and breaks symbolically on each one, I can't remember how gdb does this...
In our case, the languages we currently support all use "main" for the entry point function, but since we're going to the trouble of making an canned bit of functionality for this, it might be nice to add that abstraction.  

https://github.com/llvm/llvm-project/pull/67019


More information about the lldb-commits mailing list