This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RFC: Unpredictable register set operations
- From: Doug Evans <dje at transmeta dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 15 Jul 2003 15:28:50 -0700 (PDT)
- Subject: RFC: Unpredictable register set operations
- References: <20030715220923.GA30513@nevyn.them.org>
Daniel Jacobowitz writes:
> So what happens if you "set $ps = 0"? Well, the right thing happens, but
> until the next time the target stops "print $ps" will print 0. Which is not
> actually the value of the $ps register.
>
> Thoughts? Is this a problem worth fixing?
Definately worth fixing.
In complex systems there may be various scripts that make use of
these register's values.
Having these scripts randomly break because gdb is lying to the script
about what the value of the register is is, well, not nice.