From: Tom Tromey <tromey@adacore.com>
To: Tom de Vries <tdevries@suse.de>
Cc: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Convert dw2-const.exp to use the DWARF assembler
Date: Fri, 29 May 2026 08:58:52 -0600 [thread overview]
Message-ID: <87zf1i45zn.fsf@tromey.com> (raw)
In-Reply-To: <1a2adcac-e470-43ae-8e32-58d6addb6775@suse.de> (Tom de Vries's message of "Sat, 23 May 2026 10:56:25 +0200")
>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
Tom> Then I ran it with target board unix/-m32, and ran into:
Tom> ...
Tom> (gdb) print/x val8^M
Tom> $2 = 0x0^M
Tom> (gdb) FAIL: gdb.dwarf2/dw2-const.exp: print/x val8
Tom> ...
Yeah, me too.
I wonder if there's some gas oddity here. The DWARF doesn't seem to be
notably weird or word-size-dependent. I see in the old .S:
>> -#if 0 /* gas encodes it explicitly. */
>> - .slab128 0xffffffff00000000
>> -#endif
>> -#if 0 /* gas encoded it correctly - formed GDB FAILed. */
>> - .sleb128 -4294967296
>> -#endif
>> -#if 1 /* Rather encode sleb128 by hand. */
>> - .byte 0x80, 0x80, 0x80, 0x80, 0x70
>> -#endif
So hmm.
But maybe this is some kind of extension we would want to support in the
DWARF assembler.
Anyway still looking into this.
Tom
next prev parent reply other threads:[~2026-05-29 14:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-22 15:55 Tom Tromey
2026-05-23 8:56 ` Tom de Vries
2026-05-29 14:58 ` Tom Tromey [this message]
2026-05-30 8:13 ` Tom de Vries
2026-06-01 15:31 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zf1i45zn.fsf@tromey.com \
--to=tromey@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox