Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Save CS segment register for ljmp instruction
@ 2009-10-12  2:24 Jiang Jilin
  2009-10-12  7:54 ` Hui Zhu
  0 siblings, 1 reply; 5+ messages in thread
From: Jiang Jilin @ 2009-10-12  2:24 UTC (permalink / raw)
  To: Hui Zhu, Michael Snyder; +Cc: gdb-patches ml, Jiang Jilin

Hi Hui,

I think CS register should be stored for ljmp instruction, but I'm
not pretty sure, please help me confirm it.

Thanks!

2009-10-12  Jiang Jilin  <freephp@gmail.com>

	* i386-tdep.c (i386_process_record): Save CS segment register
	for ljmp instruction
---
 gdb/i386-tdep.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index b4dc646..0145008 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -3606,8 +3606,11 @@ reswitch:
 	  break;
 	  /* jmp */
 	case 4:
+	  I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_EFLAGS_REGNUM);
+	  break;
 	  /* ljmp */
 	case 5:
+	  I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_CS_REGNUM);
 	  I386_RECORD_ARCH_LIST_ADD_REG (X86_RECORD_EFLAGS_REGNUM);
 	  break;
 	  /* push */
-- 
1.5.4.3


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-13  8:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-12  2:24 [PATCH] Save CS segment register for ljmp instruction Jiang Jilin
2009-10-12  7:54 ` Hui Zhu
2009-10-12  8:35   ` Jiang Jilin
2009-10-12 15:41   ` Michael Snyder
2009-10-13  8:46     ` Jiang Jilin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox