Message ID | CAOscM-t2qAxRUpgOi0ewsAyoDoOgY3-P9BS1Bphg3MJExnCm=w@mail.gmail.com |
---|---|
Headers |
Return-Path: <binutils-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8D630385E008 for <patchwork@sourceware.org>; Fri, 8 Mar 2024 18:05:07 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by sourceware.org (Postfix) with ESMTPS id 392EF3858D33 for <binutils@sourceware.org>; Fri, 8 Mar 2024 18:04:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 392EF3858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 392EF3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::729 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709921081; cv=none; b=RsgSgmH/2DYDI2gVbBSIAfM/raRONjWtAEi0obnWzsDlgkiLTk2FdkTFPCYC/tW6B69VfmeO6cIbPAXKLXKnx1bTtkKRXFWcCHREoEzYqwYWt0OE6zyQ8TOFDlxR2gWVHhPL98lso4PwLeSK52HQOrTjKV+uUtbZpL7g4Ux7JXE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709921081; c=relaxed/simple; bh=tWAwt5KTYJ1faPLobv3LyMbwg8wFVj5ZgWWI/PW/P1E=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=XLmB5Rud24Q2IwJorR66z2nGyCSC4KnZR4h7iT/qR5YiQfVjgu4O7QhWe27n1DsWRqUT5tm83GW0orhYyosTbabgUPuLmiTHojwRZJcqFSmX2QFPiw4k8maiipukt0PZklTpEOfbHgsOdZBjtsEdg+NLOim1eed4V9C6Pj9zJSQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-7882e94d408so183789085a.0 for <binutils@sourceware.org>; Fri, 08 Mar 2024 10:04:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709921078; x=1710525878; darn=sourceware.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=tWAwt5KTYJ1faPLobv3LyMbwg8wFVj5ZgWWI/PW/P1E=; b=kLfJGMoo6kdmHDk4S799dndZVvAUtr7TXb/O6ATbC+Q4bKW/utU2OFFM2kjm8ZbyzJ gNI9lX2OzgneFhxYMekdbVl+q7UMNTOSRfuaHOdKUWfzQSa2kYCgD/ME/oI0sUCcq521 /s2JOUH/n1zoMz768LelGwmxbUXoi8E95t9s+b8oQr0wZ4k66VSz8xSWsZvr1qdbl4mC 6dQF3RNq2N3b5VqP8EXFFws1+QILdaD+0N8QVibSp8aNnNhUnean6Xj+fGpuc2JDq7ZH b7m0DfF56YyBPk4G12f8xAFn0v1wXXL2NnvT+fTrjib6YsKOSGmE6UNM+oSBCHGj13jy lB+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709921078; x=1710525878; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tWAwt5KTYJ1faPLobv3LyMbwg8wFVj5ZgWWI/PW/P1E=; b=Gs9mwsGkBDxLPMxs4wJrFvhzMys8gmwRqsArdWpJHfUlcIoIig03OD65GMSlTccFhW pSCfcPNtvz9CIK97QLzSZOVr6ONZPHBNogWGtEXtsLie9ODqSw5eZUOqlKdCyT8rkzyB m/5HUz53lamiotgKBG0VPCWrCiCcYqDbhJYPxZxbInzroZ1K7UXQTMda81yVmqMRS8ey 8cboaQCdlkV0QdCCkIKFdnALx0yz0qi/KEmBe/y1MRuuDYftBMKP5WlW8BkKQtHKrYLD yW4Ajp0trWnD389l8Nc+C8EsqhPcs9eiTvAkwqIstsAsWdOGdQhks9EYXoSswsvfyR9g E0lw== X-Gm-Message-State: AOJu0YznoHdzCy6rJHVhIh74vuzh/OLXh6/oiuRo3GWD8JYeplWrrw8l SH6rVAKK0nGF6i1HjntpiuJ1+UUWTTbqlmtyRPQGyhhHmcpOdxWbV+bRM+KDRSu7E1XXSIKYiuz 2a0ilBl9ltsUVYXhO4Pp4ma5cWkCDP7lFxbW5zw== X-Google-Smtp-Source: AGHT+IGnPglTtm3mgjl/Bf9FUkMLVvPqNMB+K41yjaH0HXe6znRlYYW4zhqxM8M/pv7iiF3RIHPACbTU844/W/troLM= X-Received: by 2002:a0c:c70c:0:b0:690:8551:7b68 with SMTP id w12-20020a0cc70c000000b0069085517b68mr11302464qvi.37.1709921078432; Fri, 08 Mar 2024 10:04:38 -0800 (PST) MIME-Version: 1.0 From: =?utf-8?b?TWlrb8WCYWogUGlyw7Nn?= <mikolajpirog@gmail.com> Date: Fri, 8 Mar 2024 19:04:27 +0100 Message-ID: <CAOscM-t2qAxRUpgOi0ewsAyoDoOgY3-P9BS1Bphg3MJExnCm=w@mail.gmail.com> Subject: [RFC][PATCH v2 0/2] objdump, libiberty: Implement short name search To: binutils@sourceware.org Content-Type: multipart/alternative; boundary="000000000000795e7e06132a0624" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org |
Series |
objdump, libiberty: Implement short name search
|
|
Message
Mikołaj Piróg
March 8, 2024, 6:04 p.m. UTC
This patch refines my previous attempt of implementing short name search ( https://sourceware.org/pipermail/binutils/2024-February/132713.html). The idea is to enable such usage: objdump --disassemble=ns::foo -C file The objdump will then output all symbols matching the name "ns::foo". I introduced new demangling option to remove template qualification, so for example, "--dissassemble=std::vector::push_back" will match all instances of push_back in the file. The motivation behind this usage is to ease a process of a quick disassembly of a binary in search for a particular function. Providing a function signature isn't comfortable.