Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Trying to get a TIMESTAMP setup to be passed to the MinGW gdb debugger

23 Oct 2017   #1

Windows 7 Ultimate SP1 x64 (Explorer_v6.1.7601.23537)(ntoskrnl_v6.1.7601.24150)
Trying to get a TIMESTAMP setup to be passed to the MinGW gdb debugger

Trying to get a TIMESTAMP setup to be passed to the MinGW gdb debugger..
for use with setting automatic file names for debugging tat include the DATE and TIME. lol ...
it should work but having trouble setting it up..

here is what I have so far.. that I found online and got some IRC help lol

REM See windows - Generate unique file name with timestamp in batch script - Stack Overflow
FOR /f %%a IN ('WMIC OS GET LocalDateTime ^| FIND "."') DO SET DTS=%%a
SET DateTime=%DTS:~0,4%-%DTS:~4,2%-%DTS:~6,2%__%DTS:~8,2%-%DTS:~10,2%-%DTS:~12,2%
echo %DateTime%

SET LogFileName=BizHawk_gdb-logging(%DateTime%).log.txt

C:\Dev-TDM64-GCC\bin\gdb64.exe --eval-command="set logging on %LogFileName%" --readnow --se="EmuHawk.exe"

Only one final thing...
getting a AM/PM to be output to the filename as well lol ;-)

My System SpecsSystem Spec

 Trying to get a TIMESTAMP setup to be passed to the MinGW gdb debugger

Thread Tools

Similar help and support threads
Thread Forum
Registered JIT Debugger Not Available
Hey, Whenever a certain program crashes (Stronghold Kingdoms, in this case), it gives a SECOND error message. This started when I uninstalled Soluto, but I do not want to reinstall it. Thanks
BSOD Kernel Debugger 41
Hi all please help, BSOD can happen at any time. No set application etc that sets it off. Kernel Debugger 41. Please see attachments. PC SPEC: Windows 7 Pro x64 OEM (Original from when purchased 1 year ago from MESH) i7-2600k 3.4GHz ASUS P8P67 Pro 8GB 1333MHz Dual Channel DDR3 SDRAM...
BSOD Help and Support
XP Mode & Active Debugger
Just wondering if anyone can shed any light. Just installed Win7 this week, and I tried to install and place Hitman 1 & 2. I couldnt get them to go in Win7, so I installed XP Mode and installed them in there. Everything is installed fine, but when I go to run the game from inside XP, it comes up...
Windows 7 debugger crashing?
Ok.this is for you to stop debugging but its not opening,im getting cannot open with this type of processor..
BSOD Help and Support
Debugger / Blue Screen of Death help
This is my first time using the debugger, so bear with me. So, Windows 7 professional 64 bit RTM crashed with the dreaded Blue Screen of Death after just running for 5 days. All I was doing was changing one of the system fonts, hit the apply button, and Blue Screen of Death appeared. I tried...
BSOD Help and Support

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 05:28.
Twitter Facebook Google+