Bug 520129 - [Regression] Gdb mishandled bitfield debug info
Summary: [Regression] Gdb mishandled bitfield debug info
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gdb
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Kratochvil
QA Contact: Fedora Extras Quality Assurance
URL: http://sourceware.org/bugzilla/show_b...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-28 14:41 UTC by H.J. Lu
Modified: 2009-08-28 18:25 UTC (History)
1 user (show)

Fixed In Version: gdb-6.8.50.20090818-6.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-28 18:25:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 10565 0 None None None Never

Description H.J. Lu 2009-08-28 14:41:49 UTC
[hjl@gnu-6 bitfield]$ make
/usr/gcc-4.4-ix86/bin/gcc -g   -c -o main.o main.c
/usr/gcc-4.4-ix86/bin/gcc -g   -c -o i386-opc.o i386-opc.c
/usr/gcc-4.4-ix86/bin/gcc -o main main.o i386-opc.o
./gdb -batch -x gdb.cmd main
Breakpoint 1 at 0x4004a8: file main.c, line 8.

Breakpoint 1, main () at main.c:8
8		  i386_optab[0].opcode_modifier.modrm);
$1 = {d = 1, w = 1, s = 0, modrm = 1, shortform = 0, jump = 0, jumpdword = 0, 
  jumpbyte = 0, jumpintersegment = 0, floatmf = 0, floatr = 0, floatd = 0, 
  size16 = 0, size32 = 0, size64 = 0, ignoresize = 0, defaultsize = 0, 
  no_bsuf = 0, no_wsuf = 0, no_lsuf = 0, no_ssuf = 1, no_qsuf = 0, 
  no_ldsuf = 1, fwait = 0, isstring = 0, regkludge = 0, firstxmm0 = 0, 
  implicit1stxmm0 = 0, byteokintel = 0, todword = 0, toqword = 0, 
  addrprefixop0 = 0, isprefix = 0, immext = 0, norex64 = 0, rex64 = 0, 
  ugh = 0, vex = 0, vex256 = 0, vexnds = 0, vexndd = 0, vexw0 = 0, vexw1 = 0, 
  vex0f = 0, vex0f38 = 0, vex0f3a = 0, vex3sources = 0, veximmext = 0, 
  sse2avx = 0, noavx = 0, oldgcc = 0, attmnemonic = 0, attsyntax = 0, 
  intelsyntax = 0}
$2 = 0
i386_optab[0].opcode_modifier.modrm: 1

Program exited normally.
[hjl@gnu-6 bitfield]$ 

i386_optab[0].opcode_modifier.modrm should be 1 not 0.

The testcase is at

http://sourceware.org/bugzilla/attachment.cgi?id=4152&action=view

Comment 1 Jan Kratochvil 2009-08-28 18:25:31 UTC
Thanks, patch just reverted as Daniel Jacobowitz is working on a fix.


Note You need to log in before you can comment on or make changes to this bug.