The function I moved to a separate segment is an event handler.  Now
none of the events are being handled, buttons aren't working etc.

Looking at the mapfile:

forms           0x00000000      0xa6c
 *(forms)
 forms          0x00000000      0xa6a forms.o
                0x0000012e                AmountHandleEvent(EventType *)

I'm assuming the AmountHandleEvent() is correctly placed in "forms" code
segment, right?

Thanks for your help!

Brian
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dave
Carrigan
Sent: Wednesday, May 01, 2002 1:54 PM
To: Palm Developer Forum
Subject: Re: Debugging multi-segment applications


"Brian Ku" <[EMAIL PROTECTED]> writes:

> 1. Can I access globals from other code segments?

Yes. Globals are stored in a different area of memory.

> 2. How do I generate a map file from prc-tools?

Add "-Wl,-Map -Wl,myfile.map" to your linker line.

> 3. The gdb debugger doesn't break in code from other segments (there 
> seems to be some posts on this issue for both CW and GCC).

If it's a problem with CW, it's not the same problem as with GCC.
m68k-palmos-gdb currently doesn't understand that a symbol may be in a
different segment, so it can't set breakpoints on functions in different
segments. There's a patch available; see these archives or the prc-tools
archives on Sourceforge.

> 4. I moved a function out of the first segment and it doesn't seem to 
> be called at all?

Can't help without more information.

-- 
Dave Carrigan ([EMAIL PROTECTED])            | Yow! Xerox your lunch and
file
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | it under ``sex
offenders!''
Seattle, WA, USA                            | 
http://www.rudedog.org/                     | 

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


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

Reply via email to