]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make --log-socket= work on ppc32.
authorJulian Seward <jseward@acm.org>
Fri, 7 Oct 2005 23:04:17 +0000 (23:04 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 7 Oct 2005 23:04:17 +0000 (23:04 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4893

coregrind/m_libcfile.c

index d62e58ebe4400354cf8e5480bfcee4a0bc7eb230..2da57532e682cb97436064bb4439ad3379afd264 100644 (file)
@@ -384,7 +384,7 @@ Int parse_inet_addr_and_port ( UChar* str, UInt* ip_addr, UShort* port )
 static
 Int my_socket ( Int domain, Int type, Int protocol )
 {
-#if defined(VGP_x86_linux)
+#if defined(VGP_x86_linux) || defined(VGP_ppc32_linux)
    SysRes res;
    UWord  args[3];
    args[0] = domain;
@@ -398,10 +398,6 @@ Int my_socket ( Int domain, Int type, Int protocol )
    res = VG_(do_syscall3)(__NR_socket, domain, type, protocol );
    return res.isError ? -1 : res.val;
 
-#elif defined(VGP_ppc32_linux)
-   //CAB: TODO
-   I_die_here;
-
 #else
 #  error Unknown arch
 #endif
@@ -411,7 +407,7 @@ static
 Int my_connect ( Int sockfd, struct vki_sockaddr_in* serv_addr, 
                  Int addrlen )
 {
-#if defined(VGP_x86_linux)
+#if defined(VGP_x86_linux) || defined(VGP_ppc32_linux)
    SysRes res;
    UWord  args[3];
    args[0] = sockfd;
@@ -425,10 +421,6 @@ Int my_connect ( Int sockfd, struct vki_sockaddr_in* serv_addr,
    res = VG_(do_syscall3)(__NR_connect, sockfd, (UWord)serv_addr, addrlen);
    return res.isError ? -1 : res.val;
 
-#elif defined(VGP_ppc32_linux)
-   //CAB: TODO
-   I_die_here;
-
 #else
 #  error Unknown arch
 #endif