[PATCH 2/2] gdb/s390: Fill guess_tracepoint_registers hook.
Ulrich Weigand
uweigand@de.ibm.com
Thu Feb 18 16:03:00 GMT 2016
Marcin KoÃ
Âcielnicki wrote:
> * s390-linux-tdep.c (s390_guess_tracepoint_registers): New function.
> (s390_gdbarch_init): Fill guess_tracepoint_registers hook.
I think it would be better to also initialize PSWM to a valid value,
in particular since on 64-bit the addressing mode bits are actually
in the PSWM instead of the PSWA (and at least in principle even GDB
itself occasionally may check the addressing mode bits).
A default valid value for PSWM would be
0x070d0000UL in ESA mode
0x0705000180000000UL in zArchitecture mode (64-bit addressing mode)
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com
More information about the Gdb-patches
mailing list