gdb on 2.2/2.4

From: Filipau, Ihar (ifilipau@sussdd.de)
Date: Thu Apr 10 2003 - 08:52:35 EST


Hello!

  [ CC me please - I'm not subscribed ]

  Couple of issues. I hope RH8 kernels not much /patched/
  comparing to vanilla in this respect.

  1. gdb doesn't work on 2.4 - if app got SIGSEGV - I cannot see
     backtrace of random thread. I have mutli-threaded app - but
     gdb cannot access any other thread - only main thread.

  2. on 2.4 + ptrace() security fix, gdb on signal prints error
     message: "Couldn't access registers: permission denied".
     and sure only 'quit' works correctly after this.

  In both cases it is run from user account.

  Does any-one has any clue how to make gdb working on rh8?
  I have tried to use vanilla kernel - but have no succes to
  date...

  I'm not much about debugging - but finding a
  SIGSEGV/SIGILL source is much more faster with gdb.

P.S. System: SMP/PIII (Tried in both smp/nosmp), RH8 std kernel,
     RH8 updated kernel, 2.4.20. gcc 3.2/3.2.2, gdb 5.3.

--- Regards&Wishes! With respect Ihar "Philips" Filipau, and Phil for
friends

- - - - - - - - - - - - - - - - - - - - - - - - -
MCS/Mathematician - System Programmer
Ihar Filipau
Software entwickler @ SUSS MicroTec Test Systems GmbH,
Suss-Strasse 1, D-01561 Sacka (bei Dresden)
e-mail: ifilipau@sussdd.de tel: +49-(0)-352-4073-327
fax: +49-(0)-352-4073-700 web: http://www.suss.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:20 EST