Forum Replies Created
-
AuthorPosts
-
b.timofteParticipant
File attached
b.timofteParticipantI use MsBuild …Linker is called everytime i want to debug although no change in code !!
b.timofteParticipantThe repository is at : https://github.com/ISuckGood/BCP
b.timofteParticipantThere is no need to display licensed user name when gdb.exe debugger starts … WTF ?!
b.timofteParticipantOk Worked .
Another issue is when i attach to Matlab.exe it takes 20 minutes to load all dlls. Is this a bug in gdb.exe?
This is how part of the log looks …. It goes on for 20 minutes on a core i7 2.8 Ghz … Wtf 🙁
ibrary-loaded,id=”C:\\MATLAB\\bin\\win64\\sl_units.dll”,target-name=”C:\\MATLAB\\bin\\win64\\sl_units.dll”,host-name=”C:\\MATLAB\\bin\\win64\\sl_units.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\cgir_vm.dll”,target-name=”C:\\MATLAB\\bin\\win64\\cgir_vm.dll”,host-name=”C:\\MATLAB\\bin\\win64\\cgir_vm.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\fitools.dll”,target-name=”C:\\MATLAB\\bin\\win64\\fitools.dll”,host-name=”C:\\MATLAB\\bin\\win64\\fitools.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslexec_simbridge.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_simbridge.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_simbridge.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\m3i.dll”,target-name=”C:\\MATLAB\\bin\\win64\\m3i.dll”,host-name=”C:\\MATLAB\\bin\\win64\\m3i.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslexec_solver.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_solver.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_solver.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\sltp_mm.dll”,target-name=”C:\\MATLAB\\bin\\win64\\sltp_mm.dll”,host-name=”C:\\MATLAB\\bin\\win64\\sltp_mm.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\libemlrt.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libemlrt.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libemlrt.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\shared_code_manager.dll”,target-name=”C:\\MATLAB\\bin\\win64\\shared_code_manager.dll”,host-name=”C:\\MATLAB\\bin\\win64\\shared_code_manager.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\cgir_support.dll”,target-name=”C:\\MATLAB\\bin\\win64\\cgir_support.dll”,host-name=”C:\\MATLAB\\bin\\win64\\cgir_support.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\performance_tracer.dll”,target-name=”C:\\MATLAB\\bin\\win64\\performance_tracer.dll”,host-name=”C:\\MATLAB\\bin\\win64\\performance_tracer.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslio_core.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslio_core.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslio_core.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\gmp.dll”,target-name=”C:\\MATLAB\\bin\\win64\\gmp.dll”,host-name=”C:\\MATLAB\\bin\\win64\\gmp.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwsigstream.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwsigstream.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwsigstream.dll”,symbols-loaded=”0″,thread-group=”i1″=library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineWidgetsMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineWidgetsMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineWidgetsMW.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5QuickMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5QuickMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5QuickMW.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5WebChannelMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5WebChannelMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5WebChannelMW.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-unloaded,id=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5QmlMW.dll”,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineCoreMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineCoreMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5WebEngineCoreMW.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-unloaded,id=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,target-name=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,host-name=”C:\\MATLAB\\bin\\win64\\Qt5OpenGLMW.dll”,thread-group=”i1″
=library-loaded,id=”C:\\WINDOWS\\SYSTEM32\\secur32.dll”,target-name=”C:\\WINDOWS\\SYSTEM32\\secur32.dll”,host-name=”C:\\WINDOWS\\SYSTEM32\\secur32.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\WINDOWS\\SYSTEM32\\usp10.dll”,target-name=”C:\\WINDOWS\\SYSTEM32\\usp10.dll”,host-name=”C:\\WINDOWS\\SYSTEM32\\usp10.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslexec_parallel.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_parallel.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_parallel.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\mpfr.dll”,target-name=”C:\\MATLAB\\bin\\win64\\mpfr.dll”,host-name=”C:\\MATLAB\\bin\\win64\\mpfr.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwslexec_runtime.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_runtime.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwslexec_runtime.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\sl_unit_repository.dll”,target-name=”C:\\MATLAB\\bin\\win64\\sl_unit_repository.dll”,host-name=”C:\\MATLAB\\bin\\win64\\sl_unit_repository.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwdesuite_kernel_util.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwdesuite_kernel_util.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwdesuite_kernel_util.dll”,symbols-loaded=”0″,thread-group=”i1″
=library-loaded,id=”C:\\MATLAB\\bin\\win64\\libmwmfl_fft.dll”,target-name=”C:\\MATLAB\\bin\\win64\\libmwmfl_fft.dll”,host-name=”C:\\MATLAB\\bin\\win64\\libmwmfl_fft.dll”,symbols-loaded=”0″,thread-group=”i1″…..
b.timofteParticipantHi
I have no email received …
b.timofteParticipantFor example if i switch to the new version will this error will be fixed ?
I am using TDM-GCC-32 CustomToolchain.xml
With config
<?xml version=”1.0″?>
<CustomToolchain xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>
<Toolchain>
<UnixSystem>false</UnixSystem>
<AdditionalPathDirectories>
<string>C:\TDM-GCC-32\bin</string>
<string>C:\TDM-GCC-32\msys\1.0\bin</string>
</AdditionalPathDirectories>
<RequireCtrlBreak>false</RequireCtrlBreak>
<SourceDirMapping>
<Directories>
<SourceDirMappingEntry>
<RemoteDir>/mingw</RemoteDir>
<LocalDir>C:\TDM-GCC-32</LocalDir>
</SourceDirMappingEntry>
</Directories>
<PathStyle>MinGWUnixSlash</PathStyle>
</SourceDirMapping>
<Name>MinGW</Name>
<UniqueID>com.sysprogs.imported.mingw_TDM_GCC_32</UniqueID>
<Location>C:\TDM-GCC-32</Location>
<GCC>C:\TDM-GCC-32\bin\gcc.exe</GCC>
<GXX>C:\TDM-GCC-32\bin\g++.exe</GXX>
<GDB>c:\TDM-GCC-32\bin\gdb32.exe</GDB>
<AR>C:\TDM-GCC-32\bin\ar.exe</AR>
<OBJCOPY>C:\TDM-GCC-32\bin\objcopy.exe</OBJCOPY>
<Make>C:\TDM-GCC-32\bin\mingw32-make.exe</Make>
<UseCygwinBash>false</UseCygwinBash>
</Toolchain>
<Type>Windows</Type>
<Version>
<GCC>5.1.0</GCC>
<Revision>0</Revision>
</Version>
<Name>MinGW</Name>
<IsShared>false</IsShared>
</CustomToolchain><span style=”text-decoration: underline;”>But when i debug after i compile i get the error :</span>
VisualGDB is licensed to
c:\TDM-GCC-32\bin\gdb32.exe –interpreter mi –args “C:\VisualGdb\TDMGCC32\TDMGCC32/Debug/TDMGCC32.exe”
-gdb-version
gdbwrapper: AssignProcessToJobObject failed
Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
=thread-group-added,id=”i1″
~”GNU gdb (GDB) 7.9.1\n”
~”Copyright (C) 2015 Free Software Foundation, Inc.\n”
~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
~”This GDB was configured as \”mingw32\”.\nType \”show configuration\” for configuration details.”
This GDB was configured as “mingw32”.
Type “show configuration” for configuration details.
~”\nFor bug reporting instructions, please see:\n”
~”<http://www.gnu.org/software/gdb/bugs/>.\n”
~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
~”For help, type \”help\”.\n”
~”Type \”apropos word\” to search for commands related to \”word\”…\n”
~”Reading symbols from C:\\VisualGdb\\TDMGCC32\\TDMGCC32/Debug/TDMGCC32.exe…”
~”done.\n”
~”GNU gdb (GDB) 7.9.1\n”
~”Copyright (C) 2015 Free Software Foundation, Inc.\n”
~”License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \”show copying\”\nand \”show warranty\” for details.\n”
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
~”This GDB was configured as \”mingw32\”.\nType \”show configuration\” for configuration details.”
This GDB was configured as “mingw32”.
Type “show configuration” for configuration details.
~”\nFor bug reporting instructions, please see:\n”
~”<http://www.gnu.org/software/gdb/bugs/>.\n”
~”Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n”
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
~”For help, type \”help\”.\n”
~”Type \”apropos word\” to search for commands related to \”word\”.\n”
^done- This reply was modified 6 years, 6 months ago by b.timofte.
February 13, 2018 at 21:03 in reply to: Clang vs Visual Studio Intellisense (issues with Clang) #20094b.timofteParticipantUsually happens when windows CR LF line endings are not fixed by visual studio. Then intellisense gets out of whack
Just set VS 2015 ..etc to correct line endings or use a python scripts to do it automatically for all your files.
! /usr/bin/env python <span style="color: #2a00ff;">"Replace LF with CRLF in argument files. Print names of changed files."</span> <span style="color: #7f0055;"><b>import</b></span> sys, re, os def main(): <span style="color: #7f0055;"><b>for</b></span> filename in sys.argv[1:]: <span style="color: #7f0055;"><b>if</b></span> os.path.isdir(filename): print filename, <span style="color: #2a00ff;">"Directory!"</span> <span style="color: #7f0055;"><b>continue</b></span> data = open(filename, <span style="color: #2a00ff;">"rb"</span>).read() <span style="color: #7f0055;"><b>if</b></span> <span style="color: #2a00ff;">'\0'</span> in data: print filename, <span style="color: #2a00ff;">"Binary!"</span> <span style="color: #7f0055;"><b>continue</b></span> newdata = re.sub(<span style="color: #2a00ff;">"\r?\n"</span>, <span style="color: #2a00ff;">"\r\n"</span>, data) <span style="color: #7f0055;"><b>if</b></span> newdata != data: print filename f = open(filename, <span style="color: #2a00ff;">"wb"</span>) f.write(newdata) f.close() <span style="color: #7f0055;"><b>if</b></span> __name__ == <span style="color: #2a00ff;">'__main__'</span>: main()
b.timofteParticipantI see is not triggered when using visualGdb SysGcc folder compiler
Is VisualGdb downloading in those folders this version of gcc ?
<h1>mingw-w64</h1>
<p class=”claim”>GCC for Windows 64 & 32 bits</p>I tested and it looks fine …. but is it officially supported ?
—— Rebuild All started: Project: WindowsProject1.vgdbcmake, Configuration: Debug VisualGDB ——
Removing C:\Users\<>\Source\Repos\WindowsProject1\WindowsProject1/VisualGDB/Debug…
Reconfiguring project due to missing Makefile…
The C compiler identification is GNU 7.2.0
The CXX compiler identification is GNU 7.2.0
Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/gcc.exe
Check for working C compiler: C:/Program Files (x86)/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/gcc.exe — works
Detecting C compiler ABI info
Detecting C compiler ABI info – done
Detecting C compile features
Detecting C compile features – done
Check for working CXX compiler: C:/Program Files (x86)/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/g++.exe
Check for working CXX compiler: C:/Program Files (x86)/mingw-w64/i686-7.2.0-posix-dwarf-rt_v5-rev1/mingw32/bin/g++.exe — works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info – done
Detecting CXX compile features
Detecting CXX compile features – done
Configuring done
Generating done
Code model queried in 8 msec
VisualGDB: Run “C:\Program Files (x86)\mingw-w64\i686-7.2.0-posix-dwarf-rt_v5-rev1\mingw32\bin\mingw32-make.exe ” in directory “C:\Users\<>\Source\Repos\WindowsProject1\WindowsProject1/VisualGDB/Debug” on local computer
Scanning dependencies of target WindowsProject1
[ 50%] Building CXX object CMakeFiles/WindowsProject1.dir/WindowsProject1.cpp.obj
[100%] Linking CXX executable WindowsProject1.exe
[100%] Built target WindowsProject1
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========b.timofteParticipantok 🙂 As long as i can use the tool in the future i will keep it this way 😉
b.timofteParticipantYeah , In my project unix is not defined anywhere , but it destroys any CLANG intellisense if i used #ifdef unix in those files. Have no clue whats going on and why the Visual Studio intellisense works
b.timofteParticipantI made a new project
and put the code above main.cpp
#ifdef unix
#endif
If i select unix macro and go to definition it says in clang that the enrty doesnt refer to a valid c/c++ entity
The same happens if i select my file in the other project where intellisense fails and select go to defintion …. it says it cannot find definition of it
b.timofteParticipant-_-”
I had hundreds of errors when converting a project to msbuild or convert it from old to new version
I can live with this annoying 2 seconds pop up message as long as it doesnt crash and burn more than 1 time per day lol
- This reply was modified 7 years, 1 month ago by b.timofte.
b.timofteParticipantSeems to be working now the graying of #if disabled code .
Should have been working since years ago to be honest .
b.timofteParticipantup !
-
AuthorPosts