CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

WM_COMPILE=Debug, gdb reverse-step breaks

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 19, 2011, 09:16
Default WM_COMPILE=Debug, gdb reverse-step breaks
  #1
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 251
Blog Entries: 5
Rep Power: 10
tomislav_maric is on a distinguished road
Has anyone had success with the reverse-* commands from the gdb 7?

This is what happens to me:

Code:
(gdb) reverse-step
Target multi-thread does not support this command.
(gdb)
I know that I need to turn off the following (gdb message):

Code:
[Thread debugging using libthread_db enabled]
If someone can save me some digging time for the linker option for libthread_db, I would really appreciate it.
tomislav_maric is offline   Reply With Quote

Old   July 21, 2011, 10:30
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 534
Blog Entries: 4
Rep Power: 12
elvis is on a distinguished road
Hi,
i maybe completely wrong, but I read at http://openfoamwiki.net/index.php/Ho...M_with_Eclipse
=>GNU Debugger (gdb) version: 6.8
Please be careful choosing the right gdb version! In gdb 7.x a bug seems to occur while debugging and monitoring the variables.

So this might be case for you as well.

Can you try the older gdb 6 version?
elvis is offline   Reply With Quote

Old   July 21, 2011, 10:43
Default
  #3
Senior Member
 
Tomislav Maric
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 251
Blog Entries: 5
Rep Power: 10
tomislav_maric is on a distinguished road
Quote:
Originally Posted by elvis View Post
Hi,
i maybe completely wrong, but I read at http://openfoamwiki.net/index.php/Ho...M_with_Eclipse
=>GNU Debugger (gdb) version: 6.8
Please be careful choosing the right gdb version! In gdb 7.x a bug seems to occur while debugging and monitoring the variables.

So this might be case for you as well.

Can you try the older gdb 6 version?
Hi elvis! Thanks for the answer,

however : I'm not using Eclipse, I'm running on Vim + gdb in the console. I'm just keeping things simple, because I'm stupid (KISS).

There's no bug, it's just that the reverse-* commands in gdb do not work well with multithreading. I need to see how to exclude libthread from being linked during compilation. I have tried setting the path to libthread in gdb t to the wrong value, but then it got reverted to the system lib. I'll probably dig into this eventually, it would just be nice if I don't have to do so, if someone has already found a way to use reverse-* without libthread.

Older version: only gdb 7.* support reverse-* commands.
tomislav_maric is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time step size and max iterations per time step pUl| FLUENT 24 January 16, 2014 07:35
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 12 September 17, 2007 18:48
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 13:34.