How can I identify the entry point of an executable in LLDB?
In GDB, we can use the info file command, but that won't work in LLDB.
Can anyone show me how to do that?
How can I identify the entry point of an executable in LLDB?
In GDB, we can use the info file command, but that won't work in LLDB.
Can anyone show me how to do that?
You can make use of the command
(lldb) process launch --stop-at-entry
to start the program. This stops you right at the entry point. From there lldb will tell you the address as well, in case this is what you are interested in.
If instead you were interested in the actual main function, and not the entry point, you should have a look at the related question lldb: break at start of actual code, not entrypoint
--stop-at-entryand breaking at__libc_start_main? – JAL Nov 22 '16 at 05:13__libc_start_mainis not used on OS X (it's a glibc thing) – Igor Skochinsky Oct 18 '18 at 20:20