[question] If the code format is wrong, the _initialize_xxx functions cannot be generated?

hilbert swdtian@163.com
Mon Jan 30 02:15:51 GMT 2023


Does newly added code need a fixed code format. I registered a new target.
But if I use the command "clang-format -style=LLVM -i newtarget.c" to reformat the code, and then compile it, the _initialize_new_target() function will not be generated in init.c;
 if I use the original code format, gdb The _initialize_new_target() function is generated. 
Is this understanding correct?
Thank you very much.

More information about the Gdb mailing list