implemented GDB stub for remote debugging

svn path=/trunk/; revision=6819
This commit is contained in:
Martin Fuchs
2003-11-29 21:56:23 +00:00
parent 13400788e1
commit 13347e7de3
9 changed files with 1311 additions and 12 deletions
+4 -2
View File
@@ -29,8 +29,9 @@ exe explorer :
utility/shellbrowserimpl.cpp
utility/shellclasses.cpp
utility/utility.cpp
utility/window.cpp
dialogs/searchprogram.cpp
utility/window.cpp
dialogs/searchprogram.cpp
i386-stub-win32.c
: <define>WIN32 <define>_ROS_ <define>_WIN32_IE=0x0501 <define>_WIN32_WINNT=0x0501
<cxxflags>-I$(INCLUDE)
#nur für GCC: <cxxflags>-fexceptions <cxxflags>-Wall
@@ -38,5 +39,6 @@ exe explorer :
<find-shared-library>ole32
<find-shared-library>comctl32
<find-shared-library>uuid
<find-shared-library>wsock32
;
+3 -2
View File
@@ -62,9 +62,10 @@ OBJECTS = \
startmenu.o \
traynotify.o \
quicklaunch.o \
searchprogram.o
searchprogram.o \
i386-stub-win32.o
LIBS = gdi32 comctl32 ole32 uuid
LIBS = gdi32 comctl32 ole32 uuid wsock32
all: buildno.h $(TARGET)
@@ -60,9 +60,10 @@ OBJECTS = \
startmenu.o \
traynotify.o \
quicklaunch.o \
searchprogram.o
searchprogram.o \
i386-stub-win32.o
LIBS = gdi32 comctl32 ole32 uuid
LIBS = gdi32 comctl32 ole32 uuid wsock32
all: $(TARGET)
@@ -46,3 +46,4 @@ If you search for more information, look into the CVS repository.
28.09.2003 m. fuchs open cabinet windows then clicking on desktop folders
18.10.2003 m. fuchs Program search dialog with interactive filtering and sorting does now work.
19.10.2003 m. fuchs implemented floating start menus
29.11.2003 m. fuchs implemented GDB stub for remote debugging
@@ -3,7 +3,7 @@
<tr>
<td><address style="align: right;"><small>
ROS Explore Source Code Documentation
<br>generated on 23.11.2003 by <a href="http://www.doxygen.org/index.html">
<br>generated on 26.11.2003 by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</small></address>
</td>
+16 -1
View File
@@ -46,6 +46,9 @@
#endif
extern "C" int initialize_gdb_stub(); // start up GDB stub
ExplorerGlobals g_Globals;
@@ -256,10 +259,22 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
g_Globals._log = fdopen(1, "w");
setvbuf(g_Globals._log, 0, _IONBF, 0);
LOG(TEXT("starting explore debug log\n"));
LOG(TEXT("starting explorer debug log\n"));
}
#endif
bool use_gdb_stub = false; // !IsDebuggerPresent();
if (_tcsstr(lpCmdLine,TEXT("-debug")))
use_gdb_stub = true;
// activate GDB remote debugging stub if no other debugger is running
if (use_gdb_stub) {
LOG(TEXT("waiting for debugger connection...\n"));
initialize_gdb_stub();
}
g_Globals._hInstance = hInstance;
#ifndef __MINGW32__ // SHRestricted() missing in MinGW (as of 29.10.2003)
g_Globals._SHRestricted = (DWORD(STDAPICALLTYPE*)(RESTRICTIONS)) GetProcAddress(GetModuleHandle(TEXT("SHELL32")), "SHRestricted");
@@ -591,5 +591,9 @@ SOURCE=.\externals.h
SOURCE=.\globals.h
# End Source File
# Begin Source File
SOURCE=".\i386-stub-win32.c"
# End Source File
# End Target
# End Project
File diff suppressed because it is too large Load Diff
@@ -191,10 +191,6 @@ SOURCE=.\Jamfile
# End Source File
# Begin Source File
SOURCE=.\makefile
# End Source File
# Begin Source File
SOURCE=.\Makefile.MinGW
# End Source File
# Begin Source File