public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdb for target mn10300 not working
@ 2000-07-27  1:01 Dany Ravikovitch
  2000-07-27  2:07 ` Andrew Cagney
  2000-07-28 18:10 ` Jonathan Larmour
  0 siblings, 2 replies; 3+ messages in thread
From: Dany Ravikovitch @ 2000-07-27  1:01 UTC (permalink / raw)
  To: gdb

hello mainteiner.
i have trouble to build gdb for mn10300 target on winnt cygnus host.
the sources version is 5.0
the config command was :

mkdir -p //e/tmp/build/gdb_db
cd //etmp/build/gdb_db
//e/src/gdb/gdb-5.0/configure --target=mn10300-elf \
    --host=i386-cygwin32 \
    --prefix=//e/tools \
    --exec-prefix=/cygnus/cygwin-b20/h-i586-pc-cygwin \
    -v 2>&1 | tee configure.out

the make command was :

make -w all install 2>&1 | tee make.out

it seems that only 'libmmalloc.a' was generated and installed.
please write me directions how to install gcc .

2. the file mn10300-elf-gdb.exe was generated when i installed insight (
other installation ).
    i dont know how to run insight
    i tried to run mn10300-elf-gdb on precompiled tests and got
Segmentation fault.
    what is the problem ?

the invocation : mn10300-elf-gdb.exe -nw thread_gdb
the log:
------------------------------------------------------------------------------

GNU gdb 5.0
Copyright 2000 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=i386-cygwin32
--target=mn10300-elf"...
(gdb) msim
Undefined command: "msim".  Try "help".
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .rom_vectors, size 0xc0 lma 0x40000000
Loading section .text, size 0x2ffa lma 0x400000c0
Loading section .rodata, size 0x432 lma 0x400030ba
Loading section .data, size 0x18c lma 0x400034ec
Start address 0x40000000
Transfer rate: 111552 bits in <1 sec.
(gdb) run
Starting program: /D/Program Files/Cygnus
Solutions/eCos_121/prebuilt/v1_2_1/mn1
0300-stdeval1-rom/tests/kernel/thread_gdb.exe
mn10300-core: 2 byte write to unmapped address 0x32000020 at 0x400000c3
mn10300-core: 4 byte write to unmapped address 0xfffffffc at 0x400000c3
ERROR: recursion in program_interrupt during software exception
dispatch.
Program received signal SIGSEGV, Segmentation fault.
0x400000c3 in start ()
(gdb)

------------------------------------------------------------------------------

thanks , Dany


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdb for target mn10300 not working
  2000-07-27  1:01 gdb for target mn10300 not working Dany Ravikovitch
@ 2000-07-27  2:07 ` Andrew Cagney
  2000-07-28 18:10 ` Jonathan Larmour
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2000-07-27  2:07 UTC (permalink / raw)
  To: Dany Ravikovitch; +Cc: gdb

Dany Ravikovitch wrote:

> GNU gdb 5.0
> Copyright 2000 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=i386-cygwin32
> --target=mn10300-elf"...
> (gdb) msim
> Undefined command: "msim".  Try "help".
> (gdb) target sim
> Connected to the simulator.

Try:

(gdb) target sim --trace

also try:

(gdb) target sim --board=stdeval1

I'm not sure where your program comes from but it may assume that the
system is emulating a generic hardware platform.

> (gdb) load
> Loading section .rom_vectors, size 0xc0 lma 0x40000000
> Loading section .text, size 0x2ffa lma 0x400000c0
> Loading section .rodata, size 0x432 lma 0x400030ba
> Loading section .data, size 0x18c lma 0x400034ec
> Start address 0x40000000
> Transfer rate: 111552 bits in <1 sec.
> (gdb) run
> Starting program: /D/Program Files/Cygnus
> Solutions/eCos_121/prebuilt/v1_2_1/mn1
> 0300-stdeval1-rom/tests/kernel/thread_gdb.exe
> mn10300-core: 2 byte write to unmapped address 0x32000020 at 0x400000c3
> mn10300-core: 4 byte write to unmapped address 0xfffffffc at 0x400000c3
> ERROR: recursion in program_interrupt during software exception
> dispatch.
> Program received signal SIGSEGV, Segmentation fault.
> 0x400000c3 in start ()
> (gdb)

Set a breakpoint at _start:

	(gdb) break *_start

and then stepi from there.    I think it is doing something illegal,
generating a trap and then the trap handler is traping in turn.

	Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gdb for target mn10300 not working
  2000-07-27  1:01 gdb for target mn10300 not working Dany Ravikovitch
  2000-07-27  2:07 ` Andrew Cagney
@ 2000-07-28 18:10 ` Jonathan Larmour
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Larmour @ 2000-07-28 18:10 UTC (permalink / raw)
  To: dany; +Cc: gdb

In article < 397FFB91.252B82C6@ilogix.co.il > you write:
>This GDB was configured as "--host=i386-cygwin32
>--target=mn10300-elf"...
>(gdb) msim
>Undefined command: "msim".  Try "help".
>(gdb) target sim
>Connected to the simulator.

I recognise this. You have to use:

target sim --board=stdeval1 --memory-region 0x34004000,0x8

Hope this helps,

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-28 18:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-27  1:01 gdb for target mn10300 not working Dany Ravikovitch
2000-07-27  2:07 ` Andrew Cagney
2000-07-28 18:10 ` Jonathan Larmour

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).