There are patches in buildroot for several gdb versions (including 6.2.1) to configure for
Here's what I mean:% gdb --args javaGNU gdb 6.8-debianCopyright (C) 2008 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later
I've just put tracing in the kernel - the kernel is picking up onthe breakpoints ok - I can see it forcing a SIGTRAP. However am not able to debug threads. Join them; it only takes a minute: Sign up Unable to Debug Multi-Threaded Application with gdb up vote 11 down vote favorite 1 I am debugging a multi-threaded application with gdb, well not really ... > > >> Which architecture are you trying this for ?
Were there science fiction stories written during the Middle Ages? Andrew de Quincey 2004-11-07 14:58:41 UTC PermalinkRaw Message Hi - I got an answer from the GDB list - the linux kernel (2.4.20) I am usingdoes not implement PTRACE_SINGLESTEP correctly. 10 This GDB wasconfigured as "ppc-405-linux"...Using host libthread_db library"/mnt/core/lib/libthread_db.so.1".(gdb) break mainBreakpoint 1 at 0x10000548: file test.c, line 10.(gdb) runStarting program: /mnt/core/a.outProgram received signal SIGSEGV, Segmentation fault.0x1000056c in main (argc=1, argv=0x7ffffa94) at test.c:1515 Haven't tried powerpc though.Manuel Andrew de Quincey 2004-11-05 21:49:34 UTC PermalinkRaw Message Post by Manuel Novoa IIIPost by Andrew de QuinceyI don't see how the libthread_db can be returning an error
Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html Follow-Ups: Re: Cannot initialize thread debugging library: generic error From: Ramana Radhakrishnan Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Is my teaching attitude wrong? Am I right in thinkingbreakpoints require some form of kernel support? https://trac.transmissionbt.com/ticket/3608 Mail is the world's favourite email.
GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. However I don't need those right now, although > they would be *useful*. > > The main concern for me is now threaded debugging. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Andrew de Quincey 2004-11-05 23:25:03 UTC PermalinkRaw Message Post by Ton TruongThe problem is the "run" command.
Don't settle for less, sign up for your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html Ramana Radhakrishnan-3 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext] Other format: [Raw text] Cannot initialize thread debugging library: generic error From: srinivas bakki
Exactly the same behaviour. http://vootext.com/cannot-initialize/cannot-initialize-data-bindings-datagrid.html David Meggy 2004-11-05 23:42:32 UTC PermalinkRaw Message You start with the cont command when remote debugging and the runcommand when natively debugging. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Requireslatest uClibc snapshot (11/3/04 or later) though.Interesting.
This GDB was configured as "mipsel-linux-uclibc"... (gdb) start -f Breakpoint 1 at 0x409880: file ../../daemon/daemon.c, line 314. You should ignore /lib/.debug/* -- that is not the library you are looking for. Theoretically it should have worked if you did have libthread_db installed on the target .
make distclean ./configure --enable-maintainer-mode --other-opts && make && make install Comment 2 André Malo 2003-03-03 13:01:55 UTC No further response. Tips for work-life balance when doing postdoc with two very young children and a one hour commute What is the purpose of this solder jumper? GDB is compiled against this version of uclibc.First issue is that breakpoints dont seem to be working - I can set them, butthe execution never stops. Mail is the world's favourite email.
Thanks for using Apache. Build gdb with this toolchain ? > > The debugger starts up well and am able to do all the > basic debugging including handling the signals. > However am use "cont" instead# gdb ./a.outGNU gdb 6.2.1Copyright 2004 Free Software Foundation, Inc.GDB is free software, covered by the GNU General Public License, and you arewelcome to change it and/or distribute copies my review here And I then noticed that Xprt has started segfaulting too.
It's actually the pre-release version, nevertheless it's quite stable. We have it working on MIPS, not sure about PPC. cheers Ramana > > Any pointers ? > > Regards > Srinivas Bakki > > > ___________________________________________________________ > Yahoo! Remote debugging of threaded appsworks on mips.
Type "show copying"and "show warranty" for details.This GDB was configured as "i486-linux-gnu"...(no debugging symbols found)(gdb) rStarting program: /usr/bin/java Test(no debugging symbols found)(no debugging symbols found)(no debugging symbols found)(no debugging symbols found)[Thread http://www.busybox.net/lists/uclibc/2003-March/005800.htmldon't know if this helps you enough. Thanks for using Apache! Do the following:# remove the original gdb% dpkg -r gdb# install the new gdb% dpkg -i custom-gdb-7.0-amd64.debIf you ever needed to revert back to the stock versions of GDB, you can
share|improve this answer answered Aug 2 '12 at 21:48 Tony K. 3,8531121 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google When i run the > test program in teh debugger it throws up following > warnings: > > Cannot initialize thread debugging library: generic > error Which architecture are you Format For Printing -XML -Clone This Bug -Top of page First Last Prev Next This bug is not in your last search results. Regards Srinivas Bakki ___________________________________________________________ Yahoo!
I've tried the new commands, but I'm haven't been successful in stepping backwards still - well more experimenting ahead!