Bizarre internal errors in regcache

Daniel Jacobowitz
2002-08-26T18:55:44Z

I see this error on my laptop but not on my desktop; both current trees,
both rebuilt from scratch, both i386-linux. Any ideas?

info source
Current source file is ../../../src-gdb/gdb/testsuite/gdb.asm/asmsrc1.s
Located in /home/drow/src/gdb/src-gdb/gdb/testsuite/gdb.asm/asmsrc1.s
Contains 63 lines.
Source language is asm.
Compiled with stabs debugging format.
Does not include preprocessor macro info.
(gdb) PASS: gdb.asm/asm-source.exp: info source asmsrc1.s
finish
Run till exit from #0 foo3 () at ../../../src-gdb/gdb/testsuite/gdb.asm/asmsrc1.s:44
foo2 () at ../../../src-gdb/gdb/testsuite/gdb.asm/asmsrc2.s:13
13 gdbasm_call foo3
../../src-gdb/gdb/regcache.c:472: gdb-internal-error: set_register_cached: Assertion `regnum < current_regcache->descr->nr_raw_registers' failed.
An internal GDB error was detected. This may make further
debugging unreliable. Quit this debugging session? (y or n) ERROR: Got interactive prompt.
UNRESOLVED: gdb.asm/asm-source.exp: finish from foo3
n
info source
Create a core file containing the current state of GDB? (y or n) ERROR: Got interactive prompt.
UNRESOLVED: gdb.asm/asm-source.exp: info source asmsrc2.s
n
info sources
Please answer y or n.
Create a core file containing the current state of GDB? (y or n) (gdb) FAIL: gdb.asm/asm-source.exp: info sources