diff options
author | Michal Ludvig <mludvig@suse.cz> | 2003-08-18 13:42:13 +0000 |
---|---|---|
committer | Michal Ludvig <mludvig@suse.cz> | 2003-08-18 13:42:13 +0000 |
commit | 4056d25828218621e7276a3a0c0567cac892ae84 (patch) | |
tree | 7ced193d808a797ed267d88d743e69d7a659005f /gdb | |
parent | 6785ad22dd470a460cdd8e659f1a93108ca20010 (diff) | |
download | gdb-4056d25828218621e7276a3a0c0567cac892ae84.zip gdb-4056d25828218621e7276a3a0c0567cac892ae84.tar.gz gdb-4056d25828218621e7276a3a0c0567cac892ae84.tar.bz2 |
2003-08-18 Michal Ludvig <mludvig@suse.cz>
* config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
Define.
* i386-linux-nat.c: Include "linux-nat.h".
(child_post_startup_inferior): New function.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/config/i386/nm-x86-64linux.h | 5 | ||||
-rw-r--r-- | gdb/x86-64-linux-nat.c | 7 |
3 files changed, 19 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4ac481d..4fb1d22 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2003-08-18 Michal Ludvig <mludvig@suse.cz> + + * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): + Define. + * i386-linux-nat.c: Include "linux-nat.h". + (child_post_startup_inferior): New function. + 2003-08-18 Mark Kettenis <kettenis@gnu.org> * i386-tdep.c (i386_analyze_register_saves): Handle register saves diff --git a/gdb/config/i386/nm-x86-64linux.h b/gdb/config/i386/nm-x86-64linux.h index 8ff8095..d1ac910 100644 --- a/gdb/config/i386/nm-x86-64linux.h +++ b/gdb/config/i386/nm-x86-64linux.h @@ -61,4 +61,9 @@ extern unsigned long x86_64_linux_dr_get_status (void); /* Override copies of {fetch,store}_inferior_registers in `infptrace.c'. */ #define FETCH_INFERIOR_REGISTERS +/* `linux-nat.c' and `i386-nat.c' have their own versions of + child_post_startup_inferior. Define this to use the copy in + `x86-86-linux-nat.c' instead, which calls both. */ +#define LINUX_CHILD_POST_STARTUP_INFERIOR + #endif /* NM_X86_64_LINUX_H */ diff --git a/gdb/x86-64-linux-nat.c b/gdb/x86-64-linux-nat.c index 87b69c9..66a1b68 100644 --- a/gdb/x86-64-linux-nat.c +++ b/gdb/x86-64-linux-nat.c @@ -25,6 +25,7 @@ #include "inferior.h" #include "gdbcore.h" #include "regcache.h" +#include "linux-nat.h" #include "gdb_assert.h" #include "gdb_string.h" @@ -347,3 +348,9 @@ ps_get_thread_area (const struct ps_prochandle *ph, return PS_ERR; /* ptrace failed. */ } +void +child_post_startup_inferior (ptid_t ptid) +{ + i386_cleanup_dregs (); + linux_child_post_startup_inferior (ptid); +} |