This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] New skip __main version
> From: "Pierre Muller" <muller@ics.u-strasbg.fr>
> Date: Sat, 7 Jun 2008 09:48:15 +0200
>
> Here is a new version of this patch:
Looks ok to me.
> ChangeLog entry:
>
> 2008-06-07 Pedro Alves <pedro_alves@portugalmail.pt>
> Pierre Muller <muller@ics.u-strasbg.fr>
>
> * gdbarch.sh (gdbarch_skip_main_prologue): New.
> * gdbarch.h, gdbarch.c: Regenerate.
> * i386-tdep.h (i386_skip_main_prologue): Declare.
> * i386-tdep.c (i386_skip_main_prologue): New.
> * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
> i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch
> callback.
> * symtab.c (find_function_start_sal): When pc points at the "main"
> function, call gdbarch_skip_main_prologue.