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

WM_COMPILE=Debug, gdb reverse-step breaks

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 284
Blog Entries: 5
Rep Power: 21
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: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
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: 284
Blog Entries: 5
Rep Power: 21
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


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 Off
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 31 October 23, 2020 23:50
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 14 December 17, 2019 00:12
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
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 03:52.