Hello, everyone!

So, my situation: I'm working with a large C++ app, right now entirely 68k. I'm using Multilink (http://www.djw.org/product/palm/multilink/), which splits my app into 5 sections, because splitting code into sections seems like something humans shouldn't be doing. So, Multilink generates this cool script for gdb that makes all the symbol/section matchups work correctly. Mine, for example, looks something like this:

multilink.gdb:
# Generated by multilink -gdb-script option
define load-segments
  set $jmptable = *((long**)($a5-4))
  add-symbol-file a0001.out *(long*)(((long)$jmptable)+4)
  add-symbol-file a0002.out *(long*)(((long)$jmptable)+8)
  add-symbol-file a0003.out *(long*)(((long)$jmptable)+12)
  add-symbol-file a0004.out *(long*)(((long)$jmptable)+16)
end

I have another script that sets up other fun debug stuff:
directory ~/palmfw/src
directory ~/guild/src
source multilink.gdb
target palmos
load-segments

OK, so this works great in POSE. But I sort of need to be using the Simulator as I'm developing primarily for OS5. So, using the Simulator, it only supports symbols for the first code section. The rest just shows up as "??"...

So, anyone have any idea about what I can do to make GDB work in this situation?

Any insight would be massively appreciated!
-DG

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

Reply via email to