I found the setting. This is the result:
Command-line: C:\MinGW\bin\gdb.exe -nx -fullname -quiet -pid=6500
Working dir : Q:\AK96\Tools\ufs\unittests\dll\
> set prompt >>>>>>cb_gdb:
Attaching to process 6500
[New Thread 6500.0x1b48]
[New Thread 6500.0x16c4]
Reading symbols from C:\Python27\python.exe...(no debugging symbols found)...done.
[Switching to Thread 6500.0x16c4]
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source C:\Program Files\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> run
ContinueDebugEvent (cpid=6500, ctid=16c4, DBG_CONTINUE);
ContinueDebugEvent (cpid=6500, ctid=1b48, DBG_CONTINUE);
ContinueDebugEvent (cpid=6500, ctid=16c4, DBG_CONTINUE);
gdb: windows_close, inferior_ptid=6500
gdb: windows_init_thread_list
[New Thread 3940.0x4e8]
Program received signal SIGSEGV, Segmentation fault.
0x7c919af2 in ntdll!RtlpWaitForCriticalSection () from C:\WINDOWS\system32\ntdll.dll
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb:
> bt 30
#0 0x7c919af2 in ntdll!RtlpWaitForCriticalSection () from C:\WINDOWS\system32\ntdll.dll
#1 0x7c901046 in ntdll!RtlEnumerateGenericTableLikeADirectory () from C:\WINDOWS\system32\ntdll.dll
#2 0x00e461a0 in ?? ()
#3 0x77dd6cf8 in RegCloseKey () from C:\WINDOWS\system32\advapi32.dll
#4 0x77dd78e4 in RegOpenKeyExA () from C:\WINDOWS\system32\advapi32.dll
#5 0x622915bb in ?? () from C:\PROGRA~1\NetInst\NiAMH.dll
#6 0x62291143 in ?? () from C:\PROGRA~1\NetInst\NiAMH.dll
#7 0x62292778 in ?? () from C:\PROGRA~1\NetInst\NiAMH.dll
#8 0x62292820 in ?? () from C:\PROGRA~1\NetInst\NiAMH.dll
#9 0x7c90118a in ntdll!LdrSetAppCompatDllRedirectionCallback () from C:\WINDOWS\system32\ntdll.dll
#10 0x62290000 in ?? ()
#11 0x7c91b5d2 in ntdll!LdrHotPatchRoutine () from C:\WINDOWS\system32\ntdll.dll
#12 0x7c9162db in ntdll!RtlValidateUnicodeString () from C:\WINDOWS\system32\ntdll.dll
#13 0x7c91643d in ntdll!LdrShutdownProcess () from C:\WINDOWS\system32\ntdll.dll
#14 0x00000000 in ?? ()
>>>>>>cb_gdb: