01/10/2018, 15:55

Lỗi "Error in re-setting breakpoint 1: Function "D:C" not defined " trong gdb

D:C,C++Test>gdb -x a.txt -q a.exe
Reading symbols from D:C,C++Testa.exe...done.
(gdb) list
1    #include <stdio.h> 
2    #include <string.h>
3
4       int main()
5       {
6               char str_a[30];
7               strcpy(str_a,"Hello,world!
");
8               char* ptr1;
9               char* ptr2;
10              ptr1 = str_a;
(gdb)
11              printf(ptr1);
12              ptr2 = ptr1 + 2;
13              strcpy(ptr2,"y you guys
");
14              printf(str_a);
15      }
(gdb) break 2
Breakpoint 1 at 0x40146e: file test.c, line 2.
(gdb) run
Starting program: D:C,C++Test/a.exe
[New Thread 1468.0x5cc]
Error in re-setting breakpoint 1: Function "D:C" not defined.
Hello,world!
Hey you guys
[Inferior 1 (process 1468) exited normally]
(gdb)

(Không hiểu sao máy mình không upload được ảnh.Mọi người xem đỡ nhé!)
Giúp mình fix lỗi này với !

*grab popcorn* viết 18:04 ngày 01/10/2018

Đường dẫn bỏ dấu , đi nhé

Bài liên quan
0