From: "Pedro Estrela" <pedro.estrela@inesc.pt>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: 'Henrik Nordstrom' <uml@henrik.marasystems.com>,
'Pedro Estrela' <pedro.estrela@tagus.ist.utl.pt>
Subject: RE: [uml-devel] DDD 3.3.1 + UML_2.4.24 - can't debug
Date: Wed, 7 Apr 2004 15:28:38 +0100 [thread overview]
Message-ID: <000901c41cac$a14ae810$902914ac@tagus.ist.utl.pt> (raw)
In-Reply-To: <Pine.LNX.4.44.0404070931130.22817-100000@filer.marasystems.com>
Hello, and thanks for your quick reply.
I've tried just as you said, but the problem remains the same.
Also, I've now switched to an environment where I can be root on host,
but the situation hasn't changed.
///////////////////////////////////
However, I've managed successfully to attach linux to an already running
gdb:
1 - start "gdb linux"
2 - check its gdb pid
3 - start "linux root=<...> debug gdb-pid=<pid>"
(the execution of linux stops very early)
4 - in gdb: do an "att 1"
(gdb attaches to linux, and I can check breakpoints, list code, etc,
exactly as spawning an xterm + gdb.)
5 - in gdb: "c" to continue linux.
///////////////////////////////////
Back to my original problem: using ddd, with both "debug" or
"debug=parent" options the result is always this:
GNU DDD 3.3.1 (i686-pc-linux-gnu), by Dorothea L(gdb) run
ubd0=../Debian-3.0r0.ext2 debug gdb-pid=7343
Program received signal SIGTRAP, Trace/breakpoint trap.
0xa000b000 in _start () at af_packet.c:1900
/root/linux-2.4.24/net/packet/af_packet.c:1900:42852:beg:0xa000b000
(gdb) att 1
ptrace: Operation not permitted.
(gdb) c
The program is not being run.
///////////////////////////////////
A variation is that, if I don't try to "att 1", and do only "c" instead,
gives this result:
GNU DDD 3.3.1 (i686-pc-linux-gnu), by Dorothea L(gdb) run
ubd0=../Debian-3.0r0.ext2 debug gdb-pid=20877
Program received signal SIGTRAP, Trace/breakpoint trap.
0xa000b000 in _start () at af_packet.c:1900
/root/linux-2.4.24/net/packet/af_packet.c:1900:42852:beg:0xa000b000
(gdb) c
Checking for the skas3 patch in the host...not found
Checking for /proc/mm...not found
tracing thread pid = 20884
^C^C^C
<no response from uml linux>
As it can be seen, linux continues to boot, but hangs, and ddd's gdb
can't attach to it. In this situation, after closing ddd, it remains 2
linux and 1 gdb processes that must be killed with "killall -9 linux"
////////////////////////////////////
To be completely sure, I've started all over again, with the simplest
environment that I could do to check this problem:
1 - get linux 2.4.24
2 - patch it with uml-2.4.24-1
3 - compile it
4 - install latest uml_tools
5 - run "ddd linux"
6 - run program with options "udb0=<...> debug gdb-pid=<pid>"
In this situation, I would ask very politely if someone who have ddd
working to help me, possibly by recreating this simple environment, as
I'm totally stuck.
Thanks,
Pedro Estrela
> > 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>"
>
> Try with just
>
> root=<rootfs> debug gdb-pid=<pid>
>
> Also try the same on a stand-alone GDB.
>
> Regards
> Henrik
-------------------------------------------------------
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
next prev parent reply other threads:[~2004-04-07 14:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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='000901c41cac$a14ae810$902914ac@tagus.ist.utl.pt' \
--to=pedro.estrela@inesc.pt \
--cc=pedro.estrela@tagus.ist.utl.pt \
--cc=uml@henrik.marasystems.com \
--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