On Tuesday 27 May 2003 11:05 am, Rick Reynolds wrote:

> As for multilink I don't think the author has done much with it lately,
> and the prc-tool set has changed a few things in the meantime that make it
> non-debuggable (at least I never got debugging with multilink to work).  I
> emailed the author and let him know about this problem some months ago,
> and it seemed to be the first he knew of the problem.  I haven't heard
> from him in a while, and the webpage indicates that no changes have been
> posted.

The version I'm using has been flawless.  John patched the gdb problem with 
add-symbol-file a few months ago, which was the main culprit of multilink 
debug problems.  It was still possible with the broken version, but required 
typing in a literal.

2.2.90.cvs20030306-3 (debian unstable)
multilink 0.3

I just converted Palm Mail 3.5 from CodeWarrior to Multilink.  It took just 
a few hours, and works great!  The only real problems were because the 
splitprc version I used is buggy and made some broken table resources.

Here's how I debug with multilink..  let me give you a link to my enhanced 
Mail project so you can see what I'm talking about.

http://rallypilot.sourceforge.net/work/mail-palm.zip

I add "-g -gdb-script debug" to my multilink line, which makes a small file 
called "debug".  In the Mail example, I wound up with two segments, the two 
COFF files being Mail0000.out Mail0001.out.  Gdb takes the symbols directly 
from Mail0000.out, and the debug script is responsible for loading symbols 
for segments beyond that.

So my debug line is..

m68k-palmos-gdb -x debug Mail0000.out

Then when I get my first PilotMain break, I do this..

load-segments

At that point, everything is good to go.  Nothing else special to do for 
debugging multiple segments.  You can tell if your gdb has the broken 
add-symbol-file by whether the load-segments gives an address of 0 or if it 
gives a proper address.

-- 
/* Chris Faherty <[EMAIL PROTECTED]> */

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

Reply via email to