pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Oliver Elphick <olly@lfix.co.uk>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Segfault
Date: Tue, 21 Oct 2003 18:57:16 -0400
Message-ID: <6838.1066777036@sss.pgh.pa.us> (raw)
In-Reply-To: <1066774601.17849.24.camel@linda.lfix.co.uk>
References: <1066774601.17849.24.camel@linda.lfix.co.uk>

Oliver Elphick <olly@lfix.co.uk> 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



view thread (2+ messages)

Message-ID: <6838.1066777036@sss.pgh.pa.us>
Permalink:  ../6838.1066777036@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6838.1066777036@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, olly@lfix.co.uk
  Subject: Re: Segfault
  In-Reply-To: <6838.1066777036@sss.pgh.pa.us>
  References: <1066774601.17849.24.camel@linda.lfix.co.uk> <6838.1066777036@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox