mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 18:44:44 +08:00
0221575903
Apparently, GDB gets confused when we do an execvp() on ourselves. Since it's simply done to allocate further space for command line arguments (which we'll use to allow gathering the startup command line for guest processes through the host), allow the user to disable that to get a debuggable UML binary. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
menu "Kernel hacking"
|
|
|
|
source "lib/Kconfig.debug"
|
|
|
|
config CMDLINE_ON_HOST
|
|
bool "Show command line arguments on the host in TT mode"
|
|
depends on MODE_TT
|
|
default !DEBUG_INFO
|
|
help
|
|
This controls whether arguments in guest processes should be shown on
|
|
the host's ps output.
|
|
Enabling this option hinders debugging on some recent GDB versions
|
|
(because GDB gets "confused" when we do an execvp()). So probably you
|
|
should disable it.
|
|
|
|
config PT_PROXY
|
|
bool "Enable ptrace proxy"
|
|
depends on XTERM_CHAN && DEBUG_INFO && MODE_TT
|
|
help
|
|
This option enables a debugging interface which allows gdb to debug
|
|
the kernel without needing to actually attach to kernel threads.
|
|
If you want to do kernel debugging, say Y here; otherwise say N.
|
|
|
|
config GPROF
|
|
bool "Enable gprof support"
|
|
depends on DEBUG_INFO && MODE_SKAS && !MODE_TT
|
|
help
|
|
This allows profiling of a User-Mode Linux kernel with the gprof
|
|
utility.
|
|
|
|
See <http://user-mode-linux.sourceforge.net/gprof.html> for more
|
|
details.
|
|
|
|
If you're involved in UML kernel development and want to use gprof,
|
|
say Y. If you're unsure, say N.
|
|
|
|
config GCOV
|
|
bool "Enable gcov support"
|
|
depends on DEBUG_INFO && MODE_SKAS
|
|
help
|
|
This option allows developers to retrieve coverage data from a UML
|
|
session.
|
|
|
|
See <http://user-mode-linux.sourceforge.net/gprof.html> for more
|
|
details.
|
|
|
|
If you're involved in UML kernel development and want to use gcov,
|
|
say Y. If you're unsure, say N.
|
|
|
|
config SYSCALL_DEBUG
|
|
bool "Enable system call debugging"
|
|
default N
|
|
depends on DEBUG_INFO
|
|
help
|
|
This adds some system debugging to UML, including keeping a ring buffer
|
|
with recent system calls and some global and per-task statistics.
|
|
|
|
If unsure, say N
|
|
|
|
endmenu
|