Make GDB print context around every time -


lldb print context around current line every time this:

     int = 12;      int b = * 13; ->   printf("%d\n", b);      return 0;    } 

in same time, gdb print 1 current line:

->   printf("%d\n", b); 

can make gdb print context every step lldb? googling give around list command.

a way accomplish might defining macro redefines keyword, such 's' or 'n'. example, if wanted print out value of stack pointer @ each step redefine 's' entering these lines (gbd) console:

def s step info registers sp end 

now every time use command 's' step , print of sp register


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -