Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: "Mark Kettenis" <mark.kettenis@xs4all.nl>
Cc: gdb-patches@sourceware.org, dan@codesourcery.com
Subject: Re: PATCH: Extend gdb remote protocol for AVX
Date: Thu, 18 Sep 2008 18:31:00 -0000	[thread overview]
Message-ID: <6dc9ffc80809181130n3cd17628q8ddc9a9c9b7ef2f1@mail.gmail.com> (raw)
In-Reply-To: <200809181818.m8III4xk024119@brahms.sibelius.xs4all.nl>

On Thu, Sep 18, 2008 at 11:18 AM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
>> Date: Thu, 18 Sep 2008 19:47:50 +0200 (CEST)
>> From: Mark Kettenis <mark.kettenis@xs4all.nl>
>>
>> > Date: Thu, 18 Sep 2008 10:27:28 -0700
>> > From: "H.J. Lu" <hongjiu.lu@intel.com>
>> >
>> > 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.


  reply	other threads:[~2008-09-18 18:31 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-18 17:28 H.J. Lu
2008-09-18 17:51 ` Mark Kettenis
2008-09-18 18:20   ` Mark Kettenis
2008-09-18 18:31     ` H.J. Lu [this message]
2008-09-18 18:34 ` Daniel Jacobowitz
2008-09-18 19:03   ` H.J. Lu
2008-09-18 19:39     ` Daniel Jacobowitz
2008-09-18 20:13       ` H.J. Lu
2008-09-18 20:24         ` Daniel Jacobowitz
2008-10-02 10:29 ` Mark Kettenis
2008-10-02 14:16   ` H.J. Lu
2008-10-04 20:52     ` Mark Kettenis
2008-10-04 22:14       ` Daniel Jacobowitz
2008-10-05 14:37         ` H.J. Lu
2008-10-06 21:35           ` Mark Kettenis
2008-10-07 19:22             ` H.J. Lu
2008-10-12 13:39               ` Mark Kettenis
2008-10-12 22:18                 ` H.J. Lu
2008-10-28 14:11                   ` H.J. Lu
2008-10-28 14:18                     ` Daniel Jacobowitz
2008-10-28 17:29                       ` Mark Kettenis
2008-10-29  7:41                         ` H.J. Lu
2008-10-29 16:45                           ` Mark Kettenis
2008-10-29  2:00                       ` H.J. Lu
2008-10-29  2:16                         ` Daniel Jacobowitz
2008-10-04 22:22       ` H.J. Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6dc9ffc80809181130n3cd17628q8ddc9a9c9b7ef2f1@mail.gmail.com \
    --to=hjl.tools@gmail.com \
    --cc=dan@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox