public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Bernd Schuster" <schuster_bernd@gmx.net>
To: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Re: GDB stub support
Date: Tue, 18 Dec 2012 08:45:00 -0000	[thread overview]
Message-ID: <20121218084539.182240@gmx.net> (raw)
In-Reply-To: <20121218083918.295690@gmx.net>

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

  reply	other threads:[~2012-12-18  8:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-17 17:25 [ECOS] " Bernd Schuster
2012-12-17 19:01 ` [ECOS] " John Dallaway
2012-12-17 21:04   ` Bernd Schuster
2012-12-18  8:39     ` Bernd Schuster
2012-12-18  8:45       ` Bernd Schuster [this message]
2012-12-18 10:28     ` John Dallaway
2012-12-18 11:56       ` Bernd Schuster
2012-12-18 12:09       ` Bernd Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121218084539.182240@gmx.net \
    --to=schuster_bernd@gmx.net \
    --cc=ecos-discuss@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).