* reverse debugging on aarch64 * new commands or subcommands: - info os cpu, set/show serial parity, info dll - maint print symbol-cache/symbol-cache-statistics, maint flush-symbol-cache - record btrace bts, record bts - compile print - show/set mpx bound - tui enable/disable - record btrace pt, record pt - maint info btrace, maint btrace packet-history/clear-packet-history/clear * s390 support for vector ABI * "set sysroot" improvements related to remote targets * better support for debugging containerized programs (without "set sysroot") * HISTSIZE environment variable is replaced by GDBHISTSIZE * python scripting: - it's possible to write frame unwinders - several new methods in Objfile, Type and Value classes - gdb can auto-load scripts contained in special sections named '.debug_gdb_scripts'. * extensions for the MI interface, new remote packet types - Removed obsolete patches: 0001-S390-Add-target-descriptions-for-vector-register-set.patch 0001-S390-Fix-compiler-invocation-with-compile-command.patch 0001-S390-Support-new-vector-register-sections.patch 0002-S390-Add-vector-register-support-to-gdb.patch 0003-S390-Add-vector-register-support-to-gdbserver.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=128
113 lines
3.8 KiB
Diff
113 lines
3.8 KiB
Diff
Index: gdb-7.10.1/gdb/build-id.c
|
|
===================================================================
|
|
--- gdb-7.10.1.orig/gdb/build-id.c 2016-01-14 16:19:02.000000000 +0100
|
|
+++ gdb-7.10.1/gdb/build-id.c 2016-01-14 16:21:43.000000000 +0100
|
|
@@ -830,9 +830,9 @@ missing_rpm_enlist (const char *filename
|
|
if (h == NULL)
|
|
break;
|
|
|
|
- /* Verify the debuginfo file is not already installed. */
|
|
-
|
|
- debuginfo = headerFormat_p (h, "%{sourcerpm}-debuginfo.%{arch}",
|
|
+ /* The allocated memory gets utilized below for MISSING_RPM_HASH. */
|
|
+ debuginfo = headerFormat_p (h,
|
|
+ "%{name}-debuginfo-%{version}-%{release}.%{arch}",
|
|
&err);
|
|
if (!debuginfo)
|
|
{
|
|
@@ -840,60 +840,19 @@ missing_rpm_enlist (const char *filename
|
|
err);
|
|
continue;
|
|
}
|
|
- /* s = `.src.rpm-debuginfo.%{arch}' */
|
|
- s = strrchr (debuginfo, '-') - srcrpmlen;
|
|
- s2 = NULL;
|
|
- if (s > debuginfo && memcmp (s, ".src.rpm", srcrpmlen) == 0)
|
|
- {
|
|
- /* s2 = `-%{release}.src.rpm-debuginfo.%{arch}' */
|
|
- s2 = memrchr (debuginfo, '-', s - debuginfo);
|
|
- }
|
|
- if (s2)
|
|
- {
|
|
- /* s2 = `-%{version}-%{release}.src.rpm-debuginfo.%{arch}' */
|
|
- s2 = memrchr (debuginfo, '-', s2 - debuginfo);
|
|
- }
|
|
- if (!s2)
|
|
- {
|
|
- warning (_("Error querying the rpm file `%s': %s"), filename,
|
|
- debuginfo);
|
|
- xfree (debuginfo);
|
|
- continue;
|
|
- }
|
|
- /* s = `.src.rpm-debuginfo.%{arch}' */
|
|
- /* s2 = `-%{version}-%{release}.src.rpm-debuginfo.%{arch}' */
|
|
- memmove (s2 + debuginfolen, s2, s - s2);
|
|
- memcpy (s2, "-debuginfo", debuginfolen);
|
|
- /* s = `XXXX.%{arch}' */
|
|
- /* strlen ("XXXX") == srcrpmlen + debuginfolen */
|
|
- /* s2 = `-debuginfo-%{version}-%{release}XX.%{arch}' */
|
|
- /* strlen ("XX") == srcrpmlen */
|
|
- memmove (s + debuginfolen, s + srcrpmlen + debuginfolen,
|
|
- strlen (s + srcrpmlen + debuginfolen) + 1);
|
|
- /* s = `-debuginfo-%{version}-%{release}.%{arch}' */
|
|
|
|
+ /* Verify the debuginfo file is not already installed. */
|
|
/* RPMDBI_PACKAGES requires keylen == sizeof (int). */
|
|
/* RPMDBI_LABEL is an interface for NVR-based dbiFindByLabel(). */
|
|
mi_debuginfo = rpmtsInitIterator_p (ts, RPMDBI_LABEL, debuginfo, 0);
|
|
- xfree (debuginfo);
|
|
if (mi_debuginfo)
|
|
{
|
|
+ xfree (debuginfo);
|
|
rpmdbFreeIterator_p (mi_debuginfo);
|
|
count = 0;
|
|
break;
|
|
}
|
|
|
|
- /* The allocated memory gets utilized below for MISSING_RPM_HASH. */
|
|
- debuginfo = headerFormat_p (h,
|
|
- "%{name}-%{version}-%{release}.%{arch}",
|
|
- &err);
|
|
- if (!debuginfo)
|
|
- {
|
|
- warning (_("Error querying the rpm file `%s': %s"), filename,
|
|
- err);
|
|
- continue;
|
|
- }
|
|
-
|
|
/* Base package name for `debuginfo-install'. We do not use the
|
|
`yum' command directly as the line
|
|
yum --enablerepo='*debug*' install NAME-debuginfo.ARCH
|
|
@@ -978,10 +937,7 @@ missing_rpm_list_print (void)
|
|
(int (*) (const void *, const void *)) missing_rpm_list_compar);
|
|
|
|
printf_unfiltered (_("Missing separate debuginfos, use: %s"),
|
|
-#ifdef DNF_DEBUGINFO_INSTALL
|
|
- "dnf "
|
|
-#endif
|
|
- "debuginfo-install");
|
|
+ "zypper install");
|
|
for (array_iter = array; array_iter < array + missing_rpm_list_entries;
|
|
array_iter++)
|
|
{
|
|
@@ -1194,13 +1150,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"),
|
|
-#ifdef DNF_DEBUGINFO_INSTALL
|
|
- "dnf"
|
|
-#else
|
|
- "yum"
|
|
-#endif
|
|
- " --enablerepo='*debug*' 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);
|
|
+ }
|
|
}
|
|
}
|
|
|