Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running GDB (the GNU Debugger): Update #111

Open
GeneMosher opened this issue Mar 23, 2020 · 0 comments
Open

Running GDB (the GNU Debugger): Update #111

GeneMosher opened this issue Mar 23, 2020 · 0 comments

Comments

@GeneMosher
Copy link
Member

How to Debug with GDB: Frank Graziano offers this correction / update.

Open two terminals, Window 1 and Window 2.
Window 1:
gdb vtpos
b 153 - this is where loader calls vt_main
run

Window 2:
gdb vt_main
b xxx - any line number

Window 1:
jump 154 - skip over calling vt_main

Within a few seconds switch to Window 2 and issue GDB command:
run /tmp/vt_main

GDB will run vt_main, stopping at the specified breakpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant