I don't know whether this is a distro-specific problem (of Gentoo).
Anyway, I encountered a weird error when I was on my GDB session.
To give some context, I was working on a college assignment.
It was an Operating System course that's having me program a miniature UNIX kernel.
I was debugging some problem on process-management.
The GDB seemed okay until one point.
Code:
(gdb) b proc.c:929
Breakpoint 1 at 0x801059e0: file proc.c, line 929.
(gdb) cond 1 (!holding(&ptable.lock))
(gdb) c
Continuing.
The target architecture is assumed to be i386
=> 0x803bef6f: int3
regcache.c:401: internal-error: regcache_cpy: Assertion `src->descr->gdbarch == dst->descr->gdbarch' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)
Have anyone ever encountered this kind of experience?
Any little information is appreciated.
Thank you