gdb: Improve concept of FAKE_PROCESS_ID to fix JIT crash
authorJohn Marino <draco@marino.st>
Tue, 12 Jul 2011 22:06:43 +0000 (00:06 +0200)
committerJohn Marino <draco@marino.st>
Thu, 1 Sep 2011 17:51:39 +0000 (19:51 +0200)
commitab699f639e5c29fa8e1275d9a903ce8c03693a75
tree8261e3ebd7a0e40ee19fb4e8d8f29a4031e6be5e
parent0c3d3a6fe7b623c4cf18a981f713cbac4174ee80
gdb: Improve concept of FAKE_PROCESS_ID to fix JIT crash

The fix for 7.2 seems to break on gdb 7.3 with addition of JIT
initialization which assumes at least one inferior defined.  The problem
is that this inferior isn't defined before the JIT routine is run.

Changing the fake process ID from zero has a lot of risk (miss some,
accidently change zero's that need to remain zero, etc), but it seems to
be the only way to fix it cleanly.
contrib/gdb-7/gdb/corelow.c
contrib/gdb-7/gdb/inf-ptrace.c
contrib/gdb-7/gdb/inferior.c
contrib/gdb-7/gdb/inferior.h
contrib/gdb-7/gdb/infrun.c
contrib/gdb-7/gdb/mi/mi-interp.c
contrib/gdb-7/gdb/mi/mi-main.c
contrib/gdb-7/gdb/top.c