From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21831 invoked by alias); 28 Jun 2002 13:31:15 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 21822 invoked from network); 28 Jun 2002 13:31:13 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 28 Jun 2002 13:31:13 -0000 Received: from 01-059.118.popsite.net ([66.19.120.59] helo=nevyn.them.org) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17Nvq9-0005Iu-00; Fri, 28 Jun 2002 08:31:10 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17NvqC-0008MJ-00; Fri, 28 Jun 2002 09:31:12 -0400 Date: Fri, 28 Jun 2002 06:31:00 -0000 From: Daniel Jacobowitz To: "Chu, Josh" Cc: "'gdb@sources.redhat.com'" Subject: Re: 64bit gdb for KAI/KCC compiler Message-ID: <20020628133112.GB31848@nevyn.them.org> Mail-Followup-To: "Chu, Josh" , "'gdb@sources.redhat.com'" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2002-06/txt/msg00314.txt.bz2 On Thu, Jun 27, 2002 at 05:36:03PM -0500, Chu, Josh wrote: > Ok, so here's the deal : KAI released a patch for gdb 5.0 that will allow > gdb to read the EDG-style mangled names. I've attached the patch files that > were to be applied to 5.0 (gdb.patch-5.0 and libiberty.patch-5.0). I tried > manually applying these modifications to the 5.2 source, and it builds. > However, there are some definite problems because gdb will now core dump > occasionally, not to mention the names are still mangled. > I've included the patch files to 5.0 and my modifications to the files in > 5.2 : > > gdb/libiberty: > cplus-dem.c > > gdb/gdb: > dwarf2read.c > hpread.c > stabsread.c > symfile.c > After this is done, you can try to build and run. (export CC='gcc -m64' and > ./configure first) What platform is this, Solaris? Looks like it from the m64. > I suppose this is a fairly vague question : but does anyone have a clue why > the patches aren't working with 5.2? > This would be a huge help for anyone who has a KAI compiler on a 64-bit > system, as it would allow people to debug 64bit programs compiled with KCC. > Or if someone who's familiar with the above-mentioned files could comment on > the patched files and what could potentially be wrong with them, I would > very much appreciate it. > Thanks so much I'm more curious why they worked with 5.0. I imagine they had very limited functionality, since there is a great deal more to do in C++ support than demangle names properly. I skimmed the patches and nothing jumps out at me as immediately wrong except for: ! if ( !EDG_DEMANGLING && !is_edg_temporary_var(sym) ) ! add_symbol_to_list (sym, &local_symbols); That should probably be || if you ever want to see a local static variable in GDB.... also, you do not need to comment out finish_cv_type. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer