]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Improve factoring in m_coredump a little.
authorNicholas Nethercote <njn@valgrind.org>
Mon, 7 Nov 2005 04:52:41 +0000 (04:52 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 7 Nov 2005 04:52:41 +0000 (04:52 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5025

coregrind/m_coredump/coredump-amd64-linux.c
coregrind/m_coredump/coredump-elf.c
coregrind/m_coredump/coredump-ppc32-linux.c
coregrind/m_coredump/coredump-x86-linux.c
coregrind/m_coredump/priv_elf.h

index ffa69f9409a8dd95763f9b0bfc95a4adf315fe5d..22716953c0915797996fb9f5608628812df409f5 100644 (file)
@@ -84,7 +84,6 @@ void ML_(fill_elffpregs_from_tst)(vki_elf_fpregset_t* fpu,
    VG_(memset)(fpu->padding, 0, sizeof(fpu->padding));
 }
 
-void VG_(make_coredump)(ThreadId tid, const vki_siginfo_t *si, UInt max_size)
-{
-   ML_(make_elf_coredump)(tid, si, max_size);
-}
+/*--------------------------------------------------------------------*/
+/*--- end                                                          ---*/
+/*--------------------------------------------------------------------*/
index 82b1a7eaf6fa2c5b714f3419284b14f8afa4008b..60d18db46c55c2f51f9a7e4430c1ee302560faef 100644 (file)
@@ -281,7 +281,8 @@ static void fill_xfpu(const ThreadState *tst, vki_elf_fpxregset_t *xfpu)
 }
 #endif
 
-void ML_(make_elf_coredump)(ThreadId tid, const vki_siginfo_t *si, UInt max_size)
+static
+void make_elf_coredump(ThreadId tid, const vki_siginfo_t *si, UInt max_size)
 {
    Char buf[1000];
    Char *basename = "vgcore";
@@ -434,6 +435,11 @@ void ML_(make_elf_coredump)(ThreadId tid, const vki_siginfo_t *si, UInt max_size
    VG_(close)(core_fd);
 }
 
+void VG_(make_coredump)(ThreadId tid, const vki_siginfo_t *si, UInt max_size)
+{
+   make_elf_coredump(tid, si, max_size);
+}
+
 /*--------------------------------------------------------------------*/
 /*--- end                                                          ---*/
 /*--------------------------------------------------------------------*/
index 0155c4c0282ae1533619daaae34693eaa3fc1924..c3ca45adf99e408161573afb1e5bc3ae3cebdf04 100644 (file)
@@ -71,7 +71,6 @@ void ML_(fill_elffpregs_from_tst)(vki_elf_fpregset_t* fpu,
 #  undef DO
 }
 
-void VG_(make_coredump)(ThreadId tid, const vki_siginfo_t *si, UInt max_size)
-{
-   ML_(make_elf_coredump)(tid, si, max_size);
-}
+/*--------------------------------------------------------------------*/
+/*--- end                                                          ---*/
+/*--------------------------------------------------------------------*/
index 320c532bf09a2a4562ad6f98b0ea0c8b8bdea817..79a91bed8b009078f1d777e21d758bddd23e374e 100644 (file)
@@ -104,7 +104,6 @@ void ML_(fill_elffpxregs_from_tst)(vki_elf_fpxregset_t* xfpu,
    VG_(memset)(xfpu->padding, 0, sizeof(xfpu->padding));
 }
 
-void VG_(make_coredump)(ThreadId tid, const vki_siginfo_t *si, UInt max_size)
-{
-   ML_(make_elf_coredump)(tid, si, max_size);
-}
+/*--------------------------------------------------------------------*/
+/*--- end                                                          ---*/
+/*--------------------------------------------------------------------*/
index b21641cd7033015ba7e4ff81e1a555068191c431..a1340a42e9f68401ee6d85bd445a83c0eadbf888 100644 (file)
@@ -31,8 +31,6 @@
 #ifndef __PRIV_SYMTAB_H
 #define __PRIV_SYMTAB_H
 
-void ML_(make_elf_coredump)(ThreadId tid, const vki_siginfo_t *si, UInt max_size);
-
 void ML_(fill_elfregs_from_tst)(struct vki_user_regs_struct* regs, 
                                 const ThreadArchState* arch);