Is there an updated gdb HOWTO on any UML websites or Wikis, that someone could
point me at? I've googled for days looking for instructions on how to debug
UML with current tools. The last time I played around with UML a year or two
ago, you just added "debug" to the command line and it all just worked. Or
you killed it with -USR1, or you ran the umlgdb script.
Now I'm running host kernel 2.6.3-9mdk patched for skas3, gdb 6.0-2mdk,
gcc-3.3.2-6mdk, and I'm at a loss as to what broke debugging. I suppose I
could just downgrade my host back to Mandrake 8.2 and uml-patch-2.4.20-2,
which is what I was using the last time I got this to work, but I'd like to
know if anyone's had any success debugging UML under newer host
When I try to run the umlgdb script as either root or myself, I get:
(gdb) att 1b sys_init_module
Attaching to program: /home/mlhuang/uml/linux, process 1
ptrace: Operation not permitted.
If I run UML from gdb directly, and set a breakpoint at "start_kernel", I get
a few of these messages:
Detaching after fork from child process 5153.
and UML seems to merrily continue beyond the breakpoint I set. If I set
follow-fork-mode to 'child', I again get:
Attaching after fork to child process 5255.
ptrace: Operation not permitted
Program terminated with signal SIGKILL, Killed.
The program no longer exists.
I'm currently trying this with uml-patch-2.4.25-1.bz2 and the
following .config variables:
# CONFIG_MODE_TT is not set
Thanks in advance,