我正在尝试在运行RHEL 7.6.1-80.e17的嵌入式系统上对进程进行实时调试。
当我尝试附加到实时进程时,我得到python异常。我可以找到一个类似的问题,但是无法理解。
有人可以清楚地解释如何解决python异常吗?。
WN508002000158FFA0 # gdb /usr/bin/fp
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python Exception <type 'exceptions.ImportError'> No module named gdb:
warning:
Could not load the Python gdb module from `/usr/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/fp...(no debugging symbols found)...done.
(gdb) attach 598
................
..............
Loaded symbols for /lib64/libdev.so.1
Reading symbols from /usr/lib64/libdev.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libdev1.so
Reading symbols from /usr/lib64/libdev1.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libdev2.so
Reading symbols from /usr/lib64/libdev2.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libdev3.so
Reading symbols from /usr/lib64/libdev3.so...(no debugging symbols found)...done.
(gdb) bt
Python Exception <type 'exceptions.ImportError'> No module named gdb.frames:
(gdb)