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-tdep.h | |
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-tdep.h')
-rw-r--r-- | gdb/i386-tdep.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index 227ac66..d1366b6 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -170,6 +170,7 @@ extern struct type *i386_sse_type (struct gdbarch *gdbarch); /* Functions exported from i386-tdep.c. */ extern CORE_ADDR i386_pe_skip_trampoline_code (CORE_ADDR pc, char *name); +extern CORE_ADDR i386_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc); /* Return the name of register REGNUM. */ extern char const *i386_register_name (struct gdbarch * gdbarch, int regnum); |