From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56702 invoked by alias); 2 Jul 2018 23:01:12 -0000 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 Received: (qmail 56672 invoked by uid 89); 2 Jul 2018 23:01:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.3 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_ASCII_DIVIDERS,KAM_SHORT,SPF_PASS autolearn=ham version=3.3.2 spammy=gdbarch_info, xlr, longest, 8.1 X-HELO: 9pmail.ess.barracuda.com Received: from 9pmail.ess.barracuda.com (HELO 9pmail.ess.barracuda.com) (64.235.150.224) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Jul 2018 23:01:03 +0000 Received: from mipsdag02.mipstec.com (mail2.mips.com [12.201.5.32]) by mx4.ess.sfj.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NO); Mon, 02 Jul 2018 23:00:35 +0000 Received: from [10.20.78.36] (10.20.78.36) by mipsdag02.mipstec.com (10.20.40.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1415.2; Mon, 2 Jul 2018 16:00:19 -0700 Date: Mon, 02 Jul 2018 23:01:00 -0000 From: "Maciej W. Rozycki" To: Simon Marchi , Nick Clifton CC: Simon Marchi , Joel Brobecker , Fredrik Noring , , Subject: [committed v5] GDB PR tdep/8282: MIPS: Wire in `set disassembler-options' In-Reply-To: Message-ID: References: <3bd95a5f-e43e-2efe-e261-c2cf30d06d14@ericsson.com> <5d5b6d47508d5f54ff2eb6e514a7da2c@polymtl.ca> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-Path: macro@mips.com X-BESS-Apparent-Source-IP: 12.201.5.32 X-SW-Source: 2018-07/txt/msg00040.txt.bz2 Implement MIPS target support for passing options to the disassembler, complementing commit 65b48a81404c ("GDB: Add support for the new set/show disassembler-options commands."). This includes options that expect an argument, so adjust the generic code and data structures used so as to handle such options. So as to give backends syntax flexibility no specific delimiter has been defined to separate options from their respective arguments, so it has to be included as the last character of the option name. Completion code however has not been adjusted and consequently option arguments cannot be completed at this time. Also the MIPS target has non-empty defaults for the options, so that ABI names for the general-purpose registers respect our `set mips abi ...' setting rather than always being determined from the ELF headers of the binary file selected. Handle these defaults as implicit options, never shown to the user and always prepended to the user-specified options, so that the latters can override the defaults. The resulting output for the MIPS target is as follows: (gdb) show disassembler-options The current disassembler options are '' The following disassembler options are supported for use with the 'set disassembler-options