Displaying 5 results from an estimated 5 matches for "gdbtest".
2018 Mar 28
7
[RFC] Generate Debug Information for Labels in Function
...main (void)
{
int i, j;
for (i = 0, j = 0; i < 1000; ++i)
j += myfunction (0);
return 0;
}
Following is the GDB commands to illustrate how to set breakpoints on labels.
(gdb) b main
Breakpoint 1 at 0x10298: file explicit.c, line 50.
(gdb) r
Starting program: /home/users/kai/sandbox/gdbtest/explicit-gcc
Breakpoint 1, main () at explicit.c:50
50 for (i = 0, j = 0; i < 1000; ++i)
(gdb) b myfunction:top
Breakpoint 2 at 0x10214: file explicit.c, line 26.
(gdb) c
Continuing.
Breakpoint 2, myfunction (arg=0) at explicit.c:27
27 ++j; /\* top location */
(gdb)
However, LLVM does not...
2018 Mar 28
0
[RFC] Generate Debug Information for Labels in Function
...t; 1000; ++i)
> j += myfunction (0);
>
> return 0;
> }
>
> Following is the GDB commands to illustrate how to set breakpoints on labels.
>
> (gdb) b main
> Breakpoint 1 at 0x10298: file explicit.c, line 50.
> (gdb) r
> Starting program: /home/users/kai/sandbox/gdbtest/explicit-gcc
>
> Breakpoint 1, main () at explicit.c:50
> 50 for (i = 0, j = 0; i < 1000; ++i)
> (gdb) b myfunction:top
> Breakpoint 2 at 0x10214: file explicit.c, line 26.
> (gdb) c
> Continuing.
>
> Breakpoint 2, myfunction (arg=0) at explicit.c:27
> 27 ++j; /\...
2018 Mar 28
0
[RFC] Generate Debug Information for Labels in Function
...00; ++i)
> j += myfunction (0);
>
> return 0;
> }
>
> Following is the GDB commands to illustrate how to set breakpoints on
> labels.
>
> (gdb) b main
> Breakpoint 1 at 0x10298: file explicit.c, line 50.
> (gdb) r
> Starting program: /home/users/kai/sandbox/gdbtest/explicit-gcc
>
> Breakpoint 1, main () at explicit.c:50
> 50 for (i = 0, j = 0; i < 1000; ++i)
> (gdb) b myfunction:top
> Breakpoint 2 at 0x10214: file explicit.c, line 26.
> (gdb) c
> Continuing.
>
> Breakpoint 2, myfunction (arg=0) at explicit.c:27
> 27 ++j; /\...
2018 Mar 29
0
[RFC] Generate Debug Information for Labels in Function
...; 1000; ++i)
> j += myfunction (0);
>
> return 0;
> }
>
> Following is the GDB commands to illustrate how to set breakpoints on labels.
>
> (gdb) b main
> Breakpoint 1 at 0x10298: file explicit.c, line 50.
> (gdb) r
> Starting program: /home/users/kai/sandbox/gdbtest/explicit-gcc
>
> Breakpoint 1, main () at explicit.c:50
> 50 for (i = 0, j = 0; i < 1000; ++i)
> (gdb) b myfunction:top
> Breakpoint 2 at 0x10214: file explicit.c, line 26.
> (gdb) c
> Continuing.
>
> Breakpoint 2, myfunction (arg=0) at explicit.c:27
> 27 ++j;...
2018 Mar 30
2
[RFC] Generate Debug Information for Labels in Function
...(0);
>>
>> return 0;
>> }
>>
>> Following is the GDB commands to illustrate how to set breakpoints on labels.
>>
>> (gdb) b main
>> Breakpoint 1 at 0x10298: file explicit.c, line 50.
>> (gdb) r
>> Starting program: /home/users/kai/sandbox/gdbtest/explicit-gcc
>>
>> Breakpoint 1, main () at explicit.c:50
>> 50 for (i = 0, j = 0; i < 1000; ++i)
>> (gdb) b myfunction:top
>> Breakpoint 2 at 0x10214: file explicit.c, line 26.
>> (gdb) c
>> Continuing.
>>
>> Breakpoint 2, myfunction (arg=0...