This is our old Q&A Site. Please post any new questions and answers at

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 But when i set a condition on the breakpoint in GDB, i get following message.

(gdb) condition 1 pinfo->fd->num == 132
No symbol "pinfo" in current context.

How do I access "pinfo"?

asked 19 Jul '15, 21:55

PratikYeole's gravatar image

accept rate: 0%

edited 20 Jul '15, 10:24

Guy%20Harris's gravatar image

Guy Harris ♦♦

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 ;)

permanent link

answered 20 Jul '15, 11:24

Pascal%20Quantin's gravatar image

Pascal Quantin
accept rate: 30%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 19 Jul '15, 21:55

question was seen: 1,030 times

last updated: 20 Jul '15, 11:24

p​o​w​e​r​e​d by O​S​Q​A