Opened 5 months ago

Last modified 2 months ago

#15159 new bug

Debugger does not understand symbols with -gcolumn-info

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

Description

From GCC 8 release notes [1]:

The -gcolumn-info option is now enabled by default. It includes column information in addition to just filenames and line numbers in DWARF debugging information.

This makes Debugger unusable because it can set breakpoint only on function start and end.

Workaround is to add -gno-column-info to compile flags.

We should evaluate if we want to add this to makefile_engine temporarily, until this is implemented.

[1] https://gcc.gnu.org/gcc-8/changes.html

Change History (3)

comment:1 by anevilyak, 5 months ago

For the time being that would probably be best. I had a quick look, and the actual problem is a bit more subtle and complicated: we are actually parsing and capturing the column info correctly ; however, this winds up breaking searching for functions/statements in various other places, as those were previously not taking columns into account. Consequently, when attempting to locate something by source location using only a line, the comparisons fail to find a correct match. I'll have to think about this one a bit, as handling it correctly would also allow for fixing a few long standing issues (i.e. setting breakpoints on multi-statement source lines like for loops).

comment:2 by waddlesplash, 3 months ago

Can we discard the column information in Debugger for now, and avoid turning it off in GCC? At some point I'll finish this GDB port, and that of course can use the info...

Note: See TracTickets for help on using tickets.