From 3677f5883b33b6dc155d068210e10a350ade4110 Mon Sep 17 00:00:00 2001 From: Darren VanBuren Date: Wed, 8 Mar 2017 00:30:30 -0800 Subject: [PATCH 1/2] Add some original GDB Scripts --- gdb_script | 27 +++++++++++++++++++++++++++ gdbdar | 1 + gdbmp3 | 1 + gdbplay | 15 +++++++++++++++ gdbserver | 10 ++++++++++ 5 files changed, 54 insertions(+) create mode 100644 gdb_script create mode 100755 gdbdar create mode 100755 gdbmp3 create mode 100755 gdbplay create mode 100755 gdbserver diff --git a/gdb_script b/gdb_script new file mode 100644 index 0000000..d27d87d --- /dev/null +++ b/gdb_script @@ -0,0 +1,27 @@ +dir Server.tproj +dir APICommonCode +dir APIModules/OSMemory_Modules +dir APIModules/QTSSAccessLogModule +dir APIModules/QTSSFileModule +dir APIModules/QTSSFlowControlModule +dir APIModules/QTSSReflectorModule +dir APIModules/QTSSDSAuthModule +dir APIModules/QTSSWebDebugModule +dir APIModules/QTSSWebStatsModule +dir APIModules/QTSSDemoAuthorizationModule.bproj +dir APIModules/QTSSAccessModule +dir APIModules/QTSSAdminModule +dir APIStubLib +dir CommonUtilitiesLib +dir OSMemoryLib +dir PlaylistBroadcaster.tproj +dir PrefsSourceLib +dir QTFileLib +dir RTSPClientLib +dir RTCPUtilitiesLib +handle SIGPIPE nopass noprint + + + + + diff --git a/gdbdar b/gdbdar new file mode 100755 index 0000000..3f33b62 --- /dev/null +++ b/gdbdar @@ -0,0 +1 @@ +gdb ./DarwinStreamingServer -x gdb_script diff --git a/gdbmp3 b/gdbmp3 new file mode 100755 index 0000000..ef4a342 --- /dev/null +++ b/gdbmp3 @@ -0,0 +1 @@ +gdb build/MP3Broadcaster -x gdb_script diff --git a/gdbplay b/gdbplay new file mode 100755 index 0000000..52a2af2 --- /dev/null +++ b/gdbplay @@ -0,0 +1,15 @@ + +echo $HOSTTYPE +if [ "$HOSTTYPE" = "powerpc" ] ; then + if [ "$1" = "jam" ] ; then + echo "Debug OSX Jam'd PlaylistBroadcaster/PlaylistBroadcaster" + gdb PlaylistBroadcaster.tproj/PlaylistBroadcaster -x gdb_script + else + echo "Debug OSX PlaylistBroadcaster" + gdb build/PlaylistBroadcaster -x gdb_script + fi +else + echo "Debug POSIX PlaylistBroadcaster.tproj/PlaylistBroadcaster" + gdb PlaylistBroadcaster.tproj/PlaylistBroadcaster -x gdb_script +fi + diff --git a/gdbserver b/gdbserver new file mode 100755 index 0000000..b14d2ae --- /dev/null +++ b/gdbserver @@ -0,0 +1,10 @@ +if [ -e build/Development/QuickTimeStreamingServer ] ; then + gdb build/Development/QuickTimeStreamingServer -x gdb_script +else + if [ -e build/Deployment/QuickTimeStreamingServer ] ; then + gdb build/Deployment/QuickTimeStreamingServer -x gdb_script + else + echo "Build not found!" + exit 1 + fi +fi From 3cf06e75e309c5b029fd7843d89fca1a45430298 Mon Sep 17 00:00:00 2001 From: Darren VanBuren Date: Wed, 8 Mar 2017 04:11:11 -0800 Subject: [PATCH 2/2] Make more headway on getting things to compile Also learned stuff about CMake, this ability to have multiple executables in single CMake file, and added hopefully just the first of some common source files definitions --- .idea/misc.xml | 4 ++++ CMakeLists.txt | 42 ++++++++++++++++++++++++++++++++++++------ 2 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 .idea/misc.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..79b3c94 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 22c9786..4577287 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,7 +312,6 @@ set(DSS_SOURCE_FILES QTFileLib/QTRTPFile.h QTFileLib/QTTrack.cpp QTFileLib/QTTrack.h - QTFileTools/QTFileTest.tproj/QTFileTest.cpp QTFileTools/QTRTPFileTest.tproj/QTRTPFileTest.cpp QTFileTools/QTRTPGen.tproj/QTRTPGen.cpp QTFileTools/QTSampleLister.tproj/QTSampleLister.cpp @@ -346,7 +345,7 @@ set(DSS_SOURCE_FILES RTSPClientLib/RTPPacket.h RTSPClientLib/RTSPClient.cpp RTSPClientLib/RTSPClient.h - SafeStdLib/DynamicModuleStdLib.cpp +# SafeStdLib/DynamicModuleStdLib.cpp SafeStdLib/InternalStdLib.cpp Server.tproj/GenerateXMLPrefs.cpp Server.tproj/GenerateXMLPrefs.h @@ -433,6 +432,7 @@ set(DSS_SOURCE_FILES revision.h) add_executable(DarwinStreamingServer ${DSS_SOURCE_FILES}) +target_link_libraries(DarwinStreamingServer pthread crypt dl m stdc++) add_executable(StreamingLoadTool StreamingLoadTool/StreamingLoadTool.cpp) @@ -495,9 +495,39 @@ add_executable(MP3Broadcaster ${MP3_BROADCASTER_SOURCE_FILES}) add_executable(QTBroadcaster QTFileTools/QTBroadcaster.tproj/QTBroadcaster.cpp) -set(QTFILEINFO_SOURCE_FILES +set(QTFILELIB_COMMON_SOURCE_FILES + SafeStdLib/InternalStdLib.cpp + CommonUtilitiesLib/DateTranslator.cpp + CommonUtilitiesLib/MyAssert.cpp + CommonUtilitiesLib/OS.cpp + CommonUtilitiesLib/OSCond.cpp + CommonUtilitiesLib/OSFileSource.cpp + CommonUtilitiesLib/OSMutex.cpp + CommonUtilitiesLib/OSQueue.cpp + CommonUtilitiesLib/StringParser.cpp + CommonUtilitiesLib/StrPtrLen.cpp + RTPMetaInfoLib/RTPMetaInfoPacket.cpp + QTFileLib/QTAtom.cpp + QTFileLib/QTAtom_dref.cpp + QTFileLib/QTAtom_elst.cpp + QTFileLib/QTAtom_hinf.cpp + QTFileLib/QTAtom_mdhd.cpp + QTFileLib/QTAtom_mvhd.cpp + QTFileLib/QTAtom_stco.cpp + QTFileLib/QTAtom_stsc.cpp + QTFileLib/QTAtom_stsd.cpp + QTFileLib/QTAtom_stss.cpp + QTFileLib/QTAtom_stsz.cpp + QTFileLib/QTAtom_stts.cpp + QTFileLib/QTAtom_tkhd.cpp + QTFileLib/QTAtom_tref.cpp QTFileLib/QTFile.cpp - QTFileLib/QTFile.h - QTFileTools/QTFileInfo.tproj/QTFileInfo.cpp) + QTFileLib/QTHintTrack.cpp + QTFileLib/QTTrack.cpp + QTFileLib/QTFile_FileControlBlock.cpp) -add_executable(QTFileInfo ${QTFILEINFO_SOURCE_FILES}) \ No newline at end of file +add_executable(QTFileInfo ${QTFILELIB_COMMON_SOURCE_FILES} QTFileTools/QTFileInfo.tproj/QTFileInfo.cpp) +target_link_libraries(QTFileInfo pthread) + +add_executable(QTFileTest ${QTFILELIB_COMMON_SOURCE_FILES} QTFileTools/QTFileTest.tproj/QTFileTest.cpp) +target_link_libraries(QTFileTest pthread) \ No newline at end of file