[Pgbuildfarm-members] Running gdb on core files

From: Christian Ullrich <chris(at)chrullrich(dot)net>
To: pgbuildfarm-members(at)pgfoundry(dot)org
Subject: [Pgbuildfarm-members] Running gdb on core files
Date: 2013-06-14 08:27:15
Message-ID: 51BAD3E3.7010604@chrullrich.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: buildfarm-members

run_build.pl calls gdb on detected cores as:

gdb -ex bt --batch $bindir/postgres $core

The -ex option was added in gdb 6.4, released in 2005. One might assume
that was long enough ago, but, alas, FreeBSD's system gdb is still
version 6.1.1 (for GPLv3 reasons apparently, and there is a 7.6 in
ports). Interestingly enough, gdb 6.1.1 accepts the current command line
without complaint -- but also without result.

The attached patch replaces -ex with -x and writes a command file for it
to read.

Alternatively, run_build.pl could check the gdb version, and if it
encounters anything before 6.4, just print a notice that there is no
backtrace.

--
Christian

Attachment Content-Type Size
gdbcmd.patch text/plain 619 bytes

Responses

Browse buildfarm-members by date

  From Date Subject
Next Message Andrew Dunstan 2013-06-14 14:22:23 Buildfarm client 4.11 released
Previous Message Christian Ullrich 2013-06-14 08:07:54 [Pgbuildfarm-members] Patch for core processing on FreeBSD