mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
kgdb: remove the requirement for CONFIG_FRAME_POINTER
There is no technical reason that the kgdb core requires frame pointers. It is up to the end user of KGDB to decide if they need them or not. [ anemo@mba.ocn.ne.jp: removed frame pointers on mips ] Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
This commit is contained in:
parent
94ad374a07
commit
5f5ddfb360
2 changed files with 15 additions and 4 deletions
|
@ -98,6 +98,14 @@
|
||||||
"Kernel debugging" select "KGDB: kernel debugging with remote gdb".
|
"Kernel debugging" select "KGDB: kernel debugging with remote gdb".
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
|
It is advised, but not required that you turn on the
|
||||||
|
CONFIG_FRAME_POINTER kernel option. This option inserts code to
|
||||||
|
into the compiled executable which saves the frame information in
|
||||||
|
registers or on the stack at different points which will allow a
|
||||||
|
debugger such as gdb to more accurately construct stack back traces
|
||||||
|
while debugging the kernel.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
Next you should choose one of more I/O drivers to interconnect debugging
|
Next you should choose one of more I/O drivers to interconnect debugging
|
||||||
host and debugged target. Early boot debugging requires a KGDB
|
host and debugged target. Early boot debugging requires a KGDB
|
||||||
I/O driver that supports early debugging and the driver must be
|
I/O driver that supports early debugging and the driver must be
|
||||||
|
|
|
@ -4,14 +4,17 @@ config HAVE_ARCH_KGDB
|
||||||
|
|
||||||
menuconfig KGDB
|
menuconfig KGDB
|
||||||
bool "KGDB: kernel debugging with remote gdb"
|
bool "KGDB: kernel debugging with remote gdb"
|
||||||
select FRAME_POINTER
|
|
||||||
depends on HAVE_ARCH_KGDB
|
depends on HAVE_ARCH_KGDB
|
||||||
depends on DEBUG_KERNEL && EXPERIMENTAL
|
depends on DEBUG_KERNEL && EXPERIMENTAL
|
||||||
help
|
help
|
||||||
If you say Y here, it will be possible to remotely debug the
|
If you say Y here, it will be possible to remotely debug the
|
||||||
kernel using gdb. Documentation of kernel debugger is available
|
kernel using gdb. It is recommended but not required, that
|
||||||
at http://kgdb.sourceforge.net as well as in DocBook form
|
you also turn on the kernel config option
|
||||||
in Documentation/DocBook/. If unsure, say N.
|
CONFIG_FRAME_POINTER to aid in producing more reliable stack
|
||||||
|
backtraces in the external debugger. Documentation of
|
||||||
|
kernel debugger is available at http://kgdb.sourceforge.net
|
||||||
|
as well as in DocBook form in Documentation/DocBook/. If
|
||||||
|
unsure, say N.
|
||||||
|
|
||||||
if KGDB
|
if KGDB
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue