Re: Does GDB has 'quiet mode', and does GDB has APIs for writing log

Fei Ding <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAGmPkfJakLzMMt0e1wVarEO1iGz+ansRmV5P2et+g2AmHcS3gQ@mail.gmail.com>
The log's content and output file is up to me. For example I want to
log the message `breakpoint hit! EIP is 0x12345` into a file
`breakpoint.log` when a breakpoint is actually hit.

2015-03-30 17:57 GMT+08:00 Fei Ding <[email protected]>:
> I want to manually write log by myself, any APIs?
>
> 2015-03-30 16:09 GMT+08:00 Fei Ding <[email protected]>:
>> And I found
>>
>> https://sourceware.org/gdb/current/onlinedocs/gdb/Logging-Output.html#Logging-Output
>>
>> is helpful, I will check this out first.
>>
>> 2015-03-30 15:33 GMT+08:00 Fei Ding <[email protected]>:
>>> Hi all:
>>>
>>> I've modified GDB to support set breakpoints automatically according
>>> to a file containing all the EIP/RIP address that will be checked (a
>>> litter bit like `gdb -x file` command). But, the amount of breakpoints
>>> is too large, at least 10000, so I do not want to get any output like
>>> `Breakpoint 1, fun2 () at main.c:35` on my screen, I want GDB to be
>>> quiet at this time. Does GDB has something like `quiet mode`? Or, can
>>> I redirect these hints into a file?
>>>
>>> And, I want to write log when GDB is in `quiet mode`, does GDB has any
>>> APIs to support log?
>>>
>>> Thanks!
>>>
>>> BR.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.