I start with Windbg. In a "kernel debugger" session, I place myself in the context of a service (I chose audiosrv for my learning). I would like to disassemble a function that I easily identify with the "x" command. I use the "u" function with the name of the previously obtained function. But the "u" command reports an error.
1: kd> .process /i /p ffffb00787f23080
You need to continue execution (press 'g' <enter>) for the context
to be switched. When the debugger breaks in again, you will be in
the new process context.
1: kd> g
Break instruction exception - code 80000003 (first chance)
nt!DbgBreakPointWithStatus:
fffff807`42225700 cc int 3
1: kd> !process -1 0
PROCESS ffffb00787f23080
SessionId: 0 Cid: 0ec4 Peb: 28a2e68000 ParentCid: 02f8
DirBase: 14351b002 ObjectTable: ffff85843f652800 HandleCount: 302.
Image: svchost-Copy.exe
1: kd> .reload
1: kd> x AUDIOSRVPOLICYMANAGER!lambda_578
00007ffc977a3598 AUDIOSRVPOLICYMANAGER!wil::init_once_nothrow<<lambda_578ae89ec9d34aac4820f7673924a253> > (void) 00007ffc
977a445c AUDIOSRVPOLICYMANAGER!<lambda_578ae89ec9d34aac4820f7673924a253>::operator() (void)
1: kd> u 00007ffc977a445c AUDIOSRVPOLICYMANAGER!<lambda_578ae89ec9d34aac4820f7673924a253>::operator(): 00007ffc
977a445c 48894c2408 mov qword ptr [rsp+8],rcx
00007ffc977a4461 55 push rbp 00007ffc
977a4462 53 push rbx
00007ffc977a4463 56 push rsi 00007ffc
977a4464 57 push rdi
00007ffc977a4465 4156 push r14 00007ffc
977a4467 488bec mov rbp,rsp
00007ffc`977a446a 4881ec80000000 sub rsp,80h
1: kd> u AUDIOSRVPOLICYMANAGER!<lambda_578ae89ec9d34aac4820f7673924a253>::operator()
Syntax error at 'AUDIOSRVPOLICYMANAGER!<lambda_578ae89ec9d34aac4820f7673924a253>::operator()'
IDA says : "lambda_578ae89ec9d34aac4820f7673924a253__operator_" I also tried this :
1: kd> u AUDIOSRVPOLICYMANAGER!_lambda_578ae89ec9d34aac4820f7673924a253__operator__
Couldn't resolve error at 'AUDIOSRVPOLICYMANAGER!_lambda_578ae89ec9d34aac4820f7673924a253__operator__'
Why does the "u" command fail while the "x" command displays the function name?
ps : I can't make a correct layout. Sorry.