diff options
author | Tom Tromey <tromey@adacore.com> | 2022-10-03 13:51:58 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-10-14 11:21:02 -0600 |
commit | 65558ca5df91470521fda6b0bfdfbbdbd37ce4d3 (patch) | |
tree | 3136e77c0b2c58fe3d0ece1e4bfa4215498605a8 /gdb/gnu-nat.c | |
parent | ce6c3d253b97961801bc045d10b7fd022578fd03 (diff) | |
download | gdb-65558ca5df91470521fda6b0bfdfbbdbd37ce4d3.zip gdb-65558ca5df91470521fda6b0bfdfbbdbd37ce4d3.tar.gz gdb-65558ca5df91470521fda6b0bfdfbbdbd37ce4d3.tar.bz2 |
Use scoped_value_mark in more places
I looked at all the spots using value_mark, and converted all the
straightforward ones to use scoped_value_mark instead.
Regression tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r-- | gdb/gnu-nat.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c index 5dd4d14..ae049ca 100644 --- a/gdb/gnu-nat.c +++ b/gdb/gnu-nat.c @@ -3062,7 +3062,7 @@ static void info_port_rights (const char *args, mach_port_type_t only) { struct inf *inf = active_inf (); - struct value *vmark = value_mark (); + scoped_value_mark vmark; if (args) /* Explicit list of port rights. */ @@ -3088,8 +3088,6 @@ info_port_rights (const char *args, mach_port_type_t only) if (err) error (_("%s."), safe_strerror (err)); } - - value_free_to_mark (vmark); } static void |