Opened 6 years ago

Closed 3 years ago

#10296 closed bug (no change required)

Debugger not useable in non-interactive mode

Reported by: pulkomandy Owned by: anevilyak
Priority: normal Milestone: Unscheduled
Component: Applications/Debugger Version: R1/Development
Keywords: Cc: bonefish
Blocked By: Blocking:
Has a Patch: yes Platform: All

Description

echo "save-report"|Debugger -c ls

Debugger enters an endless loop trying to read from the closed stdin. Attached patch solves this (maybe not the cleanest way) by triggering the "resume debugged thread" code path when this happens.

Attachments (1)

noninteractive.patch (1.4 KB) - added by pulkomandy 6 years ago.
Dirty patch to improve non-interactive use.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by pulkomandy

Attachment: noninteractive.patch added

Dirty patch to improve non-interactive use.

comment:1 Changed 6 years ago by pulkomandy

Has a Patch: set

comment:2 Changed 6 years ago by anevilyak

Cc: bonefish added

comment:3 Changed 6 years ago by pulkomandy

Well, the patch above leads to another problem when using --save-report: it tries to quit Debugger when the team is gone, but this deadlock with another thread waiting for the report to be saved.

comment:4 Changed 5 years ago by luroh

Milestone: R1Unscheduled

Moving Debugger related tickets out of R1 milestone (Prop #14).

comment:5 Changed 3 years ago by pulkomandy

Resolution: no change required
Status: newclosed

Well, this was solved in a cleaner way with the debug_server settings. No need to automate things in this hacky way anymore.

Note: See TracTickets for help on using tickets.