Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* core regs vs. proc-service regs mess
@ 2006-04-05  7:07 David S. Miller
  2006-04-05  8:25 ` Mark Kettenis
  0 siblings, 1 reply; 7+ messages in thread
From: David S. Miller @ 2006-04-05  7:07 UTC (permalink / raw)
  To: drow; +Cc: gdb


In trying to get core files working properly again on Linux/Sparc and
Daniel I now see the problems you referred to the other day.

What we have currently on Linux/Sparc is:

1) ptrace() interfaces have one layout for regsets
2) ELF core files store regsets in a different
   format

Now proc-service.c wants fill_gregset() et al. to
provide things in the ptrace() style layout, that is
what libthread_db expects under Linux.

But linux_nat_make_corefile_notes() expects the fill_gregset()
et al. to provide ELF core file format registers.

This is completely contradictory, and I don't have any idea how to
cleanly resolve this outside of duplicating the entirety of
linux_nat_make_corefile_notes() on Linux/Sparc which is silly.

Daniel any ideas? :-) Maybe we can have a "linux_tdep" struct where we
can place a "->to_fill_core_gregset()" type method or similar?


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

end of thread, other threads:[~2006-04-06 20:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-05  7:07 core regs vs. proc-service regs mess David S. Miller
2006-04-05  8:25 ` Mark Kettenis
2006-04-05 13:23   ` Daniel Jacobowitz
2006-04-06  1:10     ` David S. Miller
2006-04-06 13:15     ` David S. Miller
2006-04-06 13:38       ` Daniel Jacobowitz
2006-04-07  0:35         ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox