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  2010  2011  2012  <20132014  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  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: how to use gdb to debug a target IOC?
From: Silver <[email protected]>
To: tech-talk <[email protected]>
Date: Fri, 5 Jul 2013 08:27:10 +0800
hi, all:

  I am trying to run ioc example application on a target board. when I cross-compiled and run the example IOC on it , it showed the following messages:
iocInit
Starting iocInit
iocInit: Reached initHookAtBeginning
############################################################################
## EPICS R3.14.10 $R3-14-10$ $2008/10/27 19:39:04$
## EPICS Base built Jul  4 2013
############################################################################
iocInit: Reached initHookAfterCallbackInit
iocInit: Reached initHookAfterCaLinkInit
iocInit: Reached initHookAfterInitDrvSup
iocInit: Reached initHookAfterInitRecSup
iocInit: Reached initHookAfterInitDevSup
iocInit: Reached initHookAfterInitDatabase
iocInit: Reached initHookAfterFinishDevSup
iocInit: Reached initHookAfterScanInit
iocInit: Reached initHookAfterInitialProcess
Segmentation fault

 If I want to use gdb to debug the application, I run the gdbserver on the target board and run gdb on the server like followings:
arm-linux-gdb ~/testApp/bin/linux-arm/aaa
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686 --target=arm-linux"...
(gdb) target remote 192.168.1.127:2000
Remote debugging using 192.168.1.127:2000
[New Thread 1028]
0x40000870 in ?? () from /lib/ld-linux.so.2
(gdb) list
1       init.c: No such file or directory.
        in init.c
(gdb) 

Can anyone give me some help?

--------------
Best wishes
Geyang 2013-07-05


Navigate by Date:
Prev: Re: pvGet timeout in sequencer 2.1.12 Benjamin Franksen
Next: [no subject] Andrew C. Starritt
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: MsAceess Database and CSS connectivity Ganesh Jangir
Next: [no subject] Andrew C. Starritt
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·