On Thu, May 29, 2014 at 3:35 AM, Sebastian Reitenbach < sebas...@l00-bugdead-prods.de> wrote:
> On Thursday, May 29, 2014 10:19 CEST, Matthieu Herrb <mhe...@gmail.com> > wrote: > ... > after setting a breakpoint on xf86CVTMode, I stepped through it, and > at the end, Mode was: > > (gdb) > 295 return Mode; > (gdb) print Mode > $3 = (DisplayModeRec *) 0x3bc16033800 > Full 64bit pointer there... NVPreInit (pScrn=0x3bc16035800, flags=0) at > /home/xenocara/driver/xf86-video-nv/src/nv_driver.c:1929 > 1929 Mode->type = M_T_DRIVER; > (gdb) print Mode > $5 = 0x16033800 > But just a 32bit value here. That's almost certainly a sign that nv_driver.c isn't pulling in the header where xf86CVTMode() is declared, resulting it being treated as returning an int. Perhaps compile with -Wmissing-prototypes to confirm and see whether there are other cases... Philip Guenther