This is the mail archive of the gdb@sourceware.cygnus.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]

Re: Comments on U_REGS_OFFSET and fetch_register...


Kevin,

I'm pretty sure no other system takes the braind^H^H^H^H^H^Hclever
approach to threads as Linux does.  It's clear that a system that
chooses any other approach won't be using ptrace for
thread-specific things.  HP-UX has ttrace, SVR4 has /proc, Mach-based
systems have a number of thread_ calls (IMHO a very clean interface,
where you can do almost anything to a process given the right
priviliges).

I wouldn't bother trying to get this "right" at this moment.  We'll
have to bit the bullet of getting rid of all the PID munging in the
near future.  Changing the code you outlined in your message will come
up naturally then.

Mark



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