From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7759 invoked by alias); 19 May 2008 09:06:39 -0000 Received: (qmail 7750 invoked by uid 22791); 19 May 2008 09:06:38 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate2.de.ibm.com (HELO mtagate2.de.ibm.com) (195.212.29.151) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 19 May 2008 09:06:13 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate2.de.ibm.com (8.13.8/8.13.8) with ESMTP id m4J96Ag1073658 for ; Mon, 19 May 2008 09:06:10 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m4J969Si2412734 for ; Mon, 19 May 2008 11:06:09 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m4J969wA009280 for ; Mon, 19 May 2008 11:06:09 +0200 Received: from bbkeks.de.ibm.com (dyn-9-152-248-39.boeblingen.de.ibm.com [9.152.248.39]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m4J967iF009222 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 May 2008 11:06:09 +0200 Message-ID: <483142FF.5060304@de.ibm.com> Date: Mon, 19 May 2008 09:06:00 -0000 From: Markus Deuling User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: insight@sourceware.org CC: Ulrich Weigand Subject: [ob]: Get rid of deprecated_print_address_numeric Content-Type: multipart/mixed; boundary="------------070301030300010801080906" Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00075.txt.bz2 This is a multi-part message in MIME format. --------------070301030300010801080906 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Content-length: 628 Hi, this patch: http://sourceware.org/ml/gdb-patches/2008-05/msg00540.html gets rid of deprecated_print_address_numeric in GDB. Therefor I propose following patch for Insight as obvious. This patch is untested. I'll be very happy if someone with Insight experience could look it over and give it a test. Thank you very much. Ok to commit as obvious? ChangeLog: * generic/gdbtk-cmds.c (gdbtk_load_asm): Replace deprecated_print_address_numeric with paddress. * generic/gdbtk-stack.c (get_frame_name): Likewise (comment). Regards, Markus -- Markus Deuling GNU Toolchain for Linux on Cell BE deuling@de.ibm.com --------------070301030300010801080906 Content-Type: text/plain; name="diff-gdbtk" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff-gdbtk" Content-length: 1198 diff -urpN src/gdb/gdbtk/generic/gdbtk-cmds.c dev/gdb/gdbtk/generic/gdbtk-cmds.c --- src/gdb/gdbtk/generic/gdbtk-cmds.c 2008-05-12 09:24:54.000000000 +0200 +++ dev/gdb/gdbtk/generic/gdbtk-cmds.c 2008-05-19 10:59:19.000000000 +0200 @@ -1889,7 +1889,7 @@ gdbtk_load_asm (ClientData clientData, C for (i = 0; i < 3; i++) Tcl_SetObjLength (client_data->result_obj[i], 0); - deprecated_print_address_numeric (pc, 1, gdb_stdout); + fputs_filtered (paddress (pc), gdb_stdout); gdb_flush (gdb_stdout); result_ptr->obj_ptr = client_data->result_obj[1]; diff -urpN src/gdb/gdbtk/generic/gdbtk-stack.c dev/gdb/gdbtk/generic/gdbtk-stack.c --- src/gdb/gdbtk/generic/gdbtk-stack.c 2008-03-07 09:03:19.000000000 +0100 +++ dev/gdb/gdbtk/generic/gdbtk-stack.c 2008-05-19 11:00:44.000000000 +0200 @@ -594,7 +594,7 @@ get_frame_name (Tcl_Interp *interp, Tcl_ /* we have no convenient way to deal with this yet... */ if (fi->pc != sal.pc || !sal.symtab) { - deprecated_print_address_numeric (fi->pc, 1, gdb_stdout); + fputs_filtered (paddress (fi->pc), gdb_stdout); printf_filtered (" in "); } printf_symbol_filtered (gdb_stdout, funname ? funname : "??", funlang, --------------070301030300010801080906--