This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] dynamic printf


> >Or like a tracepoint that does printf? Would it influence an operation
> >such as "next", for instance?
> >
> >
> 
> There is a tracepoint similarity; one of the vague future-direction
> ideas is to somehow refactor tracing and breaking so one could shift
> back and forth freely, for instance to decide to collect some data
> at a breakpoint, without having to do the formalized trace
> experiment setup.
> 
> I'm not sure what you mean by influencing "next"?

I was referring to some suggestions that your new feature was equivalent
to a breakpoint with two commands that do the printing followed by a
continue.  This method looks like a great way of tracing code (meaning
adding debugging traces), except that if the breakpoint is hit during
a "next", then you get your trace followed by your program running away
until hitting the next breakpoint, instead of stopping on the next line
of code. That's why I like referring to the tracepoint terminology...

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]