From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by sourceware.org (Postfix) with ESMTPS id BB5BD3857C5D for ; Fri, 22 Jul 2022 11:02:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BB5BD3857C5D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f52.google.com with SMTP id a18-20020a05600c349200b003a30de68697so4913234wmq.0 for ; Fri, 22 Jul 2022 04:02:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G9vXvzfXEU7QASahLuUiDkwqfPXqp1IdP/PJ7i8+3I4=; b=0nRLXtvcDIY8PAVYDsherK9KM1BY6O91KX2N22+qubXT5BaFkJy53j5JHMktFqquJc wa0QUcJ82NKTmJHH7YnZrT0rp54Hfl5/BX/LLTEl1rCPA+5GXr9VE4O39hII9e75X5vp MTYK241giNeBju/Xkmltu1Bikyxemq7P6SQvCgSKOiS1sC7uM9MBC82chfY/UcUf3nHx gB2oyUtytR/OvxdcDZITPQjo1F6fXB9LwnpM0nPZWa53iG+AyKNYvnrBE40V0UNIC5iD 3XGucv2v3cPZ4d9GwiWslpjrVY/PjaVkMPWUxPMKd8TZAkIHbpUurGrDqXzxLdJZuZPS yxgQ== X-Gm-Message-State: AJIora8bK0Dcm/MS2AsibYYGh1poJ9AcSeCX3znV/5Rngk4UNSyuNtTe /bxLiAHjcr9D5adYiH3gAkojhIGtZds= X-Google-Smtp-Source: AGRyM1tX5erC6Qt33B26P5mtCSGR8vmxP4V0cGVJ9+Q7wALpcvwYTSigO+Cgpmvz/RFtSb/ivXv4Tw== X-Received: by 2002:a05:600c:209:b0:3a3:11a3:d6a8 with SMTP id 9-20020a05600c020900b003a311a3d6a8mr47683wmi.13.1658487726182; Fri, 22 Jul 2022 04:02:06 -0700 (PDT) Received: from localhost ([2001:8a0:f924:2600:209d:85e2:409e:8726]) by smtp.gmail.com with ESMTPSA id o11-20020a5d58cb000000b0021d63fe0f03sm4391006wrf.12.2022.07.22.04.02.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Jul 2022 04:02:05 -0700 (PDT) From: Pedro Alves To: gdb-patches@sourceware.org Cc: Tom de Vries , Tom Tromey Subject: [PATCH 0/1] Introduce gdb::make_function_view Date: Fri, 22 Jul 2022 12:02:02 +0100 Message-Id: <20220722110203.4152339-1-pedro@palves.net> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2022 11:02:09 -0000 This adds gdb::make_function_view, which let's you create a function view from a callable without specifying the function_view's template parameter type. The need for this came up in this thread: https://sourceware.org/pipermail/gdb-patches/2022-July/190985.html Pedro Alves (1): Introduce gdb::make_function_view gdb/unittests/function-view-selftests.c | 82 ++++++++++++++- gdbsupport/function-view.h | 127 ++++++++++++++++++++++++ 2 files changed, 208 insertions(+), 1 deletion(-) base-commit: 6577f365ebdee7dda71cb996efa29d3714cbccd0 -- 2.36.0