From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14504 invoked by alias); 10 Oct 2004 19:40:33 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 14496 invoked from network); 10 Oct 2004 19:40:32 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 10 Oct 2004 19:40:32 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i9AJeRcP001196 for ; Sun, 10 Oct 2004 15:40:27 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i9AJeRr03923; Sun, 10 Oct 2004 15:40:27 -0400 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i9AJeQcA013414; Sun, 10 Oct 2004 15:40:26 -0400 Subject: Re: Insight Bug? From: Keith Seitz To: Kip Warner Cc: "insight@sources.redhat.com" In-Reply-To: References: <1097246057.2765.4.camel@lindt.uglyboxes.com> Content-Type: text/plain Message-Id: <1097437511.3306.3.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Date: Sun, 10 Oct 2004 19:40:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2004-q4/txt/msg00015.txt.bz2 On Sun, 2004-10-10 at 12:29, Kip Warner wrote: > > On Thu, 2004-10-07 at 21:08, Kip Warner wrote: > >> >> (gdb) info func main > >> >> All functions matching regular expression "main": > >> >>Non-debugging symbols: > >> >> 0x00401000 mainCRTStartup > >> >>(gdb) list main > >> >> Error: No line number known for main. > >> > >> Hey Keith, > >> > >> objdump gives me a ton of output when I pass it the -g switch and the > >> path > >> to my win32 executable. Any ideas? I think it may be a bug in Insights > >> as > >> I have heard of many others having this problem. > > > > Okay, I believe your problem is in gdb, but to be sure, I need to ask > > another question. MinGW doesn't use a "main" function, so that was a > > silly test. Can you list the contents of a function for which you know > > you have debug info? Open a console and enter "list MYFUNC" or "info > > func MYFUNC". > > > > Keith > > > > > > Hey Keith, > > I added... > > void foo(void) > { > puts("foo"); > return; > } > > ...to my source and called it in WinMain to ensure that was compiled in > there and invoked. I compile with -g3 and no optimizations or strips. I > open Insight (--version gives: GNU gdb 2003-09-20-cvs (cygwin-special)) > and select function "foo." It gives only assembly listing still, even when > I select "source" feature in listbox. > > I then opened the gdb console from the menu and performed the following: > > (gdb) list foo > 9 in WinMain.cpp > > (gdb) info func foo > All functions matching regular expression "foo": > > File WinMain.cpp: > void foo(); > > (gdb) > > I hope this is helping. There are many people having the same problem. You > are a major help. The entire MinGW community that uses a GUI debugger > depends on you =) Okay, before I ask for a pre-compiled testcase, let me bark down a hunch. First, let me ask if we've tried the whole debug window thing? ("tk ManagedWin::open DebugWin" in console window; then switch to function by typing it into function combobox; any errors show up in debug window?) After that, try this: open a console window and type "maint print psymbols OUTFILE". Look for the function "foo" in OUTFILE. What does it say? Win32 paths, I'll bet?m Keith