This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Source a python script to gdb plugin?


>>>>> "Neo" == Neo Jia <neojia@gmail.com> writes:

Neo> (gdb) python ./load_libc
Neo>   File "<string>", line 1
Neo>     ./load_libc
Neo>     ^
Neo> SyntaxError: invalid syntax

Neo> Is this the right way to use it?

Nope, try:

python execfile('./load_libc')

Anything after "python" is passed directly to the python interpreter.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]