Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* GDB likes .../src/main.c, but it does not like ..\src\main.c ?
@ 2007-04-25 11:32 Sascha Radike
  2007-04-25 11:40 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Sascha Radike @ 2007-04-25 11:32 UTC (permalink / raw)
  To: gdb

Hi,

I'm using GDB 6.5 and 6.6 (target = ARM, host = MinGW). Same for GCC.


Let's say I compile a file like this:
gcc -c -O0 -g -Ibla\blab\bla -osrc\main.o ..\src\main.c

When I debug the excutable using GDB and I put a "break main.c:23" I'll get
an error: No line 23 in file "..\src\main.c".


But when I compile the file with slashes instead of back-slashes

gcc -c -O0 -g -Ibla/blab/bla -osrc/main.o ../src/main.c

"break main.c:23" will work.


Why is that? The GDB which can be downloaded from MinGW does not seem to
have this problem.

Thanks

Sascha



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GDB likes .../src/main.c, but it does not like ..\src\main.c ?
  2007-04-25 11:32 GDB likes .../src/main.c, but it does not like ..\src\main.c ? Sascha Radike
@ 2007-04-25 11:40 ` Daniel Jacobowitz
  2007-04-25 13:14   ` Sascha Radike
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-04-25 11:40 UTC (permalink / raw)
  To: Sascha Radike; +Cc: gdb

On Wed, Apr 25, 2007 at 01:32:43PM +0200, Sascha Radike wrote:
> Hi,
> 
> I'm using GDB 6.5 and 6.6 (target = ARM, host = MinGW). Same for GCC.

Could you try this with a current CVS snapshot?  I believe Joel fixed it.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GDB likes .../src/main.c, but it does not like ..\src\main.c ?
  2007-04-25 11:40 ` Daniel Jacobowitz
@ 2007-04-25 13:14   ` Sascha Radike
  0 siblings, 0 replies; 3+ messages in thread
From: Sascha Radike @ 2007-04-25 13:14 UTC (permalink / raw)
  To: gdb

Daniel Jacobowitz wrote:
>>Could you try this with a current CVS snapshot?  I believe Joel fixed it.

I checked the current CVS snapshot and it works. I still get errors for
-data-disassemble though. But that might be a Eclipse CDT issue.

Thanks

Sascha



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-25 13:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-25 11:32 GDB likes .../src/main.c, but it does not like ..\src\main.c ? Sascha Radike
2007-04-25 11:40 ` Daniel Jacobowitz
2007-04-25 13:14   ` Sascha Radike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox