[PATCH] uml: workaround GDB problems on debugging
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>
This commit is contained in:
committed by
Linus Torvalds
parent
640aa46e25
commit
0221575903
@ -97,7 +97,7 @@ int main(int argc, char **argv, char **envp)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
#ifdef UML_CONFIG_MODE_TT
|
||||
#ifdef UML_CONFIG_CMDLINE_ON_HOST
|
||||
/* Allocate memory for thread command lines */
|
||||
if(argc < 2 || strlen(argv[1]) < THREAD_NAME_LEN - 1){
|
||||
|
||||
|
Reference in New Issue
Block a user