-
Notifications
You must be signed in to change notification settings - Fork 805
gdb.error: Alias already exists: db #64
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
Comments
Yes, this is clearly due to the fact that you were using Python 2.6.
The Python version used by GDB is not the one present in your system but the one that has been chosen during compilation.
You should not modify Anyway this error happens because the |
Yes, still using gdb v7.7.1 |
Does a clean setup help? |
Clean setup? You mean running |
No, I mean removing custom init files in |
FWIW I tried compiling GDB v7.7.1 against Python v3.3.0 and still I cannot reproduce this. Another possible cause is that you're sourcing the dashboard twice. Double-check your init files. |
I don't have ~/.gdbinit.d directory, only the .gdbinit file from you repo. And yes, I did source the dashboard more than once, I mentioned reload behavior in the last UPDATE part of the first post content of this issue, when I'm debugging a program, I add/modify a function to the .gdbinit file, and use The |
The fact is that the dashboard is not meant to be reloaded, actually it's not even meant to be altered by editing As I said, the expected place to put custom aliases and functions is in Said that, I'm going to get rid of that alias altogether, which is kind of useless since partial commands are supported natively by GDB so
|
Uh oh!
There was an error while loading. Please reload this page.
Unable to use .gdbinit in gdb:
gdb-v7.7.1
UPDATE:
But I compiled using python3.3 last year according to #1 (comment) , weird, since I'm using anaconda to manager python versions and packages recently, but I didn't remove any other python versions installed in /usr/local, don't know when gdb is changed.
After recompile it using python3.3, it works now.
UPDATE2:
Now gdb can use .gdbinit, but when I modified .gdbinit outside gdb such as adding/modifying an alias or function and tried to reload the .gdbinit, this happens:
Is it possible to fix this problem?
The text was updated successfully, but these errors were encountered: