This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Scenario: - I downloaded Far from http://www.farmanager.com/opensource.php?l=en - I built it with -g option in MinGW - I Loaded it into debugger ('Step Into') ==> ok - I Opened Disassembly window ==> Window is empty CPU Usage - 100% gdb-cmds42946.log - ~10Mb
Created attachment 72834 [details] stack
I changed makefile_gcc file, and with new options this problem disappeared. Therefore It is not showstopper. I changed: ---------------------------------------------------------------- CXX = g++ -g CC = gcc -g .... CCFLAGS = -Os $(DEFINES) -funsigned-char -fomit-frame-pointer -fno-exceptions -fno-rtti -Wno-deprecated CFLAGS = -Os $(DEFINES) -funsigned-char -fomit-frame-pointer -fno-exceptions ---------------------------------------------------------------- On: ---------------------------------------------------------------- CXX = g++ -g CC = gcc -g .... CFLAGS = -g CCFLAGS = -g ----------------------------------------------------------------
For some reason cygwin gdb returns 10m of disassembler to the IDE, we should consider setting a limit
In this case, when we have optimized binary gdb generates disassembly ~20 seconds and we're unable to set a limit for it. As a minimum we should show "gathering disassembly..." notice and do not block UI thread for sure.
After discussion with Egor (gorrus) the possible fix was considered as too risky to be included into patch. Assuming that there is a workaround this issue is not a patch2 candidate any more.
AWT thread is not blocked, so the main problem is that user observes empty disassembly. Also gdb response parser thread is blocked, so all further gdb commands get blocked.
IMO we should inform a user about a time consuming operation. It could be a message "Disassembling in progress. Please wait..." appearing on the Disassembler editor window. At we same time it would be useful to disable all buttons on 'Debugger' toolbar except 'Finish' as they do not work until disassembling is completed.
Egor, please finally waive it, or downgrade it, or workaround it, or simply fix it. It has been around way too long.
show progress window with cancel button when disassembly is updated: http://hg.netbeans.org/cnd-main/rev/7e123bb1e475 still no user notification when gdb is working on dis response
progress fix: http://hg.netbeans.org/cnd-main/rev/ae9270e0a033 now users are able to cancel disassembly gathering
if we change disassembly to simple mode (without source files info) everything works fine, so it looks like gdb bug. We may consider having this option in debugger options.
works fine with gdb 7.0 and progress fix from 2009-04-13