Your message dated Sun, 03 Aug 2025 16:49:21 -0400
with message-id <[email protected]>
and subject line Closing bug
has caused the Debian Bug report #180764,
regarding gdb has some odd behaviour with integer math on ia64
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
180764: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=180764
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gdb
Version: 5.3-2
Severity: normal
This does not apply on i386. I tested this on ia64; I have not checked
other 64-bit arches.
5 unsigned long a = 32;
(gdb) n
6 unsigned long x = 1 << a;
(gdb)
7 printf("%ld\n", x);
(gdb) p x
$1 = 0
(gdb) p 1 << a
$2 = 4294967296
I'm fairly sure that gcc is correct here; '1' is an int, so
left-shifting it should wrap at 32 bits and give 0.
(gdb) p sizeof(1)
$6 = 4
I can only presume that gdb is ignoring the size of integer constants.
[This kept me amused for an hour or so until I figured out that gdb
wasn't computing the same value as the program].
--
.''`. ** Debian GNU/Linux ** | Andrew Suffield
: :' : http://www.debian.org/ | Dept. of Computing,
`. `' | Imperial College,
`- -><- | London, UK
pgpXdHdQcX3br.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
IA64 isn't a supported Debian architecture anymore.
This bug is more than 20 years old; GDB has been almost completely
rewritten since then, and I don't recall seeing a similar problem
recently.
I'm taking the liberty to close this bug. Feel free reopen if it's
still applicable.
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/
signature.asc
Description: PGP signature
--- End Message ---