From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5964 invoked by alias); 9 Dec 2002 22:38:49 -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 5888 invoked from network); 9 Dec 2002 22:38:45 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 9 Dec 2002 22:38:45 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id D42A23F4D for ; Mon, 9 Dec 2002 17:38:38 -0500 (EST) Message-ID: <3DF51B6E.10009@redhat.com> Date: Mon, 09 Dec 2002 14:47:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [commit] Print MALLOC_NAME as a string Content-Type: multipart/mixed; boundary="------------000300030003040102090603" X-SW-Source: 2002-12/txt/msg00302.txt.bz2 This is a multi-part message in MIME format. --------------000300030003040102090603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 66 Another cleanup for `maint print architecture' Committed, Andrew --------------000300030003040102090603 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1934 2002-12-09 Andrew Cagney * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. * gdbarch.c: Re-generate. Index: gdbarch.c =================================================================== RCS file: /cvs/src/src/gdb/gdbarch.c,v retrieving revision 1.169 diff -u -r1.169 gdbarch.c --- gdbarch.c 9 Dec 2002 02:04:16 -0000 1.169 +++ gdbarch.c 9 Dec 2002 22:20:21 -0000 @@ -1684,8 +1684,8 @@ "gdbarch_dump: NAME_OF_MALLOC # %s\n", XSTRING (NAME_OF_MALLOC)); fprintf_unfiltered (file, - "gdbarch_dump: NAME_OF_MALLOC = %ld\n", - (long) NAME_OF_MALLOC); + "gdbarch_dump: NAME_OF_MALLOC = %s\n", + NAME_OF_MALLOC); #endif #ifdef NPC_REGNUM fprintf_unfiltered (file, Index: gdbarch.sh =================================================================== RCS file: /cvs/src/src/gdb/gdbarch.sh,v retrieving revision 1.181 diff -u -r1.181 gdbarch.sh --- gdbarch.sh 9 Dec 2002 02:04:16 -0000 1.181 +++ gdbarch.sh 9 Dec 2002 22:20:22 -0000 @@ -672,7 +672,7 @@ F:2:DWARF2_BUILD_FRAME_INFO:void:dwarf2_build_frame_info:struct objfile *objfile:objfile:::0 f:2:ELF_MAKE_MSYMBOL_SPECIAL:void:elf_make_msymbol_special:asymbol *sym, struct minimal_symbol *msym:sym, msym:::default_elf_make_msymbol_special::0 f:2:COFF_MAKE_MSYMBOL_SPECIAL:void:coff_make_msymbol_special:int val, struct minimal_symbol *msym:val, msym:::default_coff_make_msymbol_special::0 -v::NAME_OF_MALLOC:const char *:name_of_malloc::::"malloc":"malloc"::0 +v::NAME_OF_MALLOC:const char *:name_of_malloc::::"malloc":"malloc"::0:%s:NAME_OF_MALLOC v::CANNOT_STEP_BREAKPOINT:int:cannot_step_breakpoint::::0:0::0 v::HAVE_NONSTEPPABLE_WATCHPOINT:int:have_nonsteppable_watchpoint::::0:0::0 F:2:ADDRESS_CLASS_TYPE_FLAGS:int:address_class_type_flags:int byte_size, int dwarf2_addr_class:byte_size, dwarf2_addr_class --------------000300030003040102090603--