public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/10790] gdb.parameter not (easily) modifyable from python side
[not found] <bug-10790-4717@http.sourceware.org/bugzilla/>
@ 2022-01-04 18:16 ` tromey at sourceware dot org
2022-01-26 14:07 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-01-04 18:16 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10790
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2022-01-04
CC| |tromey at sourceware dot org
Status|UNCONFIRMED |NEW
Assignee|unassigned at sourceware dot org |tromey at sourceware dot org
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I have a patch to allow setting parameters temporarily.
I tend to think gdb.execute is good enough for setting
things permanently. (Really you shouldn't do that, since
those are normally just for the user.)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/10790] gdb.parameter not (easily) modifyable from python side
[not found] <bug-10790-4717@http.sourceware.org/bugzilla/>
2022-01-04 18:16 ` [Bug python/10790] gdb.parameter not (easily) modifyable from python side tromey at sourceware dot org
@ 2022-01-26 14:07 ` cvs-commit at gcc dot gnu.org
2022-01-26 17:15 ` tromey at sourceware dot org
2022-06-05 15:27 ` tromey at sourceware dot org
3 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-26 14:07 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10790
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b583c328e71369f90f4042ac7973ce9edfdb44b3
commit b583c328e71369f90f4042ac7973ce9edfdb44b3
Author: Tom Tromey <tromey@adacore.com>
Date: Tue Jan 4 11:00:52 2022 -0700
Add a way to temporarily set a gdb parameter from Python
It's sometimes useful to temporarily set some gdb parameter from
Python. Now that the 'endian' crash is fixed, and now that the
current language is no longer captured by the Python layer, it seems
reasonable to add a helper function for this situation.
This adds a new gdb.with_parameter function. This creates a context
manager which temporarily sets some parameter to a specified value.
The old value is restored when the context is exited. This is most
useful with the Python "with" statement:
with gdb.with_parameter('language', 'ada'):
... do Ada stuff
This also adds a simple function to set a parameter,
gdb.set_parameter, as suggested by Andrew.
This is PR python/10790.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=10790
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/10790] gdb.parameter not (easily) modifyable from python side
[not found] <bug-10790-4717@http.sourceware.org/bugzilla/>
2022-01-04 18:16 ` [Bug python/10790] gdb.parameter not (easily) modifyable from python side tromey at sourceware dot org
2022-01-26 14:07 ` cvs-commit at gcc dot gnu.org
@ 2022-01-26 17:15 ` tromey at sourceware dot org
2022-06-05 15:27 ` tromey at sourceware dot org
3 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-01-26 17:15 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10790
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|7.1 |12.1
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug python/10790] gdb.parameter not (easily) modifyable from python side
[not found] <bug-10790-4717@http.sourceware.org/bugzilla/>
` (2 preceding siblings ...)
2022-01-26 17:15 ` tromey at sourceware dot org
@ 2022-06-05 15:27 ` tromey at sourceware dot org
3 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2022-06-05 15:27 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=10790
--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
*** Bug 20509 has been marked as a duplicate of this bug. ***
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-05 15:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-10790-4717@http.sourceware.org/bugzilla/>
2022-01-04 18:16 ` [Bug python/10790] gdb.parameter not (easily) modifyable from python side tromey at sourceware dot org
2022-01-26 14:07 ` cvs-commit at gcc dot gnu.org
2022-01-26 17:15 ` tromey at sourceware dot org
2022-06-05 15:27 ` tromey at sourceware dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).