From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3188 invoked by alias); 8 May 2002 20:32:22 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3153 invoked from network); 8 May 2002 20:32:19 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 8 May 2002 20:32:19 -0000 Received: from creche.cygnus.com (ta0203.peakpeak.com [204.144.244.203]) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id OAA20906; Wed, 8 May 2002 14:32:16 -0600 Received: (from tromey@localhost) by creche.cygnus.com (8.9.3/8.9.3) id OAA17625; Wed, 8 May 2002 14:42:16 -0600 To: Daniel Jacobowitz Cc: Michael Snyder , gdb-patches@sources.redhat.com Subject: Re: Patch: printing java `char' values References: <877kmh8a6r.fsf@creche.redhat.com> <3CD8429E.DA6D6BC7@redhat.com> <873cx3vdhy.fsf@creche.redhat.com> <3CD9756D.F0AE4AF@redhat.com> <20020508194746.GA31548@nevyn.them.org> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: Of course, you UNDERSTAND about the PLAIDS in the SPIN CYCLE -- Date: Wed, 08 May 2002 13:32:00 -0000 In-Reply-To: Daniel Jacobowitz's message of "Wed, 8 May 2002 15:47:46 -0400" Message-ID: <878z6umkwn.fsf@creche.redhat.com> X-SW-Source: 2002-05/txt/msg00225.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: Daniel> Soemthing interesting is going on here... I'd like to know how Daniel> it works in the stabs case. Tom, could you compile your test Daniel> with -gstabs+ and step through the char printing code? When I Daniel> do that, 'c' has TYPE_CODE_CHAR set anyway, even though the Daniel> stabs reader marked it as TYPE_CODE_INT. It'd be nice to Daniel> figure out where that magic happens. When I use -gstabs+ the type looks like this: (gdb) p *type $1 = { code = TYPE_CODE_CHAR, name = 0x83e6574 "char", tag_name = 0x0, length = 2, upper_bound_type = 0, lower_bound_type = 0, objfile = 0x0, target_type = 0x0, pointer_type = 0x0, reference_type = 0x0, cv_type = 0x83d4980, as_type = 0x83d4980, flags = 1, nfields = 0, fields = 0x0, vptr_basetype = 0x0, vptr_fieldno = -1, type_specific = { arg_types = 0x0, cplus_stuff = 0x0, floatformat = 0x0 } } HTH, Tom