linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] DDD 3.3.1 + UML_2.4.24 - can't debug
@ 2004-04-07  1:09 Pedro Estrela
  2004-04-07  7:32 ` Henrik Nordstrom
  0 siblings, 1 reply; 5+ messages in thread
From: Pedro Estrela @ 2004-04-07  1:09 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: pedro.estrela



Hello All,

I'm getting a very strange problem trying to debug UML under DDD.

I'm running uml linux in a host system (Debian Woody 3.0) which i don't have root access.

For the guest, i'm running linux-2.4.24 + uml-patch-2.4.24-1 + uml_utilities_20040114. As i don't have root on the host, I've changed the location of the port_helper library, as it is decribed in (https://wiki.clusterfs.com/lustre/LustreUML).

With these steps, i can debug the kernel and its modules exactly as it is said using plain gdb. It succesfully spawns a xterm, where a gdb lives that can control the kernel and its modules.



The problem is using ddd (version 3.3.1) to debug the kernel. I've done step by step as it is explaned in 
http://user-mode-linux.sourceforge.net/debugging.html:

1 - started "ddd linux" on the host
2 - i've noted the gdb pid that ddd swapned
3 - started program with arguments: "root=<my-root-fs> debug=parent gdb-pid=<pid>"

4- then, the program stops at af_packet.c:9000; gdb inside ddd gives this output:

...
run ubd0=../../uml/Debian-3.0r0.ext2 debug=parent gdb-pid=24953
Program received signal SIGTRAP, Trace/breakpoint trap.
0xa000c000 in _start () at af_packet.c:1900
home/pmsrve/dccp/work/linux-2.4.24/net/packet/af_packet.c:1900:42852:beg:0xa000c000

5 - then tying to attach to an invalid thread gives this result:

(gdb) att 1
ptrace: Operation not permitted.
(gdb) c
The program is not being run.
(gdb) 



I've tryed several other combinations, but the results are always these depicted above.
Do anyone can run UML with DDD? any insight will be most appreciated!

Thanks,
Pedro Estrela








-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-04-07 15:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-07  1:09 [uml-devel] DDD 3.3.1 + UML_2.4.24 - can't debug Pedro Estrela
2004-04-07  7:32 ` Henrik Nordstrom
2004-04-07 14:28   ` Pedro Estrela
2004-04-07 14:54     ` Henrik Nordstrom
2004-04-07 15:25       ` Pedro Estrela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox