Skip to content
Commit a7a0d86f authored by Petr Vandrovec's avatar Petr Vandrovec Committed by Linus Torvalds
Browse files

[PATCH] Fix core files so they make sense to gdb...



It is silly to use non-static variable for writting zeroes to the file.

And more seriously, foffset in core dump file dump function was incremented
too much, so some parts of core dump were shifted by size of few phdrs and
notes down, so although gdb was able to load that file, it did not make lot
of sense - in my test case data pages were shifted down by about 900 bytes.

Signed-off-by: default avatarPetr Vandrovec <petr@vandrovec.name>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0b269d84
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment