[Crash-utility] [PATCH] Fix junk values when run crash on a .gz file
aruna
arunabal at linux.vnet.ibm.com
Tue Dec 20 04:42:56 UTC 2011
>
> Actually I did it that way on purpose, so that the "gzip -n" vmlinux file
> would be accepted on face value -- but with the warning. The user is not
> doing anything wrong that should force them to have to re-enter the command.
>
> This is what I have queued:
>
> if ((header[0] == 0x1f) && (header[1] == 0x8b) && (header[2] == 8)) {
> if (!(header[3] & FNAME)) {
> if (!(st->flags & FORCE_DEBUGINFO)) {
> error(INFO, "%s: "
> "original filename unknown\n",
> file);
> error(CONT,
> "Use \"-f %s\" on command line to prevent this message.\n\n",
> file);
> }
> } else if (!STRNEQ((char *)&header[10], "vmlinux") &&
> !(st->flags & FORCE_DEBUGINFO)) {
> error(INFO, "%s: compressed file name does not "
> "start with \"vmlinux\"\n", &header[10]);
> error(CONT,
> "Use \"-f %s\" on command line to override.\n\n",
> file);
> return FALSE;
> }
> type = GZIP;
> }
>
> Dave
>
>
Got it. Thanks.
Regards,
Aruna
More information about the Crash-utility
mailing list