Bug 9508 - 32-bit addresses miscalculated on 64-bit platform.
Summary: 32-bit addresses miscalculated on 64-bit platform.
Status: RESOLVED OBSOLETE
Alias: None
Product: gdb
Classification: Unclassified
Component: exp (show other bugs)
Version: unknown
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 9507 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-10 19:18 UTC by mostrows
Modified: 2014-09-12 22:40 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mostrows 2008-01-10 19:18:01 UTC
[Converted from Gnats 2403]

I try to access some target program symbols and fail:

(gdb) p buf
multi-thread:target_xfer_partial (2, (null), 0x299f020,  0x0,  0x1ff960950, 4) = 0
Cannot access memory at address 0xff960950

Note that gdb is trying to look up address 0x1ff960950, not
0xff960950.  Obviously this fails as it is not a 32-bit address that is valid in this program.

The addition that overflows the 32-bit address space is at findvar.c:496.

Release:
unknown

Environment:
GDB build and runs on x86-64-linux, debuggin x86-32 bit app.
Comment 1 Tom Tromey 2012-02-06 15:38:19 UTC
(In reply to comment #0)
> [Converted from Gnats 2403]

> The addition that overflows the 32-bit address space is at findvar.c:496.

gdb has changed a lot since 2008.
A diff or even just pasting the function in question here might help a bit.
A test case would be superb.
Comment 2 Sergio Durigan Junior 2014-09-12 22:40:45 UTC
Closing as OBSOLETE due to lack of response.  Feel free to reopen if it is still valid.