This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: GDB stub support


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" <schuster_bernd@gmx.net>
> An: "Bernd Schuster" <schuster_bernd@gmx.net>
> 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
> <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-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<TAB> or 'obj/web.o<ESC-?>
> (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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]