Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jan 2005 14:53:16 +0000 (UTC)
From:      Peter Edwards <peadar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/gnu/usr.bin/gdb/libgdb fbsd-threads.c
Message-ID:  <200501111453.j0BErGKY082527@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
peadar      2005-01-11 14:53:16 UTC

  FreeBSD src repository

  Modified files:
    gnu/usr.bin/gdb/libgdb fbsd-threads.c 
  Log:
  When grabbing registers for an lwp, fake the inferior's pid using the
  lwp ID before invoking the underlying target operation.
  
  For corefiles, we rely on gdb internals to do this, and it uses the
  pid as an index, rather than the lwpid, so previously, backtraces
  for multithreaded core files wasn't working correctly. For processes,
  we currently use ptrace directly, so fixup that code to also use
  the pid directly.
  
  Discussed With: marcel, davidxu
  MFC After: 4 days
  
  Revision  Changes    Path
  1.9       +6 -2      src/gnu/usr.bin/gdb/libgdb/fbsd-threads.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501111453.j0BErGKY082527>