Recent Posts

Pages: 1 [2] 3 4 5 6 7 ... 10
11
Using Code::Blocks / Re: release vs debug version
« Last post by Miguel Gimenez on September 27, 2023, 10:01:05 am »
Differences among release and debug binaries are optimizations and memory layout, if the release is crashing I would look for a memory corruption. Also exception processing may be different.

You can locate the exit point using intermediate check points, like printing "Phase 1 start" in the console (or a log file) and later "Phase 1 end".
12
Using Code::Blocks / release vs debug version
« Last post by maxcy on September 27, 2023, 03:40:26 am »
 :) I have no idea how to go about searching for an answer to my compiler problem!!! I have a fairly large writing a compiler project, I have the code all finished, so it's time to compile it. I did just that for a release version as well as a debugger version. When I run the degub code version all is well!  When I try to run the release version the program comes to an abrupt exit!  Same code, different compiler run time results.  I have no idea what to do to troubleshoot this!
maxcy
13
Using Code::Blocks / Re: compiler args and flags
« Last post by maxcy on September 27, 2023, 03:26:29 am »
Rather embarrassing! I put the -x compiler parameter after the first argument and all was well! :o
14
Plugins development / Re: Code completion using LSP and clangd
« Last post by Pecan on September 26, 2023, 05:41:33 pm »
@ollydbg

Note the code below: has only two calls to Append(...)
The first has a definition that defaults type=-1, and the second, when called, has a hard coded type=-1 (platWX.cpp line:2571) set by SetList() before the calling Append().

So it appears that an additional call has been added to your code that sets type to something other than -1 before calling the first Append(...) which calls the second Append().

Maybe that will help find it.
15
Help / Smartsense issue with bitwise struct pointing to a HW address
« Last post by scopaev on September 26, 2023, 05:02:07 pm »
Hi folks,
I was hoping someone could guide me in the direction of a solution.

When I assign hardware register addresses through a struct, CB is not sensing the new structure.  See example below.

Example:
  typedef struct FooStruct
  {
    uint8
      B0: 1,
      B1: 1,
      B2: 1,
      B3: 1,
      B4: 1,
      B5: 1,
      B6: 1,
      B7: 1;
  } foo_bits_t;
 
  foo_bits_t Var1;
  Var1.                                                                          // POPUP shows up with B0-B7  :D!                 

  foo_bits_t Var2 __attribute__((address(0x123)));
  Var2.                                                                          // NO POPUP  :(

 The extra stuff "__attribute__((address(0x123)))" seems to be causing issues with smartsense (I think that is what CB calls the awesome popup?).
16
Using Code::Blocks / Re: compiler args and flags
« Last post by stahta01 on September 26, 2023, 03:30:23 pm »
Code::Blocks assumes an two stage build method is used.

1. Stage one creates object file(s)
2. Stage two uses the object file(s) to create an output file

Linker options are used in stage two
Compiler options are used in stage one

Is the option you wish to add an linker or compiler option?
Try adding the option to the project/target other options for the correct stage.

Edit2: Link I post for adding non C/C++ support it might help if you have no knowledge of advanced compiler settings area https://wiki.codeblocks.org/index.php/Adding_support_for_non_C/C%2B%2B_files_to_the_build_system

Tim S.
17
Nightly builds / Re: The 24 September 2023 build (13360) is out.
« Last post by eckard_klotz on September 26, 2023, 02:28:38 pm »
Hello Miguel Gimenez.

Thanks for your effort.

Unfortunately I was not able to implement your workaround successfully.
  • As you recommended, I added more details in the ticket discussion at SourceForge.
Best regards,
                    Eckard.
18
Nightly builds / Re: The 24 September 2023 build (13360) is out.
« Last post by Miguel Gimenez on September 26, 2023, 01:08:44 pm »
@eckard_klotx, I have posted a possible temporary solution in the ticket. Please test it (and subscribe to the ticket so we can communicate better).
19
Nightly builds / Re: The 24 September 2023 build (13360) is out.
« Last post by Miguel Gimenez on September 26, 2023, 11:30:19 am »
I have just created ticket 1420.
20
Nightly builds / Re: The 01 September 2023 build (13344) is out.
« Last post by Miguel Gimenez on September 26, 2023, 11:26:32 am »
I have just created ticket 1420.
Pages: 1 [2] 3 4 5 6 7 ... 10