Dave> Thanks. Should be fixed as of b6496b518378d67067f42c15057664643943b9b1
Thanks, that helped.
I got a bunch more errors this time. Probably they were there all
along, I just stopped at the first one.
I've appended a short summary of all of them -- I did some simple
uniquification, but it didn't collapse everything possible. Many
problems seem to be missing exprcodes, there is just a single spot in
absinterp.py that gives that error.
I also get some false errors. E.g.:
../../archer/gdb/arm-tdep.c: In function ‘gdb_print_insn_arm’:
../../archer/gdb/arm-tdep.c:8381:10: error: comparison against uninitialized data:
gcc.VarDecl(31027) at ../../archer/gdb/arm-tdep.c:8381
The code here is:
static struct coff_symbol_struct csym;
static struct bfd fake_bfd;
static bfd_target fake_target;
if (csym.native == NULL)
{
... since csym is static, it is 0-initialized.
Or another example:
../../archer/gdb/arm-linux-tdep.c: In function ‘arm_linux_cleanup_svc’:
../../archer/gdb/arm-linux-tdep.c:874:18: error: comparison against uninitialized data:
gcc.VarDecl('apparent_pc.15') at ../../archer/gdb/arm-linux-tdep.c:874
../../archer/gdb/arm-linux-tdep.c:868:13: note: when treating unknown struct
displaced_step_closure * from ../../archer/gdb/arm-linux-tdep.c:866 as non-NULL at:
CORE_ADDR from = dsc->insn_addr;
../../archer/gdb/arm-linux-tdep.c:867:1: note: graphical error report for function
'arm_linux_cleanup_svc' written out to
'arm-linux-tdep.c.arm_linux_cleanup_svc-refcount-errors.html'
Here the code is:
CORE_ADDR from = dsc->insn_addr;
ULONGEST apparent_pc;
int within_scratch;
regcache_cooked_read_unsigned (regs, ARM_PC_REGNUM, &apparent_pc);
within_scratch = (apparent_pc >= dsc->scratch_base
&& apparent_pc < (dsc->scratch_base
+ DISPLACED_MODIFIED_INSNS * 4 + 4));
regcache_cooked_read_unsigned sets apparent_pc, so it isn't
uninitialized.
How would you like to proceed? You can check out and build gdb pretty
easily... that might be the simplest. Otherwise I can provide context
for all of the appended, but that will take some time.
Tom
AttributeError: 'NoneType' object has no attribute 'loc'
NotImplementedError: Don't know how to cope with exprcode: <type
'gcc.AbsExpr'> (<type 'gcc.AbsExpr'>)
NotImplementedError: Don't know how to cope with exprcode: <type
'gcc.BitFieldRef'> (<type 'gcc.BitFieldRef'>)
NotImplementedError: Don't know how to cope with exprcode: <type
'gcc.BitNotExpr'> (<type 'gcc.BitNotExpr'>)
NotImplementedError: Don't know how to cope with exprcode: <type
'gcc.Constructor'> (<type 'gcc.Constructor'>)
NotImplementedError: Don't know how to cope with exprcode: <type
'gcc.MaxExpr'> (<type 'gcc.MaxExpr'>)
NotImplementedError: Don't know how to cope with exprcode: <type
'gcc.MinExpr'> (<type 'gcc.MinExpr'>)
NotImplementedError: Don't know how to cope with exprcode: <type
'gcc.NegateExpr'> (<type 'gcc.NegateExpr'>)
NotImplementedError: Don't know how to cope with exprcode: <type
'gcc.TruncModExpr'> (<type 'gcc.TruncModExpr'>)
NotImplementedError: Don't know how to cope with exprcode: <type
'gcc.TruthXorExpr'> (<type 'gcc.TruthXorExpr'>)
NotImplementedError: Don't know how to cope with gcc.GimplePredict() (// predicted
unlikely by continue predictor.)
NotImplementedError: Don't know how to cope with type conversion of:
ConcreteValue(gcctype='int',
loc=gcc.Location(file='../../archer/gdb/arm-tdep.c', line=7719), value=1) ((int)1
from ../../archer/gdb/arm-tdep.c:7719)
NotImplementedError: Don't know how to cope with type conversion of:
ConcreteValue(gcctype='int',
loc=gcc.Location(file='../../archer/gdb/i387-tdep.c', line=675), value=128)
((int)128 from ../../archer/gdb/i387-tdep.c:675)
NotImplementedError: Don't know how to cope with type conversion of:
ConcreteValue(gcctype='long unsigned int',
loc=gcc.Location(file='../../archer/gdb/i386-tdep.c', line=3691), value=0) ((long
unsigned int)0 from ../../archer/gdb/i386-tdep.c:3691)
NotImplementedError: Don't know how to cope with type conversion of:
ConcreteValue(gcctype='unsigned int',
loc=gcc.Location(file='../../archer/gdb/arm-tdep.c', line=5784), value=14)
((unsigned int)14 from ../../archer/gdb/arm-tdep.c:5784)
NotImplementedError: Don't know how to cope with type conversion of:
ConcreteValue(gcctype='unsigned int',
loc=gcc.Location(file='../../archer/gdb/mips-tdep.c', line=1670), value=0)
((unsigned int)0 from ../../archer/gdb/mips-tdep.c:1670)
NotImplementedError: Don't know how to cope with type conversion of:
PointerToRegion(gcctype='char *',
loc=gcc.Location(file='../../archer/gdb/i386-cygwin-tdep.c', line=158),
region=Region('heap-region-6[12]')) ((char
*)&Region('heap-region-6[12]') from ../../archer/gdb/i386-cygwin-tdep.c:158)
NotImplementedError: Don't know how to cope with type conversion of:
PointerToRegion(gcctype='gdb_byte *',
loc=gcc.Location(file='../../archer/gdb/i386-tdep.c', line=616),
region=Region('heap-region-310')) ((gdb_byte
*)&Region('heap-region-310') from ../../archer/gdb/i386-tdep.c:616)
NotImplementedError: Don't know how to cope with type conversion of:
PointerToRegion(gcctype='struct i386_insn *',
loc=gcc.Location(file='../../archer/gdb/i386-tdep.c', line=1194),
region=Region('heap-region-300')) ((struct i386_insn
*)&Region('heap-region-300') from ../../archer/gdb/i386-tdep.c:1194)
NotImplementedError: Don't know how to cope with type conversion of:
UninitializedData(gcctype='CORE_ADDR',
loc=gcc.Location(file='../../archer/gdb/m68hc11-tdep.c', line=616)) (uninitialized
data
NotImplementedError: Don't know how to cope with type conversion of:
UninitializedData(gcctype='long int',
loc=gcc.Location(file='../../archer/gdb/i386-linux-tdep.c', line=423))
(uninitialized data
NotImplementedError: Don't know how to cope with type conversion of:
UninitializedData(gcctype='long unsigned int',
loc=gcc.Location(file='../../archer/gdb/mep-tdep.c', line=872)) (uninitialized
data
TypeError: struct gdbarch_info / <gcc.RecordType object
TypeError: struct srcdest / <gcc.RecordType object
TypeError: type "const void" does not have a "sizeof"
TypeError: type "void" does not have a "sizeof"