Message ID | cover.1703361278.git.aburgess@redhat.com |
---|---|
Headers |
Return-Path: <gdb-patches-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 A47073858408 for <patchwork@sourceware.org>; Sat, 23 Dec 2023 19:56:25 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id E93103858D33 for <gdb-patches@sourceware.org>; Sat, 23 Dec 2023 19:56:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E93103858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E93103858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703361372; cv=none; b=gSDwwcnLrYJGDDSXGxRR781yNoL9G00Ii4zQSqzdSfLl3Se+yYG/d2toqaAGctymNjh5b+e7wQcq8KaXfeNQ70JxWI9nigWvP9ZJSDJAWpUnXJVJA0eg5XBl7O1oL/eonxBhtpbqaNcGICj2bJv4YFB4wKfnXKwmGGwmmCrwep8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703361372; c=relaxed/simple; bh=YbrgEfuegNKjS5nwJPVPEban3Kasq6CQnJQRPOT+t/8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=VdOTxTBgL5jCrYYQs2k1Qve5MP8oI4CWK4Sak+IRMiavGbnKzRrRLHc7Bw4tlZiafJfcPvzXsPLnwHz066I8sEzAA67JH5PpkBWCOzkqAFLKgP7Uw0h1FkNxlbBgwA6sNoS5AZSpx/as5dGYdWVhv9vyenobNW8osz+SpwpIUkQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1703361370; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MY6UbX4Jx/vm4zFA4fYCjnSLl00o3jNw30/WuVtneXk=; b=diYlm1FHRiGsqDxtaArFM2IuwvKZzgzWQJhYbuzHVRkW+tllHQcBEbariT2yOJlOfZSE/g /y00LYGUfdMsdnAXAI2nwiC8w7c/aCvGZd3hh0e4zyo01AjoJsBZRGwMAzJ8kGsszPSxqy ZUIq75G1mn+QuP33kPrQ81QQoJbVATQ= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-172-ikxkcGxAOUWfyZj3V00Niw-1; Sat, 23 Dec 2023 14:56:08 -0500 X-MC-Unique: ikxkcGxAOUWfyZj3V00Niw-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3368250f2a3so1822627f8f.3 for <gdb-patches@sourceware.org>; Sat, 23 Dec 2023 11:56:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703361367; x=1703966167; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MY6UbX4Jx/vm4zFA4fYCjnSLl00o3jNw30/WuVtneXk=; b=mknXl514nFSKw2ev3BnRSLKNoLj1BNfrYPO3aENf+Rg3vme4rqtQ7Gg9kdTk/wtMMC xmeXI7iOqKWohUzPSMTJVSenf+c+r/NuGle3pENOAqHPu7JNgJtsUaWgtlTWnjU4dl4b QTvLEvMqd4Mnip0pdGHGT512oLX5wcGx6MjANuf6rv/8B/8kQ2JV1MiBVvnjfqjXPB+R x6L8tyOHLyDiNP4A8ah4Z9etupCGIM3BGTEwstUh8VXum4urrrQsJhP1Z5bU/F0SNNeR XcykRokcRFHqwA7UFWo2HQ/FHz3jt6Sm0FAMPegDaCxiBm9pobPXreaoPV2tCrT9C4hT qzAA== X-Gm-Message-State: AOJu0YxY92K9teCRrHdKn5p1PanL4k/nKRop+cAiwkPKEfAw9F3KN7kU OajUEUBc82Y+XfPY41jcBYfl7txf7FtqaHQJ5EYhxfjnNLzXIPuaUzfC1N2LAtqnH3Suox/Rsxl LRJyzk4T1PdwQsga5kdxuiEp8jilGWRLDaEZaSJv0xdi2r5BiaDYQUxn9GBH7CNg5PtRI28bvaX p4m4KrXka/nhNHTg== X-Received: by 2002:adf:fa08:0:b0:336:6dad:2698 with SMTP id m8-20020adffa08000000b003366dad2698mr793381wrr.82.1703361366794; Sat, 23 Dec 2023 11:56:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfBzdckvvycPydAz+GxRW51F6ramDIPlvFFHPO9KWJ9ZxQA19n2V+o9rGDkd6+wp7piBZTxw== X-Received: by 2002:adf:fa08:0:b0:336:6dad:2698 with SMTP id m8-20020adffa08000000b003366dad2698mr793376wrr.82.1703361366374; Sat, 23 Dec 2023 11:56:06 -0800 (PST) Received: from localhost ([2a00:23c7:c696:e701:85a5:8a0c:1403:2dc]) by smtp.gmail.com with ESMTPSA id n15-20020a5d400f000000b0033662fb321esm7106780wrp.33.2023.12.23.11.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 11:56:06 -0800 (PST) From: Andrew Burgess <aburgess@redhat.com> To: gdb-patches@sourceware.org Cc: Andrew Burgess <aburgess@redhat.com> Subject: [PATCH 0/2] Changes to error reporting from the expression parser Date: Sat, 23 Dec 2023 19:56:02 +0000 Message-Id: <cover.1703361278.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org |
Series |
Changes to error reporting from the expression parser
|
|
Message
Andrew Burgess
Dec. 23, 2023, 7:56 p.m. UTC
While working on another patch I wished that the error reporting from the expression parser was better. This series is my attempt to make it better. --- Andrew Burgess (2): gdb: improve error reporting from expression parser gdb: don't try to style content in error calls gdb/ada-exp.y | 2 +- gdb/c-exp.y | 5 +---- gdb/d-exp.y | 5 +---- gdb/f-exp.y | 5 +---- gdb/go-exp.y | 5 +---- gdb/m2-exp.y | 5 +---- gdb/p-exp.y | 5 +---- gdb/parse.c | 16 ++++++++++++++++ gdb/parser-defs.h | 9 +++++++++ gdb/procfs.c | 6 ++---- gdb/testsuite/gdb.ada/bp_c_mixed_case.exp | 4 ++-- gdb/testsuite/gdb.base/exprs.exp | 7 +++++++ gdb/testsuite/gdb.base/quit.exp | 2 +- gdb/testsuite/gdb.base/settings.exp | 4 ++-- gdb/testsuite/gdb.base/watch_thread_num.exp | 2 +- gdb/testsuite/gdb.cp/local-static.exp | 2 +- gdb/testsuite/gdb.dlang/expression.exp | 2 +- 17 files changed, 49 insertions(+), 37 deletions(-) base-commit: 316e74cec34cde2468e50aadafc62ce86d1971a6