Andrew Vasquez writes:
> Unfortunately, after I issue the 'target pilot localhost:2000'
> command and run my program on POSE (3.0a3), GDB never breaks at the 
> PilotMain() function, GDB just waits

You did remember to link with the `-g' flag didn't you?  (As usual you
need to compile with `-g' to get symbol information, but on Palm OS you
also need to *link* with `-g' to get a debugger stub which gives you this
initial breakpoint.)

> Now to my question: Does prc-tools-0.5.1b3, specifically, GDB, suffer
> from the same limitation as Multilink, in that you cannot debug 
> multiple code-resource applications? Have you, John, managed to 
> run TLP through the GDB debugger?

That's an interesting question...  I don't use debuggers much myself so I
never thought to try that!  The answer is yes, `m68k-palmos-gdb multiapp'
does hit that first breakpoint and I can step through and set breakpoints
in the main code resource.  On a cursory examination, setting breakpoints
in other code resources doesn't seem to work, and quite likely other
symbolic information pointing at other code resources won't work either
(hmmmm, there's something to investigate...).  But debugging stuff in the
default main code section works fine even in a multiple code resource
application like TLP.

    John

Reply via email to