Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* at91sam7 GDB : strange warning
@ 2008-06-02  6:00 Roman Mashak
  2008-06-02 12:17 ` Daniel Jacobowitz
  2008-06-02 18:23 ` Michael Snyder
  0 siblings, 2 replies; 4+ messages in thread
From: Roman Mashak @ 2008-06-02  6:00 UTC (permalink / raw)
  To: gdb

I'm working on a firmware built for AT91SAM7 linked to run from SRAM.
When loading the image in GDB, I get this warning:

_startup () at Cstartup.S:62
62                      B           InitReset           /* 0x00 Reset handler */
Current language:  auto; currently asm
Expected an decimal digit (0-9)
...
<followed by the sane messages from .gdbinit commands>

Application is being debugged and run perfectly, without significant
issues. I only wonder the root of that warning. I googled for it, but
with no luck. Hope someone here will give a hint.

Thanks.

-- 
Roman


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

* Re: at91sam7 GDB : strange warning
  2008-06-02  6:00 at91sam7 GDB : strange warning Roman Mashak
@ 2008-06-02 12:17 ` Daniel Jacobowitz
  2008-06-03  0:08   ` Roman Mashak
  2008-06-02 18:23 ` Michael Snyder
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2008-06-02 12:17 UTC (permalink / raw)
  To: Roman Mashak; +Cc: gdb

On Sun, Jun 01, 2008 at 10:59:41PM -0700, Roman Mashak wrote:
> I'm working on a firmware built for AT91SAM7 linked to run from SRAM.
> When loading the image in GDB, I get this warning:
> 
> _startup () at Cstartup.S:62
> 62                      B           InitReset           /* 0x00 Reset handler */
> Current language:  auto; currently asm
> Expected an decimal digit (0-9)
> ...
> <followed by the sane messages from .gdbinit commands>
> 
> Application is being debugged and run perfectly, without significant
> issues. I only wonder the root of that warning. I googled for it, but
> with no luck. Hope someone here will give a hint.

It is probably produced by some command in your .gdbinit file.  You
should figure out which one; then it will probably be clear what the
problem is.

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: at91sam7 GDB : strange warning
  2008-06-02  6:00 at91sam7 GDB : strange warning Roman Mashak
  2008-06-02 12:17 ` Daniel Jacobowitz
@ 2008-06-02 18:23 ` Michael Snyder
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Snyder @ 2008-06-02 18:23 UTC (permalink / raw)
  To: Roman Mashak; +Cc: gdb

On Sun, 2008-06-01 at 22:59 -0700, Roman Mashak wrote:
> I'm working on a firmware built for AT91SAM7 linked to run from SRAM.
> When loading the image in GDB, I get this warning:
> 
> _startup () at Cstartup.S:62
> 62                      B           InitReset           /* 0x00 Reset handler */
> Current language:  auto; currently asm
> Expected an decimal digit (0-9)

Curious -- I did some grepping, couldn't find the 
origin of that message in gdb sources.




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

* Re: at91sam7 GDB : strange warning
  2008-06-02 12:17 ` Daniel Jacobowitz
@ 2008-06-03  0:08   ` Roman Mashak
  0 siblings, 0 replies; 4+ messages in thread
From: Roman Mashak @ 2008-06-03  0:08 UTC (permalink / raw)
  To: Roman Mashak, gdb

You were right, the mesage was caused by a mistyped line in .gdbinit.

I have some misunderstanding on how images are loaded in GDB. Say the
simplest .gdbinit looks like this:

target remote localhost:2331
load

and gdb is run:
#gdb my_image.elf

This results in error:

.gdbinit:2: Error in sourced command file:
No executable file specified.
Use the "file" or "exec-file" command.
(gdb)

If remove 'load' line from .gdbinit, then no problem to load an image
from GDB console and no need to specify image name, provided that it
was passed to gdb as parameter.

Is it expected behavior of GDB? Is there any way to have GDB to load
images from .gdbinit without specifying image names, as they may
differ from case to case.

2008/6/2 Daniel Jacobowitz <drow@false.org>:
>> Application is being debugged and run perfectly, without significant
>> issues. I only wonder the root of that warning. I googled for it, but
>> with no luck. Hope someone here will give a hint.
>
> It is probably produced by some command in your .gdbinit file.  You
> should figure out which one; then it will probably be clear what the
> problem is.
>

-- 
Roman


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

end of thread, other threads:[~2008-06-03  0:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-02  6:00 at91sam7 GDB : strange warning Roman Mashak
2008-06-02 12:17 ` Daniel Jacobowitz
2008-06-03  0:08   ` Roman Mashak
2008-06-02 18:23 ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox