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: To know the stopped reason from hook-stop


On Tue, Jul 31, 2007 at 12:18:05PM -0700, Jim Blandy wrote:
> It's painful to watch people wrestle GDB's scripting language into
> doing something useful.  If Daniel's patch to add Python as a
> scripting language for GDB were in the public sources, then I could
> say, "Don't worry about trying to fix GDB's horrible scripting
> language, provide this data to Python."  I'm sure that's the better
> investment.
> 
> At the same time, I don't want to make the mistake of saying, "Oh, no,
> let's not commit that improvement, something much better is coming
> along real soon now" when there are no specific plans for the much
> better thing's arrival.
> 
> Daniel, have you had time to work on that patch since we last talked
> about it?

I just started work on it again Sunday.  I'll try to make some more
time for it soon.

I'm afraid I really don't like this patch.  Adding magic numbers is
the only reasonable thing we can do in the existing CLI, but it is
arcane and hard to work with.  Once there's a better language in
place, we can be a lot more flexible.

(My scripting tree also has some patches to make using strings for
this sort of thing easier.)

-- 
Daniel Jacobowitz
CodeSourcery


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