"Dustin Davis" <[EMAIL PROTECTED]> wrote in message
news:103999@palm-dev-forum...
>
> I've read somewhere that there is a debugger for PRC-Tools. Is this
> correct? How do I go about installing/using it?

On Windows:

Compile using -g.
Link using -g
Debugger uses the file in the -o switch in your link statement
Run POSE, don't go into program yet.
Run GDB in your DOS box
Start your program.

Here're the commands I use:
:: Compile
m68k-palmos-gcc -g -Wall -Werror -O1 -c YourApp.c -o YourApp.o
:: Link
m68k-palmos-gcc -g -O1 YourApp.o -o YourApp
:: Object Resolution
m68k-palmos-obj-res YourApp
:: Build PRC
build-prc  YourApp.prc "Your App" YApp *.grc *.bin
:: Debug
:: Note: gdb.txt is debugger command file, sets up breakpoints, etc.
m68k-palmos-gdb --command=gdb.txt YourApp

GDB.TXT:
target pilot localhost:2000
break YourFunction
continue
display x
display y

-Paul



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to