gdb/gdb-6.6-buildid-locate-rpm-suse.patch
OBS User autobuild d30d33dd0d Accepting request 38053 from devel:gcc
Copy from devel:gcc/gdb based on submit request 38053 from user rguenther

OBS-URL: https://build.opensuse.org/request/show/38053
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdb?expand=0&rev=72
2010-04-16 16:29:50 +00:00

29 lines
948 B
Diff

Index: gdb-7.1/gdb/elfread.c
===================================================================
*** gdb-7.1.orig/gdb/elfread.c 2010-04-15 14:46:14.000000000 +0200
--- gdb-7.1/gdb/elfread.c 2010-04-15 14:50:17.000000000 +0200
*************** debug_print_missing (const char *binary,
*** 1625,1633 ****
fprintf_unfiltered (gdb_stdlog,
_("Missing separate debuginfo for %s\n"), binary);
if (debug != NULL)
! fprintf_unfiltered (gdb_stdlog, _("Try: %s %s\n"),
! "yum --disablerepo='*' --enablerepo='*-debuginfo'"
! " install", debug);
}
}
--- 1625,1636 ----
fprintf_unfiltered (gdb_stdlog,
_("Missing separate debuginfo for %s\n"), binary);
if (debug != NULL)
! {
! const char *p = strrchr (debug, '/');
! fprintf_unfiltered (gdb_stdlog, _("Try: %s%.2s%.38s\"\n"),
! "zypper install -C \"debuginfo(build-id)=",
! p - 2, p + 1);
! }
}
}