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] Add tests for JIT debugging interface


On Wednesday 12 January 2011 15:08:00, Paul Pluzhnikov wrote:
> Is there a "standard" way to achieve this?

Run to main, and write whatever options you need to
(global) variables (e.g., "p count $count") instead of
using "set args".  You could leave the argc > 0 handling
in place if it makes it simpler to debug manually.
That, or compile the program with -DOPTION=FOO.  Some
tests do that instead.

-- 
Pedro Alves


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