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

How to reload .gdbinit once modified it? #48

Closed
c02y opened this issue Nov 19, 2016 · 3 comments
Closed

How to reload .gdbinit once modified it? #48

c02y opened this issue Nov 19, 2016 · 3 comments
Labels

Comments

@c02y
Copy link

c02y commented Nov 19, 2016

How to reload .gdbinit once modified it? For example, I add lines or modify the lines in .gdbinit, and I want to see the effect, but I don't want to exit-start gdb again, how can I do that inside the current gdb session?

I tried to execute source ~/.gdbinit at gdb prompt, the changes will take affect, but the command will output some error message such as:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 386, in start
  File "<string>", line 127, in run
gdb.error: Alias already exists: db
~/.gdbinit:1368: Error in sourced command file:
Error while executing Python code.
@cyrus-and
Copy link
Owner

The point is that you usually don't do that. I maybe could avoid the double initialization, but what's the use case exactly?

@c02y
Copy link
Author

c02y commented Nov 19, 2016

For example, I add lines or modify the lines in .gdbinit, and I want to see the effect, but I don't want to exit-start gdb again, how can I do that inside the current gdb session?

@cyrus-and
Copy link
Owner

Yeah, thanks, I can read... The main .gdbinit file is not meant to be modified by users, so it is not a valid use case. Customization is meant to be achieved by means of external modules/configuration files. If you are maintaining your own version of the dashboard then you're probably savvy enough to figure out what went wrong.

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

No branches or pull requests

2 participants