Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
ltrace
ltrace.trunk-r66.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ltrace.trunk-r66.patch of Package ltrace
------------------------------------------------------------------------ r66 | ianw-guest | 2006-09-14 23:57:49 +0000 (Thu, 14 Sep 2006) | 3 lines Changed paths: M /ltrace/trunk/ChangeLog M /ltrace/trunk/Makefile.in M /ltrace/trunk/elf.c M /ltrace/trunk/summary.c M /ltrace/trunk/sysdeps/linux-gnu/ia64/regs.c M /ltrace/trunk/sysdeps/linux-gnu/ppc/plt.c Apply range of updates from Olaf Hering, see ChangeLog ------------------------------------------------------------------------ Index: Makefile.in =================================================================== --- Makefile.in (revision 65) +++ Makefile.in (revision 66) @@ -20,10 +20,10 @@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ INSTALL = @INSTALL@ -INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 -INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 -INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 -INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 +INSTALL_FILE = $(INSTALL) -p -m 644 +INSTALL_PROGRAM = $(INSTALL) -p -m 755 +INSTALL_SCRIPT = $(INSTALL) -p -m 755 +INSTALL_DIR = $(INSTALL) -p -d -m 755 OBJ = ltrace.o options.o elf.o output.o read_config_file.o \ execute_program.o wait_for_something.o process_event.o \ @@ -81,7 +81,7 @@ install: ltrace $(INSTALL_FILE) ltrace.1 $(DESTDIR)$(mandir)/man1 check: - cd testsuite; $(MAKE) check + cd testsuite;cat /proc/version;uptime;free -m;$(MAKE) check dummy: Index: elf.c =================================================================== --- elf.c (revision 65) +++ elf.c (revision 66) @@ -417,7 +417,7 @@ static GElf_Addr opd2addr(struct ltelf * if (offset > lte->opd_size) error(EXIT_FAILURE, 0, "static plt not in .opd"); - return (GElf_Addr)(base + offset); + return *(GElf_Addr*)(base + offset); } struct library_symbol *read_elf(struct process *proc) Index: summary.c =================================================================== --- summary.c (revision 65) +++ summary.c (revision 66) @@ -83,7 +83,10 @@ void show_summary(void) (int)entries[i].tv.tv_sec, (int)entries[i].tv.tv_usec, (unsigned long int)(c / entries[i].count), entries[i].count, - opt_C ? my_demangle(entries[i].name) : entries[i].name); +#ifdef USE_DEMANGLE + opt_C ? my_demangle(entries[i].name) : +#endif + entries[i].name); } printf ("------ ----------- ----------- --------- --------------------\n"); Index: ChangeLog =================================================================== --- ChangeLog (revision 65) +++ ChangeLog (revision 66) @@ -1,3 +1,13 @@ +2006-09-15 Olaf Hering <olh@suse.de> + + * Makefile.in : allow installation as non-root user, print out + some debugging information before running test suite. + * summary.c : allow compilation without USE_DEMANGLE + * sysdeps/linux-gnu/ppc/plt.c : fix warning in sym2addr + * sysdeps/linux-gnu/ia64/regs.c : fix warning when finding + instruction slot + * elf.c : fix up error created in 2006-07-26 refactor + 2006-08-14 Steve Fink <sphink@gmail.com> * demangle.c: remove my_demagle_dict_clear(), remove atexit() call Index: sysdeps/linux-gnu/ppc/plt.c =================================================================== --- sysdeps/linux-gnu/ppc/plt.c (revision 65) +++ sysdeps/linux-gnu/ppc/plt.c (revision 66) @@ -12,7 +12,7 @@ GElf_Addr arch_plt_sym_val(struct ltelf void *sym2addr(struct process *proc, struct library_symbol *sym) { - long addr = sym->enter_addr; + void *addr = sym->enter_addr; long pt_ret; debug(3, 0); Index: sysdeps/linux-gnu/ia64/regs.c =================================================================== --- sysdeps/linux-gnu/ia64/regs.c (revision 65) +++ sysdeps/linux-gnu/ia64/regs.c (revision 66) @@ -25,11 +25,11 @@ void set_instruction_pointer(struct proc { unsigned long newip = (unsigned long)addr; - int slot = (int)addr & 0xf; + unsigned long slot = (unsigned long)addr & 0xf; unsigned long psr = ptrace(PTRACE_PEEKUSER, proc->pid, PT_CR_IPSR, 0); psr &= ~(3UL << 41); - psr |= (unsigned long)(slot & 0x3) << 41; + psr |= (slot & 0x3) << 41; newip &= ~0xfUL;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor