public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/17038] New: gdb doesn't recognize s390 instruction CIT
@ 2014-06-07  2:51 code.kchoi at gmail dot com
  2014-06-07  2:53 ` [Bug tdep/17038] " code.kchoi at gmail dot com
  2015-06-29  8:03 ` krebbel at linux dot vnet.ibm.com
  0 siblings, 2 replies; 3+ messages in thread
From: code.kchoi at gmail dot com @ 2014-06-07  2:51 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17038

            Bug ID: 17038
           Summary: gdb doesn't recognize s390 instruction CIT
           Product: gdb
           Version: 7.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
          Assignee: unassigned at sourceware dot org
          Reporter: code.kchoi at gmail dot com

on zLinux, s390 instruction CIT is assembled into [.long 0xEC'R'0 'IIII'
'M'027] where R is target reg [0-F], I is immediate [0-2^4), and M is mask.
However, layout asm mode parses this instruction as 4 byte long when it is 6
byte. All subsequent instructions are therefore parsed incorrectly.

example

0x400656 .long 0xEC100000
0x40065a sth %r7,2418(%r2,%r11)  //bogus, should parse from 0x40065c

(gdb) p/x *0x40065a
$1 = 0x4072b972   //0x4072 is from .long

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug tdep/17038] gdb doesn't recognize s390 instruction CIT
  2014-06-07  2:51 [Bug tdep/17038] New: gdb doesn't recognize s390 instruction CIT code.kchoi at gmail dot com
@ 2014-06-07  2:53 ` code.kchoi at gmail dot com
  2015-06-29  8:03 ` krebbel at linux dot vnet.ibm.com
  1 sibling, 0 replies; 3+ messages in thread
From: code.kchoi at gmail dot com @ 2014-06-07  2:53 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17038

--- Comment #1 from Flame Doge <code.kchoi at gmail dot com> ---
*** Bug 17037 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug tdep/17038] gdb doesn't recognize s390 instruction CIT
  2014-06-07  2:51 [Bug tdep/17038] New: gdb doesn't recognize s390 instruction CIT code.kchoi at gmail dot com
  2014-06-07  2:53 ` [Bug tdep/17038] " code.kchoi at gmail dot com
@ 2015-06-29  8:03 ` krebbel at linux dot vnet.ibm.com
  1 sibling, 0 replies; 3+ messages in thread
From: krebbel at linux dot vnet.ibm.com @ 2015-06-29  8:03 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17038

Andreas Krebbel <krebbel at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |krebbel at linux dot vnet.ibm.com
         Resolution|---                         |FIXED

--- Comment #2 from Andreas Krebbel <krebbel at linux dot vnet.ibm.com> ---
cit is a zarch instruction. It wasn't recognized because binutils disassembly
defaulted to ESA mode for 31 bit binaries. We changed that recently so it
should be fixed by now:
https://sourceware.org/ml/binutils/2013-10/msg00382.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2015-06-29  8:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-07  2:51 [Bug tdep/17038] New: gdb doesn't recognize s390 instruction CIT code.kchoi at gmail dot com
2014-06-07  2:53 ` [Bug tdep/17038] " code.kchoi at gmail dot com
2015-06-29  8:03 ` krebbel at linux dot vnet.ibm.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).