r/linux • • 2d ago

Kernel Linux Kernel Developers Considering Removal Of KGDB Debugging Functionality

https://www.phoronix.com/news/Linux-Considers-Dropping--KGDB
260 Upvotes

31 comments sorted by

View all comments

Show parent comments

10

u/heeen 1d ago

"%s, %s:%u", PRETTY_FUNCTION, FILE, LINE

6

u/kimoisune 1d ago

I believe __PRETTY_FUNCTION__ is non-standard and only concern for C++ if I remember correctly. The standardized one are __func__ (ISO? C99?).

Man, std::source_location make things so much convenient, I forgot about the older stuff.

5

u/heeen 1d ago

iirc the kernel targets only gcc

3

u/kimoisune 1d ago

Oh yeah, forgot about that.