indygal
indygal

Reputation: 61

GDB logging file location

Hi I am new to GDB. I used the "set logging on" command. It creates a default file "gdb.txt" to store the output. However, I am unable to locate the file and see the data. Can you please tell me where the file is located?

Upvotes: 6

Views: 8041

Answers (2)

Phani
Phani

Reputation: 11

the gdb.txt file will not be created in pwd always. It has to be explicitly specified by executing command 'set logging on' in gdb terminal.

Upvotes: 1

Employed Russian
Employed Russian

Reputation: 213829

In the current working directory. Try pwd command at the (gdb) prompt.

Upvotes: 6

Related Questions