aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammad-Reza Nabipoor <mnabipoor@gnu.org>2024-09-25 12:05:09 +0200
committerMohammad-Reza Nabipoor <mnabipoor@gnu.org>2024-09-25 12:05:09 +0200
commit7eee0af9d8bd79b3f4a88894665140c309155b7a (patch)
tree0bc558a205fc75d79d7eabfdd37cf4b65225b310
parent4ff3c9875d795c6e26636852ff1b9fc8ce47bfc1 (diff)
downloadgdb-users/mnabipoor/poke-gdb.zip
gdb-users/mnabipoor/poke-gdb.tar.gz
gdb-users/mnabipoor/poke-gdb.tar.bz2
WIP Fix poke_command to reset lexical cuckolding after errorusers/mnabipoor/poke-gdb
-rw-r--r--gdb/poke.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/poke.c b/gdb/poke.c
index 37801bb..d8957fa 100644
--- a/gdb/poke.c
+++ b/gdb/poke.c
@@ -929,8 +929,8 @@ poke_command (const char *args, int from_tty)
&exit_exception)
!= PK_OK
|| exit_exception != PK_NULL)
- /* Poke compiler will right error message to the output. */
- goto error;
+ /* Poke compiler will write error message to the output. */
+ goto done;
}
else
{
@@ -941,7 +941,7 @@ poke_command (const char *args, int from_tty)
&exit_exception)
!= PK_OK
|| exit_exception != PK_NULL)
- goto error;
+ goto done;
if (val != PK_NULL)
{
@@ -950,9 +950,9 @@ poke_command (const char *args, int from_tty)
}
}
+done:
pk_set_lexical_cuckolding_p (poke_compiler (), 0);
-error:
if (exit_exception != PK_NULL)
poke_handle_exception (exit_exception);
}