Re: [RFC]: patch 1 for Sun C compiled target programs

Mark Kettenis
2004-06-18T21:47:31Z

Date: Wed, 16 Jun 2004 19:57:32 +0200
From: Michael Mueller <m.mueller99@kay-mueller.de>

Setting a breakpoint on a function name or on the first line of a
function doesn't work for Sun C compiled target programs (32 and 64
bit). I verified this against these compiler versions:

Sun C 5.5 2003/03/12
Forte Developer 7 C 5.4 2002/03/09
Sun WorkShop 6 update 2 C 5.3 2001/05/15
Sun WorkShop 6 2000/04/07 C 5.1

Ah yes. I knew about this. Just forgotten all about it. The funny
code you're seeing is there to work around a bug in GCC 2.95. GDB
fiddles a bit with the line number info trying to fix the breakage.
It's completely bogus, and should go since it messes up real-world
debugging with GCC 2.95 too. Unfortunately doing so will mess up the
testsuite results when using GCC 2.95 :-(.

I'll try to get this fixed before the 6.2 release. Thanks for giving
me a bit more ammunition for getting this change accepted by the rest
of the crowd.

Mark