mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
fix white space.
This commit is contained in:
@ -68,7 +68,7 @@ enum
|
|||||||
#include <psapi.h>
|
#include <psapi.h>
|
||||||
|
|
||||||
#ifdef HAVE_SSE_REGS
|
#ifdef HAVE_SSE_REGS
|
||||||
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_EXTENDED_REGISTERS
|
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_EXTENDED_REGISTERS
|
||||||
#else
|
#else
|
||||||
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER
|
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER
|
||||||
#endif
|
#endif
|
||||||
@ -365,7 +365,7 @@ static BOOL WINAPI (*psapi_EnumProcessModules) (HANDLE, HMODULE *, DWORD, LPDWOR
|
|||||||
static BOOL WINAPI (*psapi_GetModuleInformation) (HANDLE, HMODULE, LPMODULEINFO, DWORD) = NULL;
|
static BOOL WINAPI (*psapi_GetModuleInformation) (HANDLE, HMODULE, LPMODULEINFO, DWORD) = NULL;
|
||||||
static DWORD WINAPI (*psapi_GetModuleFileNameExA) (HANDLE, HMODULE, LPSTR, DWORD) = NULL;
|
static DWORD WINAPI (*psapi_GetModuleFileNameExA) (HANDLE, HMODULE, LPSTR, DWORD) = NULL;
|
||||||
|
|
||||||
int
|
int
|
||||||
psapi_get_dll_name (DWORD BaseAddress, char *dll_name_ret)
|
psapi_get_dll_name (DWORD BaseAddress, char *dll_name_ret)
|
||||||
{
|
{
|
||||||
DWORD len;
|
DWORD len;
|
||||||
@ -601,7 +601,7 @@ handle_load_dll (void *dummy ATTRIBUTE_UNUSED)
|
|||||||
sizeof (dll_name_ptr), &done);
|
sizeof (dll_name_ptr), &done);
|
||||||
|
|
||||||
/* See if we could read the address of a string, and that the
|
/* 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)
|
if (done != sizeof (dll_name_ptr) || !dll_name_ptr)
|
||||||
return 1;
|
return 1;
|
||||||
@ -983,7 +983,7 @@ get_child_debug_event (int pid ATTRIBUTE_UNUSED, struct target_waitstatus *ourst
|
|||||||
catch_errors (handle_unload_dll, NULL, (char *) "", RETURN_MASK_ALL);
|
catch_errors (handle_unload_dll, NULL, (char *) "", RETURN_MASK_ALL);
|
||||||
registers_changed (); /* mark all regs invalid */
|
registers_changed (); /* mark all regs invalid */
|
||||||
/* ourstatus->kind = TARGET_WAITKIND_UNLOADED;
|
/* ourstatus->kind = TARGET_WAITKIND_UNLOADED;
|
||||||
does not exist yet. */
|
does not exist yet. */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EXCEPTION_DEBUG_EVENT:
|
case EXCEPTION_DEBUG_EVENT:
|
||||||
@ -1166,11 +1166,11 @@ child_detach (char *args ATTRIBUTE_UNUSED, int from_tty)
|
|||||||
delete_command (NULL, 0);
|
delete_command (NULL, 0);
|
||||||
child_continue (DBG_CONTINUE, -1);
|
child_continue (DBG_CONTINUE, -1);
|
||||||
if (!DebugActiveProcessStop (current_event.dwProcessId))
|
if (!DebugActiveProcessStop (current_event.dwProcessId))
|
||||||
{
|
{
|
||||||
error ("Can't detach process %lu (error %lu)",
|
error ("Can't detach process %lu (error %lu)",
|
||||||
current_event.dwProcessId, GetLastError ());
|
current_event.dwProcessId, GetLastError ());
|
||||||
detached = 0;
|
detached = 0;
|
||||||
}
|
}
|
||||||
DebugSetProcessKillOnExit (FALSE);
|
DebugSetProcessKillOnExit (FALSE);
|
||||||
}
|
}
|
||||||
if (detached && from_tty)
|
if (detached && from_tty)
|
||||||
@ -1456,7 +1456,7 @@ static void
|
|||||||
child_close (int x ATTRIBUTE_UNUSED)
|
child_close (int x ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n",
|
DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n",
|
||||||
PIDGET (inferior_ptid)));
|
PIDGET (inferior_ptid)));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct target_ops child_ops;
|
struct target_ops child_ops;
|
||||||
@ -1656,7 +1656,7 @@ map_single_dll_code_section (bfd * abfd, asection * sect, void *obj)
|
|||||||
target->to_sections_end = target->to_sections + (1 + old);
|
target->to_sections_end = target->to_sections + (1 + old);
|
||||||
|
|
||||||
/* Update the to_sections field in the core_ops structure
|
/* Update the to_sections field in the core_ops structure
|
||||||
if needed. */
|
if needed. */
|
||||||
if (update_coreops)
|
if (update_coreops)
|
||||||
{
|
{
|
||||||
core_ops.to_sections = target->to_sections;
|
core_ops.to_sections = target->to_sections;
|
||||||
@ -1770,7 +1770,7 @@ child_solib_add (char *filename ATTRIBUTE_UNUSED, int from_tty, struct target_op
|
|||||||
{
|
{
|
||||||
if (solib_end && solib_end->name)
|
if (solib_end && solib_end->name)
|
||||||
solib_end->objfile = solib_symbols_add (solib_end->name, from_tty,
|
solib_end->objfile = solib_symbols_add (solib_end->name, from_tty,
|
||||||
solib_end->load_addr);
|
solib_end->load_addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ enum
|
|||||||
#include <psapi.h>
|
#include <psapi.h>
|
||||||
|
|
||||||
#ifdef HAVE_SSE_REGS
|
#ifdef HAVE_SSE_REGS
|
||||||
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_EXTENDED_REGISTERS
|
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_EXTENDED_REGISTERS
|
||||||
#else
|
#else
|
||||||
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER
|
#define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER
|
||||||
#endif
|
#endif
|
||||||
@ -365,7 +365,7 @@ static BOOL WINAPI (*psapi_EnumProcessModules) (HANDLE, HMODULE *, DWORD, LPDWOR
|
|||||||
static BOOL WINAPI (*psapi_GetModuleInformation) (HANDLE, HMODULE, LPMODULEINFO, DWORD) = NULL;
|
static BOOL WINAPI (*psapi_GetModuleInformation) (HANDLE, HMODULE, LPMODULEINFO, DWORD) = NULL;
|
||||||
static DWORD WINAPI (*psapi_GetModuleFileNameExA) (HANDLE, HMODULE, LPSTR, DWORD) = NULL;
|
static DWORD WINAPI (*psapi_GetModuleFileNameExA) (HANDLE, HMODULE, LPSTR, DWORD) = NULL;
|
||||||
|
|
||||||
int
|
int
|
||||||
psapi_get_dll_name (DWORD BaseAddress, char *dll_name_ret)
|
psapi_get_dll_name (DWORD BaseAddress, char *dll_name_ret)
|
||||||
{
|
{
|
||||||
DWORD len;
|
DWORD len;
|
||||||
@ -601,7 +601,7 @@ handle_load_dll (void *dummy ATTRIBUTE_UNUSED)
|
|||||||
sizeof (dll_name_ptr), &done);
|
sizeof (dll_name_ptr), &done);
|
||||||
|
|
||||||
/* See if we could read the address of a string, and that the
|
/* 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)
|
if (done != sizeof (dll_name_ptr) || !dll_name_ptr)
|
||||||
return 1;
|
return 1;
|
||||||
@ -983,7 +983,7 @@ get_child_debug_event (int pid ATTRIBUTE_UNUSED, struct target_waitstatus *ourst
|
|||||||
catch_errors (handle_unload_dll, NULL, (char *) "", RETURN_MASK_ALL);
|
catch_errors (handle_unload_dll, NULL, (char *) "", RETURN_MASK_ALL);
|
||||||
registers_changed (); /* mark all regs invalid */
|
registers_changed (); /* mark all regs invalid */
|
||||||
/* ourstatus->kind = TARGET_WAITKIND_UNLOADED;
|
/* ourstatus->kind = TARGET_WAITKIND_UNLOADED;
|
||||||
does not exist yet. */
|
does not exist yet. */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EXCEPTION_DEBUG_EVENT:
|
case EXCEPTION_DEBUG_EVENT:
|
||||||
@ -1166,11 +1166,11 @@ child_detach (char *args ATTRIBUTE_UNUSED, int from_tty)
|
|||||||
delete_command (NULL, 0);
|
delete_command (NULL, 0);
|
||||||
child_continue (DBG_CONTINUE, -1);
|
child_continue (DBG_CONTINUE, -1);
|
||||||
if (!DebugActiveProcessStop (current_event.dwProcessId))
|
if (!DebugActiveProcessStop (current_event.dwProcessId))
|
||||||
{
|
{
|
||||||
error ("Can't detach process %lu (error %lu)",
|
error ("Can't detach process %lu (error %lu)",
|
||||||
current_event.dwProcessId, GetLastError ());
|
current_event.dwProcessId, GetLastError ());
|
||||||
detached = 0;
|
detached = 0;
|
||||||
}
|
}
|
||||||
DebugSetProcessKillOnExit (FALSE);
|
DebugSetProcessKillOnExit (FALSE);
|
||||||
}
|
}
|
||||||
if (detached && from_tty)
|
if (detached && from_tty)
|
||||||
@ -1456,7 +1456,7 @@ static void
|
|||||||
child_close (int x ATTRIBUTE_UNUSED)
|
child_close (int x ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n",
|
DEBUG_EVENTS (("gdb: child_close, inferior_ptid=%d\n",
|
||||||
PIDGET (inferior_ptid)));
|
PIDGET (inferior_ptid)));
|
||||||
}
|
}
|
||||||
|
|
||||||
struct target_ops child_ops;
|
struct target_ops child_ops;
|
||||||
@ -1656,7 +1656,7 @@ map_single_dll_code_section (bfd * abfd, asection * sect, void *obj)
|
|||||||
target->to_sections_end = target->to_sections + (1 + old);
|
target->to_sections_end = target->to_sections + (1 + old);
|
||||||
|
|
||||||
/* Update the to_sections field in the core_ops structure
|
/* Update the to_sections field in the core_ops structure
|
||||||
if needed. */
|
if needed. */
|
||||||
if (update_coreops)
|
if (update_coreops)
|
||||||
{
|
{
|
||||||
core_ops.to_sections = target->to_sections;
|
core_ops.to_sections = target->to_sections;
|
||||||
@ -1770,7 +1770,7 @@ child_solib_add (char *filename ATTRIBUTE_UNUSED, int from_tty, struct target_op
|
|||||||
{
|
{
|
||||||
if (solib_end && solib_end->name)
|
if (solib_end && solib_end->name)
|
||||||
solib_end->objfile = solib_symbols_add (solib_end->name, from_tty,
|
solib_end->objfile = solib_symbols_add (solib_end->name, from_tty,
|
||||||
solib_end->load_addr);
|
solib_end->load_addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user