Newbie gdb and Palm OS 5 Simulator debugging question

2003-03-06 Thread Daryl Huff
I'm trying to debug my first Palm app using the PRC tools and I can't 
get gdb (m68k-palmos-gdb) to connect to the Palm OS 5 Simulator to debug 
my app.  I carefully followed the instructions at 
http://prc-tools.sourceforge.net/install/cygwin.html to install 
everything onto my Win XP system.  I have the SDK and PilRC on my system 
and I can compile and run my app fine in the Simulator.  I did build and 
link with the -g flag set.

However, when I go to connect the debugger to the simulator.  I

  -start the simulator,
  -double check the debugging port is set to "localhost:2000",
  -load my app (Hello2 from PalmOS Programming Bible),
  -start GDB with the name of the app "m68k-palmos-gdb hello2"
  -type in "target pilot localhost:2000"
and all the cygwin window does is print the following:

Remote debugging under PalmOS using localhost:2000
Waiting... (Press Ctrl-C to connect to halted machine)
I run my app in the simulator and the gdb window never seems to connect. 
 If I close the simulator window the cygwin window immediatly reports:

Couldn't establish connection to remote target
Remote communication error: Connection reset by peer.
So I know it must have known about the Simulator window.

I must be doing something basic incorrectly but for the life of me I 
can't figure out what.  Please help.

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


Re: Newbie gdb and Palm OS 5 Simulator debugging question

2003-03-06 Thread Daryl Huff


Ton van Overbeek wrote:
Daryl Huff <[EMAIL PROTECTED]> wrote:

I'm trying to debug my first Palm app using the PRC tools and I can't 
get gdb (m68k-palmos-gdb) to connect to the Palm OS 5 Simulator to debug 
my app.  I carefully followed the instructions at 
http://prc-tools.sourceforge.net/install/cygwin.html to install 
everything onto my Win XP system.  I have the SDK and PilRC on my system 
and I can compile and run my app fine in the Simulator.  I did build and 
link with the -g flag set.

However, when I go to connect the debugger to the simulator.  I

 -start the simulator,
 -double check the debugging port is set to "localhost:2000",
 -load my app (Hello2 from PalmOS Programming Bible),
 -start GDB with the name of the app "m68k-palmos-gdb hello2"
 -type in "target pilot localhost:2000"
and all the cygwin window does is print the following:

Remote debugging under PalmOS using localhost:2000
Waiting... (Press Ctrl-C to connect to halted machine)
I run my app in the simulator and the gdb window never seems to connect. 
If I close the simulator window the cygwin window immediatly reports:

Couldn't establish connection to remote target
Remote communication error: Connection reset by peer.
So I know it must have known about the Simulator window.

I must be doing something basic incorrectly but for the life of me I 
can't figure out what.  Please help.



You also need the gdbpanel.prc installed on the simulator.

Since you get the message: 
  Remote debugging under PalmOS using localhost:2000 
  Waiting... (Press Ctrl-C to connect to halted machine)
it means the TCP connection between POSE and the simulator has been
established.
gdbpanel can be found in the prc-tools-samples collection. See
http://sourceforge.net/project/showfiles.php?group_id=4429.

Before starting your app on the simulator, first launch gdbpanel, enable
the gdbstub, return to the launcher and then launch the app you want to
debug.
What happens is that gdbpanel sets the 'gdbS' feature. The gdb startup 
code (when linked with -g) looks for this feature. If it is present it 
will break at PilotMain, if not the app will run normally.
POSE sets this feature automatically, so you do not need gdbpanel when 
debugging with POSE. When you want to debug on a real device you will also 
need gdbpanel.

See also http://www.falch.net/Articles?art=338 which addresses the same
issue, but for running the sim and gdb together with the Falch IDE. 
Look at the last part of the article about gdbpanel.

Ton van Overbeek


Thanks, that did the trick.  I went back and read the documentation at 
http://prc-tools.sourceforge.net/doc/prc-tools_5.html#SEC29 and the 
documentation there still looks to me like you only need to do this on 
"real device".  The bullet above that states that the Emulator (and thus 
I assumed Simulator) would do this automatically.

The second url you forwarded did make it clear that this step was 
necessary.  I'll send a note to the prc-tools alias on sourceforge. 
Thanks again for the information.

Daryl

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


Creating font families w/o Constructor

2003-06-26 Thread Daryl Huff
I'm using the falch.net development tools and in general I'm pretty 
happy.  However, I'd like to use some custom font families that will 
contain both high and low density elements.  I know about xFont for 
creating the fonts, and I can use the fonts created in my resource file. 
 Is there any way to combine fonts into a family without using 
Constructor (and thus having to buy CW)?

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


Codewarrior and Palm OS 5 SDK (68K) R2 examples

2003-06-27 Thread Daryl Huff
I'm trying to get the examples that come with the Palm OS 5 SDK (68K) R2 
to compile with CodeWarrior 8 and I can't seem to get any to compile. 
They all end up with the following link errors:

Link Error  : StartupCode.c: Illegal object data in 'StartupCode.c'
Link Error  : __RuntimeModule__: '__Startup__' referenced from 
'__DummyStartup__' is undefined.

I searched around for quite a while and wasn't able to find any 
documentation that shed any light on the problem.  Does someone know 
what might be wrong?

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


Re: Creating font families w/o Constructor

2003-07-11 Thread Daryl Huff
How does one go about building pilrc from the sourceforge.net sources? 
I've pulled the tree over, but the README.txt seems to be out of data. 
Is there a way to build this on Windows using Visual Studio?  The readme 
says there is a project file, but I don't see it in the repository.

Thanks,
Daryl
Ben Combee wrote:
At 01:47 AM 6/27/2003, Daryl Huff wrote:

I'm using the falch.net development tools and in general I'm pretty 
happy.  However, I'd like to use some custom font families that will 
contain both high and low density elements.  I know about xFont for 
creating the fonts, and I can use the fonts created in my resource 
file.  Is there any way to combine fonts into a family without using 
Constructor (and thus having to buy CW)?


PilRC 3.0 supports creating font families.  This version hasn't been 
released yet, but you can download the current development sources and 
build it yourself from the PiLRC project on sourceforge.net.



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


Re: Creating font families w/o Constructor

2003-07-12 Thread Daryl Huff
Thanks, that was pretty easy.  However, I'm wondering how close to 
working the font family capability of PilRC is currently.

My font description files are fine because I can use my custom font in 
project after including the font declaration in my .rcp file:

FONT ID myFONT FONTID 129 "myddFONT.pfn"

When I try to create a font family using my 3.0 build, I just get junk 
on the screen.  It looks like it is picking up the font dimensions, but 
the chars are just random snow.  Here is my declaration in my .rcp file:

FONTFAMILY myddFONT
BEGIN
FONT "myFONT.pfn" DENSITY 72
FONT "myddFONT.pfn" DENSITY 144
END
The "myDDFONT.pfn" has double the dimensions of the "myFONT.pfn" font 
description file.  I've tried switching the order of the FONT statements 
and I've tried using 1 and 2 for the DENSITY, nothing helps.

As anyone gotten this to work?  Is it supposed to work yet in the "beta" 
PilRC code?

Thanks,
Daryl
Aaron Ardiri wrote:

How does one go about building pilrc from the sourceforge.net sources? 
I've pulled the tree over, but the README.txt seems to be out of data. 
Is there a way to build this on Windows using Visual Studio?  The readme 
says there is a project file, but I don't see it in the repository.


create a new VS project (win32 console application). drag all the
files into the project.. build the project. done. takes 10 seconds.
its a simple console app, not hard to setup. 

---
Aaron Ardiri[EMAIL PROTECTED]
CEO - CTO   +46 70 656 1143
Mobile Wizardry  http://www.mobilewizardry.com/






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


Re: Creating font families w/o Constructor

2003-07-14 Thread Daryl Huff
I got this working.  It turns out I didn't have the "ascent" and 
"descent" values in the DD font set to double the values in the regular 
font .pfn file.  Once I corrected that, my DD fonts worked great with 
PilRC 3.0.

Daryl

Daryl Huff wrote:
Thanks, that was pretty easy.  However, I'm wondering how close to 
working the font family capability of PilRC is currently.

My font description files are fine because I can use my custom font in 
project after including the font declaration in my .rcp file:

FONT ID myFONT FONTID 129 "myddFONT.pfn"

When I try to create a font family using my 3.0 build, I just get junk 
on the screen.  It looks like it is picking up the font dimensions, but 
the chars are just random snow.  Here is my declaration in my .rcp file:

FONTFAMILY myddFONT
BEGIN
FONT "myFONT.pfn" DENSITY 72
FONT "myddFONT.pfn" DENSITY 144
END
The "myDDFONT.pfn" has double the dimensions of the "myFONT.pfn" font 
description file.  I've tried switching the order of the FONT statements 
and I've tried using 1 and 2 for the DENSITY, nothing helps.

As anyone gotten this to work?  Is it supposed to work yet in the "beta" 
PilRC code?

Thanks,
Daryl
Aaron Ardiri wrote:

How does one go about building pilrc from the sourceforge.net 
sources? I've pulled the tree over, but the README.txt seems to be 
out of data. Is there a way to build this on Windows using Visual 
Studio?  The readme says there is a project file, but I don't see it 
in the repository.


create a new VS project (win32 console application). drag all the
files into the project.. build the project. done. takes 10 seconds.
its a simple console app, not hard to setup.
---
Aaron Ardiri[EMAIL PROTECTED]
CEO - CTO   +46 70 656 1143
Mobile Wizardry  http://www.mobilewizardry.com/









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