This is the mail archive of the gdb-patches@sources.redhat.com 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 rfc rfa:i386] Add i386 specific register groups


On Fri, Nov 08, 2002 at 03:32:20PM -0500, Andrew Cagney wrote:
> >Andrew Cagney <ac131313@redhat.com> writes:
> >
> >
> >>I should note that the orig_eax register is only a member of the system, 
> >>save and restore reggroups, and hence is no longer displayed by either 
> >>`info registers' or `info all-registers'.  If you're really desperate 
> >>you can use the `maint print raw-registers` (which is in the manual :-)
> >
> >
> >Yeah!  And you can always say "print $orig_eax", can't you?
> 
> (er, quickly checking ...)
> 
> (top-gdb) print $orig_eax
> $1 = -1
> (top-gdb) maint print raw-registers
> ...
>  orig_eax     41   41    308       4  int             0xffffffff
> 
> Yep, of course you can.
> 
> What about save/restore?  Should it be saved/restored across an inferior 
> function call?

Absolutely - in fact, that's the whole reason it was added :)

> >>This ok?
> >
> >
> >Hmm, why are all registers in group "general"?
> 
> Preserving existing behavior? :-^
> 
> > I'd expect the group
> >general to only include the general-purpose registers.
> 
> So you'd like the mmx and sse registers excluded
> (general corresponds to `info all-registers')?
> 
> Just give the word,

Wait - does general correspond to `all-registers' or `registers'?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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