This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

corefiles/1307: i386 mode gcore doesn't work on x86-64 GDB


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]