• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révision1cb991a7f12833158244c94edd62a4565fc1c5ad (tree)
l'heure2006-09-17 21:28:19
AuteurNick Roberts <nickrob@snap...>
CommiterNick Roberts

Message de Log

(linux_nat_resume): Call to_resume method later.

Change Summary

Modification

--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -1254,10 +1254,13 @@ linux_nat_resume (ptid_t ptid, int step, enum target_signal signo)
12541254 if (resume_all)
12551255 iterate_over_lwps (resume_callback, NULL);
12561256
1257- linux_ops->to_resume (ptid, step, signo);
1258-
12591257 if (target_can_async_p ())
12601258 {
1259+ /* Check for pending events. If we find any, then we won't really
1260+ resume, but rather we will extract the first event from the pending events
1261+ queue, and post it to the gdb event queue, and then "pretend" that we have
1262+ in fact resumed. */
1263+
12611264 status.kind = TARGET_WAITKIND_SPURIOUS;
12621265 gdb_process_events (gdb_status, &status, 0, 0);
12631266
@@ -1268,9 +1271,12 @@ linux_nat_resume (ptid_t ptid, int step, enum target_signal signo)
12681271 target_executing = 1;
12691272 return;
12701273 }
1274+ }
1275+
1276+ linux_ops->to_resume (ptid, step, signo);
12711277
1278+ if (target_can_async_p ())
12721279 target_async (inferior_event_handler, 0);
1273- }
12741280
12751281 if (target_is_async_p ())
12761282 target_executing = 1;
@@ -1917,7 +1923,9 @@ linux_nat_wait (ptid_t ptid, struct target_waitstatus *ourstatus,
19171923
19181924 if ((ourstatus->kind == TARGET_WAITKIND_EXITED)
19191925 || (ourstatus->kind == TARGET_WAITKIND_SIGNALLED))
1920- return null_ptid;
1926+ {
1927+ return null_ptid;
1928+ }
19211929
19221930 return BUILD_LWP (gdb_status->pid, gdb_status->pid);
19231931 }