This is the mail archive of the ecos-devel@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]
Other format: [Raw text]

Re: GDB stub for RAM startup.


Sorry for the long delay, but in case it helps...

Ottawa Guy wrote:
Hi,
I am using sparc leon board. This board comes with
serial port, PCI interface and DSU software.

Using the DSU software I can download an "elf" file
into the board's memory and reset the PC to start
executing. All I want is to use the serial port for
debug (gdb).


I have ported the CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT.
So that I could configure the serial port.

I have the following question.

1. My application is only "RAM" startup. Do I need
include  "ROM-MONITOR" package or REDBOOT package

It depends exactly what you want to achieve. You could port RedBoot, which generally isn't difficult if you've already got eCos going. Or you could include GDB stubs directly in your application by using CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS. But you'll still need to do something like make an explicit call to breakpoint(), or add ctrl-c support (called "break" support when stubs are included) in order for control to be passed to your application for debug.


2. In the platform specific *.cdl file . I have the
following


  cdl_option CYGBLD_BUILD_GDB_STUBS {
            display "Build GDB stub RAM image"
            default_value 0
            requires { CYG_HAL_STARTUP == "RAM" }
            requires
CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
           }

Do I need anything else under the "Required" claused.

Off the top of my head, I can't think of any as CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS has its own set of requirements that should make it do the right thing.


3. What is "CYGINT_HAL_DEBUG_GDB_STUBS_BREAK"

The ability to listen for a ctrl-c on the GDB channel, interrupt the running program, and drop into the GDB stub.


Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
Visit us at Embedded World 2004, Nürnberg, Germany, 17-19 Feb, Stand 12-449
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine


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