Skip to content

Commit

Permalink
add workaround for erlang
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jan 12, 2024
1 parent fae1615 commit fae16d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rss.gdb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

# catch program exit
catch syscall exit exit_group
condition 1 $_thread == 1
python
# NOTE: for some reason we can't catch erlang's exit on its main thread, so we
# just catch the first exit. This is okay: testing locally shows that the count
# is completed before the first thread exits.
if not '/erl' in gdb.execute("show args", to_string=True):
gdb.execute("condition 1 $_thread == 1")
end
run

# capture program pid
Expand Down

0 comments on commit fae16d9

Please sign in to comment.