aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorLuis Machado <luis.machado@linaro.org>2019-12-06 18:12:37 -0300
committerLuis Machado <luis.machado@linaro.org>2020-01-14 11:17:26 -0300
commit7da6a5b938b426379f61e56e259a925bedfe242b (patch)
treec4bce214765c16583017f6be5b7faf44f7979380 /gdb/infrun.c
parent7a6bf3becbe3e0ce47d2681edcfe7adcb67fe4e2 (diff)
downloadgdb-7da6a5b938b426379f61e56e259a925bedfe242b.zip
gdb-7da6a5b938b426379f61e56e259a925bedfe242b.tar.gz
gdb-7da6a5b938b426379f61e56e259a925bedfe242b.tar.bz2
Fix/Update misc comments
While doing some investigation of mine, i noticed a few typos, inaccuracies and missing information. I went ahead and updated/improved those. gdb/ChangeLog: 2020-01-14 Luis Machado <luis.machado@linaro.org> * inf-ptrace.c (inf_ptrace_target::resume): Update comments. * infrun.c (resume_1): Likewise. (handle_inferior_event): Remove stale comment. * linux-nat.c (linux_nat_target::resume): Update comments. (save_stop_reason): Likewise. (linux_nat_filter_event): Likewise. * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index a863628..1312328 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2429,8 +2429,8 @@ resume_1 (enum gdb_signal sig)
if (tp->control.trap_expected || bpstat_should_step ())
tp->control.may_range_step = 0;
- /* If enabled, step over breakpoints by executing a copy of the
- instruction at a different address.
+ /* If displaced stepping is enabled, step over breakpoints by executing a
+ copy of the instruction at a different address.
We can't use displaced stepping when we have a signal to deliver;
the comments for displaced_step_prepare explain why. The
@@ -2518,7 +2518,7 @@ resume_1 (enum gdb_signal sig)
&& step_over_info_valid_p ())
{
/* If we have nested signals or a pending signal is delivered
- immediately after a handler returns, might might already have
+ immediately after a handler returns, might already have
a step-resume breakpoint set on the earlier handler. We cannot
set another step-resume breakpoint; just continue on until the
original breakpoint is hit. */
@@ -5297,8 +5297,6 @@ Cannot fill $_exitsignal with the correct signal number.\n"));
stop_waiting (ecs);
return;
- /* The following are the only cases in which we keep going;
- the above cases end in a continue or goto. */
case TARGET_WAITKIND_FORKED:
case TARGET_WAITKIND_VFORKED:
/* Check whether the inferior is displaced stepping. */