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: [PATCH 0/3] Support for x86 segments as address classes


On 11/03/2015 01:43 PM, Richard Henderson wrote:
> The following gets 90% of the way there, but I'm stuck --
> address_to_pointer and pointer_to_address do not appear to
> have access to a regcache.  And not just in the one level
> of the caller, but significantly farther back in the call
> stack too.

The first two patches look generally good to me.  Though
you'll need to update the manual and NEWS as well to document
the new target feature.  (Also, I know this is a WIP, but
note that in gdb we strive to have the rationale for changes
in the git commit logs.)

> 
> Which begs the question of whether I've simply missed
> something in how to get hold of the current regcache?

get_current_frame / get_current_regcache ?  If you can pass it down
through a couple layers, it's of course better.

Though I'm not sufficiently familiar with the address class
mechanisms be to sure I'm not pointing you in the
wrong direction.  Ulrich, can you help?

Thanks,
Pedro Alves


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