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: add file I/O support when debugging an embedded target via jtag


On Thu, Sep 25, 2008 at 09:26:30PM +0100, Bart Veer wrote:
> Although I have no doubt that a Python interface at the target vector
> level is possible, figuring out what such an interface should look
> like requires a far greater understanding of the gdb internals than I
> possess. I am pretty sure it would also involve much bigger changes to
> the internals than a one-line addition to the stratum enum. I really
> don't want to see the h/w debug I/O functionality to be delayed for a
> long time, possibly years, until all the required infrastructure is in
> place for a reimplementation in Python.

This is a reasonable argument.  Unfortunately the other direction is
reasonable too: remember Stan's comment about adding new strata?
That's got maintenance cost for the rest of GDB, because the strata
aren't really meant to work this way.  And it may get in the way of
future development, e.g. the work that Stan and Pedro are doing to
support multiple processes and multi-core systems.

FWIW, I find your reason for putting it above process_stratum
convincing but not your reason for putting it below thread_stratum.
I don't see why it has to be in the target vector at all.

-- 
Daniel Jacobowitz
CodeSourcery


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