Skip to contentSkip to conversation

UML debugging session

DISCUSSION krishna 2 participants 2 messages Dec 5, 2004

lore
Share & tools
lore

krishna

author
#0 lore raw

Hi all,

I installed UML on my system.
I am not able to use it properly for debugging,

linux-2.4.26# gdb linux
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-slackware-linux"...
(gdb) att 1
Attaching to program: /root/Desktop/UML/new/linux-2.4.26/linux, process 1
ptrace: Operation not permitted.
(gdb) b start_kernel
Breakpoint 1 at 0xa0002447: file init/main.c, line 362.

Regards,
Krishna Chaitanya

#1 lore raw
Quoted 4 lines · krishna

I installed UML on my system.
I am not able to use it properly for debugging,

linux-2.4.26# gdb linux

Did you read the instructions on the UML website however? You'll need to do:

linux debug

Which will nicely handle the gdb startup for you and give you a gdb xterm.

Jon.