public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Re: remote target debug problem running
@ 2005-08-12 14:42 Thomas Motz
  2005-08-12 14:56 ` Dave Korn
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Motz @ 2005-08-12 14:42 UTC (permalink / raw)
  To: insight

I had the same problem, when I try to start insight over .gdbinit the
"File->Target Settings" target entry is blank.

Which command for .gdbinit does the equivalent of the Target-Settings Menue
in Insight?

I can set the Baudrate and the ComPort but not the target.

A workaround might be the settings in the preference or the history from
Insight.
But every time when  I start insight the target field is empty.

>It prints the error for one of two reasons: you haven't selected a
>target to debug (File->Target Settings..." or it isn't setting the
>target based on the last run (which is a bug).
>

Does anybody know a reason why insight looses the history?

(Insight 6.3, cygwin, Win2K)

Regards
Thomas








>On Wed, 2005-05-11 at 16:02 -0400, Nathaniel Mercure wrote:
>
>> .../gdb/insight --command=~/bin/mips-gdb.ini
>>     cat ~/bin/mips-gdb.ini
>>         set remoteti 10
>>         set heur 0
>>         set remote memory-write-packet-size fixed
>>         set remote memory-write-packet-size 4200
>>         set download-write-size 3584
>>
>>         target remote localhost:2345
>>         load eCos.elf
>>
>> The problem here is that I CAN'T browses any source file.
>
>That's because you've only downloaded the code to your target board. You
>haven't given GDB/Insight an executable to work on. I presume that
>"eCos.elf" was generated by a compiler. I suggest you change your
>startup script to do:
>
>file eCos.elf
>target remote localhost:2345
>load
>
>instead of the last two lines you have. The "file" command is the
>equivalent of Insight's "open": it causes GDB to read in debugging
>information for your executable.
>
>> When I use open/run to select the elf file and run it.  The board
connects
>> to the
>> remote server but doesn't download the code and gives the following
message.
>>
>>     "You cannot do that without a process to debug"
>>     ...
>>
>> In this case I CAN browses the source code ?!
>
>That's because the "open" command does the equivalent of GDB's "file"
>command (the step you were missing before).
>
>It prints the error for one of two reasons: you haven't selected a
>target to debug (File->Target Settings..." or it isn't setting the
>target based on the last run (which is a bug).
>
>Keith







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

* RE: remote target debug problem running
  2005-08-12 14:42 remote target debug problem running Thomas Motz
@ 2005-08-12 14:56 ` Dave Korn
  0 siblings, 0 replies; 4+ messages in thread
From: Dave Korn @ 2005-08-12 14:56 UTC (permalink / raw)
  To: 'Thomas Motz', insight

----Original Message----
>From: Thomas Motz
>Sent: 12 August 2005 15:41

> I had the same problem, when I try to start insight over .gdbinit the
> "File->Target Settings" target entry is blank.
> 
> Which command for .gdbinit does the equivalent of the Target-Settings
> Menue in Insight?
> 
> I can set the Baudrate and the ComPort but not the target.

  IIUYC, you want to use the "target remote <device>" command, e.g. "target
remote /dev/ttyS0"

  I don't know why the settings are getting lost.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....

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

* Re: remote target debug problem running
  2005-05-11 20:03 Nathaniel Mercure
@ 2005-05-11 20:13 ` Keith Seitz
  0 siblings, 0 replies; 4+ messages in thread
From: Keith Seitz @ 2005-05-11 20:13 UTC (permalink / raw)
  To: Nathaniel Mercure; +Cc: 'insight@sources.redhat.com'

On Wed, 2005-05-11 at 16:02 -0400, Nathaniel Mercure wrote:

> .../gdb/insight --command=~/bin/mips-gdb.ini
>     cat ~/bin/mips-gdb.ini
>         set remoteti 10
>         set heur 0
>         set remote memory-write-packet-size fixed
>         set remote memory-write-packet-size 4200
>         set download-write-size 3584
> 
>         target remote localhost:2345
>         load eCos.elf
> 
> The problem here is that I CAN'T browses any source file.

That's because you've only downloaded the code to your target board. You
haven't given GDB/Insight an executable to work on. I presume that
"eCos.elf" was generated by a compiler. I suggest you change your
startup script to do:

file eCos.elf
target remote localhost:2345
load

instead of the last two lines you have. The "file" command is the
equivalent of Insight's "open": it causes GDB to read in debugging
information for your executable.

> When I use open/run to select the elf file and run it.  The board connects
> to the 
> remote server but doesn't download the code and gives the following message.
> 
>     "You cannot do that without a process to debug"
>     ...
> 
> In this case I CAN browses the source code ?!

That's because the "open" command does the equivalent of GDB's "file"
command (the step you were missing before).

It prints the error for one of two reasons: you haven't selected a
target to debug (File->Target Settings..." or it isn't setting the
target based on the last run (which is a bug).

Keith

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

* remote target debug problem running
@ 2005-05-11 20:03 Nathaniel Mercure
  2005-05-11 20:13 ` Keith Seitz
  0 siblings, 1 reply; 4+ messages in thread
From: Nathaniel Mercure @ 2005-05-11 20:03 UTC (permalink / raw)
  To: 'insight@sources.redhat.com'

***********************
Your mail has been scanned by InterScan VirusWall.
***********-***********


Hello 

I'm new to Insight and I'm trying to use it to debug a remote Mips core. 
Using an EPI JTAG probe.

When I use the following command to start Insight the code is downloaded to
the target board no problem and I can use the continue/stop icons to start
and stop the board.

.../gdb/insight --command=~/bin/mips-gdb.ini
    cat ~/bin/mips-gdb.ini
        set remoteti 10
        set heur 0
        set remote memory-write-packet-size fixed
        set remote memory-write-packet-size 4200
        set download-write-size 3584

        target remote localhost:2345
        load eCos.elf

The problem here is that I CAN'T browses any source file.


When I use open/run to select the elf file and run it.  The board connects
to the 
remote server but doesn't download the code and gives the following message.

    "You cannot do that without a process to debug"
    ...

In this case I CAN browses the source code ?!

Any Body as an Idea on how I could browse the code and set break points at
the same time :|

Nathaniel Mercure
Electroline Equipment
Embedded Software guy


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

end of thread, other threads:[~2005-08-12 14:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-12 14:42 remote target debug problem running Thomas Motz
2005-08-12 14:56 ` Dave Korn
  -- strict thread matches above, loose matches on Subject: below --
2005-05-11 20:03 Nathaniel Mercure
2005-05-11 20:13 ` Keith Seitz

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