This is the mail archive of the gdb@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: Python API questions and use cases


Am 16.09.2010 09:32, schrieb Joel Borggrén-Franck:
> On Wed, Sep 15, 2010 at 7:56 PM, Tom Tromey <tromey@redhat.com> wrote:
>> I think the tricky part is getting a Value holding the appropriate
>> constant.  For that you might not have anything better, at present, than
>> parse_and_eval.
> 
> True. Then I think this would be useful:
> 
> gdb.new_address(addr) - returns a new gdb.Value (of type (void *)) pointing
> to addr. addr is checked to be within bounds of the address space of the
> inferior upon creation.
> 

Where do you get this address from? I cannot imagine a case where you
get a valid address from others than from inferior. So you have the
address as gdb.Value already.

Joachim


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