This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/20653] string_to_explicit_location has some weird code
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 24 Oct 2016 11:08:05 +0000
- Subject: [Bug breakpoints/20653] string_to_explicit_location has some weird code
- Auto-submitted: auto-generated
- References: <bug-20653-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20653
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-7.12-branch branch has been updated by Yao Qi <qiyao@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=909de2c5cc91b815d671f7018da2a925fbd19aaf
commit 909de2c5cc91b815d671f7018da2a925fbd19aaf
Author: Tom Tromey <tom@tromey.com>
Date: Mon Oct 24 12:06:39 2016 +0100
PR gdb/20653 - small cleanup in string_to_explicit_location
This bug points out that string_to_explicit_location compares a char*
against '\0'; whereas comparing against NULL is more normal.
2016-10-24 Tom Tromey <tom@tromey.com>
PR breakpoints/20653:
* location.c (string_to_explicit_location): Use NULL, not '\0'.
--
You are receiving this mail because:
You are on the CC list for the bug.