* Problem with -stack-list-frames
@ 2009-02-11 17:55 Dmitry Smirnov
2009-02-11 18:57 ` Vladimir Prus
0 siblings, 1 reply; 5+ messages in thread
From: Dmitry Smirnov @ 2009-02-11 17:55 UTC (permalink / raw)
To: gdb
Hi,
I was using gdb-6.8.50.20080630 for a while in the following configuration:
- Eclipse CDT as a front end,
- gdb-6.8.50.20080630 as ARM debugger connected to skyeye simulator
- skyeye simulator as a remote target (server)
It was working fine till I had tried to swicth to another (modern) way in CDT debug configuration (called DSF).
With the guys that support this new feature, we found that gdb does not respond correctly to -stack-list-frames command.
Here is the output, I got from gdb (plus few more commands):
info threads
* 1 Thread <main> tmc_init () at qct\services\tmc\tmc.c:11541
warning: RMT ERROR : failed to get remote thread list.
-stack-list-frames
bt
#0 tmc_init () at qct\services\tmc\tmc.c:11541
#1 0x00c1d4c6 in tmc_task (ignored=<value optimized out>)
at qct\services\tmc\tmc.c:12350
#2 0x00eee43e in rex_thread_init (entrypoint=0xc1d4a9 <tmc_task+1>)
at qct\services\rexl4\rexl4.c:174
#3 0x00f3e0c8 in __thread_stub ()
#4 0x00f3e0c8 in __thread_stub ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
As you can see, info threads and bt works as expected.
Don't you know what could be the reason for such a silence of -stack-list-frames?
Could you please tell where can start debugging GDB to catch the root cause?
BTW, in case you would find it usefull to read the CDT maillist topic, see http://dev.eclipse.org/mhonarc/lists/cdt-
dev/msg14275.html
Dmitry
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem with -stack-list-frames
2009-02-11 17:55 Problem with -stack-list-frames Dmitry Smirnov
@ 2009-02-11 18:57 ` Vladimir Prus
2009-02-11 19:03 ` Daniel Jacobowitz
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Vladimir Prus @ 2009-02-11 18:57 UTC (permalink / raw)
To: gdb
Dmitry Smirnov wrote:
> Hi,
>
> I was using gdb-6.8.50.20080630 for a while in the following configuration:
> - Eclipse CDT as a front end,
> - gdb-6.8.50.20080630 as ARM debugger connected to skyeye simulator
> - skyeye simulator as a remote target (server)
>
> It was working fine till I had tried to swicth to another (modern) way in CDT debug configuration
> (called DSF).
>
> With the guys that support this new feature, we found that gdb does not respond correctly to
> -stack-list-frames command.
>
> Here is the output, I got from gdb (plus few more commands):
>
> info threads
> * 1 Thread <main> tmc_init () at qct\services\tmc\tmc.c:11541
> warning: RMT ERROR : failed to get remote thread list.
> -stack-list-frames
>
> bt
> #0 tmc_init () at qct\services\tmc\tmc.c:11541
> #1 0x00c1d4c6 in tmc_task (ignored=<value optimized out>)
> at qct\services\tmc\tmc.c:12350
> #2 0x00eee43e in rex_thread_init (entrypoint=0xc1d4a9 <tmc_task+1>)
> at qct\services\rexl4\rexl4.c:174
> #3 0x00f3e0c8 in __thread_stub ()
> #4 0x00f3e0c8 in __thread_stub ()
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
>
> As you can see, info threads and bt works as expected.
Please enable the verbose mode in the console -- there's a button in the
toolbar. This will tell exactly what the error is -- and I'm 51% sure
the problem is that you are trying to send MI command, and DSF thinks it's
CLI command, and sends something not right.
And this might be unrelated to whatever problem you are having in the first
place. CDI debuggers have a way to enable verbose console mode in the
launch configuration. Please do that in DSF and then see if something
is wrong with any GDB response.
- Volodya
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem with -stack-list-frames
2009-02-11 18:57 ` Vladimir Prus
@ 2009-02-11 19:03 ` Daniel Jacobowitz
2009-02-11 19:09 ` Marc Khouzam
[not found] ` <6D19CA8D71C89C43A057926FE0D4ADAA067F0360@ecamlmw720.eamcs.ericsson.se>
2 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2009-02-11 19:03 UTC (permalink / raw)
To: Vladimir Prus; +Cc: gdb
On Wed, Feb 11, 2009 at 09:57:15PM +0300, Vladimir Prus wrote:
> > -stack-list-frames
> >
> > bt
> > #0 tmc_init () at qct\services\tmc\tmc.c:11541
> > #1 0x00c1d4c6 in tmc_task (ignored=<value optimized out>)
> > at qct\services\tmc\tmc.c:12350
> > #2 0x00eee43e in rex_thread_init (entrypoint=0xc1d4a9 <tmc_task+1>)
> > at qct\services\rexl4\rexl4.c:174
> > #3 0x00f3e0c8 in __thread_stub ()
> > #4 0x00f3e0c8 in __thread_stub ()
> > Backtrace stopped: previous frame identical to this frame (corrupt stack?)
> >
> > As you can see, info threads and bt works as expected.
>
> Please enable the verbose mode in the console -- there's a button in the
> toolbar. This will tell exactly what the error is -- and I'm 51% sure
> the problem is that you are trying to send MI command, and DSF thinks it's
> CLI command, and sends something not right.
Another possible problem is PR 9500, which I analyzed but never
fixed...
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Re: Problem with -stack-list-frames
2009-02-11 18:57 ` Vladimir Prus
2009-02-11 19:03 ` Daniel Jacobowitz
@ 2009-02-11 19:09 ` Marc Khouzam
[not found] ` <6D19CA8D71C89C43A057926FE0D4ADAA067F0360@ecamlmw720.eamcs.ericsson.se>
2 siblings, 0 replies; 5+ messages in thread
From: Marc Khouzam @ 2009-02-11 19:09 UTC (permalink / raw)
To: Vladimir Prus, gdb
> From: Vladimir Prus
> Sent: Wednesday, February 11, 2009 1:57 PM
> To: gdb@sources.redhat.com
> Subject: Re: Problem with -stack-list-frames
>
> Please enable the verbose mode in the console -- there's a
> button in the
> toolbar. This will tell exactly what the error is -- and I'm 51% sure
> the problem is that you are trying to send MI command, and
> DSF thinks it's
> CLI command, and sends something not right.
>
> And this might be unrelated to whatever problem you are
> having in the first
> place. CDI debuggers have a way to enable verbose console mode in the
> launch configuration. Please do that in DSF and then see if something
> is wrong with any GDB response.
Yeah... I didn't get to implementing the verbose console yet :-(
But I've been feeling the pressure for it so I've bumped it up on my
todo list.
You can still get traces by launching eclipse with
-debug ~/dsf.debug.options
where dsf.debug.options contains
org.eclipse.dd.mi/debug = true
org.eclipse.cdt.dsf.gdb/debug = true
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Re: Problem with -stack-list-frames
[not found] ` <6D19CA8D71C89C43A057926FE0D4ADAA067F0360@ecamlmw720.eamcs.ericsson.se>
@ 2009-02-11 19:11 ` Marc Khouzam
0 siblings, 0 replies; 5+ messages in thread
From: Marc Khouzam @ 2009-02-11 19:11 UTC (permalink / raw)
To: Marc Khouzam, Vladimir Prus, gdb
I just realized something, please see below.
> -----Original Message-----
> From: Marc Khouzam
> Sent: Wednesday, February 11, 2009 2:09 PM
> To: 'Vladimir Prus'; 'gdb@sources.redhat.com'
> Subject: RE: Re: Problem with -stack-list-frames
>
>
> > From: Vladimir Prus
> > Sent: Wednesday, February 11, 2009 1:57 PM
> > To: gdb@sources.redhat.com
> > Subject: Re: Problem with -stack-list-frames
> >
> > Please enable the verbose mode in the console -- there's a
> > button in the
> > toolbar. This will tell exactly what the error is -- and
> I'm 51% sure
> > the problem is that you are trying to send MI command, and
> > DSF thinks it's
> > CLI command, and sends something not right.
DSF sends it correctly but the output is not shown in the console
that is why it seems blank. You need the traces to see the
output. See previous mail (or below) to turn them on.
I'm gonna have to have DSF-GDB print the output of console
commands to the console....
> >
> > And this might be unrelated to whatever problem you are
> > having in the first
> > place. CDI debuggers have a way to enable verbose console
> mode in the
> > launch configuration. Please do that in DSF and then see if
> something
> > is wrong with any GDB response.
>
> Yeah... I didn't get to implementing the verbose console yet :-(
> But I've been feeling the pressure for it so I've bumped it up on my
> todo list.
>
> You can still get traces by launching eclipse with
> -debug ~/dsf.debug.options
>
> where dsf.debug.options contains
>
> org.eclipse.dd.mi/debug = true
> org.eclipse.cdt.dsf.gdb/debug = true
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-11 19:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11 17:55 Problem with -stack-list-frames Dmitry Smirnov
2009-02-11 18:57 ` Vladimir Prus
2009-02-11 19:03 ` Daniel Jacobowitz
2009-02-11 19:09 ` Marc Khouzam
[not found] ` <6D19CA8D71C89C43A057926FE0D4ADAA067F0360@ecamlmw720.eamcs.ericsson.se>
2009-02-11 19:11 ` Marc Khouzam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox