This is the mail archive of the
mailing list for the GDB project.
Re: Source a python script to gdb plugin?
On Thu, Aug 7, 2008 at 10:12 AM, Tom Tromey <firstname.lastname@example.org> wrote:
>>>>>> "Paul" == Paul Pluzhnikov <email@example.com> writes:
>>> (gdb) source ./load_libc
>>> /home/cjia/workareas/gdb_nvwatch/scripts/load_libc:3: Error in sourced command file:
>>> Undefined command: "from". Try "help".
> Paul> Don't you want to switch to python interpreter before doing 'source'
> Paul> (or rather its python equivalent)?
> Yes. The "source" command remains unchanged -- it reads gdb command
GNU gdb (GDB) 220.127.116.1180716-cvs
Copyright (C) 2008 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 "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
(gdb) python ./load_libc
File "<string>", line 1
SyntaxError: invalid syntax
Is this the right way to use it?
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!