You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 6888 Reporter:@ppedrot Status: closed (set by @damiendoligez on 2016-02-08T17:07:16Z) Resolution: fixed Priority: normal Severity: minor Version: 4.01.0 Target version: 4.03.0+dev / +beta1 Category: tools (ocaml{lex,yacc,dep,debug,...})
Bug description
Whenever using the "list" command of ocamldebug, the displayed file is always the one from the top of the current stack, regardless of the currently selected frame, while the line number is conversely the one of the current frame.
This can lead to a crash of the debugger whenever the mistakenly chosen file has less lines than the current line of the topmost frame.
Steps to reproduce
Run a program in the debugger and stop somewhere.
fr
up
list
The displayed file is the one of the first frame, not the one from the "up" command.
Thanks for the report. Next time, it would be even better to have a real repro-case (eg. a tarball with two files and a shell script running the toplevel in the right setting to observe the crash). Preparing a repro case is rather boring for reporters, but it is also rather boring for potential-bug-fixers which have to do it anyway.
Original bug ID: 6888
Reporter: @ppedrot
Status: closed (set by @damiendoligez on 2016-02-08T17:07:16Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.01.0
Target version: 4.03.0+dev / +beta1
Category: tools (ocaml{lex,yacc,dep,debug,...})
Bug description
Whenever using the "list" command of ocamldebug, the displayed file is always the one from the top of the current stack, regardless of the currently selected frame, while the line number is conversely the one of the current frame.
This can lead to a crash of the debugger whenever the mistakenly chosen file has less lines than the current line of the topmost frame.
Steps to reproduce
Run a program in the debugger and stop somewhere.
fr
up
list
The displayed file is the one of the first frame, not the one from the "up" command.
File attachments
The text was updated successfully, but these errors were encountered: