public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] question about using gdb and reboot loading an application
@ 2002-04-10 10:49 Ecos Temp
  2002-04-11 20:37 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Ecos Temp @ 2002-04-10 10:49 UTC (permalink / raw)
  To: 'ecos-discuss@sources.redhat.com'

	All,

	I'm a little confused on loading and debugging a program using GDB.
I do
	the following:

	Remote debugging using COM1
	0xe454 in ?? ()
	(gdb) load
	Loading section .rom_vectors, size 0x40 lma 0x40000
	Loading section .text, size 0x2788c lma 0x40040
	Loading section .rodata, size 0xbda lma 0x678cc
	Loading section .data, size 0xab0 lma 0x684a8
	Start address 0x40040 , load size 167766
	Transfer rate: 27390 bits/sec, 306 bytes/write.
	(gdb)


	Ok once the image is loaded how do you start it executing?  I tried
using c
	for continue and it never outputs?  Also I inserted break points and
they
	never triggered.  so what could I be doing wrong?

	Also, I have used redboot, to load an image into memory for example:

	RedBoot(tm) bootstrap and debug environment [ROMRAM]
	Non-certified release, version UNKNOWN - built 07:52:31, Apr 10 2002

	Platform: SVX (ARM 7TDMI)
	Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

	RAM: 0x00000000-0x00800000, 0x00030768-0x007ed000 available
	FLASH: 0x11000000 - 0x11200000, 39 blocks of 0x00010000 bytes each.
	RedBoot> load -v -h 63.226.84.79 hello.srec
	Entry point: 0x00040040, address range: 0x00040000-0x00068f58
	RedBoot> go 0x40040

	and it just hung.  any clues?


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] question about using gdb and reboot loading an application
  2002-04-10 10:49 [ECOS] question about using gdb and reboot loading an application Ecos Temp
@ 2002-04-11 20:37 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2002-04-11 20:37 UTC (permalink / raw)
  To: Ecos Temp; +Cc: 'ecos-discuss@sources.redhat.com'

Ecos Temp wrote:
> 
>         I'm a little confused on loading and debugging a program using
>         GDB. I do the following:
> 
>         Remote debugging using COM1
>         0xe454 in ?? ()
>         (gdb) load
>         Loading section .rom_vectors, size 0x40 lma 0x40000
>         Loading section .text, size 0x2788c lma 0x40040
>         Loading section .rodata, size 0xbda lma 0x678cc
>         Loading section .data, size 0xab0 lma 0x684a8
>         Start address 0x40040 , load size 167766
>         Transfer rate: 27390 bits/sec, 306 bytes/write.
>         (gdb)
> 
>         Ok once the image is loaded how do you start it executing?  I
> tried using c for continue and it never outputs?  Also I inserted break
> points and they never triggered.  so what could I be doing wrong?

Nothing I can see. Where did you set the breakpoints? Anywhere early in the
startup? e.g. cyg_hal_invoke_constructors?

>        Platform: SVX (ARM 7TDMI)

If someone else did this port (who?) ask them! It certainly wasn't Red Hat.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

end of thread, other threads:[~2002-04-12  3:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-10 10:49 [ECOS] question about using gdb and reboot loading an application Ecos Temp
2002-04-11 20:37 ` 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).