On Wed, Nov 27, 2013 at 02:24:15PM +0100, Mathieu Malaterre wrote:
> Package: gdb
> Version: 7.6.1-1
> 
> gdb/gcc does not like \r in C comment and get lost counting lines. See
> attached C code.
> 
> Steps:
> 
> $ gcc -o demo -g d2.c
> $ gdb ./demo
> [...]
> Reading symbols from /tmp/demo...done.
> (gdb) b main
> Breakpoint 1 at 0x4004c7: file d2.c, line 16.
> (gdb) r
> Starting program: /tmp/./demo
> warning: Could not load shared library symbols for linux-vdso.so.1.
> Do you need "set solib-search-path" or "set sysroot"?
> 
> Breakpoint 1, main (argc=1, argv=0x7fffffffe8d8) at d2.c:16
> (gdb) list
> Line number 16 out of range; d2.c has 11 lines.

I am unable to reproduce with upcoming 7.7-1 package.
Please verify again once it hits proper Debian.


> /*
> 1
 2
 3
 5
 6
 7
 8
 9
> */
> 
> static int foo() { return 42; }
> 
> int main(int argc, char *argv[])
> {
>   int v = foo();
>   return 0;
> }


-- 
  Hector Oron

Attachment: signature.asc
Description: Digital signature

Reply via email to