You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(21) |
2
(18) |
3
(19) |
4
(17) |
|
5
(6) |
6
(5) |
7
(9) |
8
(21) |
9
(16) |
10
(21) |
11
(22) |
|
12
(19) |
13
(19) |
14
(8) |
15
(16) |
16
(17) |
17
(16) |
18
(33) |
|
19
(33) |
20
(34) |
21
(32) |
22
(26) |
23
(23) |
24
(16) |
25
(21) |
|
26
(19) |
27
(7) |
28
(29) |
29
(27) |
30
(55) |
|
|
|
From: <sv...@va...> - 2005-06-11 23:54:10
|
Author: njn Date: 2005-06-12 00:53:03 +0100 (Sun, 12 Jun 2005) New Revision: 121 Log: minor fix Modified: trunk/devel/cvs_svn.html Modified: trunk/devel/cvs_svn.html =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/devel/cvs_svn.html 2005-05-31 21:33:15 UTC (rev 120) +++ trunk/devel/cvs_svn.html 2005-06-11 23:53:03 UTC (rev 121) @@ -57,7 +57,7 @@ <code> svn co svn://svn.valgrind.org/vex/trunk vex</code><br= /> <code> svn co svn://svn.valgrind.org/valgrind/trunk valgrind= </code><br /> <code> cd vex && make clean version all</code><br /> -<code> cd valgrind</code><br /> +<code> cd ../valgrind</code><br /> <code> ./autogen.sh</code><br /> <code> ./configure --prefix=3D... --with-vex=3D/path/to/vex<= /code><br /> <code> make install</code><br /> |
|
From: <sv...@va...> - 2005-06-11 17:20:00
|
Author: njn
Date: 2005-06-11 18:19:18 +0100 (Sat, 11 Jun 2005)
New Revision: 3892
Log:
wibble
Modified:
trunk/coregrind/m_libcsignal.c
Modified: trunk/coregrind/m_libcsignal.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_libcsignal.c 2005-06-11 15:51:30 UTC (rev 3891)
+++ trunk/coregrind/m_libcsignal.c 2005-06-11 17:19:18 UTC (rev 3892)
@@ -206,7 +206,7 @@
#if 0
/* This isn't right because the client may create a process
structure with multiple thread groups */
- res =3D VG_(do_syscall)(__NR_tgkill, VG_(getpid)(), tid, signo);
+ res =3D VG_(do_syscall3)(__NR_tgkill, VG_(getpid)(), tid, signo);
#endif
=20
res =3D VG_(do_syscall2)(__NR_tkill, tid, signo);
|
|
From: <sv...@va...> - 2005-06-11 15:52:01
|
Author: njn
Date: 2005-06-11 16:51:30 +0100 (Sat, 11 Jun 2005)
New Revision: 3891
Log:
Modularised the libc low-level memory management stuff (mmap, etc).
Added:
trunk/coregrind/m_libcmman.c
trunk/coregrind/pub_core_libcmman.h
trunk/include/pub_tool_libcmman.h
Modified:
trunk/coregrind/Makefile.am
trunk/coregrind/core.h
trunk/coregrind/m_aspacemgr/aspacemgr.c
trunk/coregrind/m_debuginfo/symtab.c
trunk/coregrind/m_debuginfo/symtypes.c
trunk/coregrind/m_main.c
trunk/coregrind/m_mallocfree.c
trunk/coregrind/m_signals.c
trunk/coregrind/m_syscalls/syscalls-amd64-linux.c
trunk/coregrind/m_syscalls/syscalls-generic.c
trunk/coregrind/m_syscalls/syscalls-x86-linux.c
trunk/coregrind/m_transtab.c
trunk/coregrind/vg_mylibc.c
trunk/include/Makefile.am
trunk/include/tool.h
trunk/massif/ms_main.c
Modified: trunk/coregrind/Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/Makefile.am 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/coregrind/Makefile.am 2005-06-11 15:51:30 UTC (rev 3891)
@@ -49,6 +49,7 @@
pub_core_libcbase.h \
pub_core_libcassert.h \
pub_core_libcfile.h \
+ pub_core_libcmman.h \
pub_core_libcprint.h \
pub_core_libcsignal.h \
pub_core_main.h \
@@ -97,6 +98,7 @@
m_libcbase.c \
m_libcassert.c \
m_libcfile.c \
+ m_libcmman.c \
m_libcprint.c \
m_libcsignal.c \
m_main.c \
Modified: trunk/coregrind/core.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/core.h 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/coregrind/core.h 2005-06-11 15:51:30 UTC (rev 3891)
@@ -126,16 +126,6 @@
extern Int VG_(fcntl) ( Int fd, Int cmd, Int arg );
extern Int VG_(poll)( struct vki_pollfd *, UInt nfds, Int timeout);
=20
-/* system/mman.h */
-extern void* VG_(mmap) ( void* start, SizeT length, UInt prot, UIn=
t flags,
- UInt sf_flags, UInt fd, OffT offset );
-extern SysRes VG_(mmap_native)( void* start, SizeT length, UInt prot, UI=
nt flags,
- UInt fd, OffT offset );
-extern Int VG_(munmap) ( void* start, SizeT length );
-extern Int VG_(mprotect) ( void *start, SizeT length, UInt prot );
-extern Int VG_(mprotect_native)( void *start, SizeT length, UInt prot );
-
-
/* Environment manipulations */
extern Char **VG_(env_setenv) ( Char ***envp, const Char* varname,
const Char *val );
Modified: trunk/coregrind/m_aspacemgr/aspacemgr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_aspacemgr/aspacemgr.c 2005-06-11 10:47:27 UTC (rev =
3890)
+++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2005-06-11 15:51:30 UTC (rev =
3891)
@@ -35,6 +35,7 @@
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
#include "pub_core_libcfile.h" // For VG_(fstat)()
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_mallocfree.h"
#include "pub_core_options.h"
@@ -1471,7 +1472,7 @@
{
static Addr shadow_alloc =3D 0;
Addr try_here;
- Int r;
+ SysRes r;
=20
if (0) show_segments("shadow_alloc(before)");
=20
@@ -1509,7 +1510,7 @@
r =3D VG_(mprotect_native)( (void*)try_here,=20
size, VKI_PROT_READ|VKI_PROT_WRITE );
=20
- if (r !=3D 0)
+ if (r.isError)
goto failed;
=20
shadow_alloc +=3D size;
Modified: trunk/coregrind/m_debuginfo/symtab.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_debuginfo/symtab.c 2005-06-11 10:47:27 UTC (rev 389=
0)
+++ trunk/coregrind/m_debuginfo/symtab.c 2005-06-11 15:51:30 UTC (rev 389=
1)
@@ -35,6 +35,7 @@
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
#include "pub_core_libcfile.h"
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_mallocfree.h"
#include "pub_core_options.h"
Modified: trunk/coregrind/m_debuginfo/symtypes.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_debuginfo/symtypes.c 2005-06-11 10:47:27 UTC (rev 3=
890)
+++ trunk/coregrind/m_debuginfo/symtypes.c 2005-06-11 15:51:30 UTC (rev 3=
891)
@@ -33,6 +33,7 @@
#include "pub_core_debuglog.h" /* VG_(debugLog_vprintf) */
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_libcsignal.h"
#include "pub_core_mallocfree.h"
Added: trunk/coregrind/m_libcmman.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_libcmman.c 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/coregrind/m_libcmman.c 2005-06-11 15:51:30 UTC (rev 3891)
@@ -0,0 +1,170 @@
+
+/*--------------------------------------------------------------------*/
+/*--- Memory management libc stuff. m_libcmman.c ---*/
+/*--------------------------------------------------------------------*/
+=20
+/*
+ This file is part of Valgrind, a dynamic binary instrumentation
+ framework.
+
+ Copyright (C) 2000-2005 Julian Seward=20
+ js...@ac...
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307, USA.
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
+#include "core.h"
+#include "pub_core_aspacemgr.h"
+#include "pub_core_libcbase.h"
+#include "pub_core_libcassert.h"
+#include "pub_core_libcmman.h"
+#include "pub_core_libcprint.h"
+#include "vki_unistd.h"
+
+SysRes VG_(mmap_native)(void *start, SizeT length, UInt prot, UInt flags=
,
+ UInt fd, OffT offset)
+{
+ SysRes res;
+# if defined(VGP_x86_linux)
+ {=20
+ UWord args[6];
+ args[0] =3D (UWord)start;
+ args[1] =3D length;
+ args[2] =3D prot;
+ args[3] =3D flags;
+ args[4] =3D fd;
+ args[5] =3D offset;
+ res =3D VG_(do_syscall1)(__NR_mmap, (UWord)args );
+ }
+# elif defined(VGP_amd64_linux)
+ res =3D VG_(do_syscall6)(__NR_mmap, (UWord)start, length,=20
+ prot, flags, fd, offset);
+# else
+# error Unknown platform
+# endif
+ return res;
+}
+
+/* Returns -1 on failure. */
+void* VG_(mmap)( void* start, SizeT length,
+ UInt prot, UInt flags, UInt sf_flags, UInt fd, OffT off=
set)
+{
+ SysRes res;
+
+ if (!(flags & VKI_MAP_FIXED)) {
+ start =3D (void *)VG_(find_map_space)((Addr)start, length, !!(flag=
s & VKI_MAP_CLIENT));
+
+ flags |=3D VKI_MAP_FIXED;
+ }
+ if (start =3D=3D 0)
+ return (void *)-1;
+
+ res =3D VG_(mmap_native)(start, length, prot,=20
+ flags & ~(VKI_MAP_NOSYMS | VKI_MAP_CLIENT),
+ fd, offset);
+
+ // Check it ended up in the right place.
+ if (!res.isError) {
+ if (flags & VKI_MAP_CLIENT) {
+ vg_assert(VG_(client_base) <=3D res.val=20
+ && res.val+length <=3D VG_(client_end));
+ } else {
+ vg_assert(VG_(valgrind_base) <=3D res.val=20
+ && res.val+length-1 <=3D VG_(valgrind_last));
+ }
+
+ sf_flags |=3D SF_MMAP;
+ if ( flags & VKI_MAP_FIXED) sf_flags |=3D SF_FIXED;
+ if ( flags & VKI_MAP_SHARED) sf_flags |=3D SF_SHARED;
+ if (!(flags & VKI_MAP_ANONYMOUS)) sf_flags |=3D SF_FILE;
+ if (!(flags & VKI_MAP_CLIENT)) sf_flags |=3D SF_VALGRIND;
+ if ( flags & VKI_MAP_NOSYMS) sf_flags |=3D SF_NOSYMS;
+
+ VG_(map_fd_segment)(res.val, length, prot, sf_flags, fd, offset, N=
ULL);
+ }
+
+ return res.isError ? (void*)-1 : (void*)res.val;
+}
+
+static SysRes munmap_native(void *start, SizeT length)
+{
+ return VG_(do_syscall2)(__NR_munmap, (UWord)start, length );
+}
+
+/* Returns -1 on failure. */
+Int VG_(munmap)( void* start, SizeT length )
+{
+ SysRes res =3D munmap_native(start, length);
+ if (!res.isError) {
+ VG_(unmap_range)((Addr)start, length);
+ return 0;
+ } else {
+ return -1;
+ }
+}
+
+SysRes VG_(mprotect_native)( void *start, SizeT length, UInt prot )
+{
+ return VG_(do_syscall3)(__NR_mprotect, (UWord)start, length, prot );
+}
+
+Int VG_(mprotect)( void *start, SizeT length, UInt prot )
+{
+ SysRes res =3D VG_(mprotect_native)(start, length, prot);
+ if (!res.isError) {
+ VG_(mprotect_range)((Addr)start, length, prot);
+ return 0;
+ } else {
+ return -1;
+ }
+}
+
+void* VG_(get_memory_from_mmap) ( SizeT nBytes, Char* who )
+{
+ static SizeT tot_alloc =3D 0;
+ void* p;
+ p =3D VG_(mmap)(0, nBytes,
+ VKI_PROT_READ|VKI_PROT_WRITE|VKI_PROT_EXEC,
+ VKI_MAP_PRIVATE|VKI_MAP_ANONYMOUS, 0, -1, 0);
+
+ if (p !=3D ((void*)(-1))) {
+ vg_assert((void*)VG_(valgrind_base) <=3D p && p <=3D (void*)VG_(va=
lgrind_last));
+ tot_alloc +=3D nBytes;
+ if (0)
+ VG_(printf)(
+ "get_memory_from_mmap: %llu tot, %llu req =3D %p .. %p, call=
er %s\n",
+ (ULong)tot_alloc, (ULong)nBytes, p, ((char*)p) + nBytes - 1,=
who );
+ return p;
+ }
+
+ VG_(printf)("\n");
+ VG_(printf)("VG_(get_memory_from_mmap): %s's request for %llu bytes f=
ailed.\n",
+ who, (ULong)nBytes);
+ VG_(printf)("VG_(get_memory_from_mmap): %llu bytes already allocated.=
\n",=20
+ (ULong)tot_alloc);
+ VG_(printf)("\n");
+ VG_(printf)("Sorry. You could try using a tool that uses less memory=
;\n");
+ VG_(printf)("eg. addrcheck instead of memcheck.\n");
+ VG_(printf)("\n");
+ VG_(exit)(1);
+}
+
+/*--------------------------------------------------------------------*/
+/*--- end ---*/
+/*--------------------------------------------------------------------*/
+
Modified: trunk/coregrind/m_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_main.c 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/coregrind/m_main.c 2005-06-11 15:51:30 UTC (rev 3891)
@@ -39,6 +39,7 @@
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
#include "pub_core_libcfile.h"
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_libcsignal.h"
#include "pub_core_main.h"
Modified: trunk/coregrind/m_mallocfree.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_mallocfree.c 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/coregrind/m_mallocfree.c 2005-06-11 15:51:30 UTC (rev 3891)
@@ -34,6 +34,7 @@
#include "pub_core_aspacemgr.h"
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_mallocfree.h"
#include "pub_core_options.h"
Modified: trunk/coregrind/m_signals.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_signals.c 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/coregrind/m_signals.c 2005-06-11 15:51:30 UTC (rev 3891)
@@ -85,6 +85,7 @@
#include "pub_core_errormgr.h"
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_libcsignal.h"
#include "pub_core_main.h"
Modified: trunk/coregrind/m_syscalls/syscalls-amd64-linux.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syscalls/syscalls-amd64-linux.c 2005-06-11 10:47:27=
UTC (rev 3890)
+++ trunk/coregrind/m_syscalls/syscalls-amd64-linux.c 2005-06-11 15:51:30=
UTC (rev 3891)
@@ -35,6 +35,7 @@
#include "pub_core_options.h"
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_libcsignal.h"
#include "pub_core_sigframe.h"
Modified: trunk/coregrind/m_syscalls/syscalls-generic.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syscalls/syscalls-generic.c 2005-06-11 10:47:27 UTC=
(rev 3890)
+++ trunk/coregrind/m_syscalls/syscalls-generic.c 2005-06-11 15:51:30 UTC=
(rev 3891)
@@ -34,6 +34,7 @@
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
#include "pub_core_libcfile.h"
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_libcsignal.h"
#include "pub_core_main.h"
Modified: trunk/coregrind/m_syscalls/syscalls-x86-linux.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syscalls/syscalls-x86-linux.c 2005-06-11 10:47:27 U=
TC (rev 3890)
+++ trunk/coregrind/m_syscalls/syscalls-x86-linux.c 2005-06-11 15:51:30 U=
TC (rev 3891)
@@ -40,6 +40,7 @@
#include "pub_core_options.h"
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_libcsignal.h"
#include "pub_core_mallocfree.h"
Modified: trunk/coregrind/m_transtab.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_transtab.c 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/coregrind/m_transtab.c 2005-06-11 15:51:30 UTC (rev 3891)
@@ -33,6 +33,7 @@
#include "pub_core_debuginfo.h"
#include "pub_core_libcbase.h"
#include "pub_core_libcassert.h"
+#include "pub_core_libcmman.h"
#include "pub_core_libcprint.h"
#include "pub_core_options.h"
#include "pub_core_tooliface.h"
Added: trunk/coregrind/pub_core_libcmman.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/pub_core_libcmman.h 2005-06-11 10:47:27 UTC (rev 3890=
)
+++ trunk/coregrind/pub_core_libcmman.h 2005-06-11 15:51:30 UTC (rev 3891=
)
@@ -0,0 +1,54 @@
+
+/*--------------------------------------------------------------------*/
+/*--- Memory management libc stuff. pub_core_libcmman.h ---*/
+/*--------------------------------------------------------------------*/
+
+/*
+ This file is part of Valgrind, a dynamic binary instrumentation
+ framework.
+
+ Copyright (C) 2000-2005 Julian Seward
+ js...@ac...
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307, USA.
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
+#ifndef __PUB_CORE_LIBCMMAN_H
+#define __PUB_CORE_LIBCMMAN_H
+
+//--------------------------------------------------------------------
+// PURPOSE: This module contains libc code related to low-level
+// memory management, ie. mmap and friends.
+//--------------------------------------------------------------------
+
+#include "pub_tool_libcmman.h"
+
+extern void* VG_(mmap) ( void* start, SizeT length, UInt prot, UInt fl=
ags,
+ UInt sf_flags, UInt fd, OffT offset );
+extern Int VG_(munmap) ( void* start, SizeT length );
+extern Int VG_(mprotect) ( void *start, SizeT length, UInt prot );
+
+extern SysRes VG_(mmap_native) ( void* start, SizeT length, UInt pro=
t,
+ UInt flags, UInt fd, OffT offset );
+extern SysRes VG_(mprotect_native) ( void *start, SizeT length, UInt pro=
t );
+
+#endif // __PUB_CORE_LIBCMMAN_H
+
+/*--------------------------------------------------------------------*/
+/*--- end ---*/
+/*--------------------------------------------------------------------*/
Modified: trunk/coregrind/vg_mylibc.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/vg_mylibc.c 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/coregrind/vg_mylibc.c 2005-06-11 15:51:30 UTC (rev 3891)
@@ -86,103 +86,9 @@
=20
=20
/* ---------------------------------------------------------------------
- mmap/munmap, exit, fcntl
+ exit, fcntl
------------------------------------------------------------------ */
=20
-SysRes VG_(mmap_native)(void *start, SizeT length, UInt prot, UInt flags=
,
- UInt fd, OffT offset)
-{
- SysRes res;
-# if defined(VGP_x86_linux)
- {=20
- UWord args[6];
- args[0] =3D (UWord)start;
- args[1] =3D length;
- args[2] =3D prot;
- args[3] =3D flags;
- args[4] =3D fd;
- args[5] =3D offset;
- res =3D VG_(do_syscall1)(__NR_mmap, (UWord)args );
- }
-# elif defined(VGP_amd64_linux)
- res =3D VG_(do_syscall6)(__NR_mmap, (UWord)start, length,=20
- prot, flags, fd, offset);
-# else
-# error Unknown platform
-# endif
- return res;
-}
-
-/* Returns -1 on failure. */
-void* VG_(mmap)( void* start, SizeT length,
- UInt prot, UInt flags, UInt sf_flags, UInt fd, OffT off=
set)
-{
- SysRes res;
-
- if (!(flags & VKI_MAP_FIXED)) {
- start =3D (void *)VG_(find_map_space)((Addr)start, length, !!(flag=
s & VKI_MAP_CLIENT));
-
- flags |=3D VKI_MAP_FIXED;
- }
- if (start =3D=3D 0)
- return (void *)-1;
-
- res =3D VG_(mmap_native)(start, length, prot,=20
- flags & ~(VKI_MAP_NOSYMS | VKI_MAP_CLIENT),
- fd, offset);
-
- // Check it ended up in the right place.
- if (!res.isError) {
- if (flags & VKI_MAP_CLIENT) {
- vg_assert(VG_(client_base) <=3D res.val=20
- && res.val+length <=3D VG_(client_end));
- } else {
- vg_assert(VG_(valgrind_base) <=3D res.val=20
- && res.val+length-1 <=3D VG_(valgrind_last));
- }
-
- sf_flags |=3D SF_MMAP;
- if ( flags & VKI_MAP_FIXED) sf_flags |=3D SF_FIXED;
- if ( flags & VKI_MAP_SHARED) sf_flags |=3D SF_SHARED;
- if (!(flags & VKI_MAP_ANONYMOUS)) sf_flags |=3D SF_FILE;
- if (!(flags & VKI_MAP_CLIENT)) sf_flags |=3D SF_VALGRIND;
- if ( flags & VKI_MAP_NOSYMS) sf_flags |=3D SF_NOSYMS;
-
- VG_(map_fd_segment)(res.val, length, prot, sf_flags, fd, offset, N=
ULL);
- }
-
- return res.isError ? (void*)-1 : (void*)res.val;
-}
-
-static Int munmap_native(void *start, SizeT length)
-{
- SysRes res =3D VG_(do_syscall2)(__NR_munmap, (UWord)start, length );
- return res.isError ? -1 : 0;
-}
-
-/* Returns -1 on failure. */
-Int VG_(munmap)( void* start, SizeT length )
-{
- Int res =3D munmap_native(start, length);
- if (0 =3D=3D res)
- VG_(unmap_range)((Addr)start, length);
- return res;
-}
-
-Int VG_(mprotect_native)( void *start, SizeT length, UInt prot )
-{
- SysRes res =3D VG_(do_syscall3)(__NR_mprotect, (UWord)start, length, =
prot );
- return res.isError ? -1 : 0;
-}
-
-Int VG_(mprotect)( void *start, SizeT length, UInt prot )
-{
- Int res =3D VG_(mprotect_native)(start, length, prot);
- if (0 =3D=3D res)
- VG_(mprotect_range)((Addr)start, length, prot);
- return res;
-}
-
/* Pull down the entire world */
void VG_(exit)( Int status )
{
@@ -524,40 +430,6 @@
}
=20
/* ---------------------------------------------------------------------
- Primitive support for bagging memory via mmap.
- ------------------------------------------------------------------ */
-
-void* VG_(get_memory_from_mmap) ( SizeT nBytes, Char* who )
-{
- static SizeT tot_alloc =3D 0;
- void* p;
- p =3D VG_(mmap)(0, nBytes,
- VKI_PROT_READ|VKI_PROT_WRITE|VKI_PROT_EXEC,
- VKI_MAP_PRIVATE|VKI_MAP_ANONYMOUS, 0, -1, 0);
-
- if (p !=3D ((void*)(-1))) {
- vg_assert((void*)VG_(valgrind_base) <=3D p && p <=3D (void*)VG_(va=
lgrind_last));
- tot_alloc +=3D nBytes;
- if (0)
- VG_(printf)(
- "get_memory_from_mmap: %llu tot, %llu req =3D %p .. %p, call=
er %s\n",
- (ULong)tot_alloc, (ULong)nBytes, p, ((char*)p) + nBytes - 1,=
who );
- return p;
- }
-
- VG_(printf)("\n");
- VG_(printf)("VG_(get_memory_from_mmap): %s's request for %llu bytes f=
ailed.\n",
- who, (ULong)nBytes);
- VG_(printf)("VG_(get_memory_from_mmap): %llu bytes already allocated.=
\n",=20
- (ULong)tot_alloc);
- VG_(printf)("\n");
- VG_(printf)("Sorry. You could try using a tool that uses less memory=
;\n");
- VG_(printf)("eg. addrcheck instead of memcheck.\n");
- VG_(printf)("\n");
- VG_(exit)(1);
-}
-
-/* ---------------------------------------------------------------------
Misc stuff looking for a proper home
------------------------------------------------------------------ */
=20
Modified: trunk/include/Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/Makefile.am 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/include/Makefile.am 2005-06-11 15:51:30 UTC (rev 3891)
@@ -12,6 +12,7 @@
pub_tool_libcbase.h \
pub_tool_libcassert.h \
pub_tool_libcfile.h \
+ pub_tool_libcmman.h \
pub_tool_libcprint.h \
pub_tool_libcsignal.h \
pub_tool_mallocfree.h \
Added: trunk/include/pub_tool_libcmman.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/pub_tool_libcmman.h 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/include/pub_tool_libcmman.h 2005-06-11 15:51:30 UTC (rev 3891)
@@ -0,0 +1,41 @@
+
+/*--------------------------------------------------------------------*/
+/*--- Memory management libc stuff. pub_tool_libcmman.h ---*/
+/*--------------------------------------------------------------------*/
+
+/*
+ This file is part of Valgrind, a dynamic binary instrumentation
+ framework.
+
+ Copyright (C) 2000-2005 Julian Seward
+ js...@ac...
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307, USA.
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
+#ifndef __PUB_TOOL_LIBCMMAN_H
+#define __PUB_TOOL_LIBCMMAN_H
+
+/* Get memory by anonymous mmap. */
+extern void* VG_(get_memory_from_mmap) ( SizeT nBytes, Char* who );
+
+#endif // __PUB_TOOL_LIBCMMAN_H
+
+/*--------------------------------------------------------------------*/
+/*--- end ---*/
+/*--------------------------------------------------------------------*/
Modified: trunk/include/tool.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/tool.h 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/include/tool.h 2005-06-11 15:51:30 UTC (rev 3891)
@@ -137,9 +137,6 @@
extern Int VG_(setpgid) ( Int pid, Int pgrp );
=20
/* ------------------------------------------------------------------ */
-/* Get memory by anonymous mmap. */
-extern void* VG_(get_memory_from_mmap) ( SizeT nBytes, Char* who );
-
/* Register an interest in apparently internal faults; used code which
wanders around dangerous memory (ie, leakcheck). The catcher is
not expected to return. */
Modified: trunk/massif/ms_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/massif/ms_main.c 2005-06-11 10:47:27 UTC (rev 3890)
+++ trunk/massif/ms_main.c 2005-06-11 15:51:30 UTC (rev 3891)
@@ -40,6 +40,7 @@
#include "pub_tool_libcbase.h"
#include "pub_tool_libcassert.h"
#include "pub_tool_libcfile.h"
+#include "pub_tool_libcmman.h"
#include "pub_tool_libcprint.h"
#include "pub_tool_mallocfree.h"
#include "pub_tool_options.h"
|
|
From: <sv...@va...> - 2005-06-11 10:47:29
|
Author: sewardj
Date: 2005-06-11 11:47:27 +0100 (Sat, 11 Jun 2005)
New Revision: 3890
Log:
PRE(wrap_sys_shmat): don't change ARG2 if we're going to pre-fail the
syscall.
Modified:
trunk/coregrind/m_syscalls/syscalls-amd64-linux.c
Modified: trunk/coregrind/m_syscalls/syscalls-amd64-linux.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syscalls/syscalls-amd64-linux.c 2005-06-11 10:33:35=
UTC (rev 3889)
+++ trunk/coregrind/m_syscalls/syscalls-amd64-linux.c 2005-06-11 10:47:27=
UTC (rev 3890)
@@ -972,12 +972,15 @@
=20
PRE(wrap_sys_shmat)
{
+ UWord arg2tmp;
PRINT("wrap_sys_shmat ( %d, %p, %d )",ARG1,ARG2,ARG3);
PRE_REG_READ3(long, "shmat",
int, shmid, const void *, shmaddr, int, shmflg);
- ARG2 =3D VG_(generic_PRE_sys_shmat)(tid, ARG1,ARG2,ARG3);
- if (ARG2 =3D=3D 0)
+ arg2tmp =3D VG_(generic_PRE_sys_shmat)(tid, ARG1,ARG2,ARG3);
+ if (arg2tmp =3D=3D 0)
SET_STATUS_Failure( VKI_EINVAL );
+ else
+ ARG2 =3D arg2tmp;
}
POST(wrap_sys_shmat)
{
|
|
From: <sv...@va...> - 2005-06-11 10:33:39
|
Author: sewardj
Date: 2005-06-11 11:33:35 +0100 (Sat, 11 Jun 2005)
New Revision: 3889
Log:
Stop gcc complaining about Helgrind on 64-bit platforms. Note, this
is not a proper fix :-)
Modified:
trunk/helgrind/hg_main.c
Modified: trunk/helgrind/hg_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/helgrind/hg_main.c 2005-06-11 10:32:57 UTC (rev 3888)
+++ trunk/helgrind/hg_main.c 2005-06-11 10:33:35 UTC (rev 3889)
@@ -455,7 +455,8 @@
=20
static inline ThreadLifeSeg *unpackTLS(UInt i)
{
- return (ThreadLifeSeg *)(i << STATE_BITS);
+ /* HACK ALERT -- DUBIOUS CAST */
+ return (ThreadLifeSeg *)ULong_to_Ptr(i << STATE_BITS);
}
=20
/*------------------------------------------------------------*/
@@ -673,7 +674,8 @@
=20
static inline const LockSet *unpackLockSet(UInt id)
{
- return (LockSet *)(id << STATE_BITS);
+ /* HACK ALERT -- DUBIOUS CAST */
+ return (LockSet *)ULong_to_Ptr(id << STATE_BITS);
}
=20
static=20
|
|
From: <sv...@va...> - 2005-06-11 10:33:05
|
Author: sewardj Date: 2005-06-11 11:32:57 +0100 (Sat, 11 Jun 2005) New Revision: 3888 Log: amd64 build fixes. Modified: trunk/coregrind/core.h Modified: trunk/coregrind/core.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/core.h 2005-06-11 10:23:41 UTC (rev 3887) +++ trunk/coregrind/core.h 2005-06-11 10:32:57 UTC (rev 3888) @@ -36,7 +36,7 @@ =20 #include "libvex.h" #if defined(VGA_x86) -#include "libvex_guest_x86.h" +# include "libvex_guest_x86.h" # define VGA_ELF_ENDIANNESS ELFDATA2LSB # define VGA_ELF_MACHINE EM_386 # define VGA_ELF_CLASS ELFCLASS32 @@ -46,6 +46,7 @@ # define VGA_CLREQ_ARGS guest_EAX # define VGA_CLREQ_RET guest_EDX #elif defined(VGA_amd64) +# include "libvex_guest_amd64.h" # define VGA_ELF_ENDIANNESS ELFDATA2LSB # define VGA_ELF_MACHINE EM_X86_64 # define VGA_ELF_CLASS ELFCLASS64 |
|
From: <sv...@va...> - 2005-06-11 10:24:04
|
Author: sewardj Date: 2005-06-11 11:23:41 +0100 (Sat, 11 Jun 2005) New Revision: 3887 Log: Remove use of vki_unistd.h -- not needed, and coregrind/amd64/state.c doesn't include it. Modified: trunk/coregrind/x86/state.c Modified: trunk/coregrind/x86/state.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/x86/state.c 2005-06-11 05:04:09 UTC (rev 3886) +++ trunk/coregrind/x86/state.c 2005-06-11 10:23:41 UTC (rev 3887) @@ -32,7 +32,6 @@ #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_core_tooliface.h" -#include "vki_unistd.h" #include <sys/ptrace.h> =20 #include "libvex_guest_x86.h" |
|
From: <sv...@va...> - 2005-06-11 05:04:52
|
Author: njn
Date: 2005-06-11 06:04:09 +0100 (Sat, 11 Jun 2005)
New Revision: 3886
Log:
Remove VG_ERRTXT_LEN from core.h.
Modified:
trunk/coregrind/core.h
trunk/coregrind/m_debuginfo/symtab.c
trunk/coregrind/m_errormgr.c
trunk/coregrind/m_stacktrace.c
Modified: trunk/coregrind/core.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/core.h 2005-06-11 04:58:29 UTC (rev 3885)
+++ trunk/coregrind/core.h 2005-06-11 05:04:09 UTC (rev 3886)
@@ -81,13 +81,6 @@
#include "pub_core_scheduler.h" // for types 'ThreadArchState'
=20
/* ---------------------------------------------------------------------
- Global macros.
- ------------------------------------------------------------------ */
-
-/* Max length of a text fragment used to construct error messages. */
-#define VG_ERRTXT_LEN 4096
-
-/* ---------------------------------------------------------------------
Environment variables
------------------------------------------------------------------ */
=20
Modified: trunk/coregrind/m_debuginfo/symtab.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_debuginfo/symtab.c 2005-06-11 04:58:29 UTC (rev 388=
5)
+++ trunk/coregrind/m_debuginfo/symtab.c 2005-06-11 05:04:09 UTC (rev 388=
6)
@@ -2467,17 +2467,18 @@
n =3D putStr(n, n_buf, buf, _str);
# define APPEND_ESC(_str) \
n =3D putStrEsc(n, n_buf, buf, _str);
+# define BUF_LEN 4096
=20
UInt lineno;=20
UChar ibuf[50];
Int n =3D 0;
- static UChar buf_fn[VG_ERRTXT_LEN];
- static UChar buf_obj[VG_ERRTXT_LEN];
- static UChar buf_srcloc[VG_ERRTXT_LEN];
- Bool know_fnname =3D VG_(get_fnname) (eip, buf_fn, VG_ERRTXT_LEN);
- Bool know_objname =3D VG_(get_objname)(eip, buf_obj, VG_ERRTXT_LEN);
+ static UChar buf_fn[BUF_LEN];
+ static UChar buf_obj[BUF_LEN];
+ static UChar buf_srcloc[BUF_LEN];
+ Bool know_fnname =3D VG_(get_fnname) (eip, buf_fn, BUF_LEN);
+ Bool know_objname =3D VG_(get_objname)(eip, buf_obj, BUF_LEN);
Bool know_srcloc =3D VG_(get_filename_linenum)(eip, buf_srcloc,
- VG_ERRTXT_LEN, &lineno=
);
+ BUF_LEN, &lineno);
=20
if (VG_(clo_xml)) {
=20
Modified: trunk/coregrind/m_errormgr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_errormgr.c 2005-06-11 04:58:29 UTC (rev 3885)
+++ trunk/coregrind/m_errormgr.c 2005-06-11 05:04:09 UTC (rev 3886)
@@ -365,13 +365,15 @@
vg_assert( tid < VG_N_THREADS );
}
=20
+#define ERRTXT_LEN 4096
+
static void printSuppForIp(UInt n, Addr ip)
{
- static UChar buf[VG_ERRTXT_LEN];
+ static UChar buf[ERRTXT_LEN];
=20
- if ( VG_(get_fnname_nodemangle) (ip, buf, VG_ERRTXT_LEN) ) {
+ if ( VG_(get_fnname_nodemangle) (ip, buf, ERRTXT_LEN) ) {
VG_(printf)(" fun:%s\n", buf);
- } else if ( VG_(get_objname)(ip, buf, VG_ERRTXT_LEN) ) {
+ } else if ( VG_(get_objname)(ip, buf, ERRTXT_LEN) ) {
VG_(printf)(" obj:%s\n", buf);
} else {
VG_(printf)(" ???:??? "
@@ -1062,7 +1064,7 @@
Bool supp_matches_callers(Error* err, Supp* su)
{
Int i;
- Char caller_name[VG_ERRTXT_LEN];
+ Char caller_name[ERRTXT_LEN];
StackTrace ips =3D VG_(extract_StackTrace)(err->where);
=20
for (i =3D 0; i < su->n_callers; i++) {
@@ -1070,13 +1072,13 @@
vg_assert(su->callers[i].name !=3D NULL);
switch (su->callers[i].ty) {
case ObjName:=20
- if (!VG_(get_objname)(a, caller_name, VG_ERRTXT_LEN))
+ if (!VG_(get_objname)(a, caller_name, ERRTXT_LEN))
return False;
break;=20
=20
case FunName:=20
// Nb: mangled names used in suppressions
- if (!VG_(get_fnname_nodemangle)(a, caller_name, VG_ERRTXT_LE=
N))
+ if (!VG_(get_fnname_nodemangle)(a, caller_name, ERRTXT_LEN))
return False;
break;
default: VG_(tool_panic)("supp_matches_callers");
Modified: trunk/coregrind/m_stacktrace.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_stacktrace.c 2005-06-11 04:58:29 UTC (rev 3885)
+++ trunk/coregrind/m_stacktrace.c 2005-06-11 05:04:09 UTC (rev 3886)
@@ -193,9 +193,11 @@
=20
static void printIpDesc(UInt n, Addr ip)
{
- static UChar buf[VG_ERRTXT_LEN];
+ #define BUF_LEN 4096
+ =20
+ static UChar buf[BUF_LEN];
=20
- VG_(describe_IP)(ip, buf, VG_ERRTXT_LEN);
+ VG_(describe_IP)(ip, buf, BUF_LEN);
=20
if (VG_(clo_xml)) {
VG_(message)(Vg_UserMsg, " %s", buf);
|
|
From: <sv...@va...> - 2005-06-11 04:58:34
|
Author: njn
Date: 2005-06-11 05:58:29 +0100 (Sat, 11 Jun 2005)
New Revision: 3885
Log:
Move some decls out of tool.h into the new file pub_tool_aspacemgr.h.
Added:
trunk/include/pub_tool_aspacemgr.h
Modified:
trunk/coregrind/m_tooliface.c
trunk/coregrind/pub_core_aspacemgr.h
trunk/helgrind/hg_main.c
trunk/include/Makefile.am
trunk/include/tool.h
trunk/memcheck/mac_leakcheck.c
trunk/memcheck/mc_main.c
Modified: trunk/coregrind/m_tooliface.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_tooliface.c 2005-06-11 04:44:38 UTC (rev 3884)
+++ trunk/coregrind/m_tooliface.c 2005-06-11 04:58:29 UTC (rev 3885)
@@ -30,10 +30,11 @@
*/
=20
#include "core.h"
-#include "pub_core_tooliface.h"
+#include "pub_core_aspacemgr.h"
#include "pub_core_libcbase.h"
#include "pub_core_libcprint.h"
#include "pub_core_mallocfree.h"
+#include "pub_core_tooliface.h"
=20
// The core/tool dictionary of functions (initially zeroed, as we want i=
t)
VgToolInterface VG_(tdict);
Modified: trunk/coregrind/pub_core_aspacemgr.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/pub_core_aspacemgr.h 2005-06-11 04:44:38 UTC (rev 388=
4)
+++ trunk/coregrind/pub_core_aspacemgr.h 2005-06-11 04:58:29 UTC (rev 388=
5)
@@ -40,7 +40,7 @@
// [XXX: actually, this is far from true...]
//--------------------------------------------------------------------
=20
-/* #include "pub_tool_aspacemgr.h" */
+#include "pub_tool_aspacemgr.h"
#include "pub_core_debuginfo.h"
=20
// Address space globals
Modified: trunk/helgrind/hg_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/helgrind/hg_main.c 2005-06-11 04:44:38 UTC (rev 3884)
+++ trunk/helgrind/hg_main.c 2005-06-11 04:58:29 UTC (rev 3885)
@@ -30,6 +30,7 @@
*/
=20
#include "tool.h"
+#include "pub_tool_aspacemgr.h"
#include "pub_tool_debuginfo.h"
#include "pub_tool_hashtable.h"
#include "pub_tool_libcbase.h"
Modified: trunk/include/Makefile.am
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/Makefile.am 2005-06-11 04:44:38 UTC (rev 3884)
+++ trunk/include/Makefile.am 2005-06-11 04:58:29 UTC (rev 3885)
@@ -5,6 +5,7 @@
basic_types.h \
tool.h \
tool_asm.h \
+ pub_tool_aspacemgr.h \
pub_tool_errormgr.h \
pub_tool_execontext.h \
pub_tool_hashtable.h \
Added: trunk/include/pub_tool_aspacemgr.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/pub_tool_aspacemgr.h 2005-06-11 04:44:38 UTC (rev 3884)
+++ trunk/include/pub_tool_aspacemgr.h 2005-06-11 04:58:29 UTC (rev 3885)
@@ -0,0 +1,59 @@
+
+/*--------------------------------------------------------------------*/
+/*--- Address space manager. pub_tool_aspacemgr.h ---*/
+/*--------------------------------------------------------------------*/
+
+/*
+ This file is part of Valgrind, a dynamic binary instrumentation
+ framework.
+
+ Copyright (C) 2000-2005 Julian Seward
+ js...@ac...
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307, USA.
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
+#ifndef __PUB_TOOL_ASPACEMGR
+#define __PUB_TOOL_ASPACEMGR
+
+extern Bool VG_(is_client_addr) (Addr a);
+
+extern Bool VG_(is_shadow_addr) (Addr a);
+extern Addr VG_(get_shadow_size)(void);
+
+extern void *VG_(shadow_alloc)(UInt size);
+
+extern Bool VG_(is_addressable)(Addr p, SizeT sz, UInt prot);
+
+/* initialize shadow pages in the range [p, p+sz) This calls
+ init_shadow_page for each one. It should be a lot more efficient
+ for bulk-initializing shadow pages than faulting on each one.=20
+*/
+extern void VG_(init_shadow_range)(Addr p, UInt sz, Bool call_init);
+
+/* Calls into the core used by leak-checking */
+
+/* Calls "add_rootrange" with each range of memory which looks like a
+ plausible source of root pointers. */
+extern void VG_(find_root_memory)(void (*add_rootrange)(Addr addr, SizeT=
sz));
+
+#endif // __PUB_TOOL_ASPACEMGR
+
+/*--------------------------------------------------------------------*/
+/*--- end ---*/
+/*--------------------------------------------------------------------*/
Modified: trunk/include/tool.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/tool.h 2005-06-11 04:44:38 UTC (rev 3884)
+++ trunk/include/tool.h 2005-06-11 04:58:29 UTC (rev 3885)
@@ -140,32 +140,11 @@
/* Get memory by anonymous mmap. */
extern void* VG_(get_memory_from_mmap) ( SizeT nBytes, Char* who );
=20
-extern Bool VG_(is_client_addr) (Addr a);
-
-extern Bool VG_(is_shadow_addr) (Addr a);
-extern Addr VG_(get_shadow_size)(void);
-
-extern void *VG_(shadow_alloc)(UInt size);
-
-extern Bool VG_(is_addressable)(Addr p, SizeT sz, UInt prot);
-
/* Register an interest in apparently internal faults; used code which
wanders around dangerous memory (ie, leakcheck). The catcher is
not expected to return. */
extern void VG_(set_fault_catcher)(void (*catcher)(Int sig, Addr addr));
=20
-/* initialize shadow pages in the range [p, p+sz) This calls
- init_shadow_page for each one. It should be a lot more efficient
- for bulk-initializing shadow pages than faulting on each one.=20
-*/
-extern void VG_(init_shadow_range)(Addr p, UInt sz, Bool call_init);
-
-/* Calls into the core used by leak-checking */
-
-/* Calls "add_rootrange" with each range of memory which looks like a
- plausible source of root pointers. */
-extern void VG_(find_root_memory)(void (*add_rootrange)(Addr addr, SizeT=
sz));
-
/* Calls "mark_addr" with register values (which may or may not be point=
ers) */
extern void VG_(mark_from_registers)(void (*mark_addr)(Addr addr));
=20
Modified: trunk/memcheck/mac_leakcheck.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/memcheck/mac_leakcheck.c 2005-06-11 04:44:38 UTC (rev 3884)
+++ trunk/memcheck/mac_leakcheck.c 2005-06-11 04:58:29 UTC (rev 3885)
@@ -32,6 +32,7 @@
=20
#include <setjmp.h>
#include "mac_shared.h"
+#include "pub_tool_aspacemgr.h"
#include "pub_tool_libcbase.h"
#include "pub_tool_libcassert.h"
#include "pub_tool_libcprint.h"
Modified: trunk/memcheck/mc_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/memcheck/mc_main.c 2005-06-11 04:44:38 UTC (rev 3884)
+++ trunk/memcheck/mc_main.c 2005-06-11 04:58:29 UTC (rev 3885)
@@ -38,6 +38,7 @@
=20
#include "mc_include.h"
#include "memcheck.h" /* for client requests */
+#include "pub_tool_aspacemgr.h"
#include "pub_tool_libcbase.h"
#include "pub_tool_libcassert.h"
#include "pub_tool_libcprint.h"
|
|
From: <sv...@va...> - 2005-06-11 04:44:43
|
Author: njn
Date: 2005-06-11 05:44:38 +0100 (Sat, 11 Jun 2005)
New Revision: 3884
Log:
Move NULL from tool.h into basic_types.h.
Modified:
trunk/include/basic_types.h
trunk/include/tool.h
Modified: trunk/include/basic_types.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/basic_types.h 2005-06-11 03:31:09 UTC (rev 3883)
+++ trunk/include/basic_types.h 2005-06-11 04:44:38 UTC (rev 3884)
@@ -61,6 +61,9 @@
/* This is going to be either 4 or 8. */
#define VG_WORDSIZE VEX_HOST_WORDSIZE
=20
+#if !defined(NULL)
+# define NULL ((void*)0)
+#endif
=20
/* ---------------------------------------------------------------------
non-builtin types
Modified: trunk/include/tool.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/tool.h 2005-06-11 03:31:09 UTC (rev 3883)
+++ trunk/include/tool.h 2005-06-11 04:44:38 UTC (rev 3884)
@@ -104,10 +104,6 @@
/*=3D=3D=3D Valgrind's version of libc =
=3D=3D=3D*/
/*=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D*/
=20
-#if !defined(NULL)
-# define NULL ((void*)0)
-#endif
-
/* ------------------------------------------------------------------ */
/* stdlib.h */
=20
|
|
From: <sv...@va...> - 2005-06-11 03:31:54
|
Author: njn
Date: 2005-06-11 04:31:09 +0100 (Sat, 11 Jun 2005)
New Revision: 3883
Log:
Move OINK from tool.h to pub_tool_libcprint.h.
Modified:
trunk/include/pub_tool_libcprint.h
trunk/include/tool.h
Modified: trunk/include/pub_tool_libcprint.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/pub_tool_libcprint.h 2005-06-11 03:28:48 UTC (rev 3882)
+++ trunk/include/pub_tool_libcprint.h 2005-06-11 03:31:09 UTC (rev 3883)
@@ -49,6 +49,9 @@
Messages for the user
------------------------------------------------------------------ */
=20
+/* No, really. I _am_ that strange. */
+#define OINK(nnn) VG_(message)(Vg_DebugMsg, "OINK %d",nnn)
+
/* Print a message prefixed by "??<pid>?? "; '?' depends on the VgMsgKin=
d.
Should be used for all user output. */
=20
Modified: trunk/include/tool.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/tool.h 2005-06-11 03:28:48 UTC (rev 3882)
+++ trunk/include/tool.h 2005-06-11 03:31:09 UTC (rev 3883)
@@ -63,9 +63,6 @@
#define VG_PGROUNDDN(p) VG_ROUNDDN(p, VKI_PAGE_SIZE)
#define VG_PGROUNDUP(p) VG_ROUNDUP(p, VKI_PAGE_SIZE)
=20
-/* No, really. I _am_ that strange. */
-#define OINK(nnn) VG_(message)(Vg_DebugMsg, "OINK %d",nnn)
-
/* Path to all our library/aux files */
extern const Char *VG_(libdir);
=20
|
|
From: <sv...@va...> - 2005-06-11 03:29:50
|
Author: njn
Date: 2005-06-11 04:28:48 +0100 (Sat, 11 Jun 2005)
New Revision: 3882
Log:
Remove the hard-coding of "_vgi_" as the intercept prefix in
vg_replace_malloc.c.
Modified:
trunk/coregrind/core.h
trunk/coregrind/m_replacemalloc/vg_replace_malloc.c
Modified: trunk/coregrind/core.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/core.h 2005-06-11 01:31:52 UTC (rev 3881)
+++ trunk/coregrind/core.h 2005-06-11 03:28:48 UTC (rev 3882)
@@ -113,17 +113,16 @@
#define VG_USERREQ__LIBC_FREERES_DONE 0x3029
=20
/* Intercept prefix stuff. See
- coregrind/m_replace_malloc/vg_replace_malloc.c for details.
- Unfortunately the "_vgi_" literal is also hardcoded in that file, so =
if
- you change this one you must also change the other one. */
-#define VG_INTERCEPT_PREFIX "_vgi_"
-#define VG_INTERCEPT_PREFIX_LEN 5
+ coregrind/m_replace_malloc/vg_replace_malloc.c for details. */
+#define VG_INTERCEPT(name) _vgi_##name
+#define VG_INTERCEPT_PREFIX "_vgi_"
+#define VG_INTERCEPT_PREFIX_LEN 5
=20
/* Not sure what these are for. Todo: clarify */
-#define VG_WRAPPER_PREFIX "_vgw_"
-#define VG_WRAPPER_PREFIX_LEN 5
-#define VG_WRAPPER(name) _vgw_##name
-#define VG_WRAPPER_ALIAS(name) "_vgw_" #name
+#define VG_WRAPPER_PREFIX "_vgw_"
+#define VG_WRAPPER_PREFIX_LEN 5
+#define VG_WRAPPER(name) _vgw_##name
+#define VG_WRAPPER_ALIAS(name) "_vgw_" #name
=20
=20
/* ---------------------------------------------------------------------
Modified: trunk/coregrind/m_replacemalloc/vg_replace_malloc.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_replacemalloc/vg_replace_malloc.c 2005-06-11 01:31:=
52 UTC (rev 3881)
+++ trunk/coregrind/m_replacemalloc/vg_replace_malloc.c 2005-06-11 03:28:=
48 UTC (rev 3882)
@@ -96,15 +96,8 @@
Z --> ZZ
*/
=20
+#define ENCODE(libname,fnname) VG_INTERCEPT(libname##_##fnname)
=20
-/* It would be nice to be able to write VG_INTERCEPT_PREFIX instead of
- "_vgi_" here, but I can't figure out how to get cpp to cooperate.
- If you change this "_vgi_" you should also change the definitiion
- of VG_INTERCEPT_PREFIX in core.h accordingly.
-*/
-#define ENCODE(libname,fnname) _vgi_##libname##_##fnname
-
-
/* Some handy mangled names */
#define m_libstc_plus_plus_star libstdcZpZpZa // libstdc++*
#define m_libc_dot_so_dot_6 libcZdsoZd6 // libc.so.6
|
|
From: Tom H. <th...@cy...> - 2005-06-11 03:02:25
|
Nightly build on audi ( i686, Red Hat 9 ) started at 2005-06-11 03:25:01 BST Checking out vex source tree ... done Building vex ... done Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 176 tests, 8 stderr failures, 1 stdout failure ================= memcheck/tests/sigaltstack (stderr) memcheck/tests/xml1 (stderr) corecheck/tests/fdleak_cmsg (stderr) corecheck/tests/pth_cancel1 (stdout) corecheck/tests/pth_cancel1 (stderr) corecheck/tests/pth_cancel2 (stderr) none/tests/faultstatus (stderr) none/tests/pth_blockedsig (stderr) none/tests/x86/int (stderr) |
|
From: <js...@ac...> - 2005-06-11 02:50:03
|
Nightly build on phoenix ( SuSE 9.1 ) started at 2005-06-11 03:50:00 BST Checking out source tree ... done Configuring ... done Building ... done Running regression tests ... done Last 20 lines of log.verbose follow Nightly build on phoenix ( SuSE 9.1 ) started at 2005-06-11 03:50:00 BST |
|
From: Tom H. <th...@cy...> - 2005-06-11 02:20:37
|
Nightly build on alvis ( i686, Red Hat 7.3 ) started at 2005-06-11 03:15:03 BST Checking out vex source tree ... done Building vex ... done Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... done Running regression tests ... failed Regression test results follow == 175 tests, 13 stderr failures, 0 stdout failures ================= memcheck/tests/addressable (stderr) memcheck/tests/describe-block (stderr) memcheck/tests/leak-0 (stderr) memcheck/tests/leak-cycle (stderr) memcheck/tests/leak-regroot (stderr) memcheck/tests/leak-tree (stderr) memcheck/tests/match-overrun (stderr) memcheck/tests/pointer-trace (stderr) memcheck/tests/vgtest_ume (stderr) memcheck/tests/xml1 (stderr) corecheck/tests/fdleak_cmsg (stderr) none/tests/faultstatus (stderr) none/tests/x86/int (stderr) |
|
From: Tom H. <th...@cy...> - 2005-06-11 02:11:29
|
Nightly build on dellow ( x86_64, Fedora Core 3 ) started at 2005-06-11 03:10:03 BST Checking out vex source tree ... done Building vex ... done Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... failed Last 20 lines of log.verbose follow state.c:73: error: `arch' undeclared (first use in this function) state.c:73: error: (Each undeclared identifier is reported only once state.c:73: error: for each function it appears in.) state.c:80: error: `rsp_at_startup' undeclared (first use in this function) state.c:81: error: `client_rip' undeclared (first use in this function) state.c: In function `vgArch_mark_from_registers': state.c:94: error: `tst' undeclared (first use in this function) state.c:95: error: `arch' undeclared (first use in this function) state.c: At top level: state.c:121: error: syntax error before "ThreadArchState" state.c:122: warning: no previous prototype for 'vgArch_ptrace_setregs_from_tst' make[4]: *** [state.o] Error 1 make[4]: Leaving directory `/tmp/valgrind.3116/valgrind/coregrind/amd64' make[3]: *** [all] Error 2 make[3]: Leaving directory `/tmp/valgrind.3116/valgrind/coregrind/amd64' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/valgrind.3116/valgrind/coregrind' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/valgrind.3116/valgrind' make: *** [all] Error 2 |
|
From: Tom H. <th...@cy...> - 2005-06-11 02:01:25
|
Nightly build on gill ( x86_64, Fedora Core 2 ) started at 2005-06-11 03:00:03 BST Checking out vex source tree ... done Building vex ... done Checking out valgrind source tree ... done Configuring valgrind ... done Building valgrind ... failed Last 20 lines of log.verbose follow state.c:73: error: `arch' undeclared (first use in this function) state.c:73: error: (Each undeclared identifier is reported only once state.c:73: error: for each function it appears in.) state.c:80: error: `rsp_at_startup' undeclared (first use in this function) state.c:81: error: `client_rip' undeclared (first use in this function) state.c: In function `vgArch_mark_from_registers': state.c:94: error: `tst' undeclared (first use in this function) state.c:95: error: `arch' undeclared (first use in this function) state.c: At top level: state.c:121: error: syntax error before "ThreadArchState" state.c:122: warning: no previous prototype for `vgArch_ptrace_setregs_from_tst' make[4]: *** [state.o] Error 1 make[4]: Leaving directory `/tmp/valgrind.7978/valgrind/coregrind/amd64' make[3]: *** [all] Error 2 make[3]: Leaving directory `/tmp/valgrind.7978/valgrind/coregrind/amd64' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/valgrind.7978/valgrind/coregrind' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/valgrind.7978/valgrind' make: *** [all] Error 2 |
|
From: <sv...@va...> - 2005-06-11 01:31:55
|
Author: njn Date: 2005-06-11 02:31:52 +0100 (Sat, 11 Jun 2005) New Revision: 3881 Log: Having moved VG_(arena_strdup)() out of core.h, core.h no longer needs to #include pub_core_mallocfree.h. As a result, we need to #include it explicitly everywhere else. Modified: trunk/coregrind/core.h trunk/coregrind/m_aspacemgr/aspacemgr.c trunk/coregrind/m_debuginfo/dwarf.c trunk/coregrind/m_debuginfo/stabs.c trunk/coregrind/m_debuginfo/symtab.c trunk/coregrind/m_debuginfo/symtypes.c trunk/coregrind/m_demangle/cp-demangle.c trunk/coregrind/m_demangle/cplus-dem.c trunk/coregrind/m_demangle/demangle.c trunk/coregrind/m_demangle/dyn-string.c trunk/coregrind/m_errormgr.c trunk/coregrind/m_execontext.c trunk/coregrind/m_hashtable.c trunk/coregrind/m_libcfile.c trunk/coregrind/m_main.c trunk/coregrind/m_mallocfree.c trunk/coregrind/m_redir.c trunk/coregrind/m_replacemalloc/replacemalloc_core.c trunk/coregrind/m_replacemalloc/vg_replace_malloc.c trunk/coregrind/m_scheduler/scheduler.c trunk/coregrind/m_signals.c trunk/coregrind/m_skiplist.c trunk/coregrind/m_syscalls/syscalls-generic.c trunk/coregrind/m_syscalls/syscalls-linux.c trunk/coregrind/m_syscalls/syscalls-x86-linux.c trunk/coregrind/m_tooliface.c trunk/coregrind/vg_mylibc.c Modified: trunk/coregrind/core.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/core.h 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/core.h 2005-06-11 01:31:52 UTC (rev 3881) @@ -78,7 +78,6 @@ =20 #include <setjmp.h> // for jmp_buf =20 -#include "pub_core_mallocfree.h" // for type 'ArenaId' #include "pub_core_scheduler.h" // for types 'ThreadArchState' =20 /* --------------------------------------------------------------------- Modified: trunk/coregrind/m_aspacemgr/aspacemgr.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_aspacemgr/aspacemgr.c 2005-06-11 01:30:57 UTC (rev = 3880) +++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2005-06-11 01:31:52 UTC (rev = 3881) @@ -36,6 +36,7 @@ #include "pub_core_libcassert.h" #include "pub_core_libcfile.h" // For VG_(fstat)() #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_syscalls.h" #include "pub_core_tooliface.h" Modified: trunk/coregrind/m_debuginfo/dwarf.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_debuginfo/dwarf.c 2005-06-11 01:30:57 UTC (rev 3880= ) +++ trunk/coregrind/m_debuginfo/dwarf.c 2005-06-11 01:31:52 UTC (rev 3881= ) @@ -32,6 +32,7 @@ #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "priv_symtab.h" =20 Modified: trunk/coregrind/m_debuginfo/stabs.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_debuginfo/stabs.c 2005-06-11 01:30:57 UTC (rev 3880= ) +++ trunk/coregrind/m_debuginfo/stabs.c 2005-06-11 01:31:52 UTC (rev 3881= ) @@ -32,6 +32,7 @@ #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" #include "priv_symtab.h" =20 #include <a.out.h> /* stabs defns */ Modified: trunk/coregrind/m_debuginfo/symtab.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_debuginfo/symtab.c 2005-06-11 01:30:57 UTC (rev 388= 0) +++ trunk/coregrind/m_debuginfo/symtab.c 2005-06-11 01:31:52 UTC (rev 388= 1) @@ -36,6 +36,7 @@ #include "pub_core_libcassert.h" #include "pub_core_libcfile.h" #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_profile.h" #include "pub_core_redir.h" Modified: trunk/coregrind/m_debuginfo/symtypes.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_debuginfo/symtypes.c 2005-06-11 01:30:57 UTC (rev 3= 880) +++ trunk/coregrind/m_debuginfo/symtypes.c 2005-06-11 01:31:52 UTC (rev 3= 881) @@ -35,6 +35,7 @@ #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" #include "pub_core_libcsignal.h" +#include "pub_core_mallocfree.h" #include "pub_core_tooliface.h" #include "priv_symtypes.h" =20 Modified: trunk/coregrind/m_demangle/cp-demangle.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_demangle/cp-demangle.c 2005-06-11 01:30:57 UTC (rev= 3880) +++ trunk/coregrind/m_demangle/cp-demangle.c 2005-06-11 01:31:52 UTC (rev= 3881) @@ -43,6 +43,7 @@ #include "core.h" #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" +#include "pub_core_mallocfree.h" #include "ansidecl.h" #include "dyn-string.h" #include "demangle.h" Modified: trunk/coregrind/m_demangle/cplus-dem.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_demangle/cplus-dem.c 2005-06-11 01:30:57 UTC (rev 3= 880) +++ trunk/coregrind/m_demangle/cplus-dem.c 2005-06-11 01:31:52 UTC (rev 3= 881) @@ -41,6 +41,7 @@ #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_tool_libcprint.h" +#include "pub_core_mallocfree.h" =20 /*#include <sys/types.h> #include <string.h> Modified: trunk/coregrind/m_demangle/demangle.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_demangle/demangle.c 2005-06-11 01:30:57 UTC (rev 38= 80) +++ trunk/coregrind/m_demangle/demangle.c 2005-06-11 01:31:52 UTC (rev 38= 81) @@ -31,6 +31,7 @@ #include "core.h" #include "pub_core_demangle.h" #include "pub_core_libcbase.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_profile.h" #include "demangle.h" Modified: trunk/coregrind/m_demangle/dyn-string.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_demangle/dyn-string.c 2005-06-11 01:30:57 UTC (rev = 3880) +++ trunk/coregrind/m_demangle/dyn-string.c 2005-06-11 01:31:52 UTC (rev = 3881) @@ -34,6 +34,7 @@ #include "core.h" #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" +#include "pub_core_mallocfree.h" #include "ansidecl.h" #include "dyn-string.h" =20 Modified: trunk/coregrind/m_errormgr.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_errormgr.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_errormgr.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -37,6 +37,7 @@ #include "pub_core_libcfile.h" #include "pub_core_libcprint.h" #include "pub_core_main.h" // for VG_(start_debugger)() +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_stacktrace.h" #include "pub_core_tooliface.h" Modified: trunk/coregrind/m_execontext.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_execontext.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_execontext.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -32,6 +32,7 @@ #include "pub_core_execontext.h" #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_profile.h" =20 Modified: trunk/coregrind/m_hashtable.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_hashtable.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_hashtable.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -31,6 +31,7 @@ #include "core.h" #include "pub_core_hashtable.h" #include "pub_core_libcassert.h" +#include "pub_core_mallocfree.h" =20 /*--------------------------------------------------------------------*/ /*--- Declarations ---*/ Modified: trunk/coregrind/m_libcfile.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_libcfile.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_libcfile.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -32,6 +32,7 @@ #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_core_libcfile.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "vki_unistd.h" =20 Modified: trunk/coregrind/m_main.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_main.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_main.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -42,6 +42,7 @@ #include "pub_core_libcprint.h" #include "pub_core_libcsignal.h" #include "pub_core_main.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_profile.h" #include "pub_core_redir.h" Modified: trunk/coregrind/m_mallocfree.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_mallocfree.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_mallocfree.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -35,6 +35,7 @@ #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_profile.h" #include "valgrind.h" Modified: trunk/coregrind/m_redir.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_redir.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_redir.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -35,9 +35,10 @@ #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" -#include "pub_core_skiplist.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_redir.h" +#include "pub_core_skiplist.h" #include "pub_core_transtab.h" #include "m_debuginfo/priv_symtab.h" // XXX: bad! =20 Modified: trunk/coregrind/m_replacemalloc/replacemalloc_core.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_replacemalloc/replacemalloc_core.c 2005-06-11 01:30= :57 UTC (rev 3880) +++ trunk/coregrind/m_replacemalloc/replacemalloc_core.c 2005-06-11 01:31= :52 UTC (rev 3881) @@ -31,6 +31,7 @@ #include "core.h" #include "pub_core_libcbase.h" #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_replacemalloc.h" =20 Modified: trunk/coregrind/m_replacemalloc/vg_replace_malloc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_replacemalloc/vg_replace_malloc.c 2005-06-11 01:30:= 57 UTC (rev 3880) +++ trunk/coregrind/m_replacemalloc/vg_replace_malloc.c 2005-06-11 01:31:= 52 UTC (rev 3881) @@ -47,6 +47,7 @@ =20 #include "valgrind.h" /* for VALGRIND_NON_SIMD_CALL[12] */ #include "core.h" +#include "pub_core_mallocfree.h" // for VG_MIN_MALLOC_SZB, VG_AR_CLIE= NT #include "pub_core_replacemalloc.h" =20 /* The general idea is: you can write a function like this: Modified: trunk/coregrind/m_scheduler/scheduler.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_scheduler/scheduler.c 2005-06-11 01:30:57 UTC (rev = 3880) +++ trunk/coregrind/m_scheduler/scheduler.c 2005-06-11 01:31:52 UTC (rev = 3881) @@ -68,6 +68,7 @@ #include "pub_core_libcprint.h" #include "pub_core_libcsignal.h" #include "pub_core_main.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_profile.h" #include "pub_core_replacemalloc.h" Modified: trunk/coregrind/m_signals.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_signals.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_signals.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -88,6 +88,7 @@ #include "pub_core_libcprint.h" #include "pub_core_libcsignal.h" #include "pub_core_main.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_signals.h" #include "pub_core_sigframe.h" Modified: trunk/coregrind/m_skiplist.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_skiplist.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_skiplist.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -90,6 +90,7 @@ #include "pub_core_libcbase.h" #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" #include "pub_core_skiplist.h" =20 #include <stdlib.h> Modified: trunk/coregrind/m_syscalls/syscalls-generic.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_syscalls/syscalls-generic.c 2005-06-11 01:30:57 UTC= (rev 3880) +++ trunk/coregrind/m_syscalls/syscalls-generic.c 2005-06-11 01:31:52 UTC= (rev 3881) @@ -37,6 +37,7 @@ #include "pub_core_libcprint.h" #include "pub_core_libcsignal.h" #include "pub_core_main.h" +#include "pub_core_mallocfree.h" #include "pub_core_stacktrace.h" #include "pub_core_tooliface.h" #include "pub_core_options.h" Modified: trunk/coregrind/m_syscalls/syscalls-linux.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_syscalls/syscalls-linux.c 2005-06-11 01:30:57 UTC (= rev 3880) +++ trunk/coregrind/m_syscalls/syscalls-linux.c 2005-06-11 01:31:52 UTC (= rev 3881) @@ -34,6 +34,7 @@ #include "pub_core_libcassert.h" #include "pub_core_libcfile.h" #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" #include "pub_core_tooliface.h" #include "pub_core_options.h" #include "pub_core_signals.h" Modified: trunk/coregrind/m_syscalls/syscalls-x86-linux.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_syscalls/syscalls-x86-linux.c 2005-06-11 01:30:57 U= TC (rev 3880) +++ trunk/coregrind/m_syscalls/syscalls-x86-linux.c 2005-06-11 01:31:52 U= TC (rev 3881) @@ -42,6 +42,7 @@ #include "pub_core_libcassert.h" #include "pub_core_libcprint.h" #include "pub_core_libcsignal.h" +#include "pub_core_mallocfree.h" #include "pub_core_sigframe.h" #include "pub_core_signals.h" #include "pub_core_syscalls.h" Modified: trunk/coregrind/m_tooliface.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_tooliface.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/m_tooliface.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -33,6 +33,7 @@ #include "pub_core_tooliface.h" #include "pub_core_libcbase.h" #include "pub_core_libcprint.h" +#include "pub_core_mallocfree.h" =20 // The core/tool dictionary of functions (initially zeroed, as we want i= t) VgToolInterface VG_(tdict); Modified: trunk/coregrind/vg_mylibc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/vg_mylibc.c 2005-06-11 01:30:57 UTC (rev 3880) +++ trunk/coregrind/vg_mylibc.c 2005-06-11 01:31:52 UTC (rev 3881) @@ -38,6 +38,7 @@ #include "pub_core_libcprint.h" #include "pub_core_libcfile.h" #include "pub_core_main.h" +#include "pub_core_mallocfree.h" #include "pub_core_options.h" #include "pub_core_stacktrace.h" #include "pub_core_syscalls.h" |
|
From: <sv...@va...> - 2005-06-11 01:31:00
|
Author: njn Date: 2005-06-11 02:30:57 +0100 (Sat, 11 Jun 2005) New Revision: 3880 Log: Avoid compiler warnings. Modified: trunk/helgrind/hg_main.c Modified: trunk/helgrind/hg_main.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/helgrind/hg_main.c 2005-06-11 01:29:23 UTC (rev 3879) +++ trunk/helgrind/hg_main.c 2005-06-11 01:30:57 UTC (rev 3880) @@ -1699,17 +1699,27 @@ static void hg_mem_read (Addr a, SizeT data_size, ThreadId tid); static void hg_mem_write(Addr a, SizeT data_size, ThreadId tid); =20 +__attribute__((unused)) static void hg_mem_help_read_1(Addr a) VGA_REGPARM(1); +__attribute__((unused)) static void hg_mem_help_read_2(Addr a) VGA_REGPARM(1); +__attribute__((unused)) static void hg_mem_help_read_4(Addr a) VGA_REGPARM(1); +__attribute__((unused)) static void hg_mem_help_read_N(Addr a, SizeT size) VGA_REGPARM(2); =20 +__attribute__((unused)) static void hg_mem_help_write_1(Addr a, UInt val) VGA_REGPARM(2); +__attribute__((unused)) static void hg_mem_help_write_2(Addr a, UInt val) VGA_REGPARM(2); +__attribute__((unused)) static void hg_mem_help_write_4(Addr a, UInt val) VGA_REGPARM(2); +__attribute__((unused)) static void hg_mem_help_write_N(Addr a, SizeT size) VGA_REGPARM(2); =20 +__attribute__((unused)) static void bus_lock(void); +__attribute__((unused)) static void bus_unlock(void); =20 static |
|
From: <sv...@va...> - 2005-06-11 01:29:25
|
Author: njn
Date: 2005-06-11 02:29:23 +0100 (Sat, 11 Jun 2005)
New Revision: 3879
Log:
Avoid compiler warnings.
Modified:
trunk/lackey/lk_main.c
Modified: trunk/lackey/lk_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/lackey/lk_main.c 2005-06-11 01:12:08 UTC (rev 3878)
+++ trunk/lackey/lk_main.c 2005-06-11 01:29:23 UTC (rev 3879)
@@ -41,6 +41,7 @@
static ULong n_Jccs =3D 0;
static ULong n_Jccs_untaken =3D 0;
=20
+__attribute__((unused))
static void add_one_dlrr_call(void)
{
n_dlrr_calls++;
@@ -54,11 +55,13 @@
n_guest_instrs++;
}
=20
+__attribute__((unused))
static void add_one_UInstr(void)
{
n_UInstrs++;
}
=20
+__attribute__((unused))
static void add_one_guest_instr(void)
{
n_guest_instrs++;
|
|
From: <sv...@va...> - 2005-06-11 01:12:14
|
Author: njn
Date: 2005-06-11 02:12:08 +0100 (Sat, 11 Jun 2005)
New Revision: 3878
Log:
Moved VG_(strdup)() and VG_(arena_strdup)() into m_mallocfree.
Modified:
trunk/coregrind/core.h
trunk/coregrind/m_mallocfree.c
trunk/coregrind/pub_core_mallocfree.h
trunk/coregrind/vg_mylibc.c
trunk/include/pub_tool_libcbase.h
trunk/include/pub_tool_mallocfree.h
Modified: trunk/coregrind/core.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/core.h 2005-06-11 01:07:00 UTC (rev 3877)
+++ trunk/coregrind/core.h 2005-06-11 01:12:08 UTC (rev 3878)
@@ -131,9 +131,6 @@
Exports of vg_mylibc.c
------------------------------------------------------------------ */
=20
-/* Tools use VG_(strdup)() which doesn't expose ArenaId */
-extern Char* VG_(arena_strdup) ( ArenaId aid, const Char* s);
-
extern Int VG_(fcntl) ( Int fd, Int cmd, Int arg );
extern Int VG_(poll)( struct vki_pollfd *, UInt nfds, Int timeout);
=20
Modified: trunk/coregrind/m_mallocfree.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_mallocfree.c 2005-06-11 01:07:00 UTC (rev 3877)
+++ trunk/coregrind/m_mallocfree.c 2005-06-11 01:12:08 UTC (rev 3878)
@@ -1263,6 +1263,25 @@
}
=20
=20
+/* Inline just for the wrapper VG_(strdup) below */
+__inline__ Char* VG_(arena_strdup) ( ArenaId aid, const Char* s )
+{
+ Int i;
+ Int len;
+ Char* res;
+
+ if (s =3D=3D NULL)
+ return NULL;
+
+ len =3D VG_(strlen)(s) + 1;
+ res =3D VG_(arena_malloc) (aid, len);
+
+ for (i =3D 0; i < len; i++)
+ res[i] =3D s[i];
+ return res;
+}
+
+
/*------------------------------------------------------------*/
/*--- Tool-visible functions. ---*/
/*------------------------------------------------------------*/
@@ -1289,6 +1308,11 @@
return VG_(arena_realloc) ( VG_AR_TOOL, ptr, size );
}
=20
+Char* VG_(strdup) ( const Char* s )
+{
+ return VG_(arena_strdup) ( VG_AR_TOOL, s );=20
+}
+
/*--------------------------------------------------------------------*/
/*--- end ---*/
/*--------------------------------------------------------------------*/
Modified: trunk/coregrind/pub_core_mallocfree.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/pub_core_mallocfree.h 2005-06-11 01:07:00 UTC (rev 38=
77)
+++ trunk/coregrind/pub_core_mallocfree.h 2005-06-11 01:12:08 UTC (rev 38=
78)
@@ -75,6 +75,7 @@
extern void* VG_(arena_realloc) ( ArenaId arena, void* ptr, SizeT size )=
;
extern void* VG_(arena_memalign)( ArenaId aid, SizeT req_alignB,=20
SizeT req_pszB );
+extern Char* VG_(arena_strdup) ( ArenaId aid, const Char* s);
=20
/* Sets the size of the redzones at the start and end of heap blocks. T=
his
must be called before any of VG_(malloc) and friends are called. */
Modified: trunk/coregrind/vg_mylibc.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/vg_mylibc.c 2005-06-11 01:07:00 UTC (rev 3877)
+++ trunk/coregrind/vg_mylibc.c 2005-06-11 01:12:08 UTC (rev 3878)
@@ -209,34 +209,6 @@
=20
=20
/* ---------------------------------------------------------------------
- strdup()
- ------------------------------------------------------------------ */
-
-/* Inline just for the wrapper VG_(strdup) below */
-__inline__ Char* VG_(arena_strdup) ( ArenaId aid, const Char* s )
-{
- Int i;
- Int len;
- Char* res;
-
- if (s =3D=3D NULL)
- return NULL;
-
- len =3D VG_(strlen)(s) + 1;
- res =3D VG_(arena_malloc) (aid, len);
-
- for (i =3D 0; i < len; i++)
- res[i] =3D s[i];
- return res;
-}
-
-/* Wrapper to avoid exposing tools to ArenaId's */
-Char* VG_(strdup) ( const Char* s )
-{
- return VG_(arena_strdup) ( VG_AR_TOOL, s );=20
-}
-
-/* ---------------------------------------------------------------------
Misc functions looking for a proper home.
------------------------------------------------------------------ */
=20
Modified: trunk/include/pub_tool_libcbase.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/pub_tool_libcbase.h 2005-06-11 01:07:00 UTC (rev 3877)
+++ trunk/include/pub_tool_libcbase.h 2005-06-11 01:12:08 UTC (rev 3878)
@@ -64,7 +64,6 @@
extern Char* VG_(strstr) ( const Char* haystack, Char* needle );
extern Char* VG_(strchr) ( const Char* s, Char c );
extern Char* VG_(strrchr) ( const Char* s, Char c );
-extern Char* VG_(strdup) ( const Char* s);
=20
/* Like strcmp() and strncmp(), but stop comparing at any whitespace. */
extern Int VG_(strcmp_ws) ( const Char* s1, const Char* s2 );
Modified: trunk/include/pub_tool_mallocfree.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/include/pub_tool_mallocfree.h 2005-06-11 01:07:00 UTC (rev 3877=
)
+++ trunk/include/pub_tool_mallocfree.h 2005-06-11 01:12:08 UTC (rev 3878=
)
@@ -37,6 +37,7 @@
extern void VG_(free) ( void* p );
extern void* VG_(calloc) ( SizeT n, SizeT bytes_per_elem );
extern void* VG_(realloc) ( void* p, SizeT size );
+extern Char* VG_(strdup) ( const Char* s );
=20
#endif // __PUB_TOOL_MALLOCFREE_H
=20
|
|
From: <sv...@va...> - 2005-06-11 01:07:53
|
Author: njn Date: 2005-06-11 02:07:00 +0100 (Sat, 11 Jun 2005) New Revision: 3877 Log: Modularised the thread/pthread modelling stuff. Added: trunk/coregrind/m_pthreadmodel.c trunk/coregrind/m_threadmodel.c trunk/coregrind/pub_core_pthreadmodel.h trunk/coregrind/pub_core_threadmodel.h Removed: trunk/coregrind/vg_pthreadmodel.c trunk/coregrind/vg_threadmodel.c Modified: trunk/coregrind/Makefile.am trunk/coregrind/core.h [... diff too large to include ...] |