* ARCH_NUM_REGS
@ 2001-02-22 14:30 David Taylor
2001-02-22 16:44 ` ARCH_NUM_REGS Stan Shebs
0 siblings, 1 reply; 2+ messages in thread
From: David Taylor @ 2001-02-22 14:30 UTC (permalink / raw)
To: gdb
In addition to NUM_REGS and NUM_PSEUDO_REGS, there's the define
ARCH_NUM_REGS -- which by default is the same as NUM_REGS.
One presumes that ARCH_NUM_REGS is meant to have slightly different
semantics than NUM_REGS, but it isn't documented and it doesn't seem
to be used in any consistent fashion that I've discerned.
So, what are the intended semantics of ARCH_NUM_REGS?
According to the ChangeLog's ARCH_NUM_REGS was created in 1994 by Stan
Shebs.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ARCH_NUM_REGS
2001-02-22 14:30 ARCH_NUM_REGS David Taylor
@ 2001-02-22 16:44 ` Stan Shebs
0 siblings, 0 replies; 2+ messages in thread
From: Stan Shebs @ 2001-02-22 16:44 UTC (permalink / raw)
To: David Taylor; +Cc: gdb
David Taylor wrote:
>
> In addition to NUM_REGS and NUM_PSEUDO_REGS, there's the define
> ARCH_NUM_REGS -- which by default is the same as NUM_REGS.
>
> One presumes that ARCH_NUM_REGS is meant to have slightly different
> semantics than NUM_REGS, but it isn't documented and it doesn't seem
> to be used in any consistent fashion that I've discerned.
>
> So, what are the intended semantics of ARCH_NUM_REGS?
Check out m88k/tm-cxux.h, where the number of registers from the
inferior would depend on whether an 88110 was in use, as detected
by code in cxux-nat.c. At the time, NUM_REGS had to be a constant,
so ARCH_NUM_REGS was its dynamically-sized counterpart. This was
actually one of the problems that got me to thinking about GDB's
need to be able to vary the target architecture's characteristics
at runtime...
ARCH_NUM_REGS could probably be retired along with CX/UX support.
The OS was barely in existence two years ago, and may have
been discontinued by now.
Stan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-02-22 16:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-22 14:30 ARCH_NUM_REGS David Taylor
2001-02-22 16:44 ` ARCH_NUM_REGS Stan Shebs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox