View RegEx pattern string using windbg

Source: Internet
Author: User
Tags mscorlib

0: 004>! Threads
**************************************** *****************************
* Symbols can not be loaded because symbol path is not initialized .*
**
* The symbol path can be set :*
* Using the _ nt_symbol_path environment variable .*
* Using the-Y <symbol_path> argument when starting the debugger .*
* Using. sympath and. sympath + *
**************************************** *****************************
PDB symbol for CLR. dll not loaded
Threadcount: 2
Unstartedthread: 0
Backgroundthread: 1
Pendingthread: 0
Deadthread: 0
Hosted runtime: No
Preemptive GC alloc lock
Id osid threadobj state GC context domain count apt exception
0 1 1774 0066c328 a020 enabled 021e5614: 021e5fe8 00665b58 0 MTA
2 2 17bc 00678150 b220 enabled restart failed :100000000 00665b58 0 MTA (finalizer)
0: 004> ~ 0 s
* ** Warning: unable to verify checksum for c: \ windows \ Assembly \ nativeimages_v4.0.30319_32 \ mscorlib \ b79870f56fb884856832833fe760f671 \ mscorlib. Ni. dll
* ** Error: module Load completed but symbols cocould not be loaded for c: \ windows \ Assembly \ nativeimages_v4.0.30319_32 \ mscorlib \ Alibaba \ mscorlib. Ni. dll
Eax = 00000001 EBX = 00000000 ECx = 00000000 edX = 00000000 ESI = 0015ec0c EDI = 0015eb88
EIP = 75947468 ESP = 0015 eafc EBP = 0015eb1c iopl = 0 NV up ei pl nz Na Po NC
Cs = 0023 Ss = 002b DS = 002b es = 002b FS = 0053 GS = 002b EFL = 00000202
Kernel32! Vdmconsoleoperation plus 0x246:
75947468 83c404 add ESP, 4
0: 000>! Dumpheap-type RegEx
....

Statistics:
Mt count totalsize Class Name
62b361b4 3 36 system. Text. regularexpressions. regexcharclass + singlerangecomparer
62b36188 3 36 system. Text. regularexpressions. regexcharclass + singlerange
62b362f8 3 48 system. Text. regularexpressions. regexfc
62b3611c 3 72 system. Collections. Generic. List '1 [[system. Text. regularexpressions. regexcharclass + singlerange, system]
62b35e4c 3 72 system. Collections. Generic. List '1 [[system. Text. regularexpressions. regexoptions, system]
62b35cf8 3 72 system. Text. regularexpressions. regexcharclass
62b362bc 3 84 system. Text. regularexpressions. regexfcd
62b364fc 6 96 system. Text. regularexpressions. regexprefix
62b35ff4 4 4 96 system. Text. regularexpressions. regexoptions []
62b36210 3 108 system. Text. regularexpressions. regextree
62b35a0c 3 120 system. Text. regularexpressions. regexboyermoore
62b36284 3 132 system. Text. regularexpressions. regexcode
62b36248 3 144 system. Text. regularexpressions. regexwriter
62b1e5b4 3 156 system. Text. regularexpressions. RegEx
62b35e10 3 252 system. Text. regularexpressions. regexparser
62b36540 3 312 system. Text. regularexpressions. regexinterpreter
62b360a4 18 432 system. Collections. Generic. List '1 [[system. Text. regularexpressions. regexnode, system]
62b35d30 1 1140 system. Text. regularexpressions. regexcharclass + lowercasemapping []
62b36040 29 1160 system. Text. regularexpressions. regexnode
Total 100 objects
0: 000>! Dumpheap-MT 62b1e5b4
Address Mt size
021db2fc 62b1e5b4 52
021e1390 62b1e5b4 52
021e2248 62b1e5b4 52
Total 0 objects
Statistics:
Mt count totalsize Class Name
62b1e5b4 3 156 system. Text. regularexpressions. RegEx
Total 3 objects
0: 000>! Dumpobj 021db2fc
Name: system. Text. regularexpressions. RegEx
Methodtable: 62b1e5b4
Eeclass: 6295bb8c
Size: 52 (0x34) bytes
File: C: \ WINDOWS \ microsoft. Net \ Assembly \ gac_msil \ System \ v4.0 _ 4.0.0.0 _ b77a5c561934e089 \ System. dll
Fields:
MT field offset type vt attr Value Name
6356f9ac 4000001 4 system. String 0 instance 021db210 Pattern
62b3489c 4000002 8... egexrunnerfactory 0 instance 00000000 Factory
62b2dd68 4000003 24 system. int32 1 instance 0 roptions
6357537c 4000004 c... ections. hashtable 0 instance 00000000 caps
6357537c 4000005 10... ections. hashtable 0 instance 021e0344 capnames
63526c28 4000006 14 system. object [] 0 instance 021e0b70 capslist
63572978 4000007 28 system. int32 1 instance 2 capsize
62b35c0c 4000008 18... xclusivereference 0 instance 021e135c runnerref
62b35c48 4000009 1C... S. sharedreference 0 instance 021e1370 replref
62b36284 400000a 20... essions. regexcode 0 instance 021e131c code
6357662c 400000b 2C system. boolean 1 instance 1 refsinitialized
62b35da8 400000c 4... deentry, system] 0 static 021db8a0 livecode
63572978 400000d 864 system. int32 1 static 15 cachesize
0: 000>! Dumpobj 021db210
Name: system. String
Methodtable: 6356f9ac
Eeclass: 632a8bb0
Size: 50 (0x32) bytes
File: C: \ WINDOWS \ microsoft. Net \ Assembly \ gac_32 \ mscorlib \ v4.0 _ 4.0.0.0 _ b77a5c561934e089 \ mscorlib. dll
String :(? <URL> href = ". +? ")
Fields:
MT field offset type vt attr Value Name
63572978 40000ed 4 system. int32 1 instance 18 m_stringlength
63571dc8 40000ee 8 system. Char 1 instance 28 m_firstchar
6356f9ac 40000ef 8 system. String 0 shared static empty
> Domain: Value 00665b58: 021d1228 <

-----------------------------

Command remarks:

0: 004>! Threads # list all managed threads

0: 004> ~ 0 s # Go to 0 hosting process (~ 0 s), where 4 in 0: 004 indicates that the current thread ID is 4

0: 000>! Dumpheap-type RegEx # use! Run dumpheap-type to view the RegEx method table.

! Dumpheap-MT 62b1e5b4 # view the object associated with the method table

! Dumpobj 021db2fc # view the RegEx object content

! Dumpobj 021db210 # Because string is a reference type, value displays its reference value. view the content of this reference object (string) again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.