You are here:

C++/Convert visual c++ to linux c++

Advertisement


Question
Hi Vijayan,
My name is srikanth and i am doing some breakpad related testing and i want to crash a specific process to test custom breakpad. The program is written in visual c++ and i want to test this one on linux because the binary which i want to crash is a linux version. So how can i rewrite it to c/c++. Can you help me out..

you can find the program at http://www.mediafire.com/?yconz0xxy8h3va1

Answer
C or C++ is platform agnostic; the language libraries do not provide any facilities for this.

Start by looking at kill(2)
http://www.freebsd.org/cgi/man.cgi?query=kill&sektion=2&apropos=0&manpath=FreeBS

sigaction(2)
http://www.freebsd.org/cgi/man.cgi?query=sigaction&sektion=2&apropos=0&manpath=F

and ptrace(2)
http://www.freebsd.org/cgi/man.cgi?query=ptrace&apropos=0&sektion=0&manpath=Free  

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


vijayan

Expertise

my primary areas of interest are generic and template metaprogramming, STL, algorithms, design patterns and c++11. i would not answer questions about gui and web programming.

Experience

about 15 years or so

Education/Credentials
post graduate engineer

©2016 About.com. All rights reserved.