Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dmair:branches:Kernel:kdump:crash-l3mule-202308
crash
crash-explore-symtab-bug.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File crash-explore-symtab-bug.patch of Package crash
Index: b/symbols.c =================================================================== --- a/symbols.c +++ b/symbols.c @@ -204,12 +204,22 @@ symtab_init(void) * Pull a bait-and-switch on st->bfd if we've got a separate * .gnu_debuglink file that matches the CRC. Not done for kerntypes. */ + /* Version from patch: crash-debuginfo-compressed.patch + */ if (!(LKCD_KERNTYPES())) { if (!check_gnu_debuglink(st->bfd) && !(bfd_get_file_flags(st->bfd) & HAS_SYMS)) no_debugging_data(FATAL); } - + + /* Version from before patch: crash-debuginfo-compressed.patch + if (!(LKCD_KERNTYPES()) && + !(bfd_get_file_flags(st->bfd) & HAS_SYMS)) { + if (!check_gnu_debuglink(st->bfd)) + no_debugging_data(FATAL); + } + */ + /* * Gather references to the kernel sections. */ Index: b/kernel.c =================================================================== --- a/kernel.c +++ b/kernel.c @@ -1065,8 +1065,11 @@ verify_version(void) BZERO(buf, BUFSIZE); + /* Old model + */ if (!(sp = symbol_search("linux_banner"))) error(FATAL, "linux_banner symbol does not exist?\n"); + /* else if ((sp->type == 'R') || (sp->type == 'r') || (THIS_KERNEL_VERSION >= LINUX(2,6,11) && (sp->type == 'D' || sp->type == 'd')) || (machine_type("ARM") && sp->type == 'T') || @@ -1074,6 +1077,23 @@ verify_version(void) linux_banner = symbol_value("linux_banner"); else get_symbol_data("linux_banner", sizeof(ulong), &linux_banner); + */ + + /* Model from Kazu, upstream + */ + switch (get_symbol_type("linux_banner", NULL, NULL)) + { + case TYPE_CODE_ARRAY: + linux_banner = sp->value; + break; + case TYPE_CODE_PTR: + get_symbol_data("linux_banner", sizeof(ulong), &linux_banner); + break; + default: + error(WARNING, "linux_banner is unknown type\n"); + linux_banner = 0; + break; + } if (!IS_KVADDR(linux_banner)) error(WARNING, "invalid linux_banner pointer: %lx\n",
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor