DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 61QDQF0L1098035
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 61QDQF0L1098035
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=eFmhhu2H
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 59D154BA2E16
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1772112374;
	bh=rIhGvk2FjG7etwestPt7kLnYltdn/bd/2tdD7kU/Emw=;
	h=Date:Subject:To:Cc:References:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=eFmhhu2HBhJr237KipON4zq+ksEJCH2Gq4i1jbkW04RKQCjpoN2mO11nJKVaO0mBF
	 W/K5SzeitfwEipxcmlMMvOA75y3Ii5yX8qT6cfuNsPwkpE008jDVU+UEbbVK5XncaV
	 cneSrB7Z0Doy+gkjNOdYVpPwNud+gMG5Shsh+Ujg=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 21B134BA2E0F
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 21B134BA2E0F
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772112355; cv=none;
 b=nF1Uo33M4QTNo8cqMlrrTBxZfPHXmRBp0f4sYvhEANvWR6IRfgvRWGJSFPKBbbxHS+tyHvHn5Vy2nxJjIZOs7A44M7o552duaf5q5it8JVw14/GzF+7DWApRRks4wLv951NLc3IyzIpIHe+brnQNlkktKtjTfCW6T7LFfWgQHoA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1772112355; c=relaxed/simple;
 bh=BfGFfjQKXWum41kgScb+pFA/oY8/fyHjcMWhBdm6t8M=;
 h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
 b=C4bQv6nlHMqsOvl3kirU33bi9tUIOVPhqVp24zjipF5Vx1oXMPOgaNrM7EXylMllTJ75aSEJ4T4UhCBv6XpQ3FGKfgansc1G0v97h+vfZp4MNF5GyPaRKgKp8r01/qsfkaYEm4sAE7Hn1EXCm5/eJn+hnBWirwwhvYtHMX9cgbw=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21B134BA2E0F
X-Barracuda-Envelope-From: moss@cs.umass.edu
X-Barracuda-RBL-Trusted-Forwarder: 128.119.240.136
DKIM-Filter: OpenDKIM Filter v2.11.0 mailsrv.cs.umass.edu 9168C5BDA9
X-Barracuda-RBL-Trusted-Forwarder: 172.26.69.67
Message-ID: <2346fd41-2500-0db6-5849-6788174b5a1d@cs.umass.edu>
Date: Thu, 26 Feb 2026 08:25:53 -0500
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.15.1
Subject: Re: Memmove causing program crashes, giving SIGTRAP in GDB(?)
Content-Language: en-US
X-ASG-Orig-Subj: Re: Memmove causing program crashes, giving SIGTRAP in GDB(?)
To: KENNON J CONRAD <kennonconrad@comcast.net>,
        Dimitry Andric <dimitry@unified-streaming.com>
Cc: KENNON J CONRAD via Cygwin <cygwin@cygwin.com>
References: <547312365.1464244.1771958282029@connect.xfinity.com>
 <aZ7PrbisVR1R4A7v@dimstar.local.net>
 <1670201592.1489273.1772043520008@connect.xfinity.com>
 <e91d8b5b-2690-4271-aa74-e6226440e33d@SystematicSW.ab.ca>
 <1044918836.1507810.1772086967212@connect.xfinity.com>
 <1579472684.1508349.1772092747339@connect.xfinity.com>
 <aaABFf5iEowV1l7I@xps13> <1148572549.1808180.1772097444036@mail.yahoo.com>
 <1901597260.1508573.1772100378936@connect.xfinity.com>
 <0C965DD0-856E-41FF-B5A4-15E472292A32@unified-streaming.com>
 <483908609.1508714.1772103775739@connect.xfinity.com>
In-Reply-To: <483908609.1508714.1772103775739@connect.xfinity.com>
X-Barracuda-Connect: mailsrv.cs.umass.edu[128.119.240.136]
X-Barracuda-Start-Time: 1772112353
X-Barracuda-Encrypted: TLS_AES_256_GCM_SHA384
X-Barracuda-URL: https://barramail.cs.umass.edu:443/cgi-mod/mark.cgi
X-Barracuda-BRTS-Status: 1
X-Virus-Scanned: by bsmtpd at cs.umass.edu
X-Barracuda-Scan-Msg-Size: 915
X-ASG-Debug-ID: 1772112353-24039d073317a00001-w5GHUG
X-Barracuda-Spam-Score: 0.00
X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=3.5
 QUARANTINE_LEVEL=10.0 KILL_LEVEL=9.7 test= 
X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.125474
 Rule breakdown below
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Eliot Moss via Cygwin <cygwin@cygwin.com>
Reply-To: Eliot Moss <moss@cs.umass.edu>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

On 2/26/2026 6:02 AM, KENNON J CONRAD via Cygwin wrote:

> Thanks for checking and sharing your thoughts.  This is what I would expect, so at least I'm not crazy :)
> I really need to see the values of the registers in memmove, hopefully it's just a matter of continuing to learn gdb.

The command is "info registers", of "info r" for short.  You can also print an
individual register using (say) "print $rax" (prefix the register name by $)
or "info r rax".  If you're stepping, you can set up a *layout* that shows all
the register values as you step along.

You also might consider using a reverse debugging tool like the "undo" debugger.
They track enough information to allow them to (effectively) execute backwards
from a point.  Not sure if any work under cygwin, though.

By the way, I got the commands for printing individual registers with a simple
web search :-) ...

HTH -- Eliot Moss

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
