This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Source a python script to gdb plugin?
On Thu, Aug 7, 2008 at 12:16 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "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')
This works! Thanks a lot!
Neo
>
> Anything after "python" is passed directly to the python interpreter.
>
> Tom
>
--
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!