From: Kevin Buettner Date: Wed, 21 Mar 2012 21:59:19 +0000 (+0000) Subject: * symtab.c (skip_prologue_sal): Change test to check for "main()" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ccffd7c80d360305a15e1346f79eab3fe62d7e2;p=binutils-gdb.git * symtab.c (skip_prologue_sal): Change test to check for "main()" in addition to "main". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aff420c29e9..000b92128be 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-03-21 Kevin Buettner + + * symtab.c (skip_prologue_sal): Change test to check for "main()" + in addition to "main". + 2012-03-21 Joel Brobecker * expression.h (op_name): Add declaration. diff --git a/gdb/symtab.c b/gdb/symtab.c index c2580a1d4b8..af115cdb128 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2776,7 +2776,7 @@ skip_prologue_sal (struct symtab_and_line *sal) to `__main' in `main' between the prologue and before user code. */ if (gdbarch_skip_main_prologue_p (gdbarch) - && name && strcmp (name, "main") == 0) + && name && strcmp_iw (name, "main") == 0) { pc = gdbarch_skip_main_prologue (gdbarch, pc); /* Recalculate the line number (might not be N+1). */