From: SourceForge.net <no...@so...> - 2010-01-13 00:58:59
|
Bugs item #1854716, was opened at 2007-12-20 02:05 Message generated for change (Comment added) made by arcanum You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1854716&group_id=68108 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Binutils Group: None >Status: Closed >Resolution: Wont Fix Priority: 5 Private: No Submitted By: Colin Wall (colin_uu) Assigned to: Nobody/Anonymous (nobody) Summary: avr-objdump.exe -S switch not working Initial Comment: WinAVR release 20071221rc1. avr-objdump appears to not honour the -S switch for interleaving source code with the machine code in the list file. ---------------------------------------------------------------------- Comment By: Eric Weddington (arcanum) Date: 2010-01-12 17:41 Message: This needs to be reported to the GNU Binutils project at: http://sourceware.org/bugzilla/ This is not a WinAVR bug. The WinAVR User Manual states that any potential bugs in GNU Binutils must be reported to the GNU Binutils project and not here. Closed as "Won't Fix." ---------------------------------------------------------------------- Comment By: Martin Thomas (eversmith) Date: 2008-02-07 09:59 Message: Logged In: YES user_id=1598357 Originator: NO This patch should fix the issue: diff -Nbaur binutils-2.18.50/binutils/objdump.c binutils-2.18.50-mod/binutils/objdump.c --- binutils-2.18.50/binutils/objdump.c Thu Feb 7 16:04:47 2008 +++ binutils-2.18.50-mod/binutils/objdump.c Thu Feb 7 16:02:11 2008 @@ -964,7 +964,12 @@ #endif const char *map; struct stat st; + +#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN32__ + int fd = open (fn, O_RDONLY | O_BINARY); +#else int fd = open (fn, O_RDONLY); +#endif if (fd < 0) return NULL; ---------------------------------------------------------------------- Comment By: Marshall Jose (josemj1) Date: 2008-01-18 13:59 Message: Logged In: YES user_id=931728 Originator: NO WORKAROUND: Problem occurs for source text with DOS (CRLF) line endings, but goes away if files are converted to Unix (LF) line endings! It seems that AVR Studio honors each opened file's EOL convention, so it should be sufficient to run dos2unix once on the source files. ---------------------------------------------------------------------- Comment By: Marshall Jose (josemj1) Date: 2008-01-18 13:32 Message: Logged In: YES user_id=931728 Originator: NO Interestingly, avr-objdump will show you the correct filename and line number if you give it the -l option. So it seems to know where the correct source file is and the correct line number, but just won't get it and include it in the output. ---------------------------------------------------------------------- Comment By: Frank Haselmaier (fhbp) Date: 2007-12-29 10:14 Message: Logged In: YES user_id=1929722 Originator: NO Have the same Problem witch this new release. Old Version of avr-objdump (GNU objdump 2.16.1 + coff-avr-patch (20050630)) is working fine. Is this a special problem if the WINAVR build ? ---------------------------------------------------------------------- Comment By: Eric Weddington (arcanum) Date: 2007-12-20 09:01 Message: Logged In: YES user_id=543419 Originator: NO Note: this is for binutils 2.18. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520074&aid=1854716&group_id=68108 |