[PATCH v3] gdb: xtensa: fix frame initialization when PC is invalid

Pedro Alves palves@redhat.com
Tue Mar 29 23:07:00 GMT 2016


On 03/29/2016 08:57 PM, Max Filippov wrote:
> When gdb is used on core dump and PC is not pointing to a readable
> memory read_memory_integer call in the xtensa_frame_cache throws an
> error, making register inspection/backtracing impossible in that thread.
> 
> Use safe_read_memory_integer instead.
> 
> 2016-03-29  Max Filippov  <jcmvbkbc@gmail.com>
> gdb/
> 	* xtensa-tdep.c (xtensa_frame_cache): Change op1 type to LONGEST.
> 	Use safe_read_memory_integer instead of read_memory_integer.

OK.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list