This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: working around batch mode command errors
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: "Maucci, Cyrille" <cyrille dot maucci at hp dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 30 Oct 2012 18:26:59 +0100
- Subject: Re: working around batch mode command errors
- References: <7D0928B9A8397D4B9E2F9E5FFFB8D860027BED37@G6W2492.americas.hpqcorp.net>
On Sun, 28 Oct 2012 23:28:32 +0100, Maucci, Cyrille wrote:
> Error in sourced command file:
> No symbol "this" in current context.
>
> And therefore all subsequent commands are not executed.
Use:
gdb <file
instead of
gdb -x file
> An aside question would be is there any built-in commands allowing to do
> something like
Use ABRT or Apport which hook globally on system via
/proc/sys/kernel/core_pattern . You can also provide per-application custom
info dumpers.
Regards,
Jan