This is the mail archive of the gdb@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]

RFC: Unpredictable register set operations


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.


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