Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Unified Diff: ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc

Issue 176813010: Avoid blocking the PNaCl translator processes when chrome NaCl GDB flag is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up comment Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc
diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc b/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc
index 179d88ef3a587020ae572bfa1d637eb6b79d4d39..acc98f6d9227d8e34f87a963507cec4241cdb0a4 100644
--- a/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc
+++ b/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc
@@ -115,8 +115,12 @@ NaClSubprocess* PnaclTranslateThread::StartSubprocess(
PLUGIN_PRINTF(("PnaclTranslateThread::StartSubprocess (url_for_nexe=%s)\n",
url_for_nexe.c_str()));
nacl::DescWrapper* wrapper = resources_->WrapperForUrl(url_for_nexe);
+ // Supply a fake URL for the translator components so that NaCl GDB
teravest 2014/02/25 18:51:29 How is the url fake?
jvoung (off chromium) 2014/02/25 23:52:31 Perhaps taking the word "fake" out will be less co
+ // can filter processes (and not debug the translator itself if desired).
+ // Must have the full URL otherwise it gets silently dropped.
+ nacl::string full_url = resources_->GetFullUrl(url_for_nexe);
nacl::scoped_ptr<NaClSubprocess> subprocess(
- plugin_->LoadHelperNaClModule(wrapper, manifest, error_info));
+ plugin_->LoadHelperNaClModule(full_url, wrapper, manifest, error_info));
if (subprocess.get() == NULL) {
PLUGIN_PRINTF((
"PnaclTranslateThread::StartSubprocess: subprocess creation failed\n"));

Powered by Google App Engine
This is Rietveld 408576698