This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog probe.c utils.c
- From: tromey at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Thu, 30 May 2013 17:39:34 +0000
- Subject: src/gdb ChangeLog probe.c utils.c
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2013-05-30 17:39:34
Modified files:
gdb : ChangeLog probe.c utils.c
Log message:
fix compile_rx_or_error
compile_rx_or_error looks like a constructor, but it can return NULL.
This patch changes it to remove the NULL return, making it work
like any other cleanup constructor.
This is a stylistic patch but I think it is also better for code to
follow the normal conventions.
* probe.c (collect_probes): Check arguments for NULL before
calling compile_rx_or_error.
* utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
Remove NULL return.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15672&r2=1.15673
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/probe.c.diff?cvsroot=src&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/utils.c.diff?cvsroot=src&r1=1.299&r2=1.300