On Tuesday 27 May 2003 12:47 pm, Rick Reynolds wrote: > If I understand you correctly, I need a later version of gdb in order to > use multilink -- gdb has been fixed and multilink (version 0.3) now works > as designed. Correct?
Yes. The only problem I've run into was with older gdb's broken add-symbol-file. The command only accepted literal values, and so the script which multilink produced could not work. Here's the script.. # Generated by multilink -gdb-script option define load-segments set $jmptable = *((long**)($a5-4)) echo loading segments echo . add-symbol-file Mail0001.out *(long*)(((long)$jmptable)+4) echo done\n end document load-segments load-segments command for Mail (2 segments) Use the load-segments command to load the non-zeroth segments in a multi-segment application. This allows you do debug code in any segment. end So to use it with broken gdb, you'd have to get the value of *(long*)(((long)$jmptable)+4) and type it manually into add-symbol-file. Not that big of a deal really, but it'll slow you down. That's only needed for segments beyond the first, which naturally would work. > Since I'm not currently building with multilink, I can't check this yet. > But I'm betting that I have the broken one since Overbeek's patches are > dated December of 2002. Not sure. The add-symbol-file is barely one line of code. The hardest part about multilink is definitely building it. The debian prc-tools binary package doesn't include libbfd.a bfd.h, so you'll have to build the whole toolchain to get them in order to build multilink. I'll have to make a debian bug report. Lemme do that real quick. -- /* Chris Faherty <[EMAIL PROTECTED]> */ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
