User forums > Help

"No source file named " problem while debugging

<< < (2/6) > >>

MortenMacFly:

--- Quote from: Ramazan Kartal on November 24, 2006, 10:35:51 am ---1. You start the gdb using the command line "gdb -nx -readnow -fullname  -quiet -args
then it works.

--- End quote ---
Nice one. Please also verify that this switch is available in major GDB version (5.x and 6.x) if possible. This would be an important additional information.
With regards, Morten.

Ramazan Kartal:
Hi,

For GDB 6.3 series, there was no problem I could find. However for GDB 5.1.1 there are some problems.
1. It does not accept "-args" in command line.
2. It does not accept "set breakpoint pending on" as a command.
3. Although it accepts "-readnow", my solution above does not work for GDB 5.1.1. It always requires an exact filename match, which you can find out by issuing an "info sources" command in debugger.

I don't have access to other versions of GDB so I cannot test them, but how many of users actually using versions other than 6.3?

Ramazan Kartal
 

Ramazan Kartal:
Hi,

I just created a patch to correct the "No source file named blabla" problem, and send it to berlios.

Ramazan Kartal

Phatency:

--- Quote from: Ramazan Kartal on November 24, 2006, 04:52:28 pm ---I don't have access to other versions of GDB so I cannot test them, but how many of users actually using versions other than 6.3?


--- End quote ---

Well, I've read a few times being said that debugging (in C::B) doesn't even work in earlier versions than 6.x, so I guess not many. I sure hope this'll get applied soon, as I really want to debug my libraries :P

mandrav:

--- Quote ---Well, I've read a few times being said that debugging (in C::B) doesn't even work in earlier versions than 6.x
--- End quote ---

That used to be true but not anymore. gdb 5.x works fine.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version