diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2009-01-12 01:10:28 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2009-01-12 01:10:28 +0000 |
commit | 31b060a20f9c8b39d8b16c3c6e44b20d17d60c27 (patch) | |
tree | a5c51a0acc2cd7911f442c6a7f4facfe90a72403 /gdb/windows-nat.c | |
parent | cd4a7468c909dc8135cdf6198d596869defcdabe (diff) | |
download | gdb-31b060a20f9c8b39d8b16c3c6e44b20d17d60c27.zip gdb-31b060a20f9c8b39d8b16c3c6e44b20d17d60c27.tar.gz gdb-31b060a20f9c8b39d8b16c3c6e44b20d17d60c27.tar.bz2 |
Fix linking with --enable-targets=all:
* Makefile.in (ALL_TARGET_OBS): Add windows-tdep.o.
(HFILES_NO_SRCDIR): Add windows-tdep.h.
(ALLDEPFILES): Add windows-tdep.c.
* win32-tdep.h: Delete.
* windows-tdep.h: Rename from win32-tdep.h.
* win32-nat.h: Delete.
* windows-nat.h: Rename from win32-nat.h.
* win32-nat.c: Delete.
* windows-nat.c: Rename from win32-nat.c.
* win32-termcap.c: Delete.
* windows-termcap.c: Rename from win32-termcap.c.
* amd64-windows-nat.c: Handle rename from win32-nat.h -> windows-nat.h.
* configure.ac: Handle rename from win32-termcap.c -> windows-termcap.c.
* configure: Regenerate.
* gdb_curses.h: Change comment to reflect rename from win32-termcap.c ->
windows-termcap.c.
* i386-cygwin-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
* i386-windows-nat.c: Refect rename from win32-nat.h -> windows-nat.h.
* windows-nat.c: Ditto. Also reflect rename from from win32-tdep.h ->
windows-tdep.h.
(win32_make_so): Handle cygwin compiler warning due to change of load_addr from
DWORD to LPVOID.
(handle_load_dll): Use %p in format string to properly print address and avoid
a compiler warning.
(DEBUG_EXCEPTION_SIMPLE): Ditto.
(handle_exception): Ditto.
* windows-tdep.c: Handle rename from win32-tdep.h -> windows-tdep.h.
* config/i386/cygwin.mh: Handle rename from win32-nat.o -> windows-nat.o.
* config/i386/mingw.mh: Ditto.
* config/i386/mingw64.mh: Ditto.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 9a1a28c..4acbd1b 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -60,8 +60,8 @@ #include "i386-tdep.h" #include "i387-tdep.h" -#include "win32-tdep.h" -#include "win32-nat.h" +#include "windows-tdep.h" +#include "windows-nat.h" static struct target_ops win32_ops; @@ -651,8 +651,8 @@ win32_make_so (const char *name, LPVOID load_addr) /* 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. */ - cygwin_load_start = load_addr + 0x1000; - cygwin_load_end = cygwin_load_start + bfd_section_size (abfd, text); + cygwin_load_start = (bfd_vma) ((char *) load_addr + 0x1000); + cygwin_load_end = (bfd_vma) ((char *) cygwin_load_start + bfd_section_size (abfd, text)); bfd_close (abfd); } @@ -727,7 +727,7 @@ handle_load_dll (void *dummy) solib_end->next = win32_make_so (dll_name, event->lpBaseOfDll); solib_end = solib_end->next; - DEBUG_EVENTS (("gdb: Loading dll \"%s\" at 0x%lx.\n", solib_end->so_name, + DEBUG_EVENTS (("gdb: Loading dll \"%s\" at %p.\n", solib_end->so_name, solib_end->lm_info->load_addr)); return 1; @@ -973,7 +973,7 @@ info_w32_command (char *args, int from_tty) #define DEBUG_EXCEPTION_SIMPLE(x) if (debug_exceptions) \ - printf_unfiltered ("gdb: Target exception %s at 0x%08lx\n", x, \ + printf_unfiltered ("gdb: Target exception %s at %p\n", x, \ current_event.u.Exception.ExceptionRecord.ExceptionAddress) static int @@ -1086,7 +1086,7 @@ handle_exception (struct target_waitstatus *ourstatus) /* Treat unhandled first chance exceptions specially. */ if (current_event.u.Exception.dwFirstChance) return -1; - printf_unfiltered ("gdb: unknown target exception 0x%08lx at 0x%08lx\n", + printf_unfiltered ("gdb: unknown target exception 0x%08lx at %p\n", current_event.u.Exception.ExceptionRecord.ExceptionCode, current_event.u.Exception.ExceptionRecord.ExceptionAddress); ourstatus->value.sig = TARGET_SIGNAL_UNKNOWN; |