mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
* symtab.c (skip_prologue_sal): Change test to check for "main()"
in addition to "main".
This commit is contained in:
parent
a1fe2c2f3a
commit
7ccffd7c80
@ -1,3 +1,8 @@
|
||||
2012-03-21 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* symtab.c (skip_prologue_sal): Change test to check for "main()"
|
||||
in addition to "main".
|
||||
|
||||
2012-03-21 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* expression.h (op_name): Add declaration.
|
||||
|
@ -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). */
|
||||
|
Loading…
Reference in New Issue
Block a user