I am using wireshark version 1.12.6. I want to debug a specific packet in a capture file. I followed the development tips from https://wiki.wireshark.org/Development/Tips. But when i set a condition on the breakpoint in GDB, i get following message.
How do I access "pinfo"? asked 19 Jul '15, 21:55 PratikYeole edited 20 Jul '15, 10:24 Guy Harris ♦♦ |
One Answer:
As indicated in the wiki, this breakpoint the will only work if pinfo structure is given as parameter to the function you are interested in (pinfo structure is not global but is a local variable). If your function does not have access to pinfo (as the error you get suggest) either modify the source code to pass it as a parameter or put the breakpoint in whatever parent function which has access to pinfo structure. Or use another condition than the frame number ;) answered 20 Jul '15, 11:24 Pascal Quantin |