Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: hjl@lucon.org (H.J. Lu)
To: gdb@cygnus.com
Subject: gdb not setting controlling terminal (fwd)
Date: Fri, 09 Apr 1999 15:13:00 -0000	[thread overview]
Message-ID: <m10VjX2-000ErMC@ocean.lucon.org> (raw)

Forwarded message:
From svivanov@pdmi.ras.ru Fri Apr 09 15:13:00 1999
From: Sergei Ivanov <svivanov@pdmi.ras.ru>
To: hjl@lucon.org
Subject: gdb not setting controlling terminal
Date: Fri, 09 Apr 1999 15:13:00 -0000
Message-id: <m10Vf7r-000Ll6C@svivano.pdmi.ras.ru>
X-SW-Source: 1999-q2/msg00012.html
Content-length: 1358

Hello

With gdb-4.17.0.11 under linux-2.2.5 & glibc-2.1 (all compiled
by egcs-1.1.X), I have the following gdb session on the console:

-----------
~$ gdb /usr/bin/less
GNU gdb 4.17.0.11 with Linux support
Copyright 1998 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 "i586-pc-linux-gnu"...
(no debugging symbols found)...
(gdb) set args a.c
(gdb) tty /dev/tty7
(gdb) run
Starting program: /usr/bin/less a.c
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGTTIN, Stopped (tty input).
0x400fa354 in __read ()
(gdb)
------------

This happens after 'less' displayed its first screen (on /dev/tty7).

'ps' shows that that less runs _not_ on /dev/tty7 but on /dev/tty1
where gdb was started.  Looks like 'tty' command in gdb redirects
stdin/out/err but not the controlling terminal - contrary to the docs.

/dev/tty7 is a fresh virtual console owned by the appropriate user.
It is readable and writeable. The above session runs fine on my
backup system: linux-2.0.33, libc-5.4.44, gdb-4.16.

Regards
Sergei


-- 
H.J. Lu (hjl@gnu.org)


WARNING: multiple messages have this Message-ID
From: hjl@lucon.org (H.J. Lu)
To: gdb@cygnus.com
Subject: gdb not setting controlling terminal (fwd)
Date: Fri, 09 Apr 1999 16:40:00 -0000	[thread overview]
Message-ID: <m10VjX2-000ErMC@ocean.lucon.org> (raw)
Message-ID: <19990409164000.qRs-mB1Y2CW02GJ7C88k8AH2I2yWnRvnAExuzElIIs4@z> (raw)

Forwarded message:
From svivano.pdmi.ras.ru!serg Fri Apr  9 10:31:42 1999
Message-Id: <m10Vf7r-000Ll6C@svivano.pdmi.ras.ru>
From: Sergei Ivanov <svivanov@pdmi.ras.ru>
Subject: gdb not setting controlling terminal
To: hjl@lucon.org
Date: Fri, 9 Apr 1999 21:31:31 +0400 (MSD)
Organization: Steklov Institute of Mathematics at St.Petersburg
Reply-To: svivanov@pdmi.ras.ru
X-Mailer: ELM [version 2.4 PL25]

Hello

With gdb-4.17.0.11 under linux-2.2.5 & glibc-2.1 (all compiled
by egcs-1.1.X), I have the following gdb session on the console:

-----------
~$ gdb /usr/bin/less
GNU gdb 4.17.0.11 with Linux support
Copyright 1998 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 "i586-pc-linux-gnu"...
(no debugging symbols found)...
(gdb) set args a.c
(gdb) tty /dev/tty7
(gdb) run
Starting program: /usr/bin/less a.c
(no debugging symbols found)...(no debugging symbols found)...
Program received signal SIGTTIN, Stopped (tty input).
0x400fa354 in __read ()
(gdb)
------------

This happens after 'less' displayed its first screen (on /dev/tty7).

'ps' shows that that less runs _not_ on /dev/tty7 but on /dev/tty1
where gdb was started.  Looks like 'tty' command in gdb redirects
stdin/out/err but not the controlling terminal - contrary to the docs.

/dev/tty7 is a fresh virtual console owned by the appropriate user.
It is readable and writeable. The above session runs fine on my
backup system: linux-2.0.33, libc-5.4.44, gdb-4.16.

Regards
Sergei


-- 
H.J. Lu (hjl@gnu.org)
From neeam@yahoo.com Fri Apr 09 21:20:00 1999
From: Subrata Datta <neeam@yahoo.com>
To: gdb@cygnus.com
Cc: neeam@yahoo.com
Subject: GDB support  for  i960 based card.
Date: Fri, 09 Apr 1999 21:20:00 -0000
Message-id: <19990410031405.22489.rocketmail@web120.yahoomail.com>
X-SW-Source: 1999-04/msg00012.html
Content-length: 497

 Hello,
 	I'm looking gdb-stub  for i960 based network  card. 
 I'm  new  to this. Would  apprecaite any information, pointer. 
 specifically looking   for gdb-stubs for i960..
 for  break pointing  support.
 
 Thanks,
 subrata. 
 
 PS. appreciate  an email response.
 ===
 Subrata Datta            
 neeam@yahoo.com


===
Subrata Datta            
neeam@yahoo.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


             reply	other threads:[~1999-04-09 15:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-09 15:13 H.J. Lu [this message]
1999-04-09 16:40 ` H.J. Lu

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=m10VjX2-000ErMC@ocean.lucon.org \
    --to=hjl@lucon.org \
    --cc=gdb@cygnus.com \
    /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