diff options
author | Kevin Buettner <kevinb@redhat.com> | 2012-03-21 21:59:12 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2012-03-21 21:59:12 +0000 |
commit | fda4b74499e5d26b718a51b84ec637e435997fa6 (patch) | |
tree | e398bd5e8ddbbe7d12923e1bedf5625e49e48f06 /gdb/symtab.c | |
parent | 88a05594363f87bf8fa19b0832c3fa96a61cbcf6 (diff) | |
download | gdb-fda4b74499e5d26b718a51b84ec637e435997fa6.tar.gz |
* symtab.c (skip_prologue_sal): Change test to check for "main()"
in addition to "main".
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
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). */ |