From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32410 invoked by alias); 31 Dec 2019 17:56:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 32402 invoked by uid 89); 31 Dec 2019 17:56:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=casting X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 31 Dec 2019 17:56:11 +0000 Received: from [10.0.0.11] (unknown [192.222.164.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 012AF1E50B; Tue, 31 Dec 2019 12:56:09 -0500 (EST) Subject: Re: [PATCH] Fix handling of null stap semaphores From: Simon Marchi To: George Barrett , gdb-patches@sourceware.org References: <5we87igzwt5_kr.5b-38floyexzwmozuj6vb-.hmx8r4u3r41_sy@mail.bob131.so> Message-ID: <80ec9762-c25b-747d-40f9-eafbb357cff1@simark.ca> Date: Tue, 31 Dec 2019 17:56:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-12/txt/msg01083.txt.bz2 On 2019-12-29 1:58 p.m., Simon Marchi wrote: > Note that I found what looks like to be a GDB bug while doing this: > > https://sourceware.org/bugzilla/show_bug.cgi?id=25321 Btw, forget about this, I was just forgetting how pointer arithmetic works. Making the global variable a char instead of an int (or casting the pointers in GDB) should make it work as expected. Simon