This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
corefiles/1307: i386 mode gcore doesn't work on x86-64 GDB
- From: ac131313 at redhat dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 31 Jul 2003 21:40:31 -0000
- Subject: corefiles/1307: i386 mode gcore doesn't work on x86-64 GDB
- Reply-to: ac131313 at redhat dot com
>Number: 1307
>Category: corefiles
>Synopsis: i386 mode gcore doesn't work on x86-64 GDB
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 31 21:48:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: ac131313@redhat.com
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
The "(gdb) gcore" command doesn't work when debugging an i386 executable using x86-64 GDB.
The underlying architectural problem is that the code writing out the register note sections eventually ends up in functions like linux-proc.c:linux_do_thread_registers() and that makes host == target assumptions such as taking the size of host data structures vis:
gdb_fpregset_t fpregs;
...
note_data = (char *) elfcore_write_prfpreg (obfd,
note_data,
note_size,
&fpregs, sizeof (fpregs));
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: