Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

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

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