This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] restore "mt set python print-stack" for gdb 7.4
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org, marc dot khouzam at ericsson dot com
- Date: Sat, 14 Jan 2012 08:05:53 +0400
- Subject: Re: [RFA] restore "mt set python print-stack" for gdb 7.4
- References: <20120114004152.083902461A8@ruffy.mtv.corp.google.com>
> Joel, ok to check into the branch?
Looks good to me!
> 2012-01-13 Doug Evans <firstname.lastname@example.org>
> Restore "mt set python print-stack on|off" for 7.4.
> * NEWS: Update to indicate "mt set python print-stack" is deprecated,
> but not deleted yet, and will be gone in gdb 7.5.
> * python/python.c (maint_set_python_list, maint_show_python_list):
> New global vars.
> (maint_set_python, maint_show_python): New functions.
> (gdbpy_should_print_stack_deprecated): New global var.
> (set_maint_python_print_stack): New function.
> (show_maint_python_print_stack): New function.
> (_initialize_python): Define commands
> "mt set python print-stack on|off" and ""mt show python print-stack".
> Index: NEWS
> RCS file: /cvs/src/src/gdb/NEWS,v
> retrieving revision 1.472.2.3
> diff -u -p -r1.472.2.3 NEWS
> --- NEWS 1 Jan 2012 21:47:08 -0000 1.472.2.3
> +++ NEWS 14 Jan 2012 00:24:15 -0000
> @@ -29,10 +29,11 @@
> existing one.
> ** The "maint set python print-stack on|off" command has been
> - removed. A new command: "set python print-stack
> - none|full|message" has replaced it. Additionally, the default
> - for "print-stack" is now "message", which just prints the error
> - message without the stack trace.
> + deprecated and will be deleted in GDB 7.5.
> + A new command: "set python print-stack none|full|message" has
> + replaced it. Additionally, the default for "print-stack" is
> + now "message", which just prints the error message without
> + the stack trace.
I think we need to update the NEWS file on the HEAD as well.
I would resynchronize the contents of the "in GDB 7.4" section
on the HEAD with the above, and then add a small entry in
"since 7.4" to say that the deprecated command has now been