#include <psapi.h>
#ifdef HAVE_SSE_REGS
-#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_EXTENDED_REGISTERS
+#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_EXTENDED_REGISTERS
#else
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER
#endif
static BOOL WINAPI (*psapi_GetModuleInformation) (HANDLE, HMODULE, LPMODULEINFO, DWORD) = NULL;
static DWORD WINAPI (*psapi_GetModuleFileNameExA) (HANDLE, HMODULE, LPSTR, DWORD) = NULL;
-int
+int
psapi_get_dll_name (DWORD BaseAddress, char *dll_name_ret)
{
DWORD len;
sizeof (dll_name_ptr), &done);
/* See if we could read the address of a string, and that the
- address isn't null. */
+ address isn't null. */
if (done != sizeof (dll_name_ptr) || !dll_name_ptr)
return 1;
catch_errors (handle_unload_dll, NULL, (char *) "", RETURN_MASK_ALL);
registers_changed (); /* mark all regs invalid */
/* ourstatus->kind = TARGET_WAITKIND_UNLOADED;
- does not exist yet. */
+ does not exist yet. */
break;
case EXCEPTION_DEBUG_EVENT:
delete_command (NULL, 0);
child_continue (DBG_CONTINUE, -1);
if (!DebugActiveProcessStop (current_event.dwProcessId))
- {
+ {
error ("Can't detach process %lu (error %lu)",
current_event.dwProcessId, GetLastError ());
detached = 0;
- }
+ }
DebugSetProcessKillOnExit (FALSE);
}
if (detached && from_tty)
child_close (int x ATTRIBUTE_UNUSED)
{
DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n",
- PIDGET (inferior_ptid)));
+ PIDGET (inferior_ptid)));
}
struct target_ops child_ops;
target->to_sections_end = target->to_sections + (1 + old);
/* Update the to_sections field in the core_ops structure
- if needed. */
+ if needed. */
if (update_coreops)
{
core_ops.to_sections = target->to_sections;
{
if (solib_end && solib_end->name)
solib_end->objfile = solib_symbols_add (solib_end->name, from_tty,
- solib_end->load_addr);
+ solib_end->load_addr);
}
}
#include <psapi.h>
#ifdef HAVE_SSE_REGS
-#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_EXTENDED_REGISTERS
+#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_EXTENDED_REGISTERS
#else
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER
#endif
static BOOL WINAPI (*psapi_GetModuleInformation) (HANDLE, HMODULE, LPMODULEINFO, DWORD) = NULL;
static DWORD WINAPI (*psapi_GetModuleFileNameExA) (HANDLE, HMODULE, LPSTR, DWORD) = NULL;
-int
+int
psapi_get_dll_name (DWORD BaseAddress, char *dll_name_ret)
{
DWORD len;
sizeof (dll_name_ptr), &done);
/* See if we could read the address of a string, and that the
- address isn't null. */
+ address isn't null. */
if (done != sizeof (dll_name_ptr) || !dll_name_ptr)
return 1;
catch_errors (handle_unload_dll, NULL, (char *) "", RETURN_MASK_ALL);
registers_changed (); /* mark all regs invalid */
/* ourstatus->kind = TARGET_WAITKIND_UNLOADED;
- does not exist yet. */
+ does not exist yet. */
break;
case EXCEPTION_DEBUG_EVENT:
delete_command (NULL, 0);
child_continue (DBG_CONTINUE, -1);
if (!DebugActiveProcessStop (current_event.dwProcessId))
- {
+ {
error ("Can't detach process %lu (error %lu)",
current_event.dwProcessId, GetLastError ());
detached = 0;
- }
+ }
DebugSetProcessKillOnExit (FALSE);
}
if (detached && from_tty)
child_close (int x ATTRIBUTE_UNUSED)
{
DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n",
- PIDGET (inferior_ptid)));
+ PIDGET (inferior_ptid)));
}
struct target_ops child_ops;
target->to_sections_end = target->to_sections + (1 + old);
/* Update the to_sections field in the core_ops structure
- if needed. */
+ if needed. */
if (update_coreops)
{
core_ops.to_sections = target->to_sections;
{
if (solib_end && solib_end->name)
solib_end->objfile = solib_symbols_add (solib_end->name, from_tty,
- solib_end->load_addr);
+ solib_end->load_addr);
}
}