101-no-fts.patch 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. --- a/libdwfl/argp-std.c
  2. +++ b/libdwfl/argp-std.c
  3. @@ -56,9 +56,6 @@ static const struct argp_option options[
  4. { "linux-process-map", 'M', "FILE", 0,
  5. N_("Find addresses in files mapped as read from FILE"
  6. " in Linux /proc/PID/maps format"), 0 },
  7. - { "kernel", 'k', NULL, 0, N_("Find addresses in the running kernel"), 0 },
  8. - { "offline-kernel", 'K', "RELEASE", OPTION_ARG_OPTIONAL,
  9. - N_("Kernel with all modules"), 0 },
  10. { "debuginfo-path", OPT_DEBUGINFO, "PATH", 0,
  11. N_("Search path for separate debuginfo files"), 0 },
  12. { NULL, 0, NULL, 0, NULL, 0 }
  13. @@ -85,15 +82,6 @@ static const Dwfl_Callbacks proc_callbac
  14. .find_elf = INTUSE(dwfl_linux_proc_find_elf),
  15. };
  16. -static const Dwfl_Callbacks kernel_callbacks =
  17. - {
  18. - .find_debuginfo = INTUSE(dwfl_standard_find_debuginfo),
  19. - .debuginfo_path = &debuginfo_path,
  20. -
  21. - .find_elf = INTUSE(dwfl_linux_kernel_find_elf),
  22. - .section_address = INTUSE(dwfl_linux_kernel_module_section_address),
  23. - };
  24. -
  25. /* Structure held at state->HOOK. */
  26. struct parse_opt
  27. {
  28. @@ -226,43 +214,6 @@ parse_opt (int key, char *arg, struct ar
  29. }
  30. break;
  31. - case 'k':
  32. - {
  33. - struct parse_opt *opt = state->hook;
  34. - if (opt->dwfl == NULL)
  35. - {
  36. - Dwfl *dwfl = INTUSE(dwfl_begin) (&kernel_callbacks);
  37. - int result = INTUSE(dwfl_linux_kernel_report_kernel) (dwfl);
  38. - if (result != 0)
  39. - return fail (dwfl, result, _("cannot load kernel symbols"), state);
  40. - result = INTUSE(dwfl_linux_kernel_report_modules) (dwfl);
  41. - if (result != 0)
  42. - /* Non-fatal to have no modules since we do have the kernel. */
  43. - argp_failure (state, 0, result, _("cannot find kernel modules"));
  44. - opt->dwfl = dwfl;
  45. - }
  46. - else
  47. - goto toomany;
  48. - }
  49. - break;
  50. -
  51. - case 'K':
  52. - {
  53. - struct parse_opt *opt = state->hook;
  54. - if (opt->dwfl == NULL)
  55. - {
  56. - Dwfl *dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
  57. - int result = INTUSE(dwfl_linux_kernel_report_offline) (dwfl, arg,
  58. - NULL);
  59. - if (result != 0)
  60. - return fail (dwfl, result, _("cannot find kernel or modules"), state);
  61. - opt->dwfl = dwfl;
  62. - }
  63. - else
  64. - goto toomany;
  65. - }
  66. - break;
  67. -
  68. case ARGP_KEY_SUCCESS:
  69. {
  70. struct parse_opt *opt = state->hook;
  71. --- a/libdwfl/Makefile.am
  72. +++ b/libdwfl/Makefile.am
  73. @@ -49,7 +49,7 @@ libdwfl_a_SOURCES = dwfl_begin.c dwfl_en
  74. argp-std.c find-debuginfo.c \
  75. dwfl_build_id_find_elf.c \
  76. dwfl_build_id_find_debuginfo.c \
  77. - linux-kernel-modules.c linux-proc-maps.c \
  78. + linux-proc-maps.c \
  79. dwfl_addrmodule.c dwfl_addrdwarf.c \
  80. cu.c dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
  81. dwfl_module_addrdie.c dwfl_addrdie.c \