Hi

    I'm currently trying to make a symbol file to work with PalmDebugger.
The doc is not very clear about what exactly  the debugger want for symbole
file (they could just gave us the flag to pass to gcc but no...).

> As the documentation states, PalmDebugger's source level debugging works
> with the symbolic information in executables compiled with prc-tools.

do you mean by that that the Debugger want just the debugging information
"in" the prc files (-g or -mdebug-labels) and forget about the .sym.

I've done a makefile for the NetSample 'sample' and i couldn't make it work
properly. I read the doc about gcc and ld that come with prc-tools but can't
figure out what i should do to obtain a valid Sym file.

Help would be appreciated.
Here's the makefile.

CC = m68k-palmos-gcc
MULTIGEN = multigen.exe
CFLAGS = -Wall -g -mdebug-labels -palmos3.5

object = NetSample-sections.o NetSample.o CmdSetup.o CmdStevens.o AppStdio.o
\
  CmdInfo.o CmdTelnet.o

All: NetSample.prc

NetSample.prc: NetSample bin.stamp
 build-prc NetSample.def NetSample *.bin

bin.stamp: NetSampleMain.rcp
 pilrc NetSampleMain.rcp
 touch  bin.stamp

NetSample: $(object) NetSample-sections.ld
 $(CC) $(CFLAGS) -o NetSample -Wl,'-Map=Netsample.code.1.sym',--cref
$(object) \
  NetSample-sections.ld -lNetSocket

AppStdio.o: AppStdio.c
CmdInfo.o: CmdInfo.c
CmdSetup.o: CmdSetup.c
CmdStevens.o: CmdStevens.c
CmdTelnet.o: CmdTelnet.c
NetSample.o: NetSample.c
NetSample-sections.o: NetSample-sections.s

NetSample-sections.s NetSample-sections.ld: NetSample.def
 $(MULTIGEN) NetSample.def

clean:
 rm -f *.o *-sections.* *.prc *.sym *.bin bin.stamp NetSample





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

Reply via email to