How to set breakpoint

General questions regarding the usage of CodeLite
cy007
CodeLite Enthusiast
Posts: 13
Joined: Mon Apr 28, 2008 9:25 am
Contact:

How to set breakpoint

Post by cy007 »

After I compiled and installed revision 2841, I found a problem:
In my workspace, there is 2 projects. One is application, and another is a share library. This application will execute functions in that share library. I found Breakpoint only can be set in application but library. why? in revision 2435, It works fine.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to set breakpoint

Post by eranif »

Please turn on the debugger log mode try to set the breakpoint again, and paste here the output u get in the 'debug' tab.

To enable the debugger logging:
settings -> debugger settings ... -> Enable full debugger logging

Eran
Make sure you have read the HOW TO POST thread
cy007
CodeLite Enthusiast
Posts: 13
Joined: Mon Apr 28, 2008 9:25 am
Contact:

Re: How to set breakpoint

Post by cy007 »

eranif wrote:Please turn on the debugger log mode try to set the breakpoint again, and paste here the output u get in the 'debug' tab.

To enable the debugger logging:
settings -> debugger settings ... -> Enable full debugger logging

Eran
Debug session started successfully!
GNU gdb Red Hat Linux (6.6-45.fc8rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
set unwindonsignal on
set breakpoint pending on
set width 0
set height 0
No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.
Breakpoint creation unsuccessful
Continuing...
/dev/?: No such file or directory.
You can't do that without a process to debug.
You can't do that without a process to debug.
Debug session ended
Debug session started successfully!
Debuggee process ID: 5547
GNU gdb Red Hat Linux (6.6-45.fc8rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
set unwindonsignal on
set breakpoint pending on
set width 0
set height 0
No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.
Breakpoint creation unsuccessful
Continuing...
[Thread debugging using libthread_db enabled]
[New Thread -1208457520 (LWP 5547)]
[Detaching after fork from child process 5551. (Try `set detach-on-fork off'.)]
[New Thread -1216418928 (LWP 5552)]
[New Thread -1256785008 (LWP 5554)]
[New Thread -1268778096 (LWP 5555)]
[Thread -1256785008 (LWP 5554) exited]
[Thread -1268778096 (LWP 5555) exited]
[New Thread -1268778096 (LWP 5556)]
[Thread -1268778096 (LWP 5556) exited]
[New Thread -1268778096 (LWP 5557)]
[New Thread -1256785008 (LWP 5558)]
[Thread -1268778096 (LWP 5557) exited]
[Thread -1256785008 (LWP 5558) exited]
[New Thread -1256785008 (LWP 5559)]
[New Thread -1268778096 (LWP 5560)]
[Thread -1256785008 (LWP 5559) exited]
[Thread -1268778096 (LWP 5560) exited]
[New Thread -1268778096 (LWP 5561)]
[New Thread -1256785008 (LWP 5562)]
[New Thread -1282217072 (LWP 5563)]
[New Thread -1292706928 (LWP 5564)]
[New Thread -1303196784 (LWP 5565)]
Debug session ended
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:158"
DEBUG>>00000005-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:158"
Debug session started successfully!
DEBUG>>00000006-exec-run
Debuggee process ID: 5594
DEBUG>>~"GNU gdb Red Hat Linux (6.6-45.fc8rh)\n"
GNU gdb Red Hat Linux (6.6-45.fc8rh)
DEBUG>>~"Copyright (C) 2006 Free Software Foundation, Inc.\n"
Copyright (C) 2006 Free Software Foundation, Inc.
DEBUG>>~"GDB is free software, covered by the GNU General Public License, and you are\n"
GDB is free software, covered by the GNU General Public License, and you are
DEBUG>>~"welcome to change it and/or distribute copies of it under certain conditions.\n"
welcome to change it and/or distribute copies of it under certain conditions.
DEBUG>>~"Type \"show copying\" to see the conditions.\n"
Type "show copying" to see the conditions.
DEBUG>>~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
There is absolutely no warranty for GDB. Type "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i386-redhat-linux-gnu\"...\n"
This GDB was configured as "i386-redhat-linux-gnu"...
DEBUG>>~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n"
Using host libthread_db library "/lib/libthread_db.so.1".
DEBUG>>(gdb)
DEBUG>>&"set unwindonsignal on\n"
set unwindonsignal on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set breakpoint pending on\n"
set breakpoint pending on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set width 0\n"
set width 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set height 0\n"
set height 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.\n"
No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.
DEBUG>>00000005^done
Breakpoint creation unsuccessful
DEBUG>>(gdb)
DEBUG>>00000006^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
DEBUG>>~"[New Thread -1208641840 (LWP 5594)]\n"
[New Thread -1208641840 (LWP 5594)]
DEBUG>>&"[Detaching after fork from child process 5598. (Try `set detach-on-fork off'.)]\n"
[Detaching after fork from child process 5598. (Try `set detach-on-fork off'.)]
DEBUG>>~"[New Thread -1216603248 (LWP 5599)]\n"
[New Thread -1216603248 (LWP 5599)]
DEBUG>>~"[New Thread -1256969328 (LWP 5600)]\n"
[New Thread -1256969328 (LWP 5600)]
DEBUG>>~"[Thread -1256969328 (LWP 5600) exited]\n"
[Thread -1256969328 (LWP 5600) exited]
DEBUG>>~"[New Thread -1256969328 (LWP 5601)]\n"
[New Thread -1256969328 (LWP 5601)]
DEBUG>>~"[Thread -1256969328 (LWP 5601) exited]\n"
[Thread -1256969328 (LWP 5601) exited]
DEBUG>>~"[New Thread -1256969328 (LWP 5602)]\n"
[New Thread -1256969328 (LWP 5602)]
DEBUG>>~"[New Thread -1268778096 (LWP 5603)]\n"
[New Thread -1268778096 (LWP 5603)]
DEBUG>>~"[Thread -1268778096 (LWP 5603) exited]\n"
[Thread -1268778096 (LWP 5603) exited]
DEBUG>>~"[Thread -1256969328 (LWP 5602) exited]\n"
[Thread -1256969328 (LWP 5602) exited]
DEBUG>>~"[New Thread -1256969328 (LWP 5611)]\n"
[New Thread -1256969328 (LWP 5611)]
DEBUG>>~"[New Thread -1268778096 (LWP 5612)]\n"
[New Thread -1268778096 (LWP 5612)]
DEBUG>>~"[Thread -1268778096 (LWP 5612) exited]\n"
[Thread -1268778096 (LWP 5612) exited]
DEBUG>>~"[Thread -1256969328 (LWP 5611) exited]\n"
[Thread -1256969328 (LWP 5611) exited]
DEBUG>>~"[New Thread -1256969328 (LWP 5613)]\n"
[New Thread -1256969328 (LWP 5613)]
DEBUG>>~"[Thread -1256969328 (LWP 5613) exited]\n"
[Thread -1256969328 (LWP 5613) exited]
DEBUG>>~"[New Thread -1256969328 (LWP 5614)]\n"
[New Thread -1256969328 (LWP 5614)]
DEBUG>>~"[New Thread -1268778096 (LWP 5615)]\n"
[New Thread -1268778096 (LWP 5615)]
DEBUG>>~"[New Thread -1282442352 (LWP 5616)]\n"
[New Thread -1282442352 (LWP 5616)]
DEBUG>>~"[New Thread -1292932208 (LWP 5617)]\n"
[New Thread -1292932208 (LWP 5617)]
DEBUG>>~"[New Thread -1303422064 (LWP 5618)]\n"
[New Thread -1303422064 (LWP 5618)]
DEBUG>>~"[New Thread -1313911920 (LWP 5619)]\n"
[New Thread -1313911920 (LWP 5619)]
DEBUG>>~"[New Thread 27462544 (LWP 5620)]\n"
[New Thread 27462544 (LWP 5620)]
DEBUG>>~"[New Thread 49978256 (LWP 5621)]\n"
[New Thread 49978256 (LWP 5621)]
DEBUG>>~"[New Thread 60468112 (LWP 5622)]\n"
[New Thread 60468112 (LWP 5622)]
DEBUG>>~"[New Thread 85400464 (LWP 5623)]\n"
[New Thread 85400464 (LWP 5623)]
DEBUG>>~"[New Thread 103750544 (LWP 5624)]\n"
[New Thread 103750544 (LWP 5624)]
DEBUG>>~"[Thread 103750544 (LWP 5624) exited]\n"
[Thread 103750544 (LWP 5624) exited]
DEBUG>>~"[Thread 85400464 (LWP 5623) exited]\n"
[Thread 85400464 (LWP 5623) exited]
DEBUG>>~"[Thread 60468112 (LWP 5622) exited]\n"
[Thread 60468112 (LWP 5622) exited]
DEBUG>>~"[Thread 27462544 (LWP 5620) exited]\n"
[Thread 27462544 (LWP 5620) exited]
DEBUG>>~"[Thread -1313911920 (LWP 5619) exited]\n"
[Thread -1313911920 (LWP 5619) exited]
DEBUG>>~"[New Thread -1313911920 (LWP 5625)]\n"
[New Thread -1313911920 (LWP 5625)]
DEBUG>>~"[New Thread 27462544 (LWP 5626)]\n"
[New Thread 27462544 (LWP 5626)]
DEBUG>>~"[New Thread 60468112 (LWP 5627)]\n"
[New Thread 60468112 (LWP 5627)]
DEBUG>>~"[New Thread 104475536 (LWP 5628)]\n"
[New Thread 104475536 (LWP 5628)]
DEBUG>>~"[New Thread 85400464 (LWP 5629)]\n"
[New Thread 85400464 (LWP 5629)]
DEBUG>>~"[Thread 85400464 (LWP 5629) exited]\n"
[Thread 85400464 (LWP 5629) exited]
DEBUG>>~"[Thread 104475536 (LWP 5628) exited]\n"
[Thread 104475536 (LWP 5628) exited]
DEBUG>>~"[Thread 60468112 (LWP 5627) exited]\n"
[Thread 60468112 (LWP 5627) exited]
DEBUG>>~"[Thread -1313911920 (LWP 5625) exited]\n"
[Thread -1313911920 (LWP 5625) exited]
DEBUG>>~"[Thread 49978256 (LWP 5621) exited]\n"
[Thread 49978256 (LWP 5621) exited]
DEBUG>>~"[Thread -1303422064 (LWP 5618) exited]\n"
[Thread -1303422064 (LWP 5618) exited]
DEBUG>>~"[Thread -1282442352 (LWP 5616) exited]\n"
[Thread -1282442352 (LWP 5616) exited]
DEBUG>>~"[Thread 27462544 (LWP 5626) exited]\n"
[Thread 27462544 (LWP 5626) exited]
DEBUG>>~"[Thread -1292932208 (LWP 5617) exited]\n"
[Thread -1292932208 (LWP 5617) exited]
DEBUG>>~"[Thread -1268778096 (LWP 5615) exited]\n"
[Thread -1268778096 (LWP 5615) exited]
DEBUG>>~"[Thread -1216603248 (LWP 5599) exited]\n"
[Thread -1216603248 (LWP 5599) exited]
DEBUG>>~"[Thread -1256969328 (LWP 5614) exited]\n"
[Thread -1256969328 (LWP 5614) exited]
DEBUG>>00000006*stopped,reason="exited-normally"
Program exited normally.
Debug session ended
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
-break-insert "/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c:1527"
DEBUG>>00000007-break-insert "/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c:1527"
-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:158"
DEBUG>>00000008-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:158"
Debug session started successfully!
DEBUG>>00000009-exec-run
Debuggee process ID: 5661
DEBUG>>~"GNU gdb Red Hat Linux (6.6-45.fc8rh)\n"
GNU gdb Red Hat Linux (6.6-45.fc8rh)
DEBUG>>~"Copyright (C) 2006 Free Software Foundation, Inc.\n"
Copyright (C) 2006 Free Software Foundation, Inc.
DEBUG>>~"GDB is free software, covered by the GNU General Public License, and you are\n"
GDB is free software, covered by the GNU General Public License, and you are
DEBUG>>~"welcome to change it and/or distribute copies of it under certain conditions.\n"
welcome to change it and/or distribute copies of it under certain conditions.
DEBUG>>~"Type \"show copying\" to see the conditions.\n"
Type "show copying" to see the conditions.
DEBUG>>~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
There is absolutely no warranty for GDB. Type "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i386-redhat-linux-gnu\"...\n"
This GDB was configured as "i386-redhat-linux-gnu"...
DEBUG>>~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n"
Using host libthread_db library "/lib/libthread_db.so.1".
DEBUG>>(gdb)
DEBUG>>&"set unwindonsignal on\n"
set unwindonsignal on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set breakpoint pending on\n"
set breakpoint pending on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set width 0\n"
set width 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set height 0\n"
set height 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>00000007^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x080606bd",func="GlobalLoadDisc",file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",line="1527",times="0"}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: /home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c:1527
DEBUG>>(gdb)
DEBUG>>&"No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.\n"
No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.
DEBUG>>00000008^done
Breakpoint creation unsuccessful
DEBUG>>(gdb)
DEBUG>>00000009^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
DEBUG>>~"[New Thread -1208420656 (LWP 5661)]\n"
[New Thread -1208420656 (LWP 5661)]
DEBUG>>&"[Detaching after fork from child process 5665. (Try `set detach-on-fork off'.)]\n"
[Detaching after fork from child process 5665. (Try `set detach-on-fork off'.)]
DEBUG>>~"[New Thread -1216382064 (LWP 5666)]\n"
[New Thread -1216382064 (LWP 5666)]
DEBUG>>~"[New Thread -1256748144 (LWP 5667)]\n"
[New Thread -1256748144 (LWP 5667)]
DEBUG>>~"[Thread -1256748144 (LWP 5667) exited]\n"
[Thread -1256748144 (LWP 5667) exited]
DEBUG>>~"[New Thread -1256748144 (LWP 5668)]\n"
[New Thread -1256748144 (LWP 5668)]
DEBUG>>~"[Thread -1256748144 (LWP 5668) exited]\n"
[Thread -1256748144 (LWP 5668) exited]
DEBUG>>~"[New Thread -1256748144 (LWP 5669)]\n"
[New Thread -1256748144 (LWP 5669)]
DEBUG>>~"[New Thread -1268778096 (LWP 5670)]\n"
[New Thread -1268778096 (LWP 5670)]
DEBUG>>~"[Thread -1268778096 (LWP 5670) exited]\n"
[Thread -1268778096 (LWP 5670) exited]
DEBUG>>~"[Thread -1256748144 (LWP 5669) exited]\n"
[Thread -1256748144 (LWP 5669) exited]
DEBUG>>~"[New Thread -1256748144 (LWP 5671)]\n"
[New Thread -1256748144 (LWP 5671)]
DEBUG>>~"[Thread -1256748144 (LWP 5671) exited]\n"
[Thread -1256748144 (LWP 5671) exited]
DEBUG>>~"[New Thread -1256748144 (LWP 5672)]\n"
[New Thread -1256748144 (LWP 5672)]
DEBUG>>~"[New Thread -1268778096 (LWP 5673)]\n"
[New Thread -1268778096 (LWP 5673)]
DEBUG>>~"[Thread -1268778096 (LWP 5673) exited]\n"
[Thread -1268778096 (LWP 5673) exited]
DEBUG>>~"[Thread -1256748144 (LWP 5672) exited]\n"
[Thread -1256748144 (LWP 5672) exited]
DEBUG>>~"[Switching to Thread -1208420656 (LWP 5661)]\n"
[Switching to Thread -1208420656 (LWP 5661)]
DEBUG>>00000009*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x080606bd",func="GlobalLoadDisc",args=[],file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",line="1527"}
DEBUG>>00000010-file-list-exec-source-file
DEBUG>>(gdb)
DEBUG>>00000010^done,line="1527",file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c"
DEBUG>>00000011-stack-list-arguments 1 0 0
DEBUG>>00000012-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>00000011^done,stack-args=[frame={level="0",args=[]}]
DEBUG>>(gdb)
DEBUG>>00000012^done,locals=[{name="dvdParam",value="{wnd = {dwWndType = 1, detail = {directfb = {<No data fields>}, window_id = 71303216}}, m_lpNotifyEventCallback = 0x805ff2d <Global_NotifyEvent>, m_lpSetTmpPMLCallback = 0x805ff5f <Global_SetTmpPML>, pUserData = 0x0}"},{name="preview",value="(GtkWidget *) 0x8dd44d8"},{name="value",value="{region = 150258704, ptlLevel = 150258704, dispMode = 150258704, language = \"\\020\\304\", languageExt = 16 '\\020', country = \"\\020\\304\"}"},{name="result",value="129885812"}]
DEBUG>>(gdb)
DEBUG>>00000013-exec-next
DEBUG>>00000013^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[New Thread -1256748144 (LWP 5675)]\n"
[New Thread -1256748144 (LWP 5675)]
DEBUG>>00000013*stopped,reason="end-stepping-range",thread-id="1",frame={addr="0x080606cd",func="GlobalLoadDisc",args=[],file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",line="1528"}
DEBUG>>00000014-file-list-exec-source-file
DEBUG>>(gdb)
DEBUG>>00000014^done,line="1528",file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c"
DEBUG>>00000015-stack-list-arguments 1 0 0
DEBUG>>00000016-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>00000015^done,stack-args=[frame={level="0",args=[]}]
DEBUG>>(gdb)
DEBUG>>00000016^done,locals=[{name="dvdParam",value="{wnd = {dwWndType = 1, detail = {directfb = {<No data fields>}, window_id = 71303216}}, m_lpNotifyEventCallback = 0x805ff2d <Global_NotifyEvent>, m_lpSetTmpPMLCallback = 0x805ff5f <Global_SetTmpPML>, pUserData = 0x0}"},{name="preview",value="(GtkWidget *) 0x8dd44d8"},{name="value",value="{region = 150258704, ptlLevel = 150258704, dispMode = 150258704, language = \"\\020\\304\", languageExt = 16 '\\020', country = \"\\020\\304\"}"},{name="result",value="129885812"}]
DEBUG>>(gdb)
DEBUG>>00000017-exec-continue
DEBUG>>00000018-file-list-exec-source-file
DEBUG>>00000017^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[New Thread -1268778096 (LWP 5677)]\n"
[New Thread -1268778096 (LWP 5677)]
DEBUG>>~"[New Thread -1282217072 (LWP 5678)]\n"
[New Thread -1282217072 (LWP 5678)]
DEBUG>>~"[New Thread -1292706928 (LWP 5679)]\n"
[New Thread -1292706928 (LWP 5679)]
DEBUG>>~"[New Thread -1303196784 (LWP 5680)]\n"
[New Thread -1303196784 (LWP 5680)]
DEBUG>>~"[New Thread -1313686640 (LWP 5681)]\n"
[New Thread -1313686640 (LWP 5681)]
DEBUG>>~"[New Thread 50953104 (LWP 5682)]\n"
[New Thread 50953104 (LWP 5682)]
DEBUG>>~"[New Thread 92306320 (LWP 5683)]\n"
[New Thread 92306320 (LWP 5683)]
DEBUG>>~"[New Thread 27462544 (LWP 5684)]\n"
[New Thread 27462544 (LWP 5684)]
DEBUG>>~"[New Thread 103603088 (LWP 5685)]\n"
[New Thread 103603088 (LWP 5685)]
DEBUG>>~"[New Thread 145193872 (LWP 5686)]\n"
[New Thread 145193872 (LWP 5686)]
DEBUG>>~"[Thread 145193872 (LWP 5686) exited]\n"
[Thread 145193872 (LWP 5686) exited]
DEBUG>>~"[Thread 103603088 (LWP 5685) exited]\n"
[Thread 103603088 (LWP 5685) exited]
DEBUG>>~"[Thread 27462544 (LWP 5684) exited]\n"
[Thread 27462544 (LWP 5684) exited]
DEBUG>>~"[Thread 50953104 (LWP 5682) exited]\n"
[Thread 50953104 (LWP 5682) exited]
DEBUG>>~"[Thread -1313686640 (LWP 5681) exited]\n"
[Thread -1313686640 (LWP 5681) exited]
DEBUG>>~"[New Thread -1313686640 (LWP 5687)]\n"
[New Thread -1313686640 (LWP 5687)]
DEBUG>>~"[New Thread 50953104 (LWP 5688)]\n"
[New Thread 50953104 (LWP 5688)]
DEBUG>>~"[New Thread 27462544 (LWP 5689)]\n"
[New Thread 27462544 (LWP 5689)]
DEBUG>>~"[New Thread 102796176 (LWP 5690)]\n"
[New Thread 102796176 (LWP 5690)]
DEBUG>>~"[New Thread 119339920 (LWP 5691)]\n"
[New Thread 119339920 (LWP 5691)]
DEBUG>>~"[Thread 119339920 (LWP 5691) exited]\n"
[Thread 119339920 (LWP 5691) exited]
DEBUG>>~"[New Thread 119339920 (LWP 5692)]\n"
[New Thread 119339920 (LWP 5692)]
DEBUG>>~"[New Thread 145193872 (LWP 5693)]\n"
[New Thread 145193872 (LWP 5693)]
DEBUG>>~"[Thread 119339920 (LWP 5692) exited]\n"
[Thread 119339920 (LWP 5692) exited]
DEBUG>>~"[Thread 145193872 (LWP 5693) exited]\n"
[Thread 145193872 (LWP 5693) exited]
DEBUG>>~"[New Thread 145193872 (LWP 5694)]\n"
[New Thread 145193872 (LWP 5694)]
DEBUG>>~"[New Thread 119339920 (LWP 5695)]\n"
[New Thread 119339920 (LWP 5695)]
DEBUG>>~"[Thread 145193872 (LWP 5694) exited]\n"
[Thread 145193872 (LWP 5694) exited]
DEBUG>>~"[Thread 119339920 (LWP 5695) exited]\n"
[Thread 119339920 (LWP 5695) exited]
DEBUG>>~"[New Thread 119339920 (LWP 5696)]\n"
[New Thread 119339920 (LWP 5696)]
DEBUG>>~"[New Thread 145193872 (LWP 5697)]\n"
[New Thread 145193872 (LWP 5697)]
DEBUG>>~"[Thread 119339920 (LWP 5696) exited]\n"
[Thread 119339920 (LWP 5696) exited]
DEBUG>>~"[Thread 145193872 (LWP 5697) exited]\n"
[Thread 145193872 (LWP 5697) exited]
DEBUG>>~"[Thread 102796176 (LWP 5690) exited]\n"
[Thread 102796176 (LWP 5690) exited]
DEBUG>>~"[Thread 27462544 (LWP 5689) exited]\n"
[Thread 27462544 (LWP 5689) exited]
DEBUG>>~"[Thread -1313686640 (LWP 5687) exited]\n"
[Thread -1313686640 (LWP 5687) exited]
DEBUG>>~"[Thread 92306320 (LWP 5683) exited]\n"
[Thread 92306320 (LWP 5683) exited]
DEBUG>>~"[Thread -1303196784 (LWP 5680) exited]\n"
[Thread -1303196784 (LWP 5680) exited]
DEBUG>>~"[Thread -1282217072 (LWP 5678) exited]\n"
[Thread -1282217072 (LWP 5678) exited]
DEBUG>>~"[Thread 50953104 (LWP 5688) exited]\n"
[Thread 50953104 (LWP 5688) exited]
DEBUG>>~"[Thread -1292706928 (LWP 5679) exited]\n"
[Thread -1292706928 (LWP 5679) exited]
DEBUG>>~"[Thread -1268778096 (LWP 5677) exited]\n"
[Thread -1268778096 (LWP 5677) exited]
DEBUG>>~"[New Thread -1268778096 (LWP 5698)]\n"
[New Thread -1268778096 (LWP 5698)]
DEBUG>>~"[New Thread 50953104 (LWP 5699)]\n"
[New Thread 50953104 (LWP 5699)]
DEBUG>>~"[New Thread -1292706928 (LWP 5700)]\n"
[New Thread -1292706928 (LWP 5700)]
DEBUG>>~"[New Thread 27462544 (LWP 5701)]\n"
[New Thread 27462544 (LWP 5701)]
DEBUG>>~"[New Thread 85400464 (LWP 5702)]\n"
[New Thread 85400464 (LWP 5702)]
DEBUG>>~"[New Thread 95890320 (LWP 5703)]\n"
[New Thread 95890320 (LWP 5703)]
DEBUG>>~"[New Thread 106380176 (LWP 5704)]\n"
[New Thread 106380176 (LWP 5704)]
DEBUG>>~"[New Thread 119339920 (LWP 5705)]\n"
[New Thread 119339920 (LWP 5705)]
DEBUG>>~"[New Thread 145193872 (LWP 5706)]\n"
[New Thread 145193872 (LWP 5706)]
DEBUG>>~"[New Thread -1307432048 (LWP 5707)]\n"
[New Thread -1307432048 (LWP 5707)]
DEBUG>>~"[Thread -1307432048 (LWP 5707) exited]\n"
[Thread -1307432048 (LWP 5707) exited]
DEBUG>>~"[Thread 145193872 (LWP 5706) exited]\n"
[Thread 145193872 (LWP 5706) exited]
DEBUG>>~"[Thread 119339920 (LWP 5705) exited]\n"
[Thread 119339920 (LWP 5705) exited]
DEBUG>>~"[Thread 95890320 (LWP 5703) exited]\n"
[Thread 95890320 (LWP 5703) exited]
DEBUG>>~"[Thread 85400464 (LWP 5702) exited]\n"
[Thread 85400464 (LWP 5702) exited]
DEBUG>>~"[New Thread 85400464 (LWP 5708)]\n"
[New Thread 85400464 (LWP 5708)]
DEBUG>>~"[New Thread 95890320 (LWP 5709)]\n"
[New Thread 95890320 (LWP 5709)]
DEBUG>>~"[New Thread 119339920 (LWP 5710)]\n"
[New Thread 119339920 (LWP 5710)]
DEBUG>>~"[New Thread 145193872 (LWP 5711)]\n"
[New Thread 145193872 (LWP 5711)]
DEBUG>>~"[New Thread -1307432048 (LWP 5712)]\n"
[New Thread -1307432048 (LWP 5712)]
Interrupting debugee process: 5661
DEBUG>>00000019-break-delete 1
Breakpoint 1 deleted
DEBUG>>00000020-exec-continue
DEBUG>>00000017*stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",thread-id="1",frame={addr="0x00110402",func="__kernel_vsyscall",args=[]}
DEBUG>>(gdb)
DEBUG>>00000018^done,line="1528",file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c"
DEBUG>>00000021-stack-list-arguments 1 0 0
DEBUG>>00000022-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>00000019^done
DEBUG>>(gdb)
DEBUG>>00000020^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[Thread -1307432048 (LWP 5712) exited]\n"
[Thread -1307432048 (LWP 5712) exited]
Debug session ended
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
-break-insert "/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c:1527"
DEBUG>>00000023-break-insert "/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c:1527"
-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:158"
DEBUG>>00000024-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:158"
Debug session started successfully!
DEBUG>>00000025-exec-run
Debuggee process ID: 5740
DEBUG>>~"GNU gdb Red Hat Linux (6.6-45.fc8rh)\n"
GNU gdb Red Hat Linux (6.6-45.fc8rh)
DEBUG>>~"Copyright (C) 2006 Free Software Foundation, Inc.\n"
Copyright (C) 2006 Free Software Foundation, Inc.
DEBUG>>~"GDB is free software, covered by the GNU General Public License, and you are\n"
GDB is free software, covered by the GNU General Public License, and you are
DEBUG>>~"welcome to change it and/or distribute copies of it under certain conditions.\n"
welcome to change it and/or distribute copies of it under certain conditions.
DEBUG>>~"Type \"show copying\" to see the conditions.\n"
Type "show copying" to see the conditions.
DEBUG>>~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
There is absolutely no warranty for GDB. Type "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i386-redhat-linux-gnu\"...\n"
This GDB was configured as "i386-redhat-linux-gnu"...
DEBUG>>~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n"
Using host libthread_db library "/lib/libthread_db.so.1".
DEBUG>>(gdb)
DEBUG>>&"set unwindonsignal on\n"
set unwindonsignal on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set breakpoint pending on\n"
set breakpoint pending on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set width 0\n"
set width 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set height 0\n"
set height 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>00000023^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x080606bd",func="GlobalLoadDisc",file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",line="1527",times="0"}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: /home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c:1527
DEBUG>>(gdb)
DEBUG>>&"No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.\n"
No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.
DEBUG>>00000024^done
Breakpoint creation unsuccessful
DEBUG>>(gdb)
DEBUG>>00000025^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
DEBUG>>~"[New Thread -1208846640 (LWP 5740)]\n"
[New Thread -1208846640 (LWP 5740)]
DEBUG>>&"[Detaching after fork from child process 5744. (Try `set detach-on-fork off'.)]\n"
[Detaching after fork from child process 5744. (Try `set detach-on-fork off'.)]
DEBUG>>~"[New Thread -1216808048 (LWP 5745)]\n"
[New Thread -1216808048 (LWP 5745)]
DEBUG>>~"[New Thread -1257174128 (LWP 5746)]\n"
[New Thread -1257174128 (LWP 5746)]
DEBUG>>~"[Thread -1257174128 (LWP 5746) exited]\n"
[Thread -1257174128 (LWP 5746) exited]
DEBUG>>~"[New Thread -1257174128 (LWP 5747)]\n"
[New Thread -1257174128 (LWP 5747)]
DEBUG>>~"[Thread -1257174128 (LWP 5747) exited]\n"
[Thread -1257174128 (LWP 5747) exited]
DEBUG>>~"[New Thread -1257174128 (LWP 5748)]\n"
[New Thread -1257174128 (LWP 5748)]
DEBUG>>~"[New Thread -1268778096 (LWP 5749)]\n"
[New Thread -1268778096 (LWP 5749)]
DEBUG>>~"[Thread -1268778096 (LWP 5749) exited]\n"
[Thread -1268778096 (LWP 5749) exited]
DEBUG>>~"[Thread -1257174128 (LWP 5748) exited]\n"
[Thread -1257174128 (LWP 5748) exited]
DEBUG>>~"[New Thread -1257174128 (LWP 5750)]\n"
[New Thread -1257174128 (LWP 5750)]
DEBUG>>~"[New Thread -1268778096 (LWP 5751)]\n"
[New Thread -1268778096 (LWP 5751)]
DEBUG>>~"[Thread -1257174128 (LWP 5750) exited]\n"
[Thread -1257174128 (LWP 5750) exited]
DEBUG>>~"[Thread -1268778096 (LWP 5751) exited]\n"
[Thread -1268778096 (LWP 5751) exited]
DEBUG>>~"[New Thread -1268778096 (LWP 5753)]\n"
[New Thread -1268778096 (LWP 5753)]
DEBUG>>~"[New Thread -1257174128 (LWP 5754)]\n"
[New Thread -1257174128 (LWP 5754)]
DEBUG>>~"[Thread -1257174128 (LWP 5754) exited]\n"
[Thread -1257174128 (LWP 5754) exited]
DEBUG>>~"[Thread -1268778096 (LWP 5753) exited]\n"
[Thread -1268778096 (LWP 5753) exited]
DEBUG>>~"[Switching to Thread -1208846640 (LWP 5740)]\n"
[Switching to Thread -1208846640 (LWP 5740)]
DEBUG>>00000025*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x080606bd",func="GlobalLoadDisc",args=[],file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",line="1527"}
DEBUG>>00000026-file-list-exec-source-file
DEBUG>>(gdb)
DEBUG>>00000026^done,line="1527",file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c"
DEBUG>>00000027-stack-list-arguments 1 0 0
DEBUG>>00000028-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>00000027^done,stack-args=[frame={level="0",args=[]}]
DEBUG>>(gdb)
DEBUG>>00000028^done,locals=[{name="dvdParam",value="{wnd = {dwWndType = 1, detail = {directfb = {<No data fields>}, window_id = 71303216}}, m_lpNotifyEventCallback = 0x805ff2d <Global_NotifyEvent>, m_lpSetTmpPMLCallback = 0x805ff5f <Global_SetTmpPML>, pUserData = 0x0}"},{name="preview",value="(GtkWidget *) 0x893c4d8"},{name="value",value="{region = 145439760, ptlLevel = 145439760, dispMode = 145439760, language = \"\\020<\", languageExt = 16 '\\020', country = \"\\020<\"}"},{name="result",value="129885812"}]
DEBUG>>(gdb)
DEBUG>>00000029-var-create - * "NULL"
DEBUG>>&"mi_cmd_var_create: unable to create variable object\n"
DEBUG>>00000029^error,msg="mi_cmd_var_create: unable to create variable object"
DEBUG>>00000030-var-delete
DEBUG>>(gdb)
DEBUG>>&"mi_cmd_var_delete: Usage: [-c] EXPRESSION.\n"
DEBUG>>00000030^error,msg="mi_cmd_var_delete: Usage: [-c] EXPRESSION."
DEBUG>>00000031print NULL
DEBUG>>(gdb)
DEBUG>>&"print NULL\n"
DEBUG>>&"No symbol \"NULL\" in current context.\n"
DEBUG>>00000031^error,msg="No symbol \"NULL\" in current context."
DEBUG>>(gdb)
DEBUG>>00000032-var-create - * "DVD_CTRL"
DEBUG>>&"Attempt to use a type name as an expression.\n"
DEBUG>>&"mi_cmd_var_create: unable to create variable object\n"
DEBUG>>00000032^error,msg="mi_cmd_var_create: unable to create variable object"
DEBUG>>00000033-var-delete
DEBUG>>(gdb)
DEBUG>>&"mi_cmd_var_delete: Usage: [-c] EXPRESSION.\n"
DEBUG>>00000033^error,msg="mi_cmd_var_delete: Usage: [-c] EXPRESSION."
DEBUG>>00000034print DVD_CTRL
DEBUG>>(gdb)
DEBUG>>&"print DVD_CTRL\n"
DEBUG>>&"Attempt to use a type name as an expression\n"
DEBUG>>00000034^error,msg="Attempt to use a type name as an expression"
DEBUG>>(gdb)
DEBUG>>00000035-exec-step
DEBUG>>00000035^running
Continuing...
DEBUG>>(gdb)
DEBUG>>00000035*stopped,reason="end-stepping-range",thread-id="1",frame={addr="0x00118836",func="DVD_Init",args=[{name="lpDvdArgs",value="0xbf820114"}],file="DVDCtrl.c",fullname="/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c",line="158"}
DEBUG>>00000036-file-list-exec-source-file
DEBUG>>(gdb)
DEBUG>>00000036^done,line="158",file="DVDCtrl.c",fullname="/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c"
DEBUG>>00000037-stack-list-arguments 1 0 0
DEBUG>>00000038-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>00000037^done,stack-args=[frame={level="0",args=[{name="lpDvdArgs",value="(const DVD_PARAMS *) 0xbf820114"}]}]
DEBUG>>(gdb)
DEBUG>>00000038^done,locals=[{name="pDVDCtrl",value="(DVD_CTRL *) 0xbf820114"}]
DEBUG>>(gdb)
DEBUG>>00000039-var-create - * "DVD_CTRL"
DEBUG>>&"Attempt to use a type name as an expression.\n"
DEBUG>>&"mi_cmd_var_create: unable to create variable object\n"
DEBUG>>00000039^error,msg="mi_cmd_var_create: unable to create variable object"
DEBUG>>00000040-var-delete
DEBUG>>(gdb)
DEBUG>>&"mi_cmd_var_delete: Usage: [-c] EXPRESSION.\n"
DEBUG>>00000040^error,msg="mi_cmd_var_delete: Usage: [-c] EXPRESSION."
DEBUG>>00000041print DVD_CTRL
DEBUG>>(gdb)
DEBUG>>&"print DVD_CTRL\n"
DEBUG>>&"Attempt to use a type name as an expression\n"
DEBUG>>00000041^error,msg="Attempt to use a type name as an expression"
DEBUG>>(gdb)
-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:218"
DEBUG>>00000042-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:218"
DEBUG>>00000042^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00118aac",func="DVD_Disc_Load",file="DVDCtrl.c",fullname="/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c",line="218",times="0"}
Found the breakpoint ID!
Storing debugger breakpoint Id=2
Successfully set breakpoint 2 at: /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:218
DEBUG>>(gdb)
DEBUG>>00000043-exec-continue
DEBUG>>00000044-file-list-exec-source-file
DEBUG>>00000043^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[New Thread -1268778096 (LWP 5756)]\n"
[New Thread -1268778096 (LWP 5756)]
DEBUG>>00000043*stopped,reason="breakpoint-hit",bkptno="2",thread-id="1",frame={addr="0x00118aac",func="DVD_Disc_Load",args=[{name="hDVD",value="0xb3b5e008"},{name="szDVDPath",value="0x8d67090 \"/DVDSample/DVDDemystified\""}],file="DVDCtrl.c",fullname="/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c",line="218"}
DEBUG>>00000045-file-list-exec-source-file
DEBUG>>(gdb)
DEBUG>>00000044^done,line="218",file="DVDCtrl.c",fullname="/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c"
DEBUG>>00000046-stack-list-arguments 1 0 0
DEBUG>>00000047-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>00000045^done,line="218",file="DVDCtrl.c",fullname="/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c"
DEBUG>>00000048-stack-list-arguments 1 0 0
DEBUG>>00000049-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>00000046^done,stack-args=[frame={level="0",args=[{name="hDVD",value="(HDvd) 0xb3b5e008"},{name="szDVDPath",value="(const A_CHAR *) 0x8d67090 \"/DVDSample/DVDDemystified\""}]}]
DEBUG>>(gdb)
DEBUG>>00000047^done,locals=[{name="pDVDCtrl",value="(DVD_CTRL *) 0xb3b5e008"},{name="lptData",value="(A_UINT8 *) 0x0"},{name="btRegion",value="0 '\\0'"},{name="regInfo",value="{btRegionMask = 130 '\\202', btUserChangeAvaiTimes = 191 '\\277'}"},{name="vfsret",value="148271248"}]
DEBUG>>(gdb)
DEBUG>>00000048^done,stack-args=[frame={level="0",args=[{name="hDVD",value="(HDvd) 0xb3b5e008"},{name="szDVDPath",value="(const A_CHAR *) 0x8d67090 \"/DVDSample/DVDDemystified\""}]}]
DEBUG>>(gdb)
DEBUG>>00000049^done,locals=[{name="pDVDCtrl",value="(DVD_CTRL *) 0xb3b5e008"},{name="lptData",value="(A_UINT8 *) 0x0"},{name="btRegion",value="0 '\\0'"},{name="regInfo",value="{btRegionMask = 130 '\\202', btUserChangeAvaiTimes = 191 '\\277'}"},{name="vfsret",value="148271248"}]
DEBUG>>(gdb)
DEBUG>>00000050-var-create - * "pDVDCtrl"
DEBUG>>00000050^done,name="var4",numchild="16",type="DVD_CTRL *"
DEBUG>>00000051-var-delete var4
DEBUG>>(gdb)
DEBUG>>00000051^done,ndeleted="1"
DEBUG>>00000052print pDVDCtrl
DEBUG>>(gdb)
DEBUG>>&"print pDVDCtrl\n"
DEBUG>>~"$1 = (DVD_CTRL *) 0xb3b5e008\n"
DEBUG>>00000052^done
DEBUG>>(gdb)
DEBUG>>00000053-exec-next
DEBUG>>00000053^running
Continuing...
DEBUG>>(gdb)
DEBUG>>00000053*stopped,reason="end-stepping-range",thread-id="1",frame={addr="0x00118ac1",func="DVD_Disc_Load",args=[{name="hDVD",value="0xb3b5e008"},{name="szDVDPath",value="0x8d67090 \"/DVDSample/DVDDemystified\""}],file="DVDCtrl.c",fullname="/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c",line="221"}
DEBUG>>00000054-file-list-exec-source-file
DEBUG>>(gdb)
DEBUG>>00000054^done,line="221",file="DVDCtrl.c",fullname="/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c"
DEBUG>>00000055-stack-list-arguments 1 0 0
DEBUG>>00000056-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>00000055^done,stack-args=[frame={level="0",args=[{name="hDVD",value="(HDvd) 0xb3b5e008"},{name="szDVDPath",value="(const A_CHAR *) 0x8d67090 \"/DVDSample/DVDDemystified\""}]}]
DEBUG>>(gdb)
DEBUG>>00000056^done,locals=[{name="pDVDCtrl",value="(DVD_CTRL *) 0xb3b5e008"},{name="lptData",value="(A_UINT8 *) 0x0"},{name="btRegion",value="0 '\\0'"},{name="regInfo",value="{btRegionMask = 130 '\\202', btUserChangeAvaiTimes = 191 '\\277'}"},{name="vfsret",value="148271248"}]
DEBUG>>(gdb)
DEBUG>>00000057-var-create - * "bDiscLoaded"
DEBUG>>&"mi_cmd_var_create: unable to create variable object\n"
DEBUG>>00000057^error,msg="mi_cmd_var_create: unable to create variable object"
DEBUG>>00000058-var-delete
DEBUG>>(gdb)
DEBUG>>&"mi_cmd_var_delete: Usage: [-c] EXPRESSION.\n"
DEBUG>>00000058^error,msg="mi_cmd_var_delete: Usage: [-c] EXPRESSION."
DEBUG>>00000059print bDiscLoaded
DEBUG>>(gdb)
DEBUG>>&"print bDiscLoaded\n"
DEBUG>>&"No symbol \"bDiscLoaded\" in current context.\n"
DEBUG>>00000059^error,msg="No symbol \"bDiscLoaded\" in current context."
DEBUG>>(gdb)
DEBUG>>00000060-break-delete 2
Breakpoint 2 deleted
DEBUG>>00000060^done
DEBUG>>(gdb)
Debug session ended
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
-break-insert "/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c:1527"
DEBUG>>00000061-break-insert "/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c:1527"
-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:218"
DEBUG>>00000062-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:218"
Debug session started successfully!
DEBUG>>00000063-exec-run
Debuggee process ID: 5784
DEBUG>>~"GNU gdb Red Hat Linux (6.6-45.fc8rh)\n"
GNU gdb Red Hat Linux (6.6-45.fc8rh)
DEBUG>>~"Copyright (C) 2006 Free Software Foundation, Inc.\n"
Copyright (C) 2006 Free Software Foundation, Inc.
DEBUG>>~"GDB is free software, covered by the GNU General Public License, and you are\n"
GDB is free software, covered by the GNU General Public License, and you are
DEBUG>>~"welcome to change it and/or distribute copies of it under certain conditions.\n"
welcome to change it and/or distribute copies of it under certain conditions.
DEBUG>>~"Type \"show copying\" to see the conditions.\n"
Type "show copying" to see the conditions.
DEBUG>>~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
There is absolutely no warranty for GDB. Type "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i386-redhat-linux-gnu\"...\n"
This GDB was configured as "i386-redhat-linux-gnu"...
DEBUG>>~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n"
Using host libthread_db library "/lib/libthread_db.so.1".
DEBUG>>(gdb)
DEBUG>>&"set unwindonsignal on\n"
set unwindonsignal on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set breakpoint pending on\n"
set breakpoint pending on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set width 0\n"
set width 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set height 0\n"
set height 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>00000061^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x080606bd",func="GlobalLoadDisc",file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",line="1527",times="0"}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: /home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c:1527
DEBUG>>(gdb)
DEBUG>>&"No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.\n"
No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.
DEBUG>>00000062^done
Breakpoint creation unsuccessful
DEBUG>>(gdb)
DEBUG>>00000063^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
DEBUG>>~"[New Thread -1208580400 (LWP 5784)]\n"
[New Thread -1208580400 (LWP 5784)]
DEBUG>>&"[Detaching after fork from child process 5788. (Try `set detach-on-fork off'.)]\n"
[Detaching after fork from child process 5788. (Try `set detach-on-fork off'.)]
DEBUG>>~"[New Thread -1216541808 (LWP 5789)]\n"
[New Thread -1216541808 (LWP 5789)]
DEBUG>>~"[New Thread -1256907888 (LWP 5790)]\n"
[New Thread -1256907888 (LWP 5790)]
DEBUG>>~"[New Thread -1268778096 (LWP 5791)]\n"
[New Thread -1268778096 (LWP 5791)]
DEBUG>>~"[Thread -1256907888 (LWP 5790) exited]\n"
[Thread -1256907888 (LWP 5790) exited]
DEBUG>>~"[Thread -1268778096 (LWP 5791) exited]\n"
[Thread -1268778096 (LWP 5791) exited]
DEBUG>>~"[New Thread -1268778096 (LWP 5792)]\n"
[New Thread -1268778096 (LWP 5792)]
DEBUG>>~"[New Thread -1256907888 (LWP 5793)]\n"
[New Thread -1256907888 (LWP 5793)]
DEBUG>>~"[New Thread -1279267952 (LWP 5794)]\n"
[New Thread -1279267952 (LWP 5794)]
DEBUG>>~"[New Thread -1289757808 (LWP 5795)]\n"
[New Thread -1289757808 (LWP 5795)]
DEBUG>>~"[New Thread -1300247664 (LWP 5796)]\n"
[New Thread -1300247664 (LWP 5796)]
DEBUG>>~"[Thread -1300247664 (LWP 5796) exited]\n"
[Thread -1300247664 (LWP 5796) exited]
DEBUG>>~"[Thread -1279267952 (LWP 5794) exited]\n"
[Thread -1279267952 (LWP 5794) exited]
DEBUG>>~"[Thread -1289757808 (LWP 5795) exited]\n"
[Thread -1289757808 (LWP 5795) exited]
DEBUG>>~"[Thread -1256907888 (LWP 5793) exited]\n"
[Thread -1256907888 (LWP 5793) exited]
DEBUG>>~"[Thread -1268778096 (LWP 5792) exited]\n"
[Thread -1268778096 (LWP 5792) exited]
DEBUG>>~"[New Thread -1268778096 (LWP 5797)]\n"
[New Thread -1268778096 (LWP 5797)]
DEBUG>>~"[New Thread -1289757808 (LWP 5798)]\n"
[New Thread -1289757808 (LWP 5798)]
DEBUG>>~"[Thread -1289757808 (LWP 5798) exited]\n"
[Thread -1289757808 (LWP 5798) exited]
DEBUG>>~"[Thread -1268778096 (LWP 5797) exited]\n"
[Thread -1268778096 (LWP 5797) exited]
DEBUG>>~"[New Thread -1268778096 (LWP 5799)]\n"
[New Thread -1268778096 (LWP 5799)]
DEBUG>>~"[Thread -1268778096 (LWP 5799) exited]\n"
[Thread -1268778096 (LWP 5799) exited]
DEBUG>>~"[New Thread -1268778096 (LWP 5800)]\n"
[New Thread -1268778096 (LWP 5800)]
DEBUG>>~"[New Thread -1289757808 (LWP 5801)]\n"
[New Thread -1289757808 (LWP 5801)]
DEBUG>>~"[Thread -1289757808 (LWP 5801) exited]\n"
[Thread -1289757808 (LWP 5801) exited]
DEBUG>>~"[Thread -1268778096 (LWP 5800) exited]\n"
[Thread -1268778096 (LWP 5800) exited]
DEBUG>>~"[Switching to Thread -1208580400 (LWP 5784)]\n"
[Switching to Thread -1208580400 (LWP 5784)]
DEBUG>>00000063*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x080606bd",func="GlobalLoadDisc",args=[],file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",line="1527"}
DEBUG>>00000064-file-list-exec-source-file
DEBUG>>(gdb)
DEBUG>>00000064^done,line="1527",file="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c",fullname="/home/everchen/DVDPlayer/sourcecode/aom-player/src/aomglobal.c"
DEBUG>>00000065-stack-list-arguments 1 0 0
DEBUG>>00000066-stack-list-locals --all-values
DEBUG>>(gdb)
DEBUG>>00000065^done,stack-args=[frame={level="0",args=[]}]
DEBUG>>(gdb)
DEBUG>>00000066^done,locals=[{name="dvdParam",value="{wnd = {dwWndType = 1, detail = {directfb = {<No data fields>}, window_id = 71303216}}, m_lpNotifyEventCallback = 0x805ff2d <Global_NotifyEvent>, m_lpSetTmpPMLCallback = 0x805ff5f <Global_SetTmpPML>, pUserData = 0x0}"},{name="preview",value="(GtkWidget *) 0x95324d8"},{name="value",value="{region = 157983760, ptlLevel = 157983760, dispMode = 157983760, language = \"\\020\\244\", languageExt = 16 '\\020', country = \"\\020\\244\"}"},{name="result",value="129885812"}]
DEBUG>>(gdb)
DEBUG>>00000067-exec-continue
DEBUG>>00000068-file-list-exec-source-file
DEBUG>>00000067^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[New Thread -1268778096 (LWP 5804)]\n"
[New Thread -1268778096 (LWP 5804)]
DEBUG>>~"[New Thread -1289757808 (LWP 5805)]\n"
[New Thread -1289757808 (LWP 5805)]
DEBUG>>~"[New Thread -1256907888 (LWP 5806)]\n"
[New Thread -1256907888 (LWP 5806)]
DEBUG>>~"[New Thread -1300247664 (LWP 5807)]\n"
[New Thread -1300247664 (LWP 5807)]
DEBUG>>~"[New Thread -1310737520 (LWP 5808)]\n"
[New Thread -1310737520 (LWP 5808)]
DEBUG>>~"[New Thread -1321227376 (LWP 5809)]\n"
[New Thread -1321227376 (LWP 5809)]
DEBUG>>~"[New Thread 103058320 (LWP 5810)]\n"
[New Thread 103058320 (LWP 5810)]
DEBUG>>~"[New Thread 28904336 (LWP 5811)]\n"
[New Thread 28904336 (LWP 5811)]
DEBUG>>~"[New Thread 49535888 (LWP 5812)]\n"
[New Thread 49535888 (LWP 5812)]
DEBUG>>~"[New Thread 60054416 (LWP 5813)]\n"
[New Thread 60054416 (LWP 5813)]
DEBUG>>~"[New Thread 90921872 (LWP 5814)]\n"
[New Thread 90921872 (LWP 5814)]
DEBUG>>~"[Thread 90921872 (LWP 5814) exited]\n"
[Thread 90921872 (LWP 5814) exited]
DEBUG>>~"[Thread 60054416 (LWP 5813) exited]\n"
[Thread 60054416 (LWP 5813) exited]
DEBUG>>~"[Thread 49535888 (LWP 5812) exited]\n"
[Thread 49535888 (LWP 5812) exited]
DEBUG>>~"[Thread 103058320 (LWP 5810) exited]\n"
[Thread 103058320 (LWP 5810) exited]
DEBUG>>~"[Thread -1321227376 (LWP 5809) exited]\n"
[Thread -1321227376 (LWP 5809) exited]
DEBUG>>~"[New Thread 103058320 (LWP 5815)]\n"
[New Thread 103058320 (LWP 5815)]
DEBUG>>~"[New Thread -1321227376 (LWP 5816)]\n"
[New Thread -1321227376 (LWP 5816)]
DEBUG>>~"[New Thread 49535888 (LWP 5817)]\n"
[New Thread 49535888 (LWP 5817)]
DEBUG>>~"[New Thread 60054416 (LWP 5818)]\n"
[New Thread 60054416 (LWP 5818)]
DEBUG>>~"[New Thread 90921872 (LWP 5819)]\n"
[New Thread 90921872 (LWP 5819)]
DEBUG>>~"[Thread 90921872 (LWP 5819) exited]\n"
[Thread 90921872 (LWP 5819) exited]
Debug session ended
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:218"
DEBUG>>00000069-break-insert "/home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c:218"
Debug session started successfully!
DEBUG>>00000070-exec-run
Debuggee process ID: 6118
DEBUG>>~"GNU gdb Red Hat Linux (6.6-45.fc8rh)\n"
GNU gdb Red Hat Linux (6.6-45.fc8rh)
DEBUG>>~"Copyright (C) 2006 Free Software Foundation, Inc.\n"
Copyright (C) 2006 Free Software Foundation, Inc.
DEBUG>>~"GDB is free software, covered by the GNU General Public License, and you are\n"
GDB is free software, covered by the GNU General Public License, and you are
DEBUG>>~"welcome to change it and/or distribute copies of it under certain conditions.\n"
welcome to change it and/or distribute copies of it under certain conditions.
DEBUG>>~"Type \"show copying\" to see the conditions.\n"
Type "show copying" to see the conditions.
DEBUG>>~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
There is absolutely no warranty for GDB. Type "show warranty" for details.
DEBUG>>~"This GDB was configured as \"i386-redhat-linux-gnu\"...\n"
This GDB was configured as "i386-redhat-linux-gnu"...
DEBUG>>~"Using host libthread_db library \"/lib/libthread_db.so.1\".\n"
Using host libthread_db library "/lib/libthread_db.so.1".
DEBUG>>(gdb)
DEBUG>>&"set unwindonsignal on\n"
set unwindonsignal on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set breakpoint pending on\n"
set breakpoint pending on
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set width 0\n"
set width 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"set height 0\n"
set height 0
DEBUG>>^done
DEBUG>>(gdb)
DEBUG>>&"No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.\n"
No source file named /home/everchen/DVDPlayer/sourcecode/DVDCtrl/DVDCtrl.c.
DEBUG>>00000069^done
Breakpoint creation unsuccessful
DEBUG>>(gdb)
DEBUG>>00000070^running
Continuing...
DEBUG>>(gdb)
DEBUG>>~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
DEBUG>>~"[New Thread -1209219376 (LWP 6118)]\n"
[New Thread -1209219376 (LWP 6118)]
DEBUG>>&"[Detaching after fork from child process 6122. (Try `set detach-on-fork off'.)]\n"
[Detaching after fork from child process 6122. (Try `set detach-on-fork off'.)]
DEBUG>>~"[New Thread -1217180784 (LWP 6123)]\n"
[New Thread -1217180784 (LWP 6123)]
DEBUG>>~"[New Thread -1257546864 (LWP 6124)]\n"
[New Thread -1257546864 (LWP 6124)]
DEBUG>>~"[Thread -1257546864 (LWP 6124) exited]\n"
[Thread -1257546864 (LWP 6124) exited]
DEBUG>>~"[New Thread -1257546864 (LWP 6125)]\n"
[New Thread -1257546864 (LWP 6125)]
DEBUG>>~"[New Thread -1269826672 (LWP 6126)]\n"
[New Thread -1269826672 (LWP 6126)]
DEBUG>>~"[Thread -1257546864 (LWP 6125) exited]\n"
[Thread -1257546864 (LWP 6125) exited]
DEBUG>>~"[Thread -1269826672 (LWP 6126) exited]\n"
[Thread -1269826672 (LWP 6126) exited]
DEBUG>>~"[New Thread -1269826672 (LWP 6127)]\n"
[New Thread -1269826672 (LWP 6127)]
DEBUG>>~"[New Thread -1257546864 (LWP 6128)]\n"
[New Thread -1257546864 (LWP 6128)]
DEBUG>>~"[Thread -1257546864 (LWP 6128) exited]\n"
[Thread -1257546864 (LWP 6128) exited]
DEBUG>>~"[Thread -1269826672 (LWP 6127) exited]\n"
[Thread -1269826672 (LWP 6127) exited]
DEBUG>>~"[New Thread -1269826672 (LWP 6129)]\n"
[New Thread -1269826672 (LWP 6129)]
DEBUG>>~"[Thread -1269826672 (LWP 6129) exited]\n"
[Thread -1269826672 (LWP 6129) exited]
DEBUG>>~"[New Thread -1269826672 (LWP 6130)]\n"
[New Thread -1269826672 (LWP 6130)]
DEBUG>>~"[New Thread -1257546864 (LWP 6131)]\n"
[New Thread -1257546864 (LWP 6131)]
DEBUG>>~"[New Thread -1280316528 (LWP 6132)]\n"
[New Thread -1280316528 (LWP 6132)]
DEBUG>>~"[Thread -1280316528 (LWP 6132) exited]\n"
[Thread -1280316528 (LWP 6132) exited]
DEBUG>>~"[Thread -1257546864 (LWP 6131) exited]\n"
[Thread -1257546864 (LWP 6131) exited]
DEBUG>>~"[Thread -1269826672 (LWP 6130) exited]\n"
[Thread -1269826672 (LWP 6130) exited]
DEBUG>>~"[New Thread -1269826672 (LWP 6133)]\n"
[New Thread -1269826672 (LWP 6133)]
DEBUG>>~"[New Thread -1257546864 (LWP 6134)]\n"
[New Thread -1257546864 (LWP 6134)]
DEBUG>>~"[New Thread -1280316528 (LWP 6135)]\n"
[New Thread -1280316528 (LWP 6135)]
DEBUG>>~"[New Thread -1293538416 (LWP 6136)]\n"
[New Thread -1293538416 (LWP 6136)]
DEBUG>>~"[New Thread -1304028272 (LWP 6137)]\n"
[New Thread -1304028272 (LWP 6137)]
DEBUG>>~"[New Thread -1314518128 (LWP 6138)]\n"
[New Thread -1314518128 (LWP 6138)]
DEBUG>>~"[New Thread 28904336 (LWP 6139)]\n"
[New Thread 28904336 (LWP 6139)]
DEBUG>>~"[New Thread 49535888 (LWP 6140)]\n"
[New Thread 49535888 (LWP 6140)]
DEBUG>>~"[New Thread 120941456 (LWP 6141)]\n"
[New Thread 120941456 (LWP 6141)]
DEBUG>>~"[New Thread 88107920 (LWP 6142)]\n"
[New Thread 88107920 (LWP 6142)]
DEBUG>>~"[New Thread 98597776 (LWP 6143)]\n"
[New Thread 98597776 (LWP 6143)]
DEBUG>>~"[Thread 98597776 (LWP 6143) exited]\n"
[Thread 98597776 (LWP 6143) exited]
DEBUG>>~"[Thread 88107920 (LWP 6142) exited]\n"
[Thread 88107920 (LWP 6142) exited]
DEBUG>>~"[Thread 120941456 (LWP 6141) exited]\n"
[Thread 120941456 (LWP 6141) exited]
DEBUG>>~"[Thread 28904336 (LWP 6139) exited]\n"
[Thread 28904336 (LWP 6139) exited]
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to set breakpoint

Post by eranif »

What you are seeing now, is actually is bug in gdb, I will explain:

In version 2435, codelite used the 'break <file>:<line>' command to set breakpoints, while the latest builds (for several builds now actually) we are using the more modern interface (for software at least): MI (Machine Interface) which uses different set of command, e.g. to set a breakpoint, we use a command: -break-insert

And this is where it goes wrong.

- If the line you are trying to place a breakpoint is inside a shared object - try inserting the breakpoint *after* the shared object is loaded (i.e. run the program without any breakpoints, once it is loaded, open the file you want to set breakpoint in it, and set it)

- Upgrade to a newer version of gdb where the bug might be already fixed (6.6 is pretty old version)

Eran
Make sure you have read the HOW TO POST thread
cy007
CodeLite Enthusiast
Posts: 13
Joined: Mon Apr 28, 2008 9:25 am
Contact:

Re: How to set breakpoint

Post by cy007 »

eranif wrote:What you are seeing now, is actually is bug in gdb, I will explain:

In version 2435, codelite used the 'break <file>:<line>' command to set breakpoints, while the latest builds (for several builds now actually) we are using the more modern interface (for software at least): MI (Machine Interface) which uses different set of command, e.g. to set a breakpoint, we use a command: -break-insert

And this is where it goes wrong.

- If the line you are trying to place a breakpoint is inside a shared object - try inserting the breakpoint *after* the shared object is loaded (i.e. run the program without any breakpoints, once it is loaded, open the file you want to set breakpoint in it, and set it)

- Upgrade to a newer version of gdb where the bug might be already fixed (6.6 is pretty old version)

Eran
Thanks a lot. You're very professional. :D I will update gdb to version 6.8 to try again.
Post Reply