git: gdb: Improve concept of FAKE_PROCESS_ID to fix JIT crash
John Marino
marino at crater.dragonflybsd.org
Thu Sep 1 10:56:39 PDT 2011
commit ab699f639e5c29fa8e1275d9a903ce8c03693a75
Author: John Marino <draco at marino.st>
Date: Wed Jul 13 00:06:43 2011 +0200
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.
Summary of changes:
contrib/gdb-7/gdb/corelow.c | 2 +-
contrib/gdb-7/gdb/inf-ptrace.c | 2 +-
contrib/gdb-7/gdb/inferior.c | 40 ++++++++++++++++---------------------
contrib/gdb-7/gdb/inferior.h | 2 +
contrib/gdb-7/gdb/infrun.c | 2 +-
contrib/gdb-7/gdb/mi/mi-interp.c | 2 +-
contrib/gdb-7/gdb/mi/mi-main.c | 12 +++++-----
contrib/gdb-7/gdb/top.c | 4 +-
8 files changed, 31 insertions(+), 35 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ab699f639e5c29fa8e1275d9a903ce8c03693a75
--
DragonFly BSD source repository
More information about the Commits
mailing list