public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* 'info registers' only when hit a breakpoint
@ 2000-06-01 13:01 Kevin Hilman
  2000-06-09 16:24 ` J.T. Conklin
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Hilman @ 2000-06-01 13:01 UTC (permalink / raw)
  To: gdb

I'm working on a target implementation for a new chip our company is
developing.  The current hardware implementation only saves register
state (for 'info registers') in the frame in which a breakpoint was
hit.  The other frames only have minimal information (for function
args, local variables etc.)

Therefore, I want 'info registers' to not work if someone tries an
'up' for example.

Looking at registers_info(), it looks like I want to set
'target_has_registers' to zero.  I'm wondering where is the best place
to implement this feature.  It doesn't seem like modifying
up_command() is the right place since I'd have to keep track of how
many times someone has done up/down.

Any ideas?

NOTE: I'm currently working with gdb 4.17.

-- 
Kevin Hilman               ---  Equator Technologies Inc.
khilman@equator.com        ---  Seattle, WA USA

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 'info registers' only when hit a breakpoint
  2000-06-01 13:01 'info registers' only when hit a breakpoint Kevin Hilman
@ 2000-06-09 16:24 ` J.T. Conklin
  0 siblings, 0 replies; 2+ messages in thread
From: J.T. Conklin @ 2000-06-09 16:24 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: gdb

>>>>> "Kevin" == Kevin Hilman <khilman@equator.com> writes:
Kevin> I'm working on a target implementation for a new chip our company is
Kevin> developing.  The current hardware implementation only saves register
Kevin> state (for 'info registers') in the frame in which a breakpoint was
Kevin> hit.  The other frames only have minimal information (for function
Kevin> args, local variables etc.)
Kevin>
Kevin> Therefore, I want 'info registers' to not work if someone tries
Kevin> an 'up' for example.

'info registers' displays the current values of the registers.  The
output does not change when you change the frame with frame/up/down.
I guess I'm not sure I understand what you want/need.

        --jtc

-- 
J.T. Conklin
RedBack Networks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-06-09 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-01 13:01 'info registers' only when hit a breakpoint Kevin Hilman
2000-06-09 16:24 ` J.T. Conklin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).