-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error to set pc? #3
Comments
This repository is no longer maintained and is the not the recommended version of gdb for RISC-V development. The newer, maintained version of gdb is here [https://github.com/riscv/riscv-binutils-gdb]. |
Thanks for your answer! I have try the RISC-V GDB tool from the git https://github.com/riscv/riscv-binutils-gdb (gdb) target remote :1234 I can load code to memory,but i can't use other gdb command,such as info,set $pc .... |
HI:
when i connect advance debug with riscv gdb , I can download code and set pc and so on. but PC value can't set high bit as zero. the log as follow:
(gdb) set $pc=0x8c
(gdb) i a r
Ambiguous info command "a r": address, all-registers, args, auxv.
(gdb) info all-registers
zero 0x14800000000 1408749273088
ra 0x108000 1081344
fp 0x0 0
s1 0x0 0
s2 0x0 0
s3 0x0 0
s4 0x1a10700000000000 1878124189915807744
s5 0x1a10000000000002 1878001044613496834
s6 0x0 0
s7 0x0 0
s8 0x0 0
s9 0x0 0
l0 0x0 0
l1 0x10046000100464 4508409991791716
sp 0x0 0
tp 0x0 0
v0 0x8c 140
v1 0xffffffff00000000 -4294967296
a0 0xffffffff00000000 -4294967296
a1 0xffffffff00000000 -4294967296
a2 0xffffffff00000000 -4294967296
a3 0xffffffff00000000 -4294967296
a4 0xffffffff00000000 -4294967296
a5 0xffffffff00000000 -4294967296
a6 0xffffffff00000000 -4294967296
a7 0xffffffff00000000 -4294967296
t0 0xffffffff00100464 -4293917596
t1 0xffffffff00100460 -4293917600
t2 0xffffffff00000000 -4294967296
t3 0xffffffff00000000 -4294967296
t4 0xffffffff00000000 -4294967296
gp 0xffffffff00000000 -4294967296
pc 0xffffffff0000008c -4294967156
Could not fetch register "fs0"; remote failure reply 'E01'
How can i set the high bit of PC as zero?
The text was updated successfully, but these errors were encountered: