I have some compiled libraries on x86 Linux and I want to quickly determine whether they were compiled with debugging symbols.
nm -a <lib> will print all symbols from library, including debug ones.
nm -a <lib>
So you can compare the outputs of nm <lib> and nm -a <lib> - if they differ, your lib contains some debug symbols.
nm <lib>