I have many, many C #define preprocessors that simplify C programming. However, when debugging with GDB, preprocessor "tags" are not taken into account in the character list.
#define
Is there a way to recognize GDB tags #define d?
You can try compiling with g3 as described here .
gcc -gdwarf-2 -g3
We pass the -gdwarf-2 and -g3 flags to make sure that the compiler includes information about the preprocessor macros in the debug information.
Or you can try -ggdb .
-ggdb
#define characters are usually not included as part of debugging information. const variables (or built-in functions for macros like functions ) are usually a better idea for many reasons than this (e.g. type of security, multiple evaluations, etc.). I recommend using them in favor of preprocessor characters whenever you can.
const
Source: https://habr.com/ru/post/911209/More articles:Is there an alternative to PHP strip_tags () - phpHow to get the relative address of a field in a structure dump. [C] - cPlease help me understand this C ++ parameter declaration with the argument - c ++jQuery mobile: Pinch / Zoom / Scale Gesture - console.log ("something"); - javascriptExtending semaphore permissions in Java - javaHow to access sql database from widget application - androidSet default sort column in SlickGrid - javascriptCalling Sort by Slickgrid - slickgridChecking for a hash key creates a key - perlExport JasperReports query results - javaAll Articles