DragonFly BSD
DragonFly commits List (threaded) for 2011-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: John Marino <marino@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 1 Sep 2011 10:55:02 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]