aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-cygwin-tdep.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-01-11 13:10:44 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-01-11 13:10:44 +0000
commitbfb87e33ab2006cc3ab23d18fd921425223337c5 (patch)
tree8b706330a399ceef799e85d580997c832ec33937 /gdb/i386-cygwin-tdep.c
parent7e63b4e466c57fbcaaf1caa1ca7be1a8ed129934 (diff)
downloadgdb-bfb87e33ab2006cc3ab23d18fd921425223337c5.zip
gdb-bfb87e33ab2006cc3ab23d18fd921425223337c5.tar.gz
gdb-bfb87e33ab2006cc3ab23d18fd921425223337c5.tar.bz2
* win32-tdep.h, win32-tdep.c: New files.
* i386-cygwin-tdep.h: Delete. * i386-cygwin-tdep.c: Include win32-tdep.h instead of i386-cygwin-tdep.h. (win32_xfer_shared_library): Delete. Moved to win32-tdep.c. * win32-nat.c: Likewise. * configure.tgt: Add win32-tdep.o to the list of target object files for i386-cygwin and i386-mingw targets.
Diffstat (limited to 'gdb/i386-cygwin-tdep.c')
-rw-r--r--gdb/i386-cygwin-tdep.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/gdb/i386-cygwin-tdep.c b/gdb/i386-cygwin-tdep.c
index 3457cf2..d639f5b 100644
--- a/gdb/i386-cygwin-tdep.c
+++ b/gdb/i386-cygwin-tdep.c
@@ -21,7 +21,7 @@
#include "osabi.h"
#include "gdb_string.h"
#include "i386-tdep.h"
-#include "i386-cygwin-tdep.h"
+#include "win32-tdep.h"
#include "regset.h"
#include "gdb_obstack.h"
#include "xml-support.h"
@@ -111,24 +111,6 @@ i386_win32_regset_from_core_section (struct gdbarch *gdbarch,
return NULL;
}
-void
-win32_xfer_shared_library (const char* so_name, CORE_ADDR load_addr,
- struct obstack *obstack)
-{
- char *p;
- obstack_grow_str (obstack, "<library name=\"");
- p = xml_escape_text (so_name);
- obstack_grow_str (obstack, p);
- xfree (p);
- obstack_grow_str (obstack, "\"><segment address=\"0x");
- /* The symbols in a dll are offset by 0x1000, which is the the
- offset from 0 of the first byte in an image - because of the file
- header and the section alignment. */
- p = paddr_nz (load_addr + 0x1000);
- obstack_grow_str (obstack, p);
- obstack_grow_str (obstack, "\"/></library>");
-}
-
struct cpms_data
{
struct obstack *obstack;