Skip to content

Commit

Permalink
Test-merge #6
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Dec 10, 2024
2 parents 38c54c3 + ef6d63e commit ba20ae9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cosy.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def parse_elffile(elffile, prefix, appdir, riot_base=None):
r"(?P<type>[tbdTDB]) "
r"(?P<sym>[0-9a-zA-Z_$.]+)\s+"
r"(.*/)?"
r"("
r"(?P<dir>"
r"{appdir}|"
r"{riot_base}|"
r".cargo/registry/src/[^/]+|"
Expand All @@ -173,7 +173,7 @@ def parse_elffile(elffile, prefix, appdir, riot_base=None):
r"ip-over-ble_experiments|" # HACK...
r"{appdir}/.*bin/pkg"
r")/"
r"(?P<path>.+)/"
r"((?P<path>.+)/)?"
r"(?P<file>[0-9a-zA-Z_-]+\.(c|h|rs)):"
r"(?P<line>\d+)$".format(riot_base=riot_base,
appdir=appdir))
Expand All @@ -182,7 +182,14 @@ def parse_elffile(elffile, prefix, appdir, riot_base=None):
if m:
d = {'arcv': '', 'obj': '', 'size': -1, 'alias': []}
d.update(m.groupdict())
if d['path'] is None:
d['path'] = ""
d['path'] = d['path'].split(path.sep)
if d['dir'] == appdir:
if d['path'][0] == "":
d['path'][0] = "app"
else:
d['path'].insert(0, "app")
d['line'] = int(d['line'])
d['addr'] = int(d['addr'], 16)
d['type'] = d['type'].lower()
Expand Down
1 change: 1 addition & 0 deletions root/sunburst.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var b = {

// Mapping of step names to colors.
var colors = {
"app": "#d98b8f",
"core": "#a173d1",
"cpu": "#7b615c",
"boards": "#de783b",
Expand Down

0 comments on commit ba20ae9

Please sign in to comment.