This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/399: remote-sim.h doesn't handle 64 bit addresses
- From: ac131313 at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 7 Mar 2002 02:54:08 -0000
- Subject: gdb/399: remote-sim.h doesn't handle 64 bit addresses
- Reply-to: ac131313 at redhat dot com
>Number: 399
>Category: gdb
>Synopsis: remote-sim.h doesn't handle 64 bit addresses
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Mar 06 18:58:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: ac131313@redhat.com
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
remote-sim.h defines SIM_ADDR using:
/* Pick up CORE_ADDR_TYPE if defined (from gdb), otherwise use same value as
gdb does (unsigned int - from defs.h). */
#ifndef CORE_ADDR_TYPE
typedef unsigned int SIM_ADDR;
#else
typedef CORE_ADDR_TYPE SIM_ADDR;
#endif
The address isn't large enough (int is typically 32 bits) so doesn't hold 64 bit addresses.
Suggest looking at bfd.h or sim/common/sim-types.h. The main thing is that this the remote-sim.h header can't depend on external configury (from defs.h or ...)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: