Displaying 2 results from an estimated 2 matches for "external_fn".
Did you mean:
external_fcn3
2010 Aug 25
2
[LLVMdev] Debug information on multiple files
...th SVN Clang+LLVM and got the same problem for x86-64.
In GDB, when you're stepping through the program, whichever file got
linked first has line information and you can only step on the source
of the first object.
My Files:
-------------------------------- ext.c
#include <stdio.h>
int external_fn(void)
{
int i;
for (i = 0; i < 5; ++i) {
printf("ext fn #%d\n", i);
}
return 0;
}
-------------------------------- main.c
#include <stdio.h>
int external_fn(void);
int main(int argc, char** argv)
{
printf("TestMsg\n");
external_fn();
return 0;
}
$...
2010 Aug 25
2
[LLVMdev] [cfe-dev] Debug information on multiple files
...x86-64.
> In GDB, when you're stepping through the program, whichever file got
> linked first has line information and you can only step on the source
> of the first object.
>
> My Files:
>
> -------------------------------- ext.c
> #include <stdio.h>
>
> int external_fn(void)
> {
> int i;
> for (i = 0; i < 5; ++i) {
> printf("ext fn #%d\n", i);
> }
> return 0;
> }
>
> -------------------------------- main.c
> #include <stdio.h>
>
> int external_fn(void);
>
> int main(int argc, char** argv)
> {...