From: Niklaus <niklaus@gmail.com>
To: Niklaus <niklaus@gmail.com>, gdb@sources.redhat.com
Subject: Re: arm-elf and mips-deb-linux gdb
Date: Mon, 26 Jun 2006 13:03:00 -0000 [thread overview]
Message-ID: <85e0e3140606260342m1cb35c83xe1cc0a1873eda427@mail.gmail.com> (raw)
In-Reply-To: <20060624132745.GA26555@nevyn.them.org>
On 6/24/06, Daniel Jacobowitz <drow@false.org> wrote:
> On Sat, Jun 24, 2006 at 05:19:04PM +0600, Niklaus wrote:
> > Hi,
> > i just built a cross compiler with target=arm-elf .Then compiled an
> > program first.c
> > which contained
> >
> > 1 int main()
> > 2 {
> > 3 int i;
> > 4 for(i=0;i<10;i++)
> > 5 ;
> > 6 return i;
> > 8 }
> >
> > now i built gdb with target=arm-elf and ran in simulator mode like
> >
> > target sim
> > load first
> > b 4
> >
> > run
> >
> > it break
> >
> > but when i do
> > b 5
> > it goes into an infinite loop and i have to interrupt it.
>
> The most important thing in a bug report is being specific. Please
> show us a complete log of the GDB session.
>
pro@deb:~/armenv/bin$ ./arm-elf-gdb first.o
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(gdb) target sim
Connected to the simulator.
(gdb) list
1
2 int main()
3 {
4 int i=3;
5 while(i<10){
6 i++;
7 }
8 return i;
9 }
(gdb) b 6
Breakpoint 1 at 0x1c: file first.c, line 6.
(gdb) load first.o
Loading section .text, size 0x40 vma 0x0
Start address 0x0
Transfer rate: 512 bits in <1 sec.
(gdb) run
Starting program: /home/pro/armenv/bin/first.o
after 2 mins or so i interrupt with a Ctrl-C
Program received signal SIGINT, Interrupt.
0xf26ed660 in ?? ()
(gdb)
Sometimes when i ran it sometime back i got " Unhandled v6 thumb
insn: e92d", i am not sure why i got this. But at that time path was
not exported properly.when i export it goes into infinite loop as show
above.
> > The second questions is
> > i built a mips-deb-linux helloworld program with cross gcc-glibc.
> >
> > not under mips-deb-linux-gdb
> >
> > the same program doesn't even load
> > it says vma something
>
> The MIPS simulator can not run Linux binaries.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
next prev parent reply other threads:[~2006-06-26 10:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-24 13:08 Niklaus
2006-06-24 13:30 ` Daniel Jacobowitz
2006-06-26 13:03 ` Niklaus [this message]
2006-06-26 14:55 ` Daniel Jacobowitz
2006-06-26 14:56 ` Niklaus
2006-06-26 15:00 ` Daniel Jacobowitz
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=85e0e3140606260342m1cb35c83xe1cc0a1873eda427@mail.gmail.com \
--to=niklaus@gmail.com \
--cc=gdb@sources.redhat.com \
/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