Re: [sqlite] Help with sqlite3OsRead - porting to a new OS

2011-10-25 Thread David Garfield
Also, if this is debugger output (as it appears), it could be that an optimizer is confusing the parameters. I see that all the time on GCC i386 when I set a breakpoint at the start of a function. --David David Garfield writes: > Sounds like it could be a difference in calling convention...

Re: [sqlite] Help with sqlite3OsRead - porting to a new OS

2011-10-25 Thread David Garfield
Sounds like it could be a difference in calling convention... Check compile options and function declaration modifiers. --David Stuart Thomson writes: > Hi, > > I'm in the middle of porting sqlite3 to a new Operating System and have come > across a problem with the sqlite3OsRead function in

[sqlite] Help with sqlite3OsRead - porting to a new OS

2011-10-25 Thread Stuart Thomson
Hi, I'm in the middle of porting sqlite3 to a new Operating System and have come across a problem with the sqlite3OsRead function in the sqlite3PagerReadFileheader function body. Before the sqlite3OsRead function is called, the parameters are correctly populated for example: pPager->fd