From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Kettenis To: drepper@cygnus.com Cc: libc-alpha@sources.redhat.com, gdb@sources.redhat.com Subject: Re: Debugging multi-threaded SSE using programs Date: Sun, 02 Sep 2001 05:26:00 -0000 Message-id: <200109021226.f82CQKh18978@delius.kettenis.local> References: <200109012129.f81LTe613222@delius.kettenis.local> X-SW-Source: 2001-09/msg00003.html From: Ulrich Drepper Date: 01 Sep 2001 14:34:47 -0700 Mark Kettenis writes: > Would it be OK to provide an implementation of these calls for Linux > x86 that manages the SSE registers? Yes. But please try to make it a bit generic so that it can be used with the different registers extensions already out there and also has room if there are yet more extensions to come. I did some reverse-engineering on sparc-sun-solaris2.6, and it seems that we can punt any interpretation of these extra registers to the debugger. In libthread_db we should simply call ps_lgetxregsize, ps_lgetxregs or ps_lsetxregs with the appropriate arguments, or return an appropraite error code. This means that we cannot zero out the register set when a thread already terminated as we do for td_thr_getfpregs. So be it. Any debugger will need to deal with it. Since the current libthread_db doesn't require ps_lgetxregsize, ps_lgetxregs and ps_lsetxregs, I probably should use weak references for these functions, shouldn't I? Mark