5

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?

1 Answer 1

8

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

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.