public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] Why I can't set the breakpoint in the C source code in built ecos library?
       [not found] <NMEDLDELHPEFHOMFIJBHIEAMCJAA.rcc@jennic.com>
@ 2002-11-13  2:16 ` Qiang Huang
  2002-11-13  2:48   ` Robert Cragie
  0 siblings, 1 reply; 3+ messages in thread
From: Qiang Huang @ 2002-11-13  2:16 UTC (permalink / raw)
  To: Robert Cragie; +Cc: Ecos-Discuss

Thank you very much Robert. what I meant is: I want to set the breakpoint in
Insight, but when I chose the for example I choose startup.cxx file opened
in Insight and try to set the breakpoint on     cyg_prestart(); of
cyg_start()  function but the Insight even doesn't allow me to do so, while
I can set the breakpoint in the user application in Insight.
BTW if I set the breakpoint at cyg_prestart() prior to launching the Insight
the program will stop at the assembly code rather than the C source code  of
cyg_prestart() . Anything wrong?

-----Original Message-----
From: Robert Cragie [mailto:rcc@jennic.com]
Sent: 13 November 2002 10:05
To: Qiang Huang
Subject: RE: [ECOS] Why I can't set the breakpoint in the C source code in
built ecos library?


You should be able to.

A couple of things worth mentioning:

1) Make sure that you are trying to set a breakpoint in code which is
actually compiled in. There are many #ifdefs in the eCos source, and you may
be trying to set a breakpoint in code which is not compiled in. Try setting
a breakpoint in code where you are 100% sure the code will be compiled in.
2) The optimisation can sometimes confuse setting of breakpoints and single
stepping. Once I had to rebuild the eCos library removing the '-O2'
optimisation as it was so confusing. However, I would only do this as a last
resort.

Try going into the mixed source/assembler view or just assembler view to see
if you can set a breakpoint there.

Robert Cragie, Design Engineer

Direct: +44 (0) 114 281 4512
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT,  UK
http://www.jennic.com  Tel: +44 (0) 114 281 2655   Confidential
_______________________________________________________________
Visit our stand at Electronica, Munich 12-14 November 2002
_______________________________________________________________

> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Qiang Huang
> Sent: 13 November 2002 09:47
> To: Ecos-Discuss
> Subject: [ECOS] Why I can't set the breakpoint in the C source code in
> built ecos library?
>
>
> Hi all:
>    I have built a ecos library with -g switch for the global compiling and
> linking. and I also compliled user app with -g switch. but when I
> try to use
> Insight to download and debug the program. I can view the C source code
> which is in the ecos library, but I can't set any breakpoint in
> those files.
> I can set breakpoint in the user application souce code. Did I
> miss anything
> in order to use the single stepping and breakpoint through the C source
> code? Thanks a lot.
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
>


-- 
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] 3+ messages in thread

* RE: [ECOS] Why I can't set the breakpoint in the C source code in built ecos library?
  2002-11-13  2:16 ` [ECOS] Why I can't set the breakpoint in the C source code in built ecos library? Qiang Huang
@ 2002-11-13  2:48   ` Robert Cragie
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Cragie @ 2002-11-13  2:48 UTC (permalink / raw)
  To: Qiang Huang, ECOS

I don't have any trouble doing this at all (using SID's emulated ARM PID
target and Insight 5.0 talking over localhost TCP connection).

You say 'Insight doesn't allow me to do so'... what do you mean exactly? It
would help if you give a more detailed explanation of what is actually
happening.

I would guess that the path of the repository files is not reachable
somehow.

> BTW if I set the breakpoint at cyg_prestart() prior to launching
> the Insight

I can't see how you can do this.

Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT,  UK
http://www.jennic.com  Tel: +44 (0) 114 281 2655
_______________________________________________________________
Visit our stand at Electronica, Munich 12-14 November 2002
_______________________________________________________________

> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Qiang Huang
> Sent: 13 November 2002 10:14
> To: Robert Cragie
> Cc: Ecos-Discuss
> Subject: RE: [ECOS] Why I can't set the breakpoint in the C source code
> in built ecos library?
>
>
> Thank you very much Robert. what I meant is: I want to set the
> breakpoint in
> Insight, but when I chose the for example I choose startup.cxx file opened
> in Insight and try to set the breakpoint on     cyg_prestart(); of
> cyg_start()  function but the Insight even doesn't allow me to do
> so, while
> I can set the breakpoint in the user application in Insight.
> BTW if I set the breakpoint at cyg_prestart() prior to launching
> the Insight
> the program will stop at the assembly code rather than the C
> source code  of
> cyg_prestart() . Anything wrong?
>
> -----Original Message-----
> From: Robert Cragie [mailto:rcc@jennic.com]
> Sent: 13 November 2002 10:05
> To: Qiang Huang
> Subject: RE: [ECOS] Why I can't set the breakpoint in the C source code in
> built ecos library?
>
>
> You should be able to.
>
> A couple of things worth mentioning:
>
> 1) Make sure that you are trying to set a breakpoint in code which is
> actually compiled in. There are many #ifdefs in the eCos source,
> and you may
> be trying to set a breakpoint in code which is not compiled in.
> Try setting
> a breakpoint in code where you are 100% sure the code will be compiled in.
> 2) The optimisation can sometimes confuse setting of breakpoints
> and single
> stepping. Once I had to rebuild the eCos library removing the '-O2'
> optimisation as it was so confusing. However, I would only do
> this as a last
> resort.
>
> Try going into the mixed source/assembler view or just assembler
> view to see
> if you can set a breakpoint there.
>
> Robert Cragie, Design Engineer
>
> Direct: +44 (0) 114 281 4512
> _______________________________________________________________
> Jennic Ltd, Furnival Street, Sheffield, S1 4QT,  UK
> http://www.jennic.com  Tel: +44 (0) 114 281 2655   Confidential
> _______________________________________________________________
> Visit our stand at Electronica, Munich 12-14 November 2002
> _______________________________________________________________
>
> > -----Original Message-----
> > From: ecos-discuss-owner@sources.redhat.com
> > [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Qiang Huang
> > Sent: 13 November 2002 09:47
> > To: Ecos-Discuss
> > Subject: [ECOS] Why I can't set the breakpoint in the C source code in
> > built ecos library?
> >
> >
> > Hi all:
> >    I have built a ecos library with -g switch for the global
> compiling and
> > linking. and I also compliled user app with -g switch. but when I
> > try to use
> > Insight to download and debug the program. I can view the C source code
> > which is in the ecos library, but I can't set any breakpoint in
> > those files.
> > I can set breakpoint in the user application souce code. Did I
> > miss anything
> > in order to use the single stepping and breakpoint through the C source
> > code? Thanks a lot.
> >
> >
> > --
> > Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> > and search the list archive: http://sources.redhat.com/ml/ecos-discuss
> >
> >
>
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
>


-- 
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] 3+ messages in thread

* [ECOS] Why I can't set the breakpoint in the C source code in built ecos library?
@ 2002-11-13  1:49 Qiang Huang
  0 siblings, 0 replies; 3+ messages in thread
From: Qiang Huang @ 2002-11-13  1:49 UTC (permalink / raw)
  To: Ecos-Discuss

Hi all:
   I have built a ecos library with -g switch for the global compiling and
linking. and I also compliled user app with -g switch. but when I try to use
Insight to download and debug the program. I can view the C source code
which is in the ecos library, but I can't set any breakpoint in those files.
I can set breakpoint in the user application souce code. Did I miss anything
in order to use the single stepping and breakpoint through the C source
code? Thanks a lot.


-- 
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] 3+ messages in thread

end of thread, other threads:[~2002-11-13 10:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <NMEDLDELHPEFHOMFIJBHIEAMCJAA.rcc@jennic.com>
2002-11-13  2:16 ` [ECOS] Why I can't set the breakpoint in the C source code in built ecos library? Qiang Huang
2002-11-13  2:48   ` Robert Cragie
2002-11-13  1:49 Qiang Huang

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