search for: debugbuffersize

Displaying 7 results from an estimated 7 matches for "debugbuffersize".

2009 Dec 19
0
[LLVMdev] [PATCH] Implement dbgs()
...output"), cl::Hidden, > cl::location(DebugFlag)); > > +// -debug-buffer-size - This is a command line op0tion to set the > size > +// of the debug stream circular buffer. The value is the number of > +// characters to save. > +static cl::opt<unsigned> > +DebugBufferSize("debug-buffer-size", > + llvm::cl::desc("Save last N characters of debug > output " How about "Buffer the last N characters of debug output until program termination". This should probably also be cl::Hidden. > +// Signal handlers - dump...
2009 Dec 18
2
[LLVMdev] [PATCH] Implement dbgs()
...ebug", cl::desc("Enable debug output"), cl::Hidden, cl::location(DebugFlag)); +// -debug-buffer-size - This is a command line op0tion to set the size +// of the debug stream circular buffer. The value is the number of +// characters to save. +static cl::opt<unsigned> +DebugBufferSize("debug-buffer-size", + llvm::cl::desc("Save last N characters of debug output " + "[default 0--immediate print-out]"), + llvm::cl::init(0)); + static std::string CurrentDebugType; static struct DebugOnlyOpt...
2009 Dec 19
3
[LLVMdev] [PATCH] Implement dbgs()
...cember 2009 19:56, Chris Lattner wrote: > > +// -debug-buffer-size - This is a command line op0tion to set the > > size > > +// of the debug stream circular buffer. The value is the number of > > +// characters to save. > > +static cl::opt<unsigned> > > +DebugBufferSize("debug-buffer-size", > > + llvm::cl::desc("Save last N characters of debug > > output " > > How about "Buffer the last N characters of debug output until program > termination". This should probably also be cl::Hidden. Ok. > &g...
2009 Dec 21
2
[LLVMdev] [PATCH] Implement dbgs()
...lity is a no-op in NDEBUG mode. @@ -37,6 +40,16 @@ Debug("debug", cl::desc("Enable debug output"), cl::Hidden, cl::location(DebugFlag)); +// -debug-buffer-size - Buffer the last N characters of debug output +//until program termination. +static cl::opt<unsigned> +DebugBufferSize("debug-buffer-size", + cl::desc("Buffer the last N characters of debug output" + "until program termination. " + "[default 0 -- immediate print-out]"), + cl::Hidden, +...
2009 Dec 21
0
[LLVMdev] [PATCH] Implement dbgs()
On 2009-12-21 18:06, David Greene wrote: > On Saturday 19 December 2009 00:16, Chris Lattner wrote: > > >>> Or I think I can just assume (Yikes!) that if the signal handler is >>> invoked it will really be a circular_raw_ostream since the handler >>> should (!) only be set up in debug mode. >>> >>> That scares me a bit, though. >>>
2009 Dec 21
2
[LLVMdev] [PATCH] Implement dbgs()
...lity is a no-op in NDEBUG mode. @@ -37,6 +40,16 @@ Debug("debug", cl::desc("Enable debug output"), cl::Hidden, cl::location(DebugFlag)); +// -debug-buffer-size - Buffer the last N characters of debug output +//until program termination. +static cl::opt<unsigned> +DebugBufferSize("debug-buffer-size", + cl::desc("Buffer the last N characters of debug output" + "until program termination. " + "[default 0 -- immediate print-out]"), + cl::Hidden, +...
2009 Dec 19
0
[LLVMdev] [PATCH] Implement dbgs()
On Dec 18, 2009, at 6:36 PM, David Greene wrote: >>> +// Signal handlers - dump debug output on termination. >>> +static void debug_user_sig_handler(void *Cookie) >>> +{ >>> + llvm::circular_raw_ostream *logout = >>> + dynamic_cast<llvm::circular_raw_ostream *>(&llvm::dbgs()); >> >> Please do not use dynamic_cast, we're