Bug 11204 - Make logging more flexible
Summary: Make logging more flexible
Status: RESOLVED DUPLICATE of bug 8822
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: 7.0
: P2 enhancement
Target Milestone: 7.1
Assignee: Paul Pluzhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-21 16:52 UTC by Paul Pluzhnikov
Modified: 2010-01-22 17:00 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Pluzhnikov 2010-01-21 16:52:22 UTC
With 'set logging on', GDB will record its output into gdb.txt

It is often desirable to include my input there as well (either so I can
remember later what I was doing, or so I can take gdb.txt and attach it
to a bug report directly, instead of doing screen scrape).

It would also be nice to be able to timestamp output in gdb.txt, so when
dealing with performance bugs, it's immediately clear which operations
took how long.

I think 'set logging NNN' could become a multi-state (similar to 'handle'), e.g.

 set logging user gdb timestamp  # turn all on
 set logging on             # alias for "set logging gdb" (backward compat)
 set logging off            # alias for "set logging nouser nogdb notimestamp"
Comment 1 Tom Tromey 2010-01-22 16:55:56 UTC
This overlaps with PR #8822.
Comment 2 Paul Pluzhnikov 2010-01-22 17:00:10 UTC
I've searched for "logging" before filing this, but PR 8822 doesn't have that
word in its subject.

*** This bug has been marked as a duplicate of 8822 ***