This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/22736] [aarch64] gdb crashes on a conditional breakpoint with cast return type


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]