[dev-util] Add symbolicate_dump endpoint to dev server
Add an endpoint to the dev server that will symbolicate a minidump.
BUG=chromium-os:29850
TEST=unit
TEST=run dev server, use curl to make it download some artifacts; check to see that debug symbols are staged in static/archive
TEST=once symbols are staged, run the dev server in your chroot and use curl with a minidump file like this:
TEST= curl -F minidump=@/home/cmasone/chromeos/phooey/powerd.20120424.141235.1005.dmp http://localhost:8080/symbolicate_dump
Change-Id: Id9ed6252da5a5452af1165088ebf1f477b3a736d
Reviewed-on: https://gerrit.chromium.org/gerrit/20980
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Commit-Ready: Chris Masone <cmasone@chromium.org>
diff --git a/downloader.py b/downloader.py
index 99988e1..d0ef6e8 100755
--- a/downloader.py
+++ b/downloader.py
@@ -75,7 +75,8 @@
cherrypy.log('Gathering download requirements %s' % self._archive_url,
'DOWNLOAD')
artifacts = devserver_util.GatherArtifactDownloads(
- self._staging_dir, self._archive_url, short_build, self._build_dir)
+ self._staging_dir, self._archive_url, short_build, self._build_dir,
+ self._static_dir)
devserver_util.PrepareBuildDirectory(self._build_dir)
cherrypy.log('Downloading foreground artifacts from %s' % archive_url,