From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18155 invoked by alias); 30 Aug 2006 20:24:00 -0000 Received: (qmail 18146 invoked by uid 22791); 30 Aug 2006 20:24:00 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 30 Aug 2006 20:23:55 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GIWbI-0000dF-Uu; Wed, 30 Aug 2006 16:23:53 -0400 Date: Wed, 30 Aug 2006 20:24:00 -0000 From: Daniel Jacobowitz To: Michael Veksler Cc: gdb@sourceware.org Subject: Re: How to call operator<< functions? Message-ID: <20060830202352.GA2018@nevyn.them.org> Mail-Followup-To: Michael Veksler , gdb@sourceware.org References: <44F5645F.4000301@tx.technion.ac.il> <20060830124640.GC19163@nevyn.them.org> <44F5EF97.3020906@tx.technion.ac.il> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44F5EF97.3020906@tx.technion.ac.il> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes 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-08/txt/msg00252.txt.bz2 On Wed, Aug 30, 2006 at 11:05:43PM +0300, Michael Veksler wrote: > Should I open a PR, or several PRs? > Maybe someone else that can split my single test case into subtopics, > each to fit its own PR? > Does it make sense to create test case for the missing 50% of the > crashes I have seen, or will it be better to wait and see if they get > fixed by other PRs? Let's look at one thing at a time. The first two crashes should, I think, be addressed by this patch. Could you try it? Some of the later crashes are caused by this: (gdb) set $a = x.Print (gdb) p $a $7 = I have a whole lot of patches related to member functions, that I haven't had time to merge yet - and I would not like to look at this until I've done that. -- Daniel Jacobowitz CodeSourcery 2006-08-30 Daniel Jacobowitz * infcall.c (call_function_by_hand): Check for function pointer types. Index: src/gdb/infcall.c =================================================================== --- src.orig/gdb/infcall.c 2006-08-30 16:19:00.000000000 -0400 +++ src/gdb/infcall.c 2006-08-30 16:18:43.000000000 -0400 @@ -337,6 +337,9 @@ call_function_by_hand (struct value *fun struct cleanup *caller_regcache_cleanup; struct frame_id dummy_id; + if (TYPE_CODE (ftype) == TYPE_CODE_PTR) + ftype = check_typedef (TYPE_TARGET_TYPE (ftype)); + if (!target_has_execution) noprocess ();