From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13668 invoked by alias); 18 Sep 2008 18:31:44 -0000 Received: (qmail 13659 invoked by uid 22791); 18 Sep 2008 18:31:43 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.172) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 18 Sep 2008 18:30:52 +0000 Received: by ug-out-1314.google.com with SMTP id m2so790878uge.39 for ; Thu, 18 Sep 2008 11:30:49 -0700 (PDT) Received: by 10.210.75.6 with SMTP id x6mr5328043eba.124.1221762648931; Thu, 18 Sep 2008 11:30:48 -0700 (PDT) Received: by 10.210.63.19 with HTTP; Thu, 18 Sep 2008 11:30:48 -0700 (PDT) Message-ID: <6dc9ffc80809181130n3cd17628q8ddc9a9c9b7ef2f1@mail.gmail.com> Date: Thu, 18 Sep 2008 18:31:00 -0000 From: "H.J. Lu" To: "Mark Kettenis" Subject: Re: PATCH: Extend gdb remote protocol for AVX Cc: gdb-patches@sourceware.org, dan@codesourcery.com In-Reply-To: <200809181818.m8III4xk024119@brahms.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080918172728.GA12703@lucon.org> <200809181747.m8IHlonO029962@brahms.sibelius.xs4all.nl> <200809181818.m8III4xk024119@brahms.sibelius.xs4all.nl> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00388.txt.bz2 On Thu, Sep 18, 2008 at 11:18 AM, Mark Kettenis wrote: >> Date: Thu, 18 Sep 2008 19:47:50 +0200 (CEST) >> From: Mark Kettenis >> >> > Date: Thu, 18 Sep 2008 10:27:28 -0700 >> > From: "H.J. Lu" >> > >> > Hi, >> > >> > Intel AVX extends 128bit XMM registers to 256bit YMM registers. I >> > am enclosing a propose to add YMM register support in gdb. Since >> > there is no AVX hardware, we can only implement the remote debug >> > with AVX emulator. >> > >> > This patch extends gdb remote protocol for AVX, based on Daniel's >> > patch to auto-detect ia32 and x86-64 executables: >> > >> > http://sources.redhat.com/ml/gdb-patches/2006-11/msg00056.html >> > >> > I tested it by setting x86_sse_unit to avx in gdbserver/i387-fp.c. OK >> > to install? >> >> Let's wait until there is actual hardware. > > Hmm, I just noticed that Intel actually makes documentation and a > simulator available. Unfortunately the simulator download doesn't > seem to work (as is the "product overview"). Does this simulator > support GDB's remote protocol, and does it run on an open source > operating system? If so, it may be reasonable to add GDB support > soon. I'll need some time to familiarize myself with AVX, review and > test the diff. I'm travelling next week. Please ping if you haven't > heard from me on September 30th. > AVX SDE runs on various Linux distros. I ran it on 32bit/64bit RHEL 5, Fedora 8 and Fedora 9. I was told it also ran on other Linux OSes. AVX SDE does support gdb remote protocol: >From SDE: [hjl@gnu-6 avx]$ ./sde -debug -- ./64 Application stopped until continued from debugger. Start GDB, then issue this command at the (gdb) prompt: target remote :43289 >From GDB: (gdb) target remote :43289 Remote debugging using :43289 0x0000003919000ab0 in _start () from /lib64/ld-linux-x86-64.so.2 (gdb) b main Breakpoint 1 at 0x400559: file arg-1.c, line 25. (gdb) c Continuing. Breakpoint 1, main () at arg-1.c:25 25 test (n1, n2, n3); (gdb) c Continuing. Program exited normally. (gdb) We are working on AVX SDE to support AVX gdb remote protocol extension. Thanks. -- H.J.