From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2710 invoked by alias); 18 Dec 2012 12:09:55 -0000 Received: (qmail 2688 invoked by uid 22791); 18 Dec 2012 12:09:54 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.15.18) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Dec 2012 12:09:43 +0000 Received: from mailout-de.gmx.net ([10.1.76.28]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0M84Qp-1Sq43D0xST-00vh2J for ; Tue, 18 Dec 2012 13:09:42 +0100 Received: (qmail 4586 invoked by uid 0); 18 Dec 2012 12:09:42 -0000 Received: from 217.31.17.2 by www030.gmx.net with HTTP; Tue, 18 Dec 2012 13:09:39 +0100 (CET) Cc: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset="utf-8" Date: Tue, 18 Dec 2012 12:09:00 -0000 From: "Bernd Schuster" In-Reply-To: <50D0453D.4090409@dallaway.org.uk> Message-ID: <20121218120939.21370@gmx.net> MIME-Version: 1.0 References: <20121217172456.214150@gmx.net> <50CF6BE2.1020305@dallaway.org.uk> <20121217210437.182230@gmx.net> <50D0453D.4090409@dallaway.org.uk> To: John Dallaway Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: GDB stub support X-SW-Source: 2012-12/txt/msg00036.txt.bz2 here`s "where" output: (gdb) where #0 0x8000c44c in ?? () #1 0x800400bc in debug_vector () at /home/.../build/../eCos/packages/hal/mips/arch/current/src/vectors.S:131 #2 0x80000ab8 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) best regards Bernd -------- Original-Nachricht -------- > Datum: Tue, 18 Dec 2012 10:28:13 +0000 > Von: John Dallaway > An: schuster_bernd@gmx.net > CC: eCos Discussion > Betreff: [ECOS] Re: GDB stub support > Bernd > > On 17/12/12 21:04, Bernd Schuster wrote: > > >> It is perfectly feasible to use a single channel for both debug and > >> diagnostics as you suggest. You should configure eCos (for your > >> application build) with CYG_HAL_STARTUP == "RAM" and with > >> CYGSEM_HAL_USE_ROM_MONITOR enabled. You should then find that (by > >> default) diagnostic/trace messages from your application are routed via > >> the GDB stub and appear within your GDB session on the host. > > > > That means, it is much more comfortable to download only the redboot > > bootloader to my flash memory and download the application (eCos O/S > > together with my own software app) by GDB instead of having already > > everything installed on my MIPS board? I asked this because it will > > take some time to download the application by serial port instead of > > being able to download a new file by ethernet. > > If you have ethernet support built into RedBoot you should also be able > to connect to the GDB stub via TCP for faster download. The default port > number is 9000, so the GDB command would be: > > target remote :9000 > > > I already found the specific ecm file where > > cdl_component CYG_HAL_STARTUP { > > user_value ROMRAM > > }; > > I have to specify RAM instead of ROMRAM. It seams that > > CYGSEM_HAL_USE_ROM_MONITOR is already enabled if I use RAM instead of > > ROMRAM. > > That makes sense. > > >> For avoidance of doubt, you can use the GDB "load" command to download > >> your application to RAM when debugging an application configured for > RAM > >> startup. It is not necessary to load it at the "RedBoot>" prompt. > > > > Do I have to specify the correct RAM-addr where the application has to > be > > downloaded? Because the load command consists only of "load filename". > > If you specify the ELF executable filename when you launch GDB then > symbols will be loaded automatically. You can just use "load" with no > filename and "continue" to start execution. The section records in the > elf file will indicate where each section must be loaded. You do not > need to specify the addresses manually. > > bash$ mipsisa32-elf-gdb myProgram.elf > (gdb) target remote > (gdb) load > (gdb) break web_init > (gdb) continue > > I hope this helps... > > John Dallaway > eCos maintainer > http://www.dallaway.org.uk/john > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss