Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tristan Gingold <gingold@adacore.com>
To: Pedro Alves <palves@redhat.com>
Cc: Joel Brobecker <brobecker@adacore.com>,
	"<gdb-patches@sourceware.org> ml" <gdb-patches@sourceware.org>
Subject: Re: [RFA] Allow Windows UNWIND_INFO version 2.
Date: Wed, 04 Dec 2013 08:43:00 -0000	[thread overview]
Message-ID: <0AE4307E-11F4-48EC-91DD-B03A7B1F2964@adacore.com> (raw)
In-Reply-To: <529E274D.607@redhat.com>


On 03 Dec 2013, at 19:47, Pedro Alves <palves@redhat.com> wrote:

> On 12/03/2013 11:32 AM, Joel Brobecker wrote:
>> @@ -696,7 +697,17 @@ amd64_windows_frame_decode_insns (struct frame_info *this_frame,
>> 	return;
>> 
>>       end_insns = &insns[codes_count * 2];
>> -      for (p = insns; p < end_insns; p += 2)
>> +      p = insns;
>> +
>> +      /* Skip opcodes 6 of version 2.  This opcode is not documented.  */
>> +      if (PEX64_UWI_VERSION (ex_ui.Version_Flags) == 2)
>> +	{
>> +	  for (; p < end_insns; p += 2)
>> +	    if (PEX64_UNWCODE_CODE (p[1]) != 6)
>> +	      break;
>> +	}
> 
> I'd consider merging with the existing loop, so that
> we print the opcodes when frame debug is enabled.

Not sure this is a good idea.  You can use objdump -p if you want to view the opcodes.

But this opcode was also used in version 1, and in version 2 appears only before all other
opcodes.

Tristan.


  parent reply	other threads:[~2013-12-04  8:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-03 11:32 Joel Brobecker
2013-12-03 18:47 ` Pedro Alves
2013-12-03 19:58   ` Corinna Vinschen
2013-12-03 20:04     ` Corinna Vinschen
2013-12-04  8:40     ` Tristan Gingold
2013-12-04  8:43   ` Tristan Gingold [this message]
2013-12-05  3:45   ` Joel Brobecker
2013-12-09 10:43     ` Corinna Vinschen
2013-12-09 11:47       ` Tristan Gingold
2013-12-09 12:11         ` Corinna Vinschen

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=0AE4307E-11F4-48EC-91DD-B03A7B1F2964@adacore.com \
    --to=gingold@adacore.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /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