From c49e35772bcaa8ffe2e2e9f35329fb7ded949f98 Mon Sep 17 00:00:00 2001 From: Dave Anderson Date: Thu, 23 Feb 2017 16:02:57 -0500 Subject: [PATCH] Update to latest upstream release --- .gitignore | 1 + crash.spec | 11 ++-- ..._ps_get_thread_area_workaround.patch_7_1_8 | 61 +++++++++++++++++++ sources | 2 +- 4 files changed, 70 insertions(+), 5 deletions(-) create mode 100644 glibc_ps_get_thread_area_workaround.patch_7_1_8 diff --git a/.gitignore b/.gitignore index 59a585b..aaa255b 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ crash-5.0.6.tar.gz /crash-7.1.5.tar.gz /crash-7.1.6.tar.gz /crash-7.1.7.tar.gz +/crash-7.1.8.tar.gz diff --git a/crash.spec b/crash.spec index 58c36b2..27f5eb0 100644 --- a/crash.spec +++ b/crash.spec @@ -3,8 +3,8 @@ # Summary: Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles Name: crash -Version: 7.1.7 -Release: 3%{?dist} +Version: 7.1.8 +Release: 1%{?dist} License: GPLv3 Group: Development/Debuggers Source: http://people.redhat.com/anderson/crash-%{version}.tar.gz @@ -18,7 +18,7 @@ Provides: bundled(libiberty) Provides: bundled(gdb) = 7.6 Patch0: lzo_snappy.patch Patch1: use_system_readline_v3.patch -Patch2: glibc_ps_get_thread_area_workaround.patch +Patch2: glibc_ps_get_thread_area_workaround.patch_7_1_8 %description The core analysis suite is a self-contained tool that can be used to @@ -41,7 +41,7 @@ offered by Mission Critical Linux, or the LKCD kernel patch. %setup -n %{name}-%{version} -q %patch0 -p1 -b lzo_snappy.patch %patch1 -p1 -b use_system_readline_v3.patch -%patch2 -p1 -b glibc_ps_get_thread_area_workaround.patch +%patch2 -p1 -b glibc_ps_get_thread_area_workaround.patch_7_1_8 %build make RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}" @@ -70,6 +70,9 @@ rm -rf %{buildroot} %{_includedir}/* %changelog +* Thu Feb 23 2017 Dave Anderson - 7.1.8-1 +- Update to latest upstream release + * Fri Feb 10 2017 Fedora Release Engineering - 7.1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/glibc_ps_get_thread_area_workaround.patch_7_1_8 b/glibc_ps_get_thread_area_workaround.patch_7_1_8 new file mode 100644 index 0000000..188eda4 --- /dev/null +++ b/glibc_ps_get_thread_area_workaround.patch_7_1_8 @@ -0,0 +1,61 @@ +--- crash-7.1.8/gdb-7.6.patch.orig ++++ crash-7.1.8/gdb-7.6.patch +@@ -2323,3 +2323,58 @@ diff -up gdb-7.6/opcodes/configure.orig + NO_WERROR="-Wno-error" + fi + ++--- gdb-7.6/gdb/gdb_proc_service.h.orig +++++ gdb-7.6/gdb/gdb_proc_service.h ++@@ -115,7 +115,7 @@ extern pid_t ps_getpid (struct ps_procha ++ /* Fetch the special per-thread address associated with the given LWP. ++ This call is only used on a few platforms (most use a normal register). ++ The meaning of the `int' parameter is machine-dependent. */ ++-extern ps_err_e ps_get_thread_area (const struct ps_prochandle *, +++extern ps_err_e ps_get_thread_area (struct ps_prochandle *, ++ lwpid_t, int, psaddr_t *); ++ ++ ++--- gdb-7.6/gdb/amd64-linux-nat.c.orig +++++ gdb-7.6/gdb/amd64-linux-nat.c ++@@ -493,7 +493,7 @@ amd64_linux_new_fork (struct lwp_info *p ++ a request for a thread's local storage address. */ ++ ++ ps_err_e ++-ps_get_thread_area (const struct ps_prochandle *ph, +++ps_get_thread_area (struct ps_prochandle *ph, ++ lwpid_t lwpid, int idx, void **base) ++ { ++ if (gdbarch_bfd_arch_info (target_gdbarch ())->bits_per_word == 32) ++--- gdb-7.6/gdb/aarch64-linux-nat.c.orig +++++ gdb-7.6/gdb/aarch64-linux-nat.c ++@@ -750,7 +750,7 @@ aarch64_linux_new_fork (struct lwp_info ++ storage (or its descriptor). */ ++ ++ ps_err_e ++-ps_get_thread_area (const struct ps_prochandle *ph, +++ps_get_thread_area (struct ps_prochandle *ph, ++ lwpid_t lwpid, int idx, void **base) ++ { ++ struct iovec iovec; ++--- gdb-7.6/gdb/arm-linux-nat.c.orig +++++ gdb-7.6/gdb/arm-linux-nat.c ++@@ -613,7 +613,7 @@ supply_fpregset (struct regcache *regcac ++ /* Fetch the thread-local storage pointer for libthread_db. */ ++ ++ ps_err_e ++-ps_get_thread_area (const struct ps_prochandle *ph, +++ps_get_thread_area (struct ps_prochandle *ph, ++ lwpid_t lwpid, int idx, void **base) ++ { ++ if (ptrace (PTRACE_GET_THREAD_AREA, lwpid, NULL, base) != 0) ++--- gdb-7.6/gdb/i386-linux-nat.c.orig +++++ gdb-7.6/gdb/i386-linux-nat.c ++@@ -849,7 +849,7 @@ i386_linux_new_fork (struct lwp_info *pa ++ storage (or its descriptor). */ ++ ++ ps_err_e ++-ps_get_thread_area (const struct ps_prochandle *ph, +++ps_get_thread_area (struct ps_prochandle *ph, ++ lwpid_t lwpid, int idx, void **base) ++ { ++ /* NOTE: cagney/2003-08-26: The definition of this buffer is found diff --git a/sources b/sources index c1a5c63..9833e51 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -08990e1d242faaaa11e7fbb6386f28e2 crash-7.1.7.tar.gz +SHA512 (crash-7.1.8.tar.gz) = 21aa71b61077f7f361360f19214d8259a4e813ca5c3a5fb027f32376a7367e7eb16cf2f8a0a4b49b205c5e8550192c49fc64812afd1ccaceacf8d7649ba20bf1