git: gdb: Improve concept of FAKE_PROCESS_ID to fix JIT crash

看板DFBSD_commit作者時間14年前 (2011/10/22 18:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit ab699f639e5c29fa8e1275d9a903ce8c03693a75 Author: John Marino <draco@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
文章代碼(AID): #1EefJA5- (DFBSD_commit)