Please see an example in How can I show printk() message in console?, If the /proc/sys/kernel/prink was a normal file, the file would have changed to just “6”, a single number. But I know the proc file system is a file system in ram and I guess it works different. In what mechanism did the file changed that way? And
Tag: printing
How to view the internal data of a smart pointer inside gdb?
I’ve got test program like below: Debug it: It only prints out the pointer type information of si, but how to get the value stored in it (in this case 5)? How can I check the internal content of si during debugging? Answer Try the following: Now, this assumes that you’re using libstdc++.so, given the output for p si. Alternatively,