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] expose gdb values to python


On Tue, Sep 30, 2008 at 01:06:02AM -0300, Thiago Jung Bauermann wrote:
> I did it this way having in mind the case when a value needs to be
> created at a moment when no file is loaded (and thus an
> architecture/target is not yet determined). This is the same problem
> faced by the expression evaluator, when the user types (say):
> 
> (gdb) print 1.2

And I think it should have the same solution.  There's a default
architecture for these cases (depending on how GDB was built).  If, in
the future, we find another way to handle the print command... then we
can find another way to handle this, too.  I suggest that rather than
bending over backwards to avoid the gdbarch.

-- 
Daniel Jacobowitz
CodeSourcery


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