public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] trace and assert
@ 2001-07-17  4:49 james chen
  2001-07-17  8:43 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: james chen @ 2001-07-17  4:49 UTC (permalink / raw)
  To: ecos-discuss

    eCos has supported trace and assert. now I want when a assert failed, it
will output diagnostic info and GDB stop at assert code. Can I replace
'for(;;);' with 'breakpoint()' in cyg_assert_fail?
    Another question, what is the difference between  simple.cxx, fancy.cxx
and null.cxx( infra\current\src ), if I select all in eCos Configuration
Tool, which will be valid or all are valid?
    Thanks in advance!

Best Regards,
james


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

* Re: [ECOS] trace and assert
  2001-07-17  4:49 [ECOS] trace and assert james chen
@ 2001-07-17  8:43 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-07-17  8:43 UTC (permalink / raw)
  To: james chen; +Cc: ecos-discuss

james chen wrote:
> 
>     eCos has supported trace and assert. now I want when a assert failed, it
> will output diagnostic info and GDB stop at assert code. Can I replace
> 'for(;;);' with 'breakpoint()' in cyg_assert_fail?

Yes - it's open source! Although that function only exists if you have
included GDB stubs in your app I believe.

>     Another question, what is the difference between  simple.cxx, fancy.cxx
> and null.cxx( infra\current\src ), if I select all in eCos Configuration
> Tool, which will be valid or all are valid?

I actually just fixed that, and it will appear publically shortly. Choose
only one for now.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions    http://www.redhat-techworld.com/

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

end of thread, other threads:[~2001-07-17  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-17  4:49 [ECOS] trace and assert james chen
2001-07-17  8:43 ` Jonathan Larmour

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