Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
debugger plugin feature request about the initial command of GDB
ollydbg:
@xunxun, here is the log of gdb (without the hack of gdb's share path), it shows both worked and un-worked condition.
--- Quote ---E:\test\unix_gdb\install\mingw\bin>gdb --data-directory=e:/test/unix_gdb/install
/mingw/share/gdb
GNU gdb (GDB) 7.3.50.20110808-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) info pretty-printer
(gdb) q
E:\test\unix_gdb\install\mingw\bin>gdb
GNU gdb (GDB) 7.3.50.20110808-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) info pretty-printer
Undefined info command: "pretty-printer". Try "help info".
(gdb)
--- End quote ---
the gdb's shared folder is used when it's python module is initialized. but the python module is running before you "set-directory" command.
so the only way to set the data-directory is setting that path as gdb parameters, like "gdb --data-directory=XXX"
the other way such as “set data-directory XXX” can not work.
xunxun:
--- Quote from: xunxun1982 on August 09, 2011, 02:31:23 pm ---so we can use the command :
gdb -ex "set data-directory e:\mypack\mingw\share\gdb"
--- End quote ---
Why would you do this instead of passing --data-dir?
[/quote]
I want to make gdb auto source this script, but .gdbinit must be in the current directory, so "-ex" only is the test.
xunxun:
--- Quote from: ollydbg on August 09, 2011, 02:55:01 pm ---
the gdb's shared folder is used when it's python module is initialized. but the python module is running before you "set-directory" command.
so the only way to set the data-directory is setting that path as gdb parameters, like "gdb --data-directory=XXX"
the other way such as “set data-directory XXX” can not work.
--- End quote ---
Can we redefine gdb.PYTHONDIR to gdb's data directory in python.c?
oBFusCATed:
I've added an option to set custom arguments to gdb, please test it and report if it really works.
ollydbg:
--- Quote from: oBFusCATed on January 09, 2012, 11:23:07 pm ---I've added an option to set custom arguments to gdb, please test it and report if it really works.
--- End quote ---
I will test it ASAP, currently I can't synchonize SVN now due to network issue. :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version