cvs commit: src/gnu/usr.bin/gdb/libgdb fbsd-threads.c

Peter Edwards peadar at FreeBSD.org
Tue Jan 11 06:53:16 PST 2005


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


More information about the cvs-all mailing list