Bug 4818 - Debug Window should show source code when at all possible
Summary: Debug Window should show source code when at all possible
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Rick Moseley
Depends on:
Blocks: 1633
  Show dependency treegraph
Reported: 2007-07-20 16:19 UTC by Rick Moseley
Modified: 2007-07-20 18:17 UTC (History)
0 users

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Rick Moseley 2007-07-20 16:19:09 UTC
There are currently circumstances when the debug window does not show the source
code even when it is available.  This usually stems from when the parser cannot
properly parse the code or mis-parses the code.  Also, in the case of bash there
is a parse.y file that does not show since the parser does not comprehend .y
files.  This source code is available but the debug window will not show it. 

Another circumstance is that the "main" function in the shell.c code for bash is
not found by the parser since it has "ifdef" statements around it.  In that case
a "main" function is not found and not placed in the "DOM".  This will cause the
debug window to show the disassembled code rather than the source code.

The window should show the source code if at all possible, even if the parser is
unable to handle it properly.
Comment 1 Rick Moseley 2007-07-20 18:17:33 UTC
Fixed.  The debug window now shows source no matter if the parser can properly
handle it or not.  I added a message to the end of the title("**** Parser could
not find function ****") if the parser could not find the proper or handle the
parsing properly.