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] visualizing locals and backtrace in debug session


>>>>> "Serge" == Serge Voilokov <voilokov@gmail.com> writes:

Serge> This patch adds new post hooks which dump registers, stack, local
Serge> variables on each step, next, run, finish command.

Thanks for the patch.

Serge> Output goes to ~/gdbout.txt file where can be watched by 'tail -f
Serge> ~/gdbout.txt' command in the separate terminal.

I don't think we want something that works this way.  It is not like
anything else gdb does.

Serge> Hooks are disabled by default.
Serge> auto_enable command enables the hooks.

This command name is very un-gdb-like.
I suggest choosing something else.

How do you disable this command?

Serge> +++ gdb/gdb/python/lib/gdb/command/auto_info.cmd 2013-04-24
Serge> 13:58:47.000000000 -0400
Serge> @@ -0,0 +1,15 @@
Serge> +define hookpost-step
Serge> +auto_print
Serge> +end

Defining post hooks seems like something that ought to be reserved for
the user.  So if this can't be done using existing Python events, I
suggest adding the necessary events.

I wonder how these interact with non-stop mode.

Tom


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