Hi,

This has bugged(!) me for a long time now and it's time to crack it once and 
for all. I have searched high and low, and low and how, accounting for the 
endian-ness of confusion, and I still can't see what I am doing wrong.

I have -g on the compile and link stages, and still the *&�$") symbols are 
nowhere to be seen. Why is it that I *can* set a breakpoint like,

break renderTitleScreen

the GDB (of course I mean m68k-palmos-gdb) prints out:

Breakpoint 1 at 0x1f52: file TitleScreen.c, line 397.

it seems to know and accept the function name as being valid but it still 
doesn't stop. If I examine the breakpoints dialog on POSE, I see the 
breakpoint, but still they don't stop.

And if it knows about my function names, why is it I can't list the locals. I 
can't even STEP either as i get the same message.

This happens on SuSe 8.1 with prc-tools 2.2 and also on my G4 PowerBook with 
10.1.4 and the prc-tools. It *HAS* to be *MY FAULT* but I just can't see what 
it is!!! Oh yeah, I get no joy under Windows either.

For my (preferred) Linux setup I am using 
        POSE 3.5
        m68k-palmos-gcc --version => 2.95.3-kgpd
        m68k-palmos-ld --version => GNU ld version 2.12.1

I have pasted my makefile here in the hope that somebody can put me out of my 
misery. It's driving me nuts and I ain't got far to go...

Thanks in advance.
Sean Charles.

============= ENTIRE MAKEFILE ===============

#---------------------------------------------------------------------
#
# STANDARD MAKEFILE BUMPH
#
CC = m68k-palmos-gcc 
AS = m68k-palmos-as
LD = m68k-palmos-ld
#
# For the nagware build
#
#NAGWARE=-DNAGWARE
#
SONYSPECS=-isystem 
/windows/M/SonyHacking/cliesdk/SonySDKSupport/Rel.3.0/Incs -isystem 
/windows/M/SonyHacking/cliesdk/SonySDKSupport/Rel.3.0/Incs/System -isystem 
/windows/M/SonyHacking/cliesdk/SonySDKSupport/Rel.3.0/Incs/Libraries
#
# Compiler flags...
#
CFLAGS = -g -DAPP_NAME="\"$(APPNAME)\"" -DAPP_CREATOR="'$(CREATOR)'" 
-DDB_NAME="\"$(DBNAME)\"" -DDB_VERSION="'$(DBVERSION)'" $(NAGWARE) 
$(SONYSPECS) -Wall -mdebug-labels -DDEBUG -DTPSVALUE=77
LDFLAGS= -g
#
#---------------------------------------------------------------------
#
# APPLICATION DATA
#
APPNAME=Insomnia
DBNAME=InsomniaDB
DBVERSION=1
CREATOR=xXxX
PRC=$(APPNAME).prc
#
# Object files go here...
#
OBJFILES=Main.o Utils.o Database.o TitleScreen.o SetupScreen.o Tasks.o 
TextEngine.o Graphics.o Particle.o Timeline.o PlayerShip.o GameControl.o 
SpecialFX.o

#
#---------------------------------------------------------------------
#
# RESOURCE DATA
#
PILRCFILE=Insomnia.rcp
BITMAPS=\
../images/release/ccIconLauncher8bpp.bmp\
../images/release/ccIconLauncher8bpp.bmp\
../images/release/TitleScreen1.bmp\
../images/release/SetupScreen.bmp\
../images/release/PlayerShipB.bmp\
../images/release/PlayerShipR.bmp\
../images/release/PlayerShipT.bmp\
../images/release/PlayerShipL.bmp\
../images/release/Mustard.bmp

#
#---------------------------------------------------------------------
#
# BUILD RULES
#
all: $(PRC)

$(PRC): $(APPNAME) bin.stamp
#
#tried it with and without this line (from a web page) and it makes no 
difference!
#       m68k-palmos-obj-res $(APPNAME)
        build-prc -o $(PRC) -n "$(APPNAME)" -c "$(CREATOR)" $(APPNAME) *.bin
        cp $(APPNAME) $(APPNAME).code.1.sym
        @echo -e "###\n### Build Completed\n###"
ifdef NAGWARE
        @echo -e "### ++ NAGWARE ++ NAGWARE ++ NAGWARE ++"
else
        @echo -e "### Standard 'Paid-For' PRC was built."
endif
        @echo -e "###"
        @echo -e "### REMEMBER: Get a Palm REG CODE!!!"
        @echo -e "### REMEMBER: TPSVALUE is for DEVELOPMENT"
        @echo -e "### REMEMBER: **BITMAPS** Title+Setup, UNCOMPRESS on demand"
        @echo -e "### REMEMBER: **BITMAPS** for custom blitter, release on exit!"
        @echo -e "### REMEMBER: [[KEYPRESSES]]Make sure there are no SUDDEN EXITS!"
        @echo -e "### REMEMBER: MERGE Booleans into single unit later"
        @echo -e "### CAUTION: >>> BLITTER does not like ODD WIDTH bitmaps YET"
        @echo -e "### REMEMBER: RELEASE BUILD! (no -g etc)!!!\n\n"

$(APPNAME): $(OBJFILES)
        $(CC) -o $(APPNAME) $(OBJFILES)

#
#---------------------------------------------------------------------
#
# Source file dependencies here...
#   (alphabetical order...most of the time! AAAGGHH!)
#
Main.o: Main.c Resources.h Globals.h
Utils.o: Utils.c Utils.h
Database.o: Database.c Globals.h
GameControl.o: GameControl.c GameControl.h Globals.h Resources.h
Graphics.o: Graphics.c Graphics.h Globals.h
Particle.o: Particle.c Particle.h Globals.h
PlayerShip.o: PlayerShip.c PlayerShip.h Globals.h Particle.h Resources.h
Tasks.o: Tasks.c Tasks.h Globals.h
TextEngine.o: TextEngine.c TextEngine.h Globals.h
Timeline.o: Timeline.c Timeline.h Globals.h
TitleScreen.o: TitleScreen.c TitleScreen.h Globals.h Resources.h
SetupScreen.o: SetupScreen.c SetupScreen.h Globals.h Resources.h
SpecialFX.o: SpecialFX.c SpecialFX.h Globals.h
#
#---------------------------------------------------------------------
#
# Keep binary files in step with PILRC edit sessions...
#
bin.stamp: $(PILRCFILE) $(BITMAPS)
        pilrc -I ../images/release $(PILRCFILE)
        touch bin.stamp

#
#---------------------------------------------------------------------
#
# Waste disposal...
#
clean:
        rm -f *.[oa] *.bin *.res *.stamp *.[pg]rc *.sym $(APPNAME)



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

Reply via email to