* gdbarch.sh (gdbarch_skip_main_prologue): New.
authorPierre Muller <muller@sourceware.org>
Wed, 11 Jun 2008 22:03:49 +0000 (22:03 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 11 Jun 2008 22:03:49 +0000 (22:03 +0000)
commit4309257cda01fce18971fd5a5ea28ed6aaf552cc
tree3207f06e4a8f03ae972c6da4a37a795ec78cfeda
parenta4e2ee12f0631722c380973c0336dd165fd0137d
* 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.
gdb/ChangeLog
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/i386-cygwin-tdep.c
gdb/i386-tdep.c
gdb/i386-tdep.h
gdb/symtab.c