[PATCH 38/58] gdbserver: turn target ops 'read_pc' and 'write_pc' into methods

Pedro Alves palves@redhat.com
Thu Feb 13 20:29:00 GMT 2020


On 2/11/20 9:01 AM, Tankut Baris Aktemur wrote:

> +
> +CORE_ADDR
> +process_target::read_pc (regcache *regcache)
> +{
> +  gdb_assert_not_reached ("regcache_read_pc: Unable to find PC");

"regcache_read_pc" is stale.

> +}
> +
> +void
> +process_target::write_pc (regcache *regcache, CORE_ADDR pc)
> +{
> +  gdb_assert_not_reached ("regcache_write_pc: Unable to update PC");

Ditto "regcache_write_pc".

> +}

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list