How to look up where a structure is defined?

Konstantin Kharlamov hi-angel@yandex.ru
Wed Mar 3 14:55:29 GMT 2021


On Wed, 2021-03-03 at 17:26 +0300, Konstantin Kharlamov wrote:
> there's `bear` utility, which takes a make command as input, and parses it
> output while it builds the project, and stores the output into
> `compile_commands.json` file. So for example: if you usually build glibc with
> `make`, then to generate the file you have to use a `bear -- make` instead.

To clarify: if you already built the project you'll need somehow to re-build it
with bear. So, for example, you can call a `find -type f -exec touch {} \;` in
the source tree to cause timestamps of all files to get bumped, and then running
a make command will trigger a full rebuild.



More information about the Libc-help mailing list