X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 59CB6D1B524 for ; Tue, 21 Oct 2003 22:57:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 66694-05 for ; Tue, 21 Oct 2003 19:57:28 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 32828D1B4E1 for ; Tue, 21 Oct 2003 19:57:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id h9LMvGit006839; Tue, 21 Oct 2003 18:57:16 -0400 (EDT) To: Oliver Elphick Cc: pgsql-odbc@postgresql.org Subject: Re: Segfault In-reply-to: <1066774601.17849.24.camel@linda.lfix.co.uk> References: <1066774601.17849.24.camel@linda.lfix.co.uk> Comments: In-reply-to Oliver Elphick message dated "Tue, 21 Oct 2003 23:16:42 +0100" Date: Tue, 21 Oct 2003 18:57:16 -0400 Message-ID: <6838.1066777036@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/68 X-Sequence-Number: 3381 Oliver Elphick writes: > I have not been able to trace the program because I haven't yet worked > out how to set breakpoints in a module loaded after the run command in > gdb. Set a breakpoint somewhere after the module will be loaded. Once the module has been loaded, you can tell gdb about it with gdb> sharedlibrary path-to-.so-file Then you'll be able to set a breakpoint in the shared library. (An annoyance here is that you can't restart the program from scratch without losing this work and having to redo it. Grumble.) At least, that works for me on HP-UX. I assume it's the same on all gdb platforms ... regards, tom lane