()
| 329 | } |
| 330 | |
| 331 | async _setupCppEntriesProvider() { |
| 332 | // Probe the local symbol server for the platform: |
| 333 | const url = new URL('http://localhost:8000/v8/info/platform') |
| 334 | let platform = {name: 'linux'}; |
| 335 | try { |
| 336 | const response = await fetch(url, {timeout: 1}); |
| 337 | if (response.status == 404) { |
| 338 | throw new Error( |
| 339 | `Local symbol server returned 404: ${await response.text()}`); |
| 340 | } |
| 341 | platform = await response.json(); |
| 342 | } catch (e) { |
| 343 | console.warn(`Local symbol server is not running on ${url}`); |
| 344 | console.warn(e); |
| 345 | } |
| 346 | let CppEntriesProvider = RemoteLinuxCppEntriesProvider; |
| 347 | if (platform.name === 'darwin') { |
| 348 | CppEntriesProvider = RemoteMacOSCppEntriesProvider; |
| 349 | } |
| 350 | this._cppEntriesProvider = new CppEntriesProvider( |
| 351 | platform.nmExec, platform.objdumpExec, platform.targetRootFS, |
| 352 | platform.apkEmbeddedLibrary); |
| 353 | } |
| 354 | |
| 355 | processCodeCreation( |
| 356 | type, kind, timestamp, start, size, nameAndPosition, maybe_func) { |
no test coverage detected