public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix an Ada sign-extension problem
@ 2021-09-22 17:10 Tom Tromey
  2021-09-22 17:10 ` [PATCH 1/3] Remove defaulted 'tid' parameter to ptid_t constructor Tom Tromey
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Tom Tromey @ 2021-09-22 17:10 UTC (permalink / raw)
  To: gdb-patches

On some platforms, the Ada "info task" command can fail with a memory
error.  I tracked this down to an unintended sign extension, caused
partly by the use of 'long' in get_ada_task_ptid, and partly by the
use of 'long' in ptid_t.

This series changes these to use ULONGEST instead, avoiding any
unintentional sign extension.

Regression tested on x86-64 Fedora 34.

Tom



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-09-23 15:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 17:10 [PATCH 0/3] Fix an Ada sign-extension problem Tom Tromey
2021-09-22 17:10 ` [PATCH 1/3] Remove defaulted 'tid' parameter to ptid_t constructor Tom Tromey
2021-09-22 17:22   ` John Baldwin
2021-09-22 17:10 ` [PATCH 2/3] Change ptid_t::tid to ULONGEST Tom Tromey
2021-09-22 17:24   ` John Baldwin
2021-09-22 20:44     ` Tom Tromey
2021-09-23 10:31   ` Andrew Burgess
2021-09-23 14:10     ` Tom Tromey
2021-09-22 17:10 ` [PATCH 3/3] Change get_ada_task_ptid parameter type Tom Tromey
2021-09-23 10:53 ` [PATCH 0/3] Fix an Ada sign-extension problem Andrew Burgess
2021-09-23 15:30   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).