Support aarch64, fix e_machine initialization on multi-threaded attach
This commit is contained in:
parent
c1bce5fd6b
commit
735db88722
20
ltrace-0.7.2-e_machine.patch
Normal file
20
ltrace-0.7.2-e_machine.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff -up ltrace-0.7.2/proc.c\~ ltrace-0.7.2/proc.c
|
||||
--- ltrace-0.7.2/proc.c~ 2014-02-13 12:16:33.000000000 +0100
|
||||
+++ ltrace-0.7.2/proc.c 2014-02-13 15:44:25.000000000 +0100
|
||||
@@ -194,9 +197,11 @@ process_init(struct process *proc, const
|
||||
goto fail;
|
||||
}
|
||||
|
||||
- if (proc->leader != proc)
|
||||
- return 0;
|
||||
- if (process_init_main(proc) < 0) {
|
||||
+ if (proc->leader != proc) {
|
||||
+ proc->e_machine = proc->leader->e_machine;
|
||||
+ proc->e_class = proc->leader->e_class;
|
||||
+ get_arch_dep(proc);
|
||||
+ } else if (process_init_main(proc) < 0) {
|
||||
process_bare_destroy(proc, 0);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
Diff finished. Thu Feb 13 15:50:21 2014
|
||||
2416
ltrace-0.7.91-aarch64.patch
Normal file
2416
ltrace-0.7.91-aarch64.patch
Normal file
File diff suppressed because it is too large
Load Diff
17
ltrace.spec
17
ltrace.spec
@ -1,7 +1,7 @@
|
||||
Summary: Tracks runtime library calls from dynamically linked executables
|
||||
Name: ltrace
|
||||
Version: 0.7.91
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
URL: http://ltrace.alioth.debian.org/
|
||||
License: GPLv2+
|
||||
Group: Development/Debuggers
|
||||
@ -46,6 +46,12 @@ Patch8: ltrace-0.7.91-man.patch
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1044766
|
||||
Patch9: ltrace-0.7.91-cant_open.patch
|
||||
|
||||
# Support Aarch64 architecture.
|
||||
Patch10: ltrace-0.7.91-aarch64.patch
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1064406
|
||||
Patch11: ltrace-0.7.2-e_machine.patch
|
||||
|
||||
%description
|
||||
Ltrace is a debugging program which runs a specified command until the
|
||||
command exits. While the command is executing, ltrace intercepts and
|
||||
@ -68,6 +74,8 @@ execution of processes.
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
%patch11 -p1
|
||||
|
||||
%build
|
||||
%configure --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}}
|
||||
@ -92,6 +100,13 @@ echo ====================TESTING END=====================
|
||||
%{_datadir}/ltrace
|
||||
|
||||
%changelog
|
||||
* Thu Feb 13 2014 Petr Machata <pmachata@redhat.com> - 0.7.91-7
|
||||
- Add an upstream patch that fixes missed initialization of some
|
||||
fields in struct process after atteching to a multi-threaded
|
||||
process. (ltrace-0.7.2-e_machine.patch)
|
||||
- Add upstream patch-set that implements support for the new aarch64
|
||||
architecture. (ltrace-0.7.91-aarch64.patch)
|
||||
|
||||
* Tue Jan 14 2014 Petr Machata <pmachata@redhat.com> - 0.7.91-6
|
||||
- Fix a problem when an invalid command has been found
|
||||
(ltrace-0.7.91-cant_open.patch)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user