EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Debugging EPICS with gdb
From: Till Straumann <[email protected]>
To: [email protected]
Date: Wed, 08 Dec 2010 15:31:38 -0800
I'm using the ddd front-end which allows you to have the
target's stdio connected to a separate terminal window.

- T.


On 12/08/2010 02:38 PM, Bruce Hill wrote:
I'm trying to use gdb to debug an EPICS soft-ioc on linux (RHEL-5).
Does anyone know how to redirect the iocsh stdin and stdout to
another terminal?

The gdb manual says to use "set inferior-tty /dev/pts/0", but when I
try it I get the following warning on /dev/pts/0:
warning: GDB: Failed to set controlling terminal: Operation not permitted

I then see normal iocsh output up to the
iocInit() call, but then I get an error on the gdb tty that says
"Spurious thread death event" and typing commands on /dev/pts/0
results in that command being sent to bash instead of the gdb iocsh.

Any suggestions would be welcome.
Thanks,
- Bruce Hill


References:
Debugging EPICS with gdb Bruce Hill

Navigate by Date:
Prev: Debugging EPICS with gdb Bruce Hill
Next: Re: Debugging EPICS with gdb Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Debugging EPICS with gdb Bruce Hill
Next: Re: Debugging EPICS with gdb Ernest L. Williams Jr.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 08 Dec 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·