linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Mark Pilon <mpilon@midrivers.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: building gdb ...
Date: Wed, 31 Oct 2001 16:19:20 -0700	[thread overview]
Message-ID: <3BE086F8.3A6158DA@midrivers.com> (raw)
In-Reply-To: 20011031213937.C0BC611269@denx.denx.de


I received a patch to fix the problem of gdb core dumping while
debugging a kernel ... and have hit a snag:

after I built gdb 5.0, right from the gnu distribution,
I ran it -- got the gdb header and prompt and then nothing.

-- it's as if it's not checking stdin or stdin has been redirected
elsewhere ...

I debug'd gdb and got to:

-- (gdb)
Continuing.

Program received signal SIGINT, Interrupt.
0x40129f50 in __poll (fds=0x81c8e30, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:45
45      in ../sysdeps/unix/sysv/linux/poll.c
(gdb) where
#0  0x40129f50 in __poll (fds=0x81c8e30, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:45
#1  0x80c9502 in gdb_wait_for_event () at event-loop.c:773
#2  0x80c8fd2 in gdb_do_one_event (data=0x0) at event-loop.c:408
#3  0x80b2183 in catch_errors (func=0x80c8fbc <gdb_do_one_event>, args=0x0,
    errstring=0x816e480 "", mask=6) at top.c:615
#4  0x80c9003 in start_event_loop () at event-loop.c:438
#5  0x8091705 in cli_command_loop () at event-top.c:196
#6  0x806a675 in captured_command_loop (data=0x0) at main.c:104
#7  0x80b2183 in catch_errors (func=0x806a660 <captured_command_loop>,
    args=0x0, errstring=0x8145f11 "", mask=6) at top.c:615
#8  0x806b053 in captured_main (data=0xbffff9b0) at main.c:749
#9  0x80b2183 in catch_errors (func=0x806a6a4 <captured_main>,
    args=0xbffff9b0, errstring=0x8145f11 "", mask=6) at top.c:615
#10 0x806b07f in main (argc=1, argv=0xbffffa04) at main.c:761
(gdb) p *fds
$3 = {fd = 0, events = 1, revents = 0}
(gdb) quit

-- the call to poll appears to be looking for input on fd 0 ...
but stdin isn't consumed by this gdb.  if I suspend, all the
keystrokes I typed @ the gdb prompt then appear as if passed to
the shell.

did I miss something in the configure line? my configure line:
   ./configure --target=powerpc-linux \
      --host=i586-pc-linux-gnu \
      --prefix=/home/mpilon/ppc_tools/ppc_home

has anyone seen this?

Mark
Mark Pilon

Minolta-QMS
P.O. Box 37
Fallon, MT.  59326-0037

1-406-853-0433

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

       reply	other threads:[~2001-10-31 23:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20011031213937.C0BC611269@denx.denx.de>
2001-10-31 23:19 ` Mark Pilon [this message]
2001-10-31 23:48   ` building gdb ... no input Mark Pilon
2001-11-01  0:16     ` Mark Pilon

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=3BE086F8.3A6158DA@midrivers.com \
    --to=mpilon@midrivers.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /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;
as well as URLs for NNTP newsgroup(s).