From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18053 invoked by alias); 18 Dec 2012 08:45:50 -0000 Received: (qmail 17986 invoked by uid 22791); 18 Dec 2012 08:45:49 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,TW_XC,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.15.19) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Dec 2012 08:45:42 +0000 Received: from mailout-de.gmx.net ([10.1.76.40]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MRQbm-1TeJEy2eBk-00Scog for ; Tue, 18 Dec 2012 09:45:40 +0100 Received: (qmail 22185 invoked by uid 0); 18 Dec 2012 08:45:40 -0000 Received: from 217.31.17.2 by www046.gmx.net with HTTP; Tue, 18 Dec 2012 09:45:39 +0100 (CET) Content-Type: text/plain; charset="utf-8" Date: Tue, 18 Dec 2012 08:45:00 -0000 From: "Bernd Schuster" In-Reply-To: <20121218083918.295690@gmx.net> Message-ID: <20121218084539.182240@gmx.net> MIME-Version: 1.0 References: <20121217172456.214150@gmx.net> <50CF6BE2.1020305@dallaway.org.uk> <20121217210437.182230@gmx.net> <20121218083918.295690@gmx.net> To: ecos-discuss@ecos.sourceware.org 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/msg00033.txt.bz2 oh I just forgot to show us the output using the file command in GDB: (gdb) file obj/web.o Reading symbols from /../build/obj/web.o...done. (gdb) break web_init Breakpoint 1 at 0x3490: file ../../.../web.c, line 231. (gdb) run Starting program: /.../build/obj/web.o Don't know how to run. Try "help target". (gdb) I also get this message, if I don`t use any breakpoint conditions. So maybe the file command is correct to set breakpoints but I need some additional information to get the target running -------- Original-Nachricht -------- > Datum: Tue, 18 Dec 2012 09:39:18 +0100 > Von: "Bernd Schuster" > An: "Bernd Schuster" > CC: ecos-discuss@ecos.sourceware.org > Betreff: Re: [ECOS] Re: GDB stub support > Hi, > > ok I got the first step working. I`m able to download the .elf file by the > serial connection to my target. > > But could you tell me how I could set some breakpoints at function > "web_init" or at line 233 (file web.c). > > xxx@linux-xxxx:~/.../build> mipsisa32-elf-gdb > GNU gdb 6.8 > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > > 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-pc-linux-gnu > --target=mipsisa32-elf". > (gdb) set remotebaud 115200 > (gdb) target remote /dev/ttyS0 > Remote debugging using /dev/ttyS0 > 0x4cc40080 in ?? () > (gdb) load obj/myprogramm.elf > Loading section .rom_vectors, size 0xcc lma 0x80040000 > Loading section .rel.dyn, size 0x6c0 lma 0x800400cc > Loading section .text, size 0x313eac lma 0x8004078c > Loading section .rodata, size 0xab630 lma 0x80354638 > Loading section .data, size 0xf3828 lma 0x803ffc68 > Loading section .ctors, size 0x68 lma 0x804f3490 > Loading section .dtors, size 0x44 lma 0x804f34f8 > Loading section .devtab, size 0x792c lma 0x804f353c > Start address 0x800400bc, load size 4959848 > Transfer rate: 10 KB/sec, 666 bytes/write. > (gdb) break obj/web > No symbol table is loaded. Use the "file" command. > (gdb) break obj/web.o > Can't find member of namespace, class, struct, or union named "obj/web.o" > Hint: try 'obj/web.o or 'obj/web.o > (Note leading single quote.) > (gdb) > > I also tried: > (gdb) break web_init > No symbol table is loaded. Use the "file" command. > > Using the file command didn`t solve the problem, because it seems to me > that GDB didn`t recognize "myprogramm.elf" any more - only the specific file. > > best regards > Bernd > > > > -- > 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