I have attached an strace for 4.6.3 (same behaviour as 4.7.2), but I won't be able to do the one for 4.7/4.4/4.5 before tomorrow.
I did a quick test with gcc 4.5 yesterday, and it did behave slightly different, but was still not very stable for the 1284P: It got to the point where it started the GDB server, and was able to start a debug session; but crashed when running the program. The second time I was able to do some stepping, breaking and all seemed to work. The three next tries it did not work again. It might be relevant to look at what new optimizations where introduced in gcc between 4.4 and 4.5 as Joakim reports that 4.4 works. On Thu, Jan 10, 2013 at 10:55 PM, Joerg Wunsch <[email protected]> wrote: > As Andreas Løhre wrote: > > > The full output is: > > An interesting list, thanks! > > > [jtag2rw.cc:180]: (error) Memory leak: response > > [jtag3rw.cc:182]: (error) Memory leak: response > > Both these are actually the same (with the jtag3 code being cloned > from the jtag2 implementation). All this looks confusing, and I have > to think about it again (there's a usage of "resp" versus "response" > inside these functions). > > > [jtag2usb.cc:422]: (error) Mismatching allocation and deallocation: > > devnamecopy > > Created as an array, but deleted as a non-array. Fixed. > > > [jtag2usb.cc:302]: (error) Memory leak: devnamecopy > > Yes, in cas of an error; fixed. > > > [jtag3io.cc:495]: (error) Array 'cmd[4]' accessed at index 4, which is > out > > of bounds > > As you've guessed, 0, 1, 2, 3 is the correct sequence. Besides > accessing the array out of bounds, the bug lead to the request for > applying an external reset (throgh nSRST) not being obeyed at all. > Fixed. > > I'm afraid the next step would be to strace both invocations, and see > what is done differently in the version as compiled by GCC 4.7. > -- > cheers, J"org .-.-. --... ...-- -.. . DL8DTL > > http://www.sax.de/~joerg/ NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122712 > _______________________________________________ > avarice-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/avarice-user > -- Mvh. Andreas Løhre
avarice_strace_gdb4.7.2
Description: Binary data
------------------------------------------------------------------------------ Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. Get web development skills now with LearnDevNow - 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122812
_______________________________________________ avarice-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/avarice-user
