[ECOS] Gdb 6.7, gcc 4.2.2, redboot on arm (gba), "target remote" doesn't work.
Gary Thomas
gary@mlbassoc.com
Fri Jan 18 19:38:00 GMT 2008
Andrew Lunn wrote:
> On Fri, Jan 18, 2008 at 07:39:28PM +0100, Paul Chavent wrote:
>> Hello.
>>
>> I have found that it fails in hal/arm/arch/current/src/hal_misc.c at void breakpoint(void).
>>
>> When i execute
>> void
>> breakpoint(void)
>> {
>> diag_printf("breakpoint\n");
>> HAL_BREAKPOINT(_breakinst);
>> diag_printf("breakpoint\n");
>> }
>> The second trace doesn't appear and the target reboot.
>>
>> When i try to compile
>> void
>> breakpoint(void)
>> {
>> diag_printf("breakpoint %p\n", _breakinst);
>> HAL_BREAKPOINT(_breakinst);
>> diag_printf("breakpoint %p\n", _breakinst);
>> }
>> I have hal_misc.c:230: error: `_breakinst' undeclared (first use in this function)
>
> The magic for this is in:
>
> /packages/hal/arm/arch/current/include/hal_arch.h
>
> I don't remember who this works on ARM. Maybe it uses a Software
> interrupt?
IIRC, it uses an officially sanctioned illegal instruction.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list