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

.gdbinit instructions? #8

Open
Spongman opened this issue May 29, 2020 · 3 comments
Open

.gdbinit instructions? #8

Spongman opened this issue May 29, 2020 · 3 comments
Labels
question Further information is requested

Comments

@Spongman
Copy link

can you add the lines needed to automatically load this from .gdbinit? please assume zero python knowledge.

@LoneWanderer-GH
Copy link
Owner

Have you read this https://github.com/LoneWanderer-GH/nlohmann-json-gdb#Usage ?
Moreover, you may find lots of useful resources concerning GDB here https://github.com/LoneWanderer-GH/nlohmann-json-gdb#Links or on the official GDB site.

@LoneWanderer-GH LoneWanderer-GH added the question Further information is requested label Jun 14, 2020
@Spongman
Copy link
Author

thanks, i am able to load it manually. however, i'm looking specifically for instructions on how to load it automatically from .gdbinit.

@LoneWanderer-GH
Copy link
Owner

Script loads like any other script. Automation loading is subject to all common GDB loading rules and logic. I'm not using autoloading myself, but I think the best starting point for that is having a look here

https://sourceware.org/gdb/onlinedocs/gdb/Startup.html#Startup

It pretty much comes down to putting the manual commands into your .gdbinit file and tell gdb to autoload it, as well as accept loading python files.
Its worth noting there are 2 different autoloading:

  • home directory
  • current directory

If you have any further question on that matter, Stackoverflow is a great place to look for answers, or ask your question if not already asked.

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

No branches or pull requests

2 participants