Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Source files are moved to <temp-aux> during debugging under BSD
Source files are moved to <temp-aux> during debugging under BSD [message #36089] Thu, 26 April 2012 15:42 Go to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 916
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I'm developing app under FreeBSD. While it is executed under debugger and stopped on breakpoint, this source file is considered part of <temp-aux>, not a part of current package.

This bug works for all versions of g++, and it appeared very long ago (at least 2-3 years).

May be Linux developers have the same issue.

Actually I'd like to help eliminating this bug but TheIDE has much code and I would really appreciate any clues whare to start looking at.

[Updated on: Thu, 26 April 2012 15:44]

Report message to a moderator

Re: Source files are moved to <temp-aux> during debugging under BSD [message #36101 is a reply to message #36089] Fri, 27 April 2012 11:07 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 916
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Attached screenshot to make situation more clear.

index.php?t=getfile&id=3738&private=0
Re: Source files are moved to <temp-aux> during debugging under BSD [message #36160 is a reply to message #36101] Mon, 07 May 2012 22:29 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 916
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Anyone, please?
I'd greatly appreciate any clues where in TheIDE sources to start finding this bug.
Thanks in forward.
Re: Source files are moved to <temp-aux> during debugging under BSD [message #36425 is a reply to message #36160] Fri, 25 May 2012 23:23 Go to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 288
Registered: November 2008
Experienced Member
Hello, Pavel.
Mindtraveller wrote on Thu, 26 April 2012 15:42

I'm developing app under FreeBSD. While it is executed under debugger and stopped on breakpoint, this source file is considered part of <temp-aux>, not a part of current package.

Mindtraveller wrote on Mon, 07 May 2012 22:29

I'd greatly appreciate any clues where in TheIDE sources to start finding this bug.

uppsrc/ide/ide.key(68) ->
Toggle Spoiler

uppsrc/ide/idebar.cpp(483) ->
Toggle Spoiler

uppsrc/ide/Debug.cpp(162) ->
Toggle Spoiler

uppsrc/ide/Debug.cpp(188) ->
uppsrc/ide/Debuggers/Gdb.cpp(598) ->
Toggle Spoiler

uppsrc/ide/Debuggers/Gdb.cpp(601) ->
uppsrc/ide/Debuggers/Gdb.cpp(554) ->
uppsrc/ide/Debuggers/Debuggers.h(126) ->
uppsrc/ide/Debuggers/Debuggers.h(140) ->
uppsrc/ide/Debuggers/Gdb.cpp(321) ->
Toggle Spoiler

uppsrc/ide/Debuggers/Gdb.cpp(324) ->
uppsrc/ide/Debuggers/Gdb.cpp(262) ->
Toggle Spoiler

uppsrc/ide/Debuggers/Dbg.cpp(90)
uppsrc/ide/Debuggers/Gdb.cpp(228)
Toggle Spoiler

The parsed path returns to fn variable above, which is file variable inside Gdb::Cmdp method.
uppsrc/ide/Core/Core.cpp(230) ->
uppsrc/ide/Core/Core.cpp(233) ->
uppsrc/ide/idewin.cpp(201) ->
Toggle Spoiler

uppsrc/ide/idewin.cpp(206) ->
uppsrc/ide/idefile.cpp(554) ->
Toggle Spoiler

uppsrc/ide/idefile.cpp(583) ->
uppsrc/ide/UppWspc.cpp(792).
Toggle Spoiler

I could confirm this situation on FreeBSD and Linux operating systems, in case of package nests of assembly, configured with symlink paths. In your case "/home" is symlink to "/usr/home", therefore, when gdb returns "/usr/home/.." file path, TheIDE couldn't find it for "/home/.." file workspace paths and opens them inside <temp-aux> instead.
The quick solution here is to use absolute paths for package nests of assembly.
Previous Topic: How do I set compiler/linker options for a specific project
Next Topic: Problem with linking against HexView on Linux
Goto Forum:
  


Current Time: Wed Nov 20 05:27:34 CET 2019

Total time taken to generate the page: 0.01978 seconds