diff options
author | Pierre Muller <muller@sourceware.org> | 2008-06-11 22:03:49 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2008-06-11 22:03:49 +0000 |
commit | 4309257cda01fce18971fd5a5ea28ed6aaf552cc (patch) | |
tree | 3207f06e4a8f03ae972c6da4a37a795ec78cfeda /gdb/i386-cygwin-tdep.c | |
parent | a4e2ee12f0631722c380973c0336dd165fd0137d (diff) | |
download | gdb-4309257cda01fce18971fd5a5ea28ed6aaf552cc.zip gdb-4309257cda01fce18971fd5a5ea28ed6aaf552cc.tar.gz gdb-4309257cda01fce18971fd5a5ea28ed6aaf552cc.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/i386-cygwin-tdep.c')
-rw-r--r-- | gdb/i386-cygwin-tdep.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/i386-cygwin-tdep.c b/gdb/i386-cygwin-tdep.c index 3a8d6ee..1e4205d 100644 --- a/gdb/i386-cygwin-tdep.c +++ b/gdb/i386-cygwin-tdep.c @@ -227,6 +227,8 @@ i386_cygwin_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) set_gdbarch_skip_trampoline_code (gdbarch, i386_cygwin_skip_trampoline_code); + set_gdbarch_skip_main_prologue (gdbarch, i386_skip_main_prologue); + tdep->struct_return = reg_struct_return; tdep->gregset_reg_offset = i386_win32_gregset_reg_offset; |