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

issue with gdbOF with eclipse

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 17, 2018, 18:45
Smile issue with gdbOF with eclipse
  #1
New Member
 
Chen Shen
Join Date: Sep 2018
Posts: 14
Rep Power: 8
Giantsda is on a distinguished road
Hello:
gdbOF is a tool that is attached to GNU gdb.
I can run gdbOF commands in gdb now like pfvMatrixFul which writes matrix to a file.

The problem is:
When I try to debug the program in eclipse, I cannot run any gdbOF command in gdb window.
It says:Undefined command: "pfvMatrixFul". Try "help".

Any clue?

Additional info:

1. If you want to debug Openfoam with eclipse and you are using Ubuntu, you need to download GNU gdb, and over writtern the Ubuntu version gdb (by modify PATH in ~/.bashrc). Or when you try to view the variable values, eclipse will hang, at least in Ubuntu 16.

2. Now, I am using gdb-tui if I want to use gdbOF feature. It works fine.
simply do:
gdb-tui or
gdb, then Ctrl+X+A to enable the TUI mode.

3. If you do not like TUI mode, you can do it in emacs. It works fine too.
DO:
1. emacs &
2. in emacs, do: Alt+x, and type gud-gdb
3. run it with: run -case (path/of/the/case/file)
And you can use all gdbOF features.

4. I just do not know why it does not work with eclipse. I am a lazy guy who wants to just click mouse so I am trying to make it work in eclispe.


Best,

Chen
Giantsda is offline   Reply With Quote

Reply

Tags
eclipse, emacs, gdbof


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
[Tutorial] Eclipse for OpenFOAM: "fixing" the indexer floquation OpenFOAM Programming & Development 9 April 13, 2017 11:29
OpenFoam 2.X and Eclipse Kepler x86_64leon OpenFOAM Programming & Development 14 September 6, 2014 20:28
Strange issue while launching ANSYS workbench in CentOS 6.4 Philip_C ANSYS 11 August 29, 2013 07:44
CyclicAMI Issue In OpenFOAM 2.2.0 prasant OpenFOAM Running, Solving & CFD 17 March 16, 2013 03:00
Debugging in Eclipse carowjp OpenFOAM Programming & Development 1 October 1, 2011 17:06


All times are GMT -4. The time now is 12:52.