This is the mail archive of the
mailing list for the GDB project.
Re: ppc32 debugging ppc64, part 1
On Mon, Sep 12, 2005 at 11:19:13PM +0200, Mark Kettenis wrote:
> ...but in that case Richard is making things hopelessly complicated by
> doing using syscall() instead of ptrace().
I'm undecided as to whether it's cleaner or more complicated. On
the one hand, I don't have to add odd casts and can just use a
pointer as the real interface allows.
But for the record, I was seeing odd things and wanted to get the
libc code out of the way. I later discovered the typo in my own
code, but I never got around to reverting the use of syscall.
> Fair enough. But this code is really getting difficult to read. It
> uses several constructs that really only made sense in the generic
> code where this was copied from.
Huh? I removed the bulk of those. What in particular did you have
> What really frustrates me is that the different Linux ports are
> reinventing the wheel, all in a different way.
I appreciate your frustration, but it's not something that's in my
purvey to think about. Ptrace is so hopelessly obtuse, slow, and
indirect that any effort fixing it would be better spent designing
a proper interface. And in the meantime there's the issue of what's
actually present in extant kernels.