Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] A question about debug using DDD

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Nathan Jennings <njen@xxxxxxxxxxxx>
Date: Tue, 05 Sep 2006 22:28:30 -0400

patrick.yan@xxxxxxxxx wrote:
hello,

when debug with DDD, I set a breakpoint in function "proto_register_chlip" by command: b proto_register_chlip. then: run

but it display:
Breakpoint 2, proto_register_chlip () at packet-chlip-template.c:60
60       packet-chlip-template.c: No such file or directory.
         in packet-chlip-template.c

Can you tell me why I can set the breakpoint successfully, but cannot find it in .c file? whether I should set some parameters to make this breakpoint in packet-chlip.c file not packet-chlip-template.c?


You can "cd" into the directory where those source files exist and then start ddd, or look in the ddd menu "Edit" -> "GDB Settings..." -> "Search path for source files" and explicitly add the path there.

-Nathan

  • Follow-Ups:
    • Re: [Wireshark-dev] A question about debug using DDD
      • From: Ulf Lamping
  • References:
    • Re: [Wireshark-dev] A question about debug using DDD
      • From: patrick.yan
  • Prev by Date: Re: [Wireshark-dev] [Wireshark-commits] rev 19159: /trunk/ /trunk/: Makefile.nmake config.h.win32 config.nmake
  • Next by Date: Re: [Wireshark-dev] [Wireshark-commits] rev 19159: /trunk/ /trunk/: Makefile.nmake config.h.win32 config.nmake
  • Previous by thread: Re: [Wireshark-dev] A question about debug using DDD
  • Next by thread: Re: [Wireshark-dev] A question about debug using DDD
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation