This is the mail archive of the
mailing list for the Cygwin project.
Re: Rebase 1.5-1: Causes invalid page fault
On Tue, Jun 18, 2002 at 08:35:47AM -0700, Nicholas Wourms wrote:
> > Use gdb by setting a breakpoint ("b" command) at the call to
> > ReBaseImage() and then printing ("p" command) out the arguments. Do
> > they look valid?
> Hmm gdb wouldn't let me set a breakpoint on ReBaseImage (it says the
> symbol can't be found), so I just set it to line 58.
You *did* as I suggested -- sorry, if I was unclear.
> When I step through
> the execution, I discover that the pathname argument prints out to:
pathname is null terminated -- this is good. Is it null terminated for
> Is all that extra junk supposed to be tacked on?
pathname is defined as:
char pathname[MAX_PATH + 1];
So, the "junk" is just the tail end of the character array.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html