Message ID | 20230424162211.682763-1-tromey@adacore.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 4915C3857715 for <patchwork@sourceware.org>; Mon, 24 Apr 2023 16:22:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4915C3857715 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682353367; bh=XlVn3UMtp74XiL5NQilggnf3QspbM/ps1TM5woLVHH4=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=o/SJHEfHQAPhnNr5QCXGsBofGaWJV9hQQqyR+Q+ZRVTpNfRJ/RhtX+WQwqDF2gLpN YDG//waTP4ryIF1+cKfH9DsuKFTD0HffzxbfazBxI0VziGD3mm/T5eqo0XsA/uDKBF r2BgfgMnCmxxtErkxlZM2HfsNtth2kFi5NmqHt0c= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by sourceware.org (Postfix) with ESMTPS id 990883858D1E for <gdb-patches@sourceware.org>; Mon, 24 Apr 2023 16:22:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 990883858D1E Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-763c34315c1so116490039f.3 for <gdb-patches@sourceware.org>; Mon, 24 Apr 2023 09:22:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682353342; x=1684945342; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XlVn3UMtp74XiL5NQilggnf3QspbM/ps1TM5woLVHH4=; b=W7b9mCrwR9juQwtHMe9AFabsBF6YK8FCpEo6M5LdJGD4IBFhY9xAajp8o/m66sNKY/ LCswKUulT6diS5i4xCgJ1aGS+CXX+JFP4eBUAEHaOa+/BghoxT/5etpazTTA9ikSZ8fi 9rBYhweI1FsSoQ8K706pAsLUMn0mahWqC1fRMMcTSZmZczyqqg5lL5uK7EFp3g40hL+k oGJam+P87Z9f3G+jOzppxSD4F/n7LdTWhEnYYHg0ENSvyaoYGllOjmHau32Qjo27PqJV JM1Z/1OUgJOD13VrX2oS60ixMxVAfShVs6q8YPKW0tJbR1tlGyElTCcsdqqa+pIFimG7 3dgg== X-Gm-Message-State: AAQBX9e1Azgz1kdGG2GYJs9CcVf62w4pxxh4e3SeDQCurc84pVieWMRz 2c+8YF1MjEqfZ8Sg01g+DgCZHwtcVQkNpjfvjJF8sA== X-Google-Smtp-Source: AKy350Zs3ICtSVkzf8Pxby3etcTf08wmBvLd98eERC3N6JHOsh7xngsHAdzVufL+nDXPPfxApj2GiA== X-Received: by 2002:a5e:cb09:0:b0:763:5cf8:65eb with SMTP id p9-20020a5ecb09000000b007635cf865ebmr6142756iom.9.1682353341828; Mon, 24 Apr 2023 09:22:21 -0700 (PDT) Received: from localhost.localdomain (71-211-191-82.hlrn.qwest.net. [71.211.191.82]) by smtp.gmail.com with ESMTPSA id cx27-20020a056638491b00b0040fa19472bcsm3444049jab.92.2023.04.24.09.22.21 for <gdb-patches@sourceware.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 09:22:21 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [RFC 00/10] More use of unrelocated_addr Date: Mon, 24 Apr 2023 10:22:01 -0600 Message-Id: <20230424162211.682763-1-tromey@adacore.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 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> From: Tom Tromey via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Tom Tromey <tromey@adacore.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
More use of unrelocated_addr
|
|
Message
Tom Tromey
April 24, 2023, 4:22 p.m. UTC
While working on a different patch, I decided to add more use of unrelocated_addr to the DWARF reader. This caught at least one latent bug, see patch #10. (I thought there was another one as well, but I can't find it now.) The main ugliness here is that it adds a lot of casts. Partly (but not entirely) this is due to the decision to not use DEFINE_OFFSET_TYPE for unrelocated_addr. Maybe it would be better to write a custom wrapper class for unrelocated_addr instead. I moved unrelocated_addr to gdbsupport, but maybe it would be better in defs.h. I'm not sure. Regression tested on x86-64 Fedora 36. Let me know what you think. Tom
Comments
>>>>> "Tom" == Tom Tromey via Gdb-patches <gdb-patches@sourceware.org> writes:
Tom> While working on a different patch, I decided to add more use of
Tom> unrelocated_addr to the DWARF reader. This caught at least one latent
Tom> bug, see patch #10. (I thought there was another one as well, but I
Tom> can't find it now.)
Tom> The main ugliness here is that it adds a lot of casts. Partly (but
Tom> not entirely) this is due to the decision to not use
Tom> DEFINE_OFFSET_TYPE for unrelocated_addr. Maybe it would be better to
Tom> write a custom wrapper class for unrelocated_addr instead.
Tom> I moved unrelocated_addr to gdbsupport, but maybe it would be better
Tom> in defs.h. I'm not sure.
Tom> Regression tested on x86-64 Fedora 36.
Tom> Let me know what you think.
I rebased this and re-regression tested it.
I'm checking it in now.
Tom