
12 Feb
2013
12 Feb
'13
6:02 p.m.
On Mon, Feb 11, 2013 at 01:43:32PM -0600, Scott Wood wrote:
On 02/07/2013 02:01:05 AM, TigerLiu@viatech.com.cn wrote:
Hi, experts: I have a JTAG debugger. Its manual suggested user should add "-gdwarf-2" option in the arm gcc compiler. Because it could produce debugging information.
But I searched the whole uboot source package, could not find "-gdwarf-2" option in config.mk or other files.
Why?
I think it's already the default with most toolchains. Do you see any difference in the output when supplying that flag?
Indeed. For most common values of gcc versions, using -g will pick the "best" choice for debug information and this will be DWARF2 information already. There is no need to specify -gdwarf-2 (or similar).
--
Tom