From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23646 invoked by alias); 18 Dec 2012 08:39:37 -0000 Received: (qmail 23514 invoked by uid 22791); 18 Dec 2012 08:39:35 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RDNS_NONE,TW_XC X-Spam-Check-By: sourceware.org Received: from Unknown (HELO mout.gmx.net) (212.227.15.18) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 18 Dec 2012 08:39:28 +0000 Received: from mailout-de.gmx.net ([10.1.76.41]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0LygpN-1T0bCY1EBT-0165Q0 for ; Tue, 18 Dec 2012 09:39:21 +0100 Received: (qmail 31647 invoked by uid 0); 18 Dec 2012 08:39:21 -0000 Received: from 217.31.17.2 by www021.gmx.net with HTTP; Tue, 18 Dec 2012 09:39:18 +0100 (CET) Cc: ecos-discuss@ecos.sourceware.org Content-Type: text/plain; charset="utf-8" Date: Tue, 18 Dec 2012 08:39:00 -0000 From: "Bernd Schuster" In-Reply-To: <20121217210437.182230@gmx.net> Message-ID: <20121218083918.295690@gmx.net> MIME-Version: 1.0 References: <20121217172456.214150@gmx.net> <50CF6BE2.1020305@dallaway.org.uk> <20121217210437.182230@gmx.net> To: "Bernd Schuster" 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/msg00032.txt.bz2 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