This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: arm-elf and mips-deb-linux gdb


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



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