Re: [U-Boot] [U-boot]-gdwarf option
On Mon, Feb 11, 2013 at 01:43:32PM -0600, Scott Wood wrote: On 02/07/2013 02:01:05 AM, tiger...@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 signature.asc Description: Digital signature ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [U-boot]-gdwarf option
On 02/07/2013 02:01:05 AM, tiger...@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? -Scott ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] [U-boot]-gdwarf option
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? Best wishes, ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [U-boot]-gdwarf option
Dear tiger...@viatech.com.cn, In message fe7aded5c2218b4786c09cd97dc4c49f74c...@exchbj02.viatech.com.bj you wrote: I have a JTAG debugger. Congrats. Its manual suggested user should add -gdwarf-2 option in the arm gcc compiler. Because it could produce debugging information. Ah, so it is not a BDI3000... Well, good luck. But I searched the whole uboot source package, could not find -gdwarf-2 option in config.mk or other files. Why? Because what may be needed ith your tools (and tool chain?) may not be needed for everybody else? Feel free to supply your own debug flags on the command line, i. e. try something as make DBGFLAGS=-gdwarf-2 Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de The universe is all a spin-off of the Big Bang. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot