|
板凳
楼主 |
发表于 2017-7-31 10:19:08
|
只看该作者
(gdb) target remote 192.168.1.102:1234
`/home/tl/Desktop/linux-arm/Qt/project/helloworld1/helloworld-build-Desktop-Debug/helloworld' has changed; re-reading symbols.
Remote debugging using 192.168.1.102:1234
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0x498c0c80 in ?? ()
(gdb) l
5 #include <string.h>
6 #include <unistd.h>
7
8 using namespace std;
9 unsigned char * g_pRgbBuffer;
10 #define FILENAME "./test"
11
12 int main()
13 {
14 int iCameraCounts = 1;
(gdb) l
15 int iStatus=-1;
16 tSdkCameraDevInfo tCameraEnumList;
17 int hCamera;
18 tSdkCameraCapbility tCapability;
19 tSdkFrameHead sFrameInfo;
20 BYTE* pbyBuffer;
21 tSdkImageResolution sImageSize;
22
23 CameraSdkInit(1);//相机SDK初始化,在调用任何SDK其他接口前,
24 //必须先调用该接口进行初始化。该函数在整个进程运行
(gdb) l
25 //期间只需要调用一次。
26 CameraEnumerateDevice(&tCameraEnumList,&iCameraCounts);
27 //枚举设备,并建立设备列表。在调用CameraInit
28 //之前,必须调用该函数来获得设备的信息。
29 printf("Number of Cameras is %d \n",iCameraCounts);
30 printf("hello world!\n");
31 return 0;
32 }
(gdb) l
Line number 33 out of range; ../helloworld/main.cpp has 32 lines.
(gdb) b 6
Breakpoint 2 at 0x8838: file ../helloworld/main.cpp, line 6.
(gdb) c
Continuing.
[Inferior 1 (process 1891) exited with code 01]
(gdb)
|
|