1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 <2010> 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 <2010> 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Debugging EPICS with gdb |
From: | "Ernest L. Williams Jr." <[email protected]> |
To: | Bruce Hill <[email protected]> |
Cc: | "[email protected]" <[email protected]> |
Date: | Wed, 08 Dec 2010 20:01:10 -0800 |
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
What version of gdb are you using? I encountered this in the past and discovered it was a bug in GDB
[ernesto@jaguar proj]$ rpm -qa |grep gdb gdb-7.0.1-23.el5_5.2
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