platform/upstream/ltrace.git
9 years agoOn s390{,x}, r2 is scrambled after syscall entry
Petr Machata [Tue, 26 Nov 2013 23:42:51 +0000 (00:42 +0100)]
On s390{,x}, r2 is scrambled after syscall entry

This was caught by system_call_params.exp test case:

   exe->mount("source", "target", "filesystemtype", 0, nil <unfinished ...>
   mount@SYS("", "target", "filesystemtype", 0, nil)                 = -2
   <... mount resumed>                                               = -1

Note how the first parameter disappears--r2 now holds syscall number
(21 in this case), and the original value is stored in orig_gpr2 in
save area.

9 years agoOn x86{,_64}, PLT entries may not be ordered by their relocation
Petr Machata [Fri, 22 Nov 2013 17:26:24 +0000 (18:26 +0100)]
On x86{,_64}, PLT entries may not be ordered by their relocation

- In general they are.  But IRELATIVE relocations are sorted to come
  last, and PLT entries are not sorted accordingly.

9 years agoConsider exec and exit events an end of outstanding calls
Petr Machata [Thu, 21 Nov 2013 19:43:51 +0000 (20:43 +0100)]
Consider exec and exit events an end of outstanding calls

- This cleans up a lot of stuff.  The actual substance is addition of
  account_current_callstack in handle_event.c (which however uses
  those cleaned-up interfaces).

- trace-exec.exp was extended to check that the exec syscall can be
  seen in -c output.  That's one of the symptoms of what this fixes.

- This hides dict_opt_c in summary.c.  It also gets rid of the global
  variable current_time_spent--instead, the information is passed via
  a function argument in a struct timedelta (so that we never confuse
  absolute time with relative).  callstack_element.time_spent was renamed
  to .enter_time, as that is what it has always been.

9 years agoUpdate NEWS
Petr Machata [Thu, 14 Nov 2013 21:53:51 +0000 (22:53 +0100)]
Update NEWS

9 years agoAdd a test case for wide character functions
Petr Machata [Tue, 12 Nov 2013 23:11:24 +0000 (00:11 +0100)]
Add a test case for wide character functions

9 years agoUpdate NEWS
Petr Machata [Mon, 11 Nov 2013 23:14:23 +0000 (00:14 +0100)]
Update NEWS

9 years agoIn read_config_file.c, clone type info when unsharing it
Petr Machata [Mon, 11 Nov 2013 18:33:56 +0000 (19:33 +0100)]
In read_config_file.c, clone type info when unsharing it

9 years agoCleanups
Petr Machata [Mon, 11 Nov 2013 18:33:37 +0000 (19:33 +0100)]
Cleanups

9 years agoAdd many wide cheracter functions to libc.so.conf
Petr Machata [Mon, 11 Nov 2013 16:06:59 +0000 (17:06 +0100)]
Add many wide cheracter functions to libc.so.conf

9 years agoUse wcwidth to exactly determine how much space a character took
Petr Machata [Mon, 11 Nov 2013 15:08:42 +0000 (16:08 +0100)]
Use wcwidth to exactly determine how much space a character took

- So far we assumed it's one character worth of screen real-estaty per
  character written, but combining and wide characters can change
  this.

9 years agoAdd fdopen prototype to libc.so.conf
Petr Machata [Mon, 11 Nov 2013 01:29:40 +0000 (02:29 +0100)]
Add fdopen prototype to libc.so.conf

9 years agoWhen a typedef X_t is requested, don't match lens named X instead
Petr Machata [Mon, 11 Nov 2013 01:28:01 +0000 (02:28 +0100)]
When a typedef X_t is requested, don't match lens named X instead

9 years agoAdd error message if ltelf_init fails to open ELF
Petr Machata [Mon, 11 Nov 2013 01:27:33 +0000 (02:27 +0100)]
Add error message if ltelf_init fails to open ELF

9 years agoIn ltrace_init, don't call ltelf_destroy if ltelf_init fails
Petr Machata [Mon, 11 Nov 2013 01:27:08 +0000 (02:27 +0100)]
In ltrace_init, don't call ltelf_destroy if ltelf_init fails

9 years agoSupport wide character strings
Petr Machata [Mon, 11 Nov 2013 01:24:42 +0000 (02:24 +0100)]
Support wide character strings

- "string" lens and "format" pack were extended such that using an
  integer as underlying array type denotes a wide character string.

- several prototypes from wchar.h were added to libc.so.conf.

- ltrace.conf.5 was updated

9 years agoAdd a TODO item
Petr Machata [Wed, 6 Nov 2013 17:35:56 +0000 (18:35 +0100)]
Add a TODO item

9 years agoSupport pre-8.5 TCL's by providing our own lreverse in ltrace.exp
Petr Machata [Wed, 6 Nov 2013 11:10:18 +0000 (12:10 +0100)]
Support pre-8.5 TCL's by providing our own lreverse in ltrace.exp

9 years agoReplace a chain of stpcpy's with a sprintf
Petr Machata [Wed, 6 Nov 2013 10:59:59 +0000 (11:59 +0100)]
Replace a chain of stpcpy's with a sprintf

- That's clearer and doesn't require _POSIX_SOURCE defines (that are
  missing anyway)

9 years agoPlug a leak
Petr Machata [Wed, 6 Nov 2013 10:17:12 +0000 (11:17 +0100)]
Plug a leak

9 years agoPlug a leak
Petr Machata [Wed, 6 Nov 2013 10:16:41 +0000 (11:16 +0100)]
Plug a leak

9 years agoFix use-after-free
Petr Machata [Wed, 6 Nov 2013 09:14:23 +0000 (10:14 +0100)]
Fix use-after-free

9 years agoFix compilation on ARM
Petr Machata [Tue, 5 Nov 2013 03:50:11 +0000 (22:50 -0500)]
Fix compilation on ARM

- This was broken several commits back by removing pltrel from
  struct ltelf.

9 years agoIn ARM backend, move hooks for ltrace_elf and library to plt.c
Petr Machata [Tue, 5 Nov 2013 03:48:38 +0000 (22:48 -0500)]
In ARM backend, move hooks for ltrace_elf and library to plt.c

- That's the customary location for backend hooks.

9 years agoMove load_dynamic_entry from PPC backend to ltrace-elf.c/.h
Petr Machata [Tue, 5 Nov 2013 03:45:34 +0000 (22:45 -0500)]
Move load_dynamic_entry from PPC backend to ltrace-elf.c/.h

9 years agoAdd trace-irelative.exp to Makefile.am
Petr Machata [Tue, 5 Nov 2013 03:00:51 +0000 (04:00 +0100)]
Add trace-irelative.exp to Makefile.am

9 years agoUpdate TODO
Petr Machata [Tue, 5 Nov 2013 01:21:18 +0000 (02:21 +0100)]
Update TODO

9 years agoImported Upstream version 0.7.91 upstream upstream/0.7.91
Chanho Park [Fri, 22 Aug 2014 11:34:56 +0000 (20:34 +0900)]
Imported Upstream version 0.7.91

11 years agoImported Upstream version 0.7.2 upstream/0.7.2
Anas Nashif [Tue, 15 Jan 2013 16:32:18 +0000 (08:32 -0800)]
Imported Upstream version 0.7.2

11 years agoImported Upstream version 0.5.3 upstream/0.5.3
Anas Nashif [Tue, 13 Nov 2012 15:28:12 +0000 (07:28 -0800)]
Imported Upstream version 0.5.3