android - gdb debug variable not in current context -


i using gdb client server mode debug android native code. can set breakpoint @ code after breakpoint hitted, wish print variable value, seems doesn't work:

(gdb) list 4377        astring mime; 4378     4379        astring componentname; 4380        uint32_t quirks = 0; 4381        int32_t encoder = false; 4382        if (msg->findstring("componentname", &componentname)) { 4383            ssize_t index = matchingcodecs.add(); 4384            omxcodec::codecnameandquirks *entry = &matchingcodecs.edititemat(index); 4385            entry->mname = string8(componentname.c_str()); 4386     (gdb) print componentname no symbol "componentname" in current context. (gdb) info breakpoints  num     type           disp enb address    1       breakpoint     keep y   0xb65014be frameworks/av/media/libstagefright/acodec.cpp:4382     breakpoint hit 1 time 

i set breakpoint @ 4382 line, after breaked, when try print variable "componentname", tell me "no symbol "componentname" in current context". it's stop @ line why it's not in current context?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -