Message ID | 0093fc2d9dbff0f912ef48fd61a412b3a6378c3c.1666258361.git.research_trasio@irq.a4lg.com |
---|---|
State | Committed |
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 E2A3638A817A for <patchwork@sourceware.org>; Thu, 20 Oct 2022 09:39:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2A3638A817A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666258740; bh=R/toRILIdgVeh5Or4MzlwsPwrxE9N1wKmEnr0I9VvtI=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=GDCxfZvCtspv0rh75Ohee92yvUYAa74GRG3V8XFGvvYfiMiMvqScxXk4CuaKDjWqR deeZVvPgIiQf/69KchRtKYiZ/scX4OENAHftL0ztNC22amppBO+0u/WrKfG2agQ9sh A+GySfGF0aqRV4QDu5fYEuMZ0lzkJNNHTlnaqH9g= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id 3646A3953829 for <gdb-patches@sourceware.org>; Thu, 20 Oct 2022 09:38:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3646A3953829 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 7BA10300089; Thu, 20 Oct 2022 09:38:09 +0000 (UTC) To: Tsukasa OI <research_trasio@irq.a4lg.com>, Andrew Burgess <aburgess@redhat.com>, Mike Frysinger <vapier@gentoo.org>, Nick Clifton <nickc@redhat.com> Subject: [PATCH 30/40] sim/ppc: Use TRACE with initialized entry_point Date: Thu, 20 Oct 2022 09:32:35 +0000 Message-Id: <0093fc2d9dbff0f912ef48fd61a412b3a6378c3c.1666258361.git.research_trasio@irq.a4lg.com> In-Reply-To: <cover.1666258361.git.research_trasio@irq.a4lg.com> References: <cover.1666258361.git.research_trasio@irq.a4lg.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP 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: Tsukasa OI via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Tsukasa OI <research_trasio@irq.a4lg.com> Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
sim+gdb: Suppress warnings if built with Clang (big batch 1)
|
|
Commit Message
Tsukasa OI
Oct. 20, 2022, 9:32 a.m. UTC
On a TRACE call on sim_create_inferior, a variable entry_point is not initialized. This commit moves the TRACE call to where the entry_point is initialized. --- sim/ppc/sim_calls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
lgtm, but i think Andrew posted the same fix -mike
On 2022/10/24 0:08, Mike Frysinger wrote: > lgtm, but i think Andrew posted the same fix > -mike I'll leave it for Andrew (PATCH 02/10) and I will withdraw following patches from my patchset: - PATCH 03/40 - PATCH 15/40 - PATCH 16/40 (wrote by Andrew) - PATCH 28/40 - PATCH 30/40 - PATCH 36/40 Because this patchset (intended to be a RFC PATCH) is a mere copy of my working branch, I need to sync with Andrew's work. Thanks, Tsukasa
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c index 729f6dcb6f3..eddce4ac00a 100644 --- a/sim/ppc/sim_calls.c +++ b/sim/ppc/sim_calls.c @@ -161,8 +161,6 @@ sim_create_inferior (SIM_DESC sd, char * const *envp) { unsigned_word entry_point; - TRACE(trace_gdb, ("sim_create_inferior(start_address=0x%x, ...)\n", - entry_point)); if (simulator == NULL) error ("No program loaded"); @@ -171,6 +169,8 @@ sim_create_inferior (SIM_DESC sd, entry_point = bfd_get_start_address (abfd); else entry_point = 0xfff00000; /* ??? */ + TRACE(trace_gdb, ("sim_create_inferior(start_address=0x%x, ...)\n", + entry_point)); psim_init(simulator); psim_stack(simulator, argv, envp);