sewardj | 948a6fc | 2007-03-19 18:38:55 +0000 | [diff] [blame] | 1 | |
| 2 | /* This program doesn't do anything. So why is it here? It's a |
| 3 | helper for ptraced-based launchers (eg aix5). They can't run 'no |
| 4 | program' if the user types "valgrind --help", so they run this |
| 5 | do-nothing program. m_main notices that and turns the exe name |
| 6 | back into NULL. Then --help, --version etc work as they should. */ |
| 7 | |
| 8 | #include <stdio.h> |
| 9 | int main ( void ) |
| 10 | { |
| 11 | fprintf(stderr, |
| 12 | "This program (part of Valgrind) does nothing except print\n" |
| 13 | "this text. You should not see this text. If you do, some\n" |
| 14 | "part of valgrind's launch mechanism is not working correctly.\n"); |
| 15 | return 0; |
| 16 | } |