[Vm-dev] How to debug an "old" executable on a new Mac OS?

Eliot Miranda eliot.miranda at gmail.com
Tue Apr 7 21:44:56 UTC 2015


Hi Tobias,

On Tue, Apr 7, 2015 at 12:23 PM, Tobias Pape <Das.Linux at gmx.de> wrote:

>
> Hi,
>
> On 07.04.2015, at 21:00, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>
> > Hi All,
> >
> >     I'm still building VMs with gcc and xcode 3.2 on 10.6.8.  We're
> copying executables to Clément's 10.8 system; I *think* these executables
> contain full debug info.  We're not seeing debug info under gdb on that
> system.  Neither are we seeing debug info when we also copy the 10.6.8 gdb
> to 10.8.  Anyone know why?  Some questions...
> >
> > - is debug info kept off to the side and hence requires that one copy
> additional files?  If so, what's the file?
>
> It depends™.
> There could be a .dSYM folder that should contain debug symbol information
> that can be used to instruct gdb or lldb to load infos from,
> (se, eg
> http://stackoverflow.com/questions/3656391/whats-the-dsym-and-how-to-use-it-ios-sdk
> or
>         dwarfdump(1)
>         dsymutil(1)
>         atos(1)
>
> http://web.archive.org/web/20081224174716/http:/developer.apple.com/tools/xcode/symbolizingcrashdumps.html
>
> probably
>
>         https://github.com/nikyoudale/symbolicatecrash-mac
>         http://mindarray.org/techlog/gdb-debugging.html  step 6
>
> and even more for LLDB:
>         http://lldb.llvm.org/symbols.html
>
> By default I'm building with dwarf (the default debug type) which uses
> DWARF debugging info and puts in in the executable.  On 10.8 gdb does not
> see this debug info.  So I tried dwarf-with-dsym which puts the info in its
> own package hierarchy.  That isn;t debuggable on 10.8 either :(.  But I
> guess what's good about this form is that the debug info is manually
> strippable by anyone that wants to deploy the .app.  So I might keep it,
> even though it made no difference.
>


> >
> > - is there symbol table reading support that is version-dependent?  i.e.
> do we have to install additional support executables for gdb to read the
> info from gcc 4.2?
> >
> > And yes, I know I should upgrade and will do asap.  For now everything
> works in my 10.6 environment.
>
> Note that 10.6. is the last system you could reliably build ppc stuff on…
> We should keep a build-slave at this version handy if we can…
>

Good point.


>
>
>
> Best
>         -Tobias




-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150407/b45b68c7/attachment.htm


More information about the Vm-dev mailing list