User forums > General (but related to Code::Blocks)
Feature Request/Help: GDB Vector, nested vector, and strut viewing.[SOLVED]
oBFusCATed:
Then you should manually download the stl python printer files and to put the loading code in the .gdbinit or another file which you have to source in the initial commands.
PureBlackSin:
--- Quote from: oBFusCATed on July 22, 2012, 11:03:01 am ---Then you should manually download the stl python printer files and to put the loading code in the .gdbinit or another file which you have to source in the initial commands.
--- End quote ---
Right, I have re-done that. I now have the python files checked out to the home directory, in the home directory I made a file called .gdbinit like I was told and have pointed the file at the python folder, i.e. the one that was checked out.
Now how to I tell the debugger to read the .gdbinit from the home directory... This could be the bit that is going wrong. Also, what file is the .gdbinit file looking for? I might need to let it look deeper into the python, checked out folder.
oBFusCATed:
Try to put "source ~/.gdbinit" in the initial commands in the settings.
C::B uses the -nx command line flag to tell gdb to not read the ~/.gdbinit file by default.
PureBlackSin:
--- Quote from: oBFusCATed on July 22, 2012, 05:57:55 pm ---Try to put "source ~/.gdbinit" in the initial commands in the settings.
C::B uses the -nx command line flag to tell gdb to not read the ~/.gdbinit file by default.
--- End quote ---
Right, well I got it in:
--- Code: ---Starting debugger: /usr/bin/gdb -nx -fullname -quiet source ~/.gdbinit -args /host/James/Ubuntu/C-C++/ParseWords/bin/Debug/ParseWords
done
--- End code ---
however -nx is still there, and still no joy, although this looks like an improvement :)
oBFusCATed:
Put the source command in the initial commands field, not the args field...
If it doesn't work, put the initialization code in another file and source it.
You have to see "source my_file.source" command in the log, not in the gdb command line.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version