Raz Moshe
Raz Moshe

Reputation: 61

GDB's "No symbol table is loaded" when trying to "strace"

I'm trying to strace a thread (or a process, for that matter) on the system through gdb, using strace -p <pid>. I get the following message:

No symbol table is loaded. Use the "file" command.

Make static tracepoint pending on future shared library load? (y or [n])

I've seen solutions offering to use file <file-name>, but in my case, when I have no file to run, what do I have to do?

Thanks.

Upvotes: 0

Views: 214

Answers (1)

user149341
user149341

Reputation:

The strace you are looking for is a command-line tool, not a GDB command. Exit GDB to run it.

Upvotes: 1

Related Questions