From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesper Skov To: K Srinivas Aithal Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] Problems with GDB on MPC8240 Date: Thu, 16 Aug 2001 02:06:00 -0000 Message-id: <15227.36090.597251.491727@zoftcorp.adsl.dk> References: <20010816085551.25889.qmail@web14302.mail.yahoo.com> X-SW-Source: 2001-08/msg00534.html >>>>> "K" == K Srinivas Aithal writes: K> I do have still more problems. The program is not stopping at the K> given breakpoint. Do I need to port any extra stubs for my K> platform. But I saw the that the 603 pased simulator works fine in K> this regard; so I think even MPC8240 based board should work the K> same. Or does the "target sim" at the (gdb) prompt of K> "powerpc-eabi-gdb" will take care of this. Should I port the K> InstructionBreak exception of 8240 also for this. The sim does not rely on stub support, so the stubs are untested on a 603. In any event, GDB is the one setting breakpoints, so all I can think of causing the problem would be the cache. Try disabling it. K> I have one more doubt. My sample application is a hello program K> (which I took it from the eCos example secion). I'm expecting K> "Hello" at the gdb console; but I'm not getting it. The reason for K> this is incorrect serial device base address specified in the K> serial driver at "packages/devs/serial". My doubt is "Can the K> serial driver within hello application pack the string ..hello.. as K> required by the gdb protocol so that the gdb console can K> understand" Or "if it donot can the gdb console print it on the K> host properly". The hello world example uses printf() which (in the default configuration) layers on the HAL diag functions. These will do the necessary encoding for GDB. Jesper