From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 64ACC3858D33; Thu, 13 Apr 2023 12:07:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64ACC3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681387658; bh=2ER6RF9gqlNb/lHFvKlIW4mbyqt0XXxyPqy5iC0908c=; h=From:To:Subject:Date:From; b=IAHh7CJNnPRss0xCaiabN6aZGBE5SSQ2yUxu4lJVEOmYGprmxP2fBoUCb9GmHLCZi uiITmgIbl1j2KtwFgbiLSaM9SUtAIgs0r/GUAeTwAD5xmKcWgacqpuR7fi+7B/8qH3 k2Rn6FpPO+avDCzF0CaETVsK9hXR7zltpRBbetoQ= From: "hluaw at connect dot ust.hk" To: gdb-prs@sourceware.org Subject: [Bug gdb/30345] New: GDB shows "That operation is not available on integers of more than 8 bytes." when printing regular variables. Date: Thu, 13 Apr 2023 12:07:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hluaw at connect dot ust.hk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30345 Bug ID: 30345 Summary: GDB shows "That operation is not available on integers of more than 8 bytes." when printing regular variables. Product: gdb Version: 13.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: hluaw at connect dot ust.hk Target Milestone: --- Given the following code: #pragma pack(1) struct { unsigned : 6; signed : 8; signed : 27; signed : 6; unsigned b : 14; signed : 4; } c, d; int d_1, e, f, k, aa, l, af, ag, ah, h, iab, i_5; long m; int main() { int l_212; int *r[42] =3D {&e, &l_212, &f, &e, &f, &f, &l_212, &e, &f, &l_212, &f}; l_212 =3D (m =3D (d.b |=3D 0) | 0); } Compiled with Clang 15.0.7 with -O1 -g. l_212 is then with the following DWARF information: Range 0x55555555461d-0x555555554628: a complex DWARF expression: 0: DW_OP_breg0 0 [$rax] 2: DW_OP_constu 4294967295 8: DW_OP_and 9: DW_OP_convert 14: DW_OP_convert 19: DW_OP_stack_value [4-byte piece] . Break at 0x55555555461d where this DWARF expression takes effect: (gdb) b *0x55555555461d Breakpoint 1 at 0x55555555461d (gdb) r Starting program: /home/hluaw/debugger-bugs/unavail_op/a.out Breakpoint 1, 0x000055555555461d in main () at r.c:16 16 l_212 =3D (m =3D (d.b |=3D 0) | 0); (gdb) p l_212 That operation is not available on integers of more than 8 bytes. To my understanding, this error message should only appear when using somet= hing like print ((int128_t)1) << 64 It seems not right to yield this error when evaluating a normal variable. --=20 You are receiving this mail because: You are on the CC list for the bug.=