linux-um archives
 help / color / mirror / Atom feed
From: Pedro Estrela <pedro.estrela@tagus.ist.utl.pt>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: pedro.estrela@inesc.pt
Subject: [uml-devel] DDD 3.3.1 + UML_2.4.24 - can't debug
Date: Wed,  7 Apr 2004 02:09:19 +0100	[thread overview]
Message-ID: <E1BB1ZH-0004xn-Ff@sc8-sf-mx1.sourceforge.net> (raw)



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

             reply	other threads:[~2004-04-07  1:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-07  1:09 Pedro Estrela [this message]
2004-04-07  7:32 ` [uml-devel] DDD 3.3.1 + UML_2.4.24 - can't debug Henrik Nordstrom
2004-04-07 14:28   ` Pedro Estrela
2004-04-07 14:54     ` Henrik Nordstrom
2004-04-07 15:25       ` Pedro Estrela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1BB1ZH-0004xn-Ff@sc8-sf-mx1.sourceforge.net \
    --to=pedro.estrela@tagus.ist.utl.pt \
    --cc=pedro.estrela@inesc.pt \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox