Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#4023 closed defect (fixed)

Algorithmic debugger does not work under Windows

Reported by: Rüdiger Franke Owned by: somebody
Priority: blocker Milestone:
Component: *unknown* Version: v1.10.0-dev-nightly
Keywords: Cc:

Description (last modified by Rüdiger Franke)

Take any MyModel and invoke the algorithmic debugger from OMEdit. The Output Browser says:

Process failed to start: No such file or directory GDB arguments are "-q -nw -i mi --args C:/Users/user/AppData/Local/Temp/OpenModelica/OMEdit/MyModel.exe"

Change History (8)

comment:1 by Rüdiger Franke, 8 years ago

Description: modified (diff)
Priority: highblocker

comment:2 by Christoph <buchner@…>, 8 years ago

I'm seeing this, too (in fact, a post-it telling me to report it sits on my desk somewhere :P).

comment:3 by Adeel Asghar, 8 years ago

The gdb path is not hard coded. OMEdit reads it from settings file. You can set a new path in Tools->Options->Debugger->Algorithmic Debugger->GDB Path.

I guess you have some old path with just mingw and then we recently changed from mingw to either mingw32 or mingw64. So you need to update your path.

comment:4 by Rüdiger Franke, 8 years ago

Good point. Under Windows my GDB path points to:

C:/OpenModelica1.9.3Nightly//MinGW/bin/gdb.exe

This path dates more than a year and about 10 installations of newer versions of OpenModelica back. I never touched it.

Shouldn't this path be updated with each new installation of OpenModelica?

comment:5 by Adeel Asghar, 8 years ago

No. OMEdit settings file doesn't change with uninstall and install of OM.
The whole idea of having gdb path in settings is to allow users to use any GDB.

We could however update it in a way that we provide two radio buttons,

  • Use default GDB.
  • Provide GDB path.

In this way the default GDB path is selected by default and we can update it when OM version is updated.
If user explicitly set a GDB path then user is responsible to updating the path between different versions.

comment:6 by Rüdiger Franke, 8 years ago

You might also say that the default path is used if the setting is left empty. An empty setting can be conserved between different versions of OpenModelica.

comment:7 by Adeel Asghar, 8 years ago

Resolution: fixed
Status: newclosed

I did as you proposed in comment:6. See ff69236/OMEdit.

Last edited 8 years ago by Adeel Asghar (previous) (diff)

comment:8 by Martin Sjölund, 7 years ago

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.