cs01 / gdbgui

Browser-based frontend to gdb (gnu debugger). Add breakpoints, view the stack, visualize data structures, and more in C, C++, Go, Rust, and Fortran. Run gdbgui from the terminal and a new tab will open in your browser.
https://gdbgui.com
GNU General Public License v3.0
9.94k stars 499 forks source link

BinaryLoader.tsx:233 Uncaught TypeError: Cannot read properties of undefined (reading 'trim') #453

Open milahu opened 1 year ago

milahu commented 1 year ago

when the input is empty and i click the top-left blue button, the js console shows

error

BinaryLoader.tsx:233 Uncaught TypeError: Cannot read properties of undefined (reading 'trim')
    at t.set_target_app (BinaryLoader.tsx:233:44)
    at t.click_set_target_app (BinaryLoader.tsx:196:10)

source

https://github.com/cs01/gdbgui/blob/9138473156116340c2b1c0b72d35dba32b4a3bd6/gdbgui/src/js/BinaryLoader.tsx#L232-L241

fix

the condition should be

if (!this.state.user_input)

env