lkml.org 
[lkml]   [2021]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectgdb python script lx command error
Hi,

the lx commands(like lx-symbols) were failing in gdb with the following error:
loading vmlinux
Python Exception <class 'gdb.MemoryError'> Cannot access memory at
address 0xffffffff828da7a0:
Error occurred in Python: Cannot access memory at address 0xffffffff828da7a0

the python script is loaded in gdb
(/home/jo/linux-5.12/vmlinux-gdb.py) the CONFIG_RANDOMIZE_BASE is
disabled and CONFIG_FRAME_POINTER is enabled

kernel config:
https://gist.githubusercontent.com/1Jo1/0d455013f31bb42ec68715ac7ff10db7/raw/7501b404abdfb6949d13df97216f4cace3192f2e/qemu-kernel-gdb-debugging

I followed these instructions
https://www.kernel.org/doc/html/latest/dev-tools/gdb-kernel-debugging.html

I have the same issue with older kernels, probably I missed something?

--
Josef

\
 
 \ /
  Last update: 2021-04-27 18:25    [W:0.026 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site