[Haiku-commits] r31285 - haiku/trunk/src/apps/debugger/debug_info

Ingo Weinhold ingo_weinhold at gmx.de
Sun Jun 28 19:38:09 CEST 2009

-------- Original-Nachricht --------
> Datum: Sun, 28 Jun 2009 10:50:39 -0500
> Von: Rene Gollent <anevilyak at gmail.com>

> On Sun, Jun 28, 2009 at 8:10 AM, Ingo Weinhold<ingo_weinhold at gmx.de>
> wrote:
> > Thanks! It worries me a bit that the previous version actually builds
> here without problem (Haiku, gcc 4). Just touched the file and added another
> syntax error to be sure it is really used.
> No problem :) That does seem somewhat odd. I'm on gcc2 in any event,
> and there was another minor problem that I had to work around, but I'm
> uncertain as to the most elegant way to do so: in dwarf/DwarfFile.cpp,
> gcc2 complains about NULL used in arithmetic on line 542.  Apparently
> it's too stupid to realize that your typedef there is in fact a
> pointer. I worked around it by changing from if (attributeSetter !=
> NULL) to if (attributeSetter), but that's hardly what I'd call an
> ideal solution.

attributeSetter is a virtual method pointer, so it's indeed not a regular pointer. The comparison with __null should work, though. Anyway, I'll just change it to "!= 0".

> In any event, your debugger helped me figure some
> things out with Tracker last night since gdb was being uncooperative
> and throwing internal DIE errors instead of giving me usable
> backtraces, so thanks!

Nice. I hope we don't run into those problems as well. I wouldn't be surprised, if that's just a gcc 2 problem, producing invalid debug info entries. That's one of the reasons I prefer gcc 4.

CU, Ingo

More information about the Haiku-commits mailing list