From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31134 invoked by alias); 13 Nov 2012 05:46:22 -0000 Received: (qmail 31114 invoked by uid 22791); 13 Nov 2012 05:46:20 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,TW_BJ X-Spam-Check-By: sourceware.org Received: from e24smtp01.br.ibm.com (HELO e24smtp01.br.ibm.com) (32.104.18.85) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 13 Nov 2012 05:45:58 +0000 Received: from /spool/local by e24smtp01.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Nov 2012 03:45:55 -0200 Received: from d24dlp02.br.ibm.com (9.18.248.206) by e24smtp01.br.ibm.com (10.172.0.143) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 Nov 2012 03:45:52 -0200 Received: from d24relay01.br.ibm.com (d24relay01.br.ibm.com [9.8.31.16]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id A0E851DC001A; Tue, 13 Nov 2012 00:45:51 -0500 (EST) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.8.31.91]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAD5jVcO2507000; Tue, 13 Nov 2012 03:45:31 -0200 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAD5jpFB018694; Tue, 13 Nov 2012 03:45:51 -0200 Received: from grandaddy.ibm.com ([9.8.15.203]) by d24av01.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id qAD5joE3018691; Tue, 13 Nov 2012 03:45:51 -0200 From: Edjunior Barbosa Machado To: gdb-patches@sourceware.org Cc: binutils@sourceware.org, amodra@gmail.com Subject: [PATCH] Fix gdb disassemble for power6/power7 instructions Date: Tue, 13 Nov 2012 05:46:00 -0000 Message-Id: <1352785540-22911-1-git-send-email-emachado@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12111305-1524-0000-0000-00000458BEF9 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00304.txt.bz2 Hi, upstream gdb is unable to disassemble power6 and power7 instructions due to a change on binutils (http://sourceware.org/ml/binutils/2012-03/msg00170.html). It happens because powerpc_init_dialect() is currently being called before disassembler_options is configured (it used to be called every time print_insn_[little|big]_powerpc() was called). The patch below intends to fix this issue moving the logic to set disassembler_options to powerpc_init_dialect(). Moreover, with this patch, objdump is also able to disassemble power6 and power7 instructions without the additional parameter -M