Date: Thu, 30 Jul 2009 00:09:11 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Daniel Underwood <djuatdelta@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Parallel debugging Message-ID: <20090729220911.GA656@slackbox.xs4all.nl> In-Reply-To: <b6c05a470907290958t660c1a05kc508ec26ebffbfcd@mail.gmail.com> References: <b6c05a470907290958t660c1a05kc508ec26ebffbfcd@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 29, 2009 at 12:58:19PM -0400, Daniel Underwood wrote: > I'm programming a multithreaded scientific program using pthreads and > c++. Currently The model is SMP, but may investigate MMP using MPI in > the future. Can anyone suggest a good debugger and possibly an > associated GUI? (E.g., gdb and ddd.) Both gdb and ddd can in principle be used with multithreaded programs. IMHO there is no good way to analyze a multithreaded program with a debugger, AFAIK. E.g. do not expect the program running in the debugger to behave the same as when running outside of the debugger, especially if you are dealing with timing issues or heisenbugs. The UNIX philiosophy would be to make multiple programs that can exchange (preferably plain text) data via pipes or shared memory. That way you can test the components separately. Look e.g. at postfix. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpwyIcACgkQEnfvsMMhpyVwkwCdFhergJVl92bjwlEMhVDGCSLv E3sAn22CZKTToXvhah+bOT3E6v9strIW =FPO5 -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090729220911.GA656>