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

OBS-URL: https://build.opensuse.org/request/show/34630
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdb?expand=0&rev=70
2010-03-12 00:40:02 +00:00

21 lines
767 B
Diff

Index: gdb-7.0.1/gdb/symfile.c
===================================================================
--- gdb-7.0.1.orig/gdb/symfile.c 2010-03-11 15:49:51.000000000 +0100
+++ gdb-7.0.1/gdb/symfile.c 2010-03-11 15:51:47.000000000 +0100
@@ -2308,9 +2308,12 @@ debug_print_missing (const char *binary,
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);
+ {
+ const char *p = strrchr (debug, '/');
+ fprintf_unfiltered (gdb_stdlog, _("Try: %s%.2s%.38s\"\n"),
+ "zypper install -C \"debuginfo(build-id)=",
+ p - 2, p + 1);
+ }
}
}