This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

CTRL-C Support


Hi,

I need to be enlightened a bit about cdl macros for CTRL-C support.

>From CDL description, I see:
CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT 
        This option causes the GDB stub to add a serial interrupt handler
        which will listen for GDB break packets. This lets you stop the
        target asynchronously when using GDB, usually by hitting Control+C
        or pressing the STOP button. This option differs from
        CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT in that it is used when
        GDB stubs are present.

and

CYGDBG_HAL_DEBUG_GDB_CTRLC_SUPPORT 
        This option adds an interrupt handler for the GDB serial line
        which will listen for GDB break packets. This lets you stop the
        target asynchronously when using GDB, usually by hitting Control+C
        or pressing the STOP button. This option differs from
        CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT in that it is used when the GDB
        stubs are NOT present."

When I compile redboot (including gdb stub) the first option is on. Then i
run my app in gdb. It's unclear for me if I need the second option when
building my app or if the stub already handle that for me.

Thanks

-- 
Fabrice Gautier, 
Fabrice_Gautier@sdesigns.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]