Commit Graph

27 Commits

Author SHA1 Message Date
Nicholas Nethercote
07045477ca Merge the DARWIN branch onto the trunk.
I tried using 'svn merge' to do the merge but it did a terrible job and
there were bazillions of conflicts.  So instead I just took the diff between
the branch and trunk  at r10155, applied the diff to the trunk, 'svn add'ed
the added files (no files needed to be 'svn remove'd) and committed.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10156
2009-05-28 01:53:07 +00:00
Nicholas Nethercote
2001629c3f Updated copyright years.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9344
2009-03-10 22:02:09 +00:00
Julian Seward
5679a22410 Update copyright dates ("200X-2007" --> "200X-2008").
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7398
2008-02-11 11:34:59 +00:00
Julian Seward
ba878b5c54 Don't let the debugger attachment fail silently in some cases.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7205
2007-11-24 21:24:25 +00:00
Julian Seward
04ac736514 Zero out the vki_user_regs_struct before using it. Otherwise, we end
up passing uninitialised garbage on the stack to ptrace(SETREGS, ...)
for any fields in the struct which are not filled in.  This does not
fix any known bugs, but seems like a good precautionary measure.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7187
2007-11-19 14:54:09 +00:00
Julian Seward
8624d07814 Add initial code to support debugger attaching on ppc64-linux (Ryan John).
Works on 2.6.20.  Does not work on 2.6.23 for unknown reasons.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7185
2007-11-19 02:29:07 +00:00
Julian Seward
5343a25e2b Minor tidyings to the debugger-attach code, as part of a failed
attempt to fix debugger attach on ppc32-linux and ppc64-linux (see
#151908).  The fork/ptrace-based mechanism works fine for x86-linux
and amd64-linux but not on ppc.  I have no idea what is going on.

It seems like the forked child process (to which we will attach GDB)
does not stop when it does PTRACE_TRACE_ME and so things go downhill
very rapidly after that.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7184
2007-11-19 02:01:01 +00:00
Julian Seward
e6ab39f170 When doing ptrace on amd64-linux, provide values which don't fail the
kernel's sanity checks for kernel >= 2.6.21.  Fixes #145622.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7183
2007-11-19 00:58:18 +00:00
Julian Seward
b7302d9258 Get rid of the type XArrayStrings in m_clientstate and use new generic
equivalents in module m_xarray instead.  A suprisingly pervasive
change.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6616
2007-02-25 15:08:24 +00:00
Julian Seward
172505c978 Update copyright dates.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6488
2007-01-08 06:01:59 +00:00
Julian Seward
5da1b2e810 Merge r6152: Add dummy cases for AIX5.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6284
2006-10-17 01:54:20 +00:00
Julian Seward
ae8215b3ac Create a new module, m_vki, and move all knowledge about the kernel
interface, except for the syscall numbers, into that.  Mostly this
means moving include/vki-*.h to include/vki/vki-*.h.

include/pub_tool_basics.h previously dragged in the entire kernel
interface.  I've done away with that, so that modules which need to
see the kernel interface now have to include pub_{core,tool}_vki.h
explicitly.  This is why there are many modified .c files -- they have
all acquired an extra #include line.

This certainly breaks all platforms except x86.  Will fix shortly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6225
2006-10-14 19:26:10 +00:00
Julian Seward
ad67fd79fe Update copyright dates.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5954
2006-06-05 23:21:15 +00:00
Julian Seward
f57f6f1921 Increase buffer size, so that long debugger command lines don't crash
V.  Also add buffer overrun checks.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5368
2005-12-18 03:22:50 +00:00
Julian Seward
8ba9a34088 Add framework for ppc64 support. Apologies in advance for the
inevitable breakage to other platforms.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5250
2005-11-29 13:05:56 +00:00
Julian Seward
f7cd7c3073 Add casts to stop gcc complaining.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5058
2005-11-09 15:14:16 +00:00
Julian Seward
fb2b39dcfd Third pass at the ppc32 ptrace stuff. It compiles now, but gcc complains that
the last two args to VG_(ptrace) are ints when they should be pointers.  So
I'm still not sure whether this is right or not.  Should I just put in a bunch
of casts to shut it up, or is it really expecting pointers and not ints?


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5056
2005-11-09 14:43:03 +00:00
Tom Hughes
fb53b628e2 Do ptrace_setregs in a ppc32 compatible way instead of a ppc64 way.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5052
2005-11-09 08:52:56 +00:00
Julian Seward
5f3a7540c1 Try to fill in ptrace_setregs. Dunno if it's right.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5046
2005-11-08 20:59:14 +00:00
Julian Seward
e0a5f54cf9 Make ppc32-linux build again following aspacem merge. Doesn't work, though:
programs crash before reaching main.  I don't know why.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4819
2005-09-29 11:09:56 +00:00
Julian Seward
cc8ccbbfb4 This commit merges in changes from branches/ASPACEM (specifically,
changes from r4341 through r4787 inclusive).  That branch is now dead.
Please do not commit anything else to it.

For the most part the merge was not troublesome.  The main areas of
uncertainty are:

- build system: I had to import by hand Makefile.core-AM_CPPFLAGS.am
  and include it in a couple of places.  Building etc seems to still
  work, but I haven't tried building the documentation.

- syscall wrappers: Following analysis by Greg & Nick, a whole lot of
  stuff was moved from -generic to -linux after the branch was created.
  I think that is satisfactorily glued back together now.

- Regtests: although this appears to work, no .out files appear, which
  is strange, and makes it hard to diagnose regtest failures.  In
  particular memcheck/tests/x86/scalar.stderr.exp remains in a 
  conflicted state.

- amd64 is broken (slightly), and ppc32 will be unbuildable.  I'll
  attend to the former shortly.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4789
2005-09-27 19:20:21 +00:00
Tom Hughes
16a1ee9dce Make attaching a debugger work on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4193
2005-07-19 18:19:48 +00:00
Nicholas Nethercote
142a621c4e ah, crap
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4079
2005-07-02 02:56:02 +00:00
Nicholas Nethercote
60dbf0cbc8 Remove unnecesary #includes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4078
2005-07-02 01:59:28 +00:00
Cerion Armour-Brown
d5f7c8aed3 Finally, valgrind on ppc32.
Plenty still to do, but simple programs like ls seem to run ok

Thanks, Paul, for having your ppc port of valgrind 2.4 to work from!




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3969
2005-06-20 15:51:07 +00:00
Nicholas Nethercote
61c1f49581 Add #include necessary for AMD64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3964
2005-06-20 02:22:00 +00:00
Nicholas Nethercote
1b3a92639e Moved VG_(start_debugger) out of m_main.c into its own module,
m_debugger.  This removes the dependence of m_signals.c and m_errormgr.c
on m_main.c.  It required also moving VG_(clexecfd) out of m_main.c;  I put
it in m_libcproc.c which seemed like an ok-but-not-great choice.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3957
2005-06-19 19:25:44 +00:00