Not getting fs_base from gdb when running rr replay on an Intel J4105 processor #2934
-
I was trying to set up remote After spending some time on delve's code, I realised that delve wasn't However interestingly, if I run git clone https://github.com/Frederick888/delve.git && cd delve
git checkout 1.8.2-debug
go build github.com/go-delve/delve/cmd/dlv
cd hello_world
go test -c -o ./main.test -gcflags=all='-N -l' ./
rr record -o ./trace ./main.test -test.v
cd .. Now in delve (irrelevant output omitted):
In GDB:
To add more to the craziness, I later tested this on my main machine, which's I'm not terribly familiar with these things and tbh I'm not even sure if this [1] delve/pkg/proc/gdbserial/gdbserver.go Lines 1676 to 1683 in a19931c [2] Line 441 in a19931c [3] https://github.com/Frederick888/delve/tree/1.8.2-debug |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is a bug in rr. Do you have the ability to compile rr from source? If you do go in src/GdbServer.cc, function |
Beta Was this translation helpful? Give feedback.
This is a bug in rr. Do you have the ability to compile rr from source? If you do go in src/GdbServer.cc, function
GdbServer::dispatch_regs_request
, and change DREG_ORIG_RAX to DREG_GS_BASE. If it works I'll send a PR to rr (or you can do it, if you want -- ping me if you do).