Recent Posts

Pages: 1 2 3 4 5 6 [7] 8 9 10
61
Help / Re: assembly view
« Last post by BlueHazzard on October 22, 2020, 03:27:57 pm »
Yes, gdb 8.3 shipped with codeblocks is broken... You probably need a newer version of gdb,
for example:
http://www.winlibs.com/
62
Help / Re: Unable to build multiple files project. Checking for existence......
« Last post by BlueHazzard on October 22, 2020, 03:24:43 pm »
Codeblocks manages the build in targets (for example called release and debug)... Each target has a collection of files to compiler and link together. At the end of each target there is a binary file (or for virtual targets, other targets)
So it is possible to build multiple exe or libraries within one codeblocks project. A.cpp --> A.exe, B.cc -->B.dll

When you add (or create) new files to the project, codeblocks ask to what targets it should add your files. By default all targets are selected, you probably have deselected all targets, so you had to do it by hand a second time...

Edit: you can look here: http://wiki.codeblocks.org/index.php?title=The_build_process_of_Code::Blocks
63
General (but related to Code::Blocks) / Re: GTK in Code:Blocks (Windows 10)
« Last post by eric1708 on October 22, 2020, 03:16:04 pm »
I can't know what compiler was used to build the GTK library that I have. I also can't built my own. It remains that, about two years ago, I was able to compile everything. For sure, at the time, the Code:Blocks version was different.

On the Code:Blocks "download" site, I just see that there is also a 32 bits version available (and I assume it comes with a 32 bits version of gcc). Do you think this could save me?

Again, thanks for your help.

Eric.
64
Help / Re: assembly view
« Last post by reverser on October 22, 2020, 03:14:55 pm »
well, so far I discovered this feature is breaking the debugging process
here is the full log. I put a bp - debugger stoped - I opened asm view - debbugger terminated after a second or so

Code: [Select]
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Users\Shetal\Desktop\zzz\
Adding source dir: C:\Users\Shetal\Desktop\zzz\
Adding file: C:\Users\Shetal\Desktop\zzz\bin\Debug\zzz.exe
Changing directory to: C:/Users/Shetal/Desktop/zzz/.
Set variable: PATH=.;F:\main programs\Programming_compiler\CodeBlocks\MinGW\bin;F:\main programs\Programming_compiler\CodeBlocks\MinGW;D:\PROGRAM\crack tool\packers\.net packers\Eazfuscator.NET;D:\PROGRAM\crack tool\packers\.net packers\.NET Reactor;D:\PROGRAM\crack tool\packers\.net packers\IntelliLock;C:\ProgramData\Oracle\Java\javapath;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;F:\Program Files (x86)\IncrediBuild;C:\Program Files (x86)\Payesh\gm;C:\Program Files (x86)\Java\jdk1.8.0_72\bin;\;F:\main programs\Programming_compiler\UEStudio;C:\Users\Shetal\AppData\Local\Microsoft\WindowsApps;F:\main programs\Programming_compiler\IntelliJ IDEA 2020.2.3\bin;F:\main programs\Programming_compiler\PyCharm 2020.1\bin

[debug]Command-line: F:\main programs\Programming_compiler\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet  -args C:/Users/Shetal/Desktop/zzz/bin/Debug/zzz.exe
[debug]Working dir : C:\Users\Shetal\Desktop\zzz

Starting debugger: F:\main programs\Programming_compiler\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet  -args C:/Users/Shetal/Desktop/zzz/bin/Debug/zzz.exe
done

[debug]> set prompt >>>>>>cb_gdb:

Setting breakpoints

[debug]Reading symbols from C:/Users/Shetal/Desktop/zzz/bin/Debug/zzz.exe...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 8.1
[debug]Copyright (C) 2018 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "x86_64-w64-mingw32".
[debug]Type "show configuration" for configuration details.
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]Find the GDB manual and other documentation resources online at:
[debug]<http://www.gnu.org/software/gdb/documentation/>.
[debug]For help, type "help".
[debug]Type "apropos word" to search for commands related to "word".
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 8.1

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 200
[debug]>>>>>>cb_gdb:
[debug]> set new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> directory C:/Users/Shetal/Desktop/zzz/
[debug]Source directories searched: C:/Users/Shetal/Desktop/zzz;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "C:/Users/Shetal/Desktop/zzz/main.cpp:8"
[debug]Breakpoint 2 at 0x40157f: file C:\Users\Shetal\Desktop\zzz\main.cpp, line 8.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: C:\Users\Shetal\Desktop\zzz\bin\Debug\zzz.exe

Child process PID: 10020

[debug][New Thread 10020.0x3aa4]
[debug][New Thread 10020.0x688]
[debug][New Thread 10020.0x23cc]
[debug][New Thread 10020.0x2178]
[debug]Thread 1 hit Breakpoint 2, main () at C:\Users\Shetal\Desktop\zzz\main.cpp:8
[debug]C:\Users\Shetal\Desktop\zzz\main.cpp:8:99:beg:0x40157f
[debug]>>>>>>cb_gdb:

At C:\Users\Shetal\Desktop\zzz\main.cpp:8

[debug]> if 1
disassemble 0x40157f
info frame
end

[debug] > > >Dump of assembler code for function main():
[debug]   0x0000000000401550 <+0>: push   %rbp
[debug]   0x0000000000401551 <+1>: mov    %rsp,%rbp
[debug]   0x0000000000401554 <+4>: sub    $0x20,%rsp
[debug]   0x0000000000401558 <+8>: callq  0x401750 <__main>
[debug]   0x000000000040155d <+13>: lea    0x2a9d(%rip),%rdx        # 0x404001 <std::piecewise_construct+1>
[debug]   0x0000000000401564 <+20>: mov    0x2da5(%rip),%rcx        # 0x404310 <__fu0__ZSt4cout>
[debug]   0x000000000040156b <+27>: callq  0x401670 <std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)>
[debug]   0x0000000000401570 <+32>: mov    0x2da9(%rip),%rdx        # 0x404320 <.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_>
[debug]   0x0000000000401577 <+39>: mov    %rax,%rcx
[debug]   0x000000000040157a <+42>: callq  0x401690 <std::ostream::operator<<(std::ostream& (*)(std::ostream&))>
[debug]=> 0x000000000040157f <+47>: lea    0x2a7b(%rip),%rdx        # 0x404001 <std::piecewise_construct+1>
[debug]   0x0000000000401586 <+54>: mov    0x2d83(%rip),%rcx        # 0x404310 <__fu0__ZSt4cout>
[debug]   0x000000000040158d <+61>: callq  0x401670 <std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)>
[debug]   0x0000000000401592 <+66>: mov    0x2d87(%rip),%rdx        # 0x404320 <.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_>
[debug]   0x0000000000401599 <+73>: mov    %rax,%rcx
[debug]   0x000000000040159c <+76>: callq  0x401690 <std::ostream::operator<<(std::ostream& (*)(std::ostream&))>
[debug]   0x00000000004015a1 <+81>: lea    0x2a59(%rip),%rdx        # 0x404001 <std::piecewise_construct+1>
[debug]   0x00000000004015a8 <+88>: mov    0x2d61(%rip),%rcx        # 0x404310 <__fu0__ZSt4cout>
[debug]   0x00000000004015af <+95>: callq  0x401670 <std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)>
[debug]   0x00000000004015b4 <+100>: mov    0x2d65(%rip),%rdx        # 0x404320 <.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_>
[debug]   0x00000000004015bb <+107>: mov    %rax,%rcx
[debug]   0x00000000004015be <+110>: callq  0x401690 <std::ostream::operator<<(std::ostream& (*)(std::ostream&))>
[debug]   0x00000000004015c3 <+115>: lea    0x2a37(%rip),%rdx        # 0x404001 <std::piecewise_construct+1>
[debug]   0x00000000004015ca <+122>: mov    0x2d3f(%rip),%rcx        # 0x404310 <__fu0__ZSt4cout>
[debug]   0x00000000004015d1 <+129>: callq  0x401670 <std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)>
[debug]   0x00000000004015d6 <+134>: mov    0x2d43(%rip),%rdx        # 0x404320 <.refptr._ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_>
[debug]   0x00000000004015dd <+141>: mov    %rax,%rcx
[debug]   0x00000000004015e0 <+144>: callq  0x401690 <std::ostream::operator<<(std::ostream& (*)(std::ostream&))>
[debug]   0x00000000004015e5 <+149>: mov    $0x0,%eax
[debug]   0x00000000004015ea <+154>: add    $0x20,%rsp
[debug]   0x00000000004015ee <+158>: pop    %rbp
[debug]   0x00000000004015ef <+159>: retq   
[debug]End of assembler dump.

Debugger finished with status 1
65
Help / Re: debugger auto resume
« Last post by reverser on October 22, 2020, 03:11:37 pm »
well, the culprit was assembly view window. i closed it and the debugger worked fine so far. ill update this thread if discovered any further issues.
66
General (but related to Code::Blocks) / Re: GTK in Code:Blocks (Windows 10)
« Last post by Miguel Gimenez on October 22, 2020, 03:09:04 pm »
C::B 20.04 bundles a new compiler (minGW-64 vs TDM), and it seems incompatible with the one used to build the libraries. Probably the bundled compiler generates 64-bit object files by default, or the ABI is different. Check which compiler was used to build you prebuilt libraries or build your own.
67
Help / Re: Unable to build multiple files project. Checking for existence......
« Last post by kuasimikua on October 22, 2020, 03:05:19 pm »
Check if you have added your file to the compiling target:
Project->Properties->Build targets->Select a build target on the left->Check if all files have a check mark in "Build target files"
the same for the second target on the left

Omg thank you sir! All the files were apparently unchecked and now after ur advice it works. Thank you for the help and bless you :)))

Also, do you mind me asking how does what I did fix the problem? thank yoU!!!
68
Development / Re: Symbols browser issue of CC has been fixed for my Linux
« Last post by Miguel Gimenez on October 22, 2020, 02:56:54 pm »
Thank you for testing. I have modified the patch to include your change.
69
General (but related to Code::Blocks) / Re: GTK in Code:Blocks (Windows 10)
« Last post by eric1708 on October 22, 2020, 02:42:01 pm »
The "skipping incompatible library" error is shown because you are trying to link with libraries created with other compilers. The .lib are probably from Visual Studio and the .dll.a from other version or GCC (or the same version with different number of bits, 64 vs 32). You must create those libs with the same compiler and options used when compiling your program.
Thanks, but I do not see how this can be the explanation.

First of all, I'm not the one that compiled the GTK library. I took binaries already available for Windows. Second, as I said, I already installed this same GTK library on the same computer, with the same Windows version before, without any problem. So, I do not think the problem is coming from the library.

The only difference between what I did before, on the same machine, and what I'm trying to do now, is that I now use a new version (updated) of Code:Blocks, that maybe comes with a new version of gcc. For example, the GTK library is in 32 bits (I assume this is what the "win32" means), while I indeed install a 64 bits version of Code:Blocks. Can this be a possible explanation of the problem I have?

In all cases, thanks for your time and help on this.

Eric.
70
Using Code::Blocks / Text alignment error in C::B editor
« Last post by ollydbg on October 22, 2020, 02:11:43 pm »
Hi, it looks like C::B's editor can't measure the Chinese character correctly, so that I can't make the comment get alignment, this does not happen in Notepad++'s editor.

See the image shot below for comparing.

Any ideas? I have set the same font "Courier New, size 10" in those two editors. Note a normal Chinese character is double width of a normal English character.
Pages: 1 2 3 4 5 6 [7] 8 9 10