Article View: gnu.gdb.bug
Article #1328Use of gdb with RedBoot and eCos from Windows host
From: Jan Larcombe
Date: Wed, 20 Oct 2004 21:04
Date: Wed, 20 Oct 2004 21:04
51 lines
3281 bytes
3281 bytes
Hi, I'm new to the use of gdb and I am having problems getting it to work. I am using a single board computer (ARCOM Merlin) which is running eCos, I have been able to load and run simple programs on the board using the "load -m ymodem" command and "Send File" from within HyperTerminal. The programs always run after typeing "go" without any problem. I am now getting to the stage where I need to be able to debug the application on the board and this is where I am running into problems. I have looked around the net and can't find much which addresses remote debugging. Anyway here are the questions. When I build the eCos part of the system do I have to include all the source level debugging support (ie "include GDB stubs in HAL" and include GDB external break support for stubs") or is this already supplied by RedBoot? I know that I put Redboot into GDB stub mode by typing a "$" on the console do I have to load my application down prior to this or will this all be handled by GDB later? On my windows host I am running cygwin. After disconnecting HyperTerminal The commands that I have tried are as follows: gdb (gdb) lots of copyright stuff displayed (gdb) set baudrate 57600 - this is the default rate that HyperTerminal was connected at. (gdb) target remote COM2 - the COM port of the PC which is connected to the target processor (same as for HyperTerminal) I am getting a number of error messages: COM2: Not a typewriter - I have checked and my eCos build does have tty serial drivers configured or: Segmentation fault (core dumped) I am obviously missing a vital step in my setups - but I am not sure what it is Thanks for any help you may be able to give J P Larombe
Technical Details
Message-ID:
<mailman.4422.1098371672.2017.bug-gdb@gnu.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!news.demon.co.uk!demon!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f5053,1d427dadf3b1ea97,start X-Google-Attributes: gidf5053,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!news.demon.co.uk!demon!not-for-mail From: Jan Larcombe <jan.larcombe@betaweb.demon.co.uk> Newsgroups: gnu.gdb.bug Subject: Use of gdb with RedBoot and eCos from Windows host Date: Wed, 20 Oct 2004 22:04:39 +0100 Lines: 53 Sender: News Admin <news@news.demon.co.uk> Approved: bug-gdb@gnu.org Message-ID: <mailman.4422.1098371672.2017.bug-gdb@gnu.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.Stanford.EDU 1098371210 13044 199.232.76.165 (21 Oct 2004 15:06:50 GMT) X-Complaints-To: news@news.stanford.edu To: gnu-gdb-bug@moderators.isc.org Envelope-to: bug-gdb@gnu.org X-Newsreader: Forte Free Agent 2.0/32.652 X-Mailman-Approved-At: Thu, 21 Oct 2004 11:14:28 -0400 X-BeenThere: bug-gdb@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GDB, the GNU debugger" <bug-gdb.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>, <mailto:bug-gdb-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/bug-gdb> List-Post: <mailto:bug-gdb@gnu.org> List-Help: <mailto:bug-gdb-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/bug-gdb>, <mailto:bug-gdb-request@gnu.org?subject=subscribe>