From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22539 invoked by alias); 15 Nov 2006 15:58:13 -0000 Received: (qmail 22530 invoked by uid 22791); 15 Nov 2006 15:58:12 -0000 X-Spam-Check-By: sourceware.org Received: from intecatl-mx1.intec.us (HELO intecatl-mx1.intec.us) (158.155.2.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Nov 2006 15:58:04 +0000 Received: from intecatl-mx1.intec.us (localhost.localdomain [127.0.0.1]) by localhost.intec.us (Postfix) with ESMTP id 1DB61177D5; Wed, 15 Nov 2006 10:56:36 -0500 (EST) Received: from [158.155.6.197] (unknown [158.155.6.197])by intecatl-mx1.inte c.us (Postfix) with ESMTP id 03FA6177D4;Wed, 15 Nov 2006 10:56:36 -0500 (ES T) Message-ID: <455B38A9.7060609@intec.us> Date: Wed, 15 Nov 2006 15:58:00 -0000 From: Jesse Marlin User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) MIME-Version: 1.0 To: Joel Brobecker CC: gdb@sourceware.org Subject: Re: gdb 6.5 on AIX 5.3 not hitting breakpoints References: <455A1696.2060408@intec.us> <20061115060918.GN3529@adacore.com> In-Reply-To: <20061115060918.GN3529@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.12 X-imss-result: Passed X-imss-approveListMatch: *@intec.us Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00099.txt.bz2 I have never seen this behavior with gdb with any other unices, but this is the first time we have run it on AIX. I built the daily snapshot gdb 6.5.50.20061115. I tried with a simple program and it worked: -------------------------- (gdb) br main Breakpoint 1 at 0x100003f4: file errno.c, line 11. (gdb) run Starting program: /home/cgi/errno_aix Breakpoint 1, main (argc=1, argv=0x2ff20084) at errno.c:11 11 sscanf (argv[1], "%d", &err); (gdb) -------------------------- Then I tried with one of our more complicated programs and I see the behavior with it ignoring the breakpoints: -------------------------- (gdb) br main Breakpoint 1 at 0x10000a90: file cgr_heartbeat_utl.c, line 223. (gdb) run Starting program: /u01/obj/dcs/misc/bin/cgr_heartbeat_utl Breakpoint 1 at 0x100000a90: file cgr_heartbeat_utl.c, line 223. HEARTBEAT> -------------------------- I am wondering if it isn't some weird linker options that are screwing it up or maybe we are missing some linker options. Any ideas? Joel Brobecker wrote: >>I have built gdb-6.5 on AIX 5.3 and have noticed that it is not hitting >>breakpoints. Is this a known problem and if so is there any workaround? > > > As far as I can tell, appart from an unexpected warnings about the OS > ABI which I will try to investigate when I have some time, the HEAD > debugger from CVS seems to be working fine: > > (gdb) b break_me > Breakpoint 1 at 0x100003e4: file foo.c, line 6. > (gdb) run > Starting program: /home/brobecke/test/ex/foo > > Breakpoint 1, break_me () at foo.c:6 > 6 printf ("Hello world\n"); > > I suggest trying the debugger from CVS, and if that doesn't work, > then maybe trying to post more information about what compiler you > used (I assumed GCC), which version, and provide a complete example > that demonstrates the problem (sources and compilation switches that > you used to build the example). > -- Jesse L. Marlin Phone: +1 404-705-2912 Senior Software Developer Intec Billing, Inc Web: http://www.intecbilling.com/ Email: jesse.marlin@intecbilling.com Suite 200, 301 Perimeter Center, Atlanta, GA 30346 USA This e-mail and any attachments are confidential and may also be legally privileged and/or copyright material of Intec Telecom Systems PLC (or its affiliated companies). If you are not an intended or authorised recipient of this e-mail or have received it in error, please delete it immediately and notify the sender by e-mail. In such a case, reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Intec Telecom Systems PLC does not represent or warrant that an attachment hereto is free from computer viruses or other defects. The opinions expressed in this e-mail and any attachments may be those of the author and are not necessarily those of Intec Telecom Systems PLC.