aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2012-03-21 21:59:19 +0000
committerKevin Buettner <kevinb@redhat.com>2012-03-21 21:59:19 +0000
commit7ccffd7c80d360305a15e1346f79eab3fe62d7e2 (patch)
treed49333b7521b74f445dc74a1756e586c12362558 /gdb/symtab.c
parenta1fe2c2f3a5dba6f818d9ded633cbe4cd130e9e4 (diff)
downloadgdb-7ccffd7c80d360305a15e1346f79eab3fe62d7e2.zip
gdb-7ccffd7c80d360305a15e1346f79eab3fe62d7e2.tar.gz
gdb-7ccffd7c80d360305a15e1346f79eab3fe62d7e2.tar.bz2
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index c2580a1..af115cd 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). */