[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avrdude-dev] avrdude r1160 Segmentation fault
From: |
Joerg Wunsch |
Subject: |
Re: [avrdude-dev] avrdude r1160 Segmentation fault |
Date: |
Mon, 6 May 2013 11:59:25 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
As Joerg Wunsch wrote:
> As Joerg Wunsch wrote:
>
> > The entire pgm structure appears to be garbled after some point:
>
> More datapoints: update.c obviously has a different idea about
> struct programmer_t than anyone else:
The confusion arose out of pindefs.h testing for HAVE_STDINT_H, and
then either using uint32_t or unsigned long for pinmask_t, depending
on whether <stdint.h> is supposed to be available or not.
Testing for one of the HAVE_* macros requires to include "ac_cfg.h"
before. Failure to do so resulted in a struct programmer_t with two
different definitions for the pinmask arrays. No deal for 32-bit
systems, but both arrays differed in size for 64-bit systems.
(Shouldn't the fallback type be "unsigned int" anyway, rather than
"unsigned long"?)
Yes, there should be a single, combined libavrdude.h file. ;-)
--
cheers, Joerg .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)
- [avrdude-dev] avrdude r1160 Segmentation fault, Enoch, 2013/05/04
- Re: [avrdude-dev] avrdude r1160 Segmentation fault, Enoch, 2013/05/04
- Re: [avrdude-dev] avrdude r1160 Segmentation fault, Joerg Wunsch, 2013/05/04
- Re: [avrdude-dev] avrdude r1160 Segmentation fault, Enoch, 2013/05/04
- Re: [avrdude-dev] avrdude r1160 Segmentation fault, Joerg Wunsch, 2013/05/05
- Re: [avrdude-dev] avrdude r1160 Segmentation fault, Joerg Wunsch, 2013/05/06
- Re: [avrdude-dev] avrdude r1160 Segmentation fault,
Joerg Wunsch <=
- Re: [avrdude-dev] avrdude r1160 Segmentation fault, René Liebscher, 2013/05/06
- Re: [avrdude-dev] avrdude r1160 Segmentation fault, Joerg Wunsch, 2013/05/06
- Re: [avrdude-dev] avrdude r1160 Segmentation fault, Hannes Weisbach, 2013/05/07
- Re: [avrdude-dev] avrdude r1160 Segmentation fault, Joerg Wunsch, 2013/05/07