This is the mail archive of the gdb-patches@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: RFC: add ability to "source" Python code


> Date: Wed, 11 Feb 2009 12:39:21 -0800
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: Tom Tromey <tromey@redhat.com>, bauerman@br.ibm.com, drow@false.org,
> 	pedro@codesourcery.com, gdb-patches@sourceware.org
> 
> > > I do not like the cookie idea
> > 
> > Considering that this is the only alternative proposed so far that has
> > the most chances to be accepted, and that it is 100% backwards
> > compatible, perhaps you could reconsider.
> 
> Perhaps, but I believe that it makes the feature much much less useful
> that it would be.

I think that's a heck of exaggeration.  We are talking about adding a
single line.

> I'd like to be able to grab a Python script, any python script, and
> evaluate it in GDB.

Doesn't that work with "python FOO" right now?

Also, would an arbitrary Python script necessarily do anything useful
in GDB?  Some of them probably will, but not just any one, I think.

> what are the chances of someone naming a GDB script with a .py
> extension?

No less than the chances of someone grabbing any Python script and
evaluating in GDB, I presume.


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