* Problem starting trace experiment with gdb and TSIM-LEON3
@ 2008-09-13 15:50 J R
2008-09-13 17:07 ` Daniel Jacobowitz
0 siblings, 1 reply; 7+ messages in thread
From: J R @ 2008-09-13 15:50 UTC (permalink / raw)
To: gdb
Hi,
I've tried to use the GDB Tracepoint Feature.
I'm using:
- sparc-rtems-gdb for debugging my program
- tsim-leon3 simulator from Gaisler Research as the remote target
And I'm getting this error message:
"Trace can only be run on remote targets."
A little more explanation of how I do it:
1/ The tsim-leon3 user manual says for the command "hist":
"hist [length]: Enable the instruction trace buffer. The length last executed
instructions will be placed in the trace buffer. A hist command without length
will display the trace buffer. Specifying a zero trace length will disable the
trace buffer."
=> So I understand that tsim-leon3 know how to collect trace data, am I right?
2/ So here's what I run on the 1st terminal (enabling instruction trace buffer
on the remote target):
$./tsim-leon3
This TSIM evaluation version will expire February 1, 2009
TSIM/LEON3 SPARC simulator, version 2.0.10b (evaluation version)
Copyright (C) 2001, Gaisler Research - all rights reserved.
This software may only be used with a valid license.
For latest updates, go to http://www.gaisler.com/
Comments or bug-reports to tsim@gaisler.com
serial port A on stdin/stdout
allocated 4096 K RAM memory, in 1 bank(s)
allocated 16 M SDRAM memory, in 1 bank
allocated 2048 K ROM memory
icache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)
dcache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)
tsim> hist 100
trace history length = 100
tsim> gdb
gdb interface: using port 1234
3/ Here's how I try to start the trace experiment with gdb (connecting to the
remote target, and starting the trace experiment):
$/opt/rtems-4.6/bin/sparc-rtems-gdb rtems-tasks
GNU gdb 6.3
Copyright 2004 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=sparc-rtems"...
(gdb) target extended-remote localhost:1234
Remote debugging using localhost:1234
0x00000000 in ?? ()
(gdb) load
Loading section .text, size 0x1c1f0 lma 0x40000000
Loading section .data, size 0xac0 lma 0x4001c1f0
Start address 0x40000000, load size 117936
Transfer rate: 943488 bits/sec, 278 bytes/write.
(gdb) trace Test_task
Tracepoint 1 at 0x400013a4: file rtems-tasks.c, line 183.
(gdb) actions
Enter actions for tracepoint 1, one per line.
End with a line saying just "end".
> collect time.second
> collect task_index
> collect Task_name[task_index]
> collect &time
> end
(gdb) tstart
Trace can only be run on remote targets.
=> I am already connected to the remote target, so what is the problem then???
Any help would be greatly appreciated.
Thanks,
JR
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem starting trace experiment with gdb and TSIM-LEON3
2008-09-13 15:50 Problem starting trace experiment with gdb and TSIM-LEON3 J R
@ 2008-09-13 17:07 ` Daniel Jacobowitz
2008-09-13 22:05 ` jreiver
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2008-09-13 17:07 UTC (permalink / raw)
To: J R; +Cc: gdb
On Sat, Sep 13, 2008 at 05:49:22PM +0200, J R wrote:
> Hi,
>
> I've tried to use the GDB Tracepoint Feature.
> I'm using:
> - sparc-rtems-gdb for debugging my program
> - tsim-leon3 simulator from Gaisler Research as the remote target
> And I'm getting this error message:
> "Trace can only be run on remote targets."
>
> A little more explanation of how I do it:
>
> 1/ The tsim-leon3 user manual says for the command "hist":
> "hist [length]: Enable the instruction trace buffer. The length last executed
> instructions will be placed in the trace buffer. A hist command without length
> will display the trace buffer. Specifying a zero trace length will disable the
> trace buffer."
> => So I understand that tsim-leon3 know how to collect trace data, am I right?
Maybe, maybe not. You'd have to ask the people you got the simulator
from.
> (gdb) target extended-remote localhost:1234
> (gdb) tstart
> Trace can only be run on remote targets.
This bug was fixed after GDB 6.3; please upgrade.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem starting trace experiment with gdb and TSIM-LEON3
2008-09-13 17:07 ` Daniel Jacobowitz
@ 2008-09-13 22:05 ` jreiver
2008-09-13 22:19 ` Paul Pluzhnikov
2008-09-14 8:47 ` J R
0 siblings, 2 replies; 7+ messages in thread
From: jreiver @ 2008-09-13 22:05 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: J R, gdb
Hi,
In order to upgrade to a higher version of GDB 6.3,
I have upgraded from RCC-1.0.12 (RTEMS 4.6) to RCC-1.1.0 (RTEMS 4.8), which is
using GDB 6.8.
It seemed to get well installed, because I could compile one of the samples
provided with sparc-rtems-gcc.
However, I couldn't execute sparc-rtems-gdb, which gives me this error message:
"sparc-rtems-gdb: error while loading shared libraries: libreadline.so.4: cannot
open shared object file: No such file or directory"
Is that a problem of the installation of RCC-1.1.0 different from RCC-1.0.12?
Or a problem with GDB or else?
Any help would be appreciated.
Thanks.
J R
Quoting Daniel Jacobowitz <drow@false.org>:
> On Sat, Sep 13, 2008 at 05:49:22PM +0200, J R wrote:
> > Hi,
> >
> > I've tried to use the GDB Tracepoint Feature.
> > I'm using:
> > - sparc-rtems-gdb for debugging my program
> > - tsim-leon3 simulator from Gaisler Research as the remote target
> > And I'm getting this error message:
> > "Trace can only be run on remote targets."
> >
> > A little more explanation of how I do it:
> >
> > 1/ The tsim-leon3 user manual says for the command "hist":
> > "hist [length]: Enable the instruction trace buffer. The length last
> executed
> > instructions will be placed in the trace buffer. A hist command without
> length
> > will display the trace buffer. Specifying a zero trace length will disable
> the
> > trace buffer."
> > => So I understand that tsim-leon3 know how to collect trace data, am I
> right?
>
> Maybe, maybe not. You'd have to ask the people you got the simulator
> from.
>
> > (gdb) target extended-remote localhost:1234
>
> > (gdb) tstart
> > Trace can only be run on remote targets.
>
> This bug was fixed after GDB 6.3; please upgrade.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem starting trace experiment with gdb and TSIM-LEON3
2008-09-13 22:05 ` jreiver
@ 2008-09-13 22:19 ` Paul Pluzhnikov
2008-09-14 8:47 ` J R
1 sibling, 0 replies; 7+ messages in thread
From: Paul Pluzhnikov @ 2008-09-13 22:19 UTC (permalink / raw)
To: jreiver; +Cc: Daniel Jacobowitz, gdb
On Sat, Sep 13, 2008 at 3:05 PM, <jreiver@free.fr> wrote:
> However, I couldn't execute sparc-rtems-gdb, which gives me this error message:
>
> "sparc-rtems-gdb: error while loading shared libraries: libreadline.so.4: cannot
> open shared object file: No such file or directory"
>
> Is that a problem of the installation of RCC-1.1.0 different from RCC-1.0.12?
Yes: your sparc-rtems-gdb depends on libreadline.so.4, which isn't installed
on your system. The good news is that you should be able to find libreadline
or build it from source quite easily: try '{yum,apt-get} install libreadline'
as appropriate.
> Or a problem with GDB
No.
Cheers,
--
Paul Pluzhnikov
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Problem starting trace experiment with gdb and TSIM-LEON3
2008-09-13 22:05 ` jreiver
2008-09-13 22:19 ` Paul Pluzhnikov
@ 2008-09-14 8:47 ` J R
2008-09-14 13:30 ` Daniel Jacobowitz
2008-09-15 2:44 ` Michael Snyder
1 sibling, 2 replies; 7+ messages in thread
From: J R @ 2008-09-14 8:47 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: ppluzhnikov, gdb
Hi again,
After upgrading to GDB 6.8 (with RCC-1.1.0 for RTEMS 4.8),
I still get that tricky message from sparc-rtems-gdb:
(gdb) tstart
Target does not support this command.
What's wrong now?
J R
> >
> > > (gdb) target extended-remote localhost:1234
> >
> > > (gdb) tstart
> > > Trace can only be run on remote targets.
> >
> > This bug was fixed after GDB 6.3; please upgrade.
> >
> > --
> > Daniel Jacobowitz
> > CodeSourcery
> >
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problem starting trace experiment with gdb and TSIM-LEON3
2008-09-14 8:47 ` J R
@ 2008-09-14 13:30 ` Daniel Jacobowitz
2008-09-15 2:44 ` Michael Snyder
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Jacobowitz @ 2008-09-14 13:30 UTC (permalink / raw)
To: J R; +Cc: ppluzhnikov, gdb
On Sun, Sep 14, 2008 at 10:47:07AM +0200, J R wrote:
> Hi again,
>
> After upgrading to GDB 6.8 (with RCC-1.1.0 for RTEMS 4.8),
> I still get that tricky message from sparc-rtems-gdb:
> (gdb) tstart
> Target does not support this command.
>
> What's wrong now?
Your simulator does not support GDB tracepoints.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Problem starting trace experiment with gdb and TSIM-LEON3
2008-09-14 8:47 ` J R
2008-09-14 13:30 ` Daniel Jacobowitz
@ 2008-09-15 2:44 ` Michael Snyder
1 sibling, 0 replies; 7+ messages in thread
From: Michael Snyder @ 2008-09-15 2:44 UTC (permalink / raw)
To: J R, Daniel Jacobowitz; +Cc: ppluzhnikov, gdb
Probably what's wrong is that the target does not support tracepoints.
________________________________________
From: gdb-owner@sourceware.org [gdb-owner@sourceware.org] On Behalf Of J R [jreiver@free.fr]
Sent: Sunday, September 14, 2008 1:47 AM
To: Daniel Jacobowitz
Cc: ppluzhnikov@google.com; gdb@sourceware.org
Subject: Re: Problem starting trace experiment with gdb and TSIM-LEON3
Hi again,
After upgrading to GDB 6.8 (with RCC-1.1.0 for RTEMS 4.8),
I still get that tricky message from sparc-rtems-gdb:
(gdb) tstart
Target does not support this command.
What's wrong now?
J R
> >
> > > (gdb) target extended-remote localhost:1234
> >
> > > (gdb) tstart
> > > Trace can only be run on remote targets.
> >
> > This bug was fixed after GDB 6.3; please upgrade.
> >
> > --
> > Daniel Jacobowitz
> > CodeSourcery
> >
>
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-09-15 2:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-13 15:50 Problem starting trace experiment with gdb and TSIM-LEON3 J R
2008-09-13 17:07 ` Daniel Jacobowitz
2008-09-13 22:05 ` jreiver
2008-09-13 22:19 ` Paul Pluzhnikov
2008-09-14 8:47 ` J R
2008-09-14 13:30 ` Daniel Jacobowitz
2008-09-15 2:44 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox