Skip to content

How to write CSR_DPC register in GDB ? #426

@rtspk

Description

@rtspk

Hi Everyone, Hope you guys are doing good.

I would like to ask, How to write to register values in GDB ?

I am trying to write register value of (CSR_DPC at 0x7b1 ) using GDB. But so far i didnt get any success
I used monitor reg command to see the register values and was able to see the value of DPC register.

I have two questions

  1. How can i modify the value of this DPC register from GDB ?
  2. What is confusing is that, the address of DPC is 0x7b1 (decimal 1969), but the monitor reg command shows me 0x7F2 (decimal 2034).

Thanks you very much

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions