This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/22736] [aarch64] gdb crashes on a conditional breakpoint with cast return type
- From: "alahay01 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 02 Mar 2018 15:06:37 +0000
- Subject: [Bug breakpoints/22736] [aarch64] gdb crashes on a conditional breakpoint with cast return type
- Auto-submitted: auto-generated
- References: <bug-22736-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22736
--- Comment #2 from Alan Hayward <alahay01 at gcc dot gnu.org> ---
A simpler way of reproducing this bug without needing to gdb gdb:
#include <string.h>
int foo(char *name)
{
return strcmp(name, "3") == 1;
}
int main(void)
{
foo("a");
}
g++ -g -fno-inline test.c
$ gdb ~/a.out
(gdb) b foo if (int)strcmp(name,"abc") == 0
(gdb) r
--
You are receiving this mail because:
You are on the CC list for the bug.