RE: Alignment trap problem

2008-06-06 Thread Kalpesh Rathod
If code is compiled with debugging information, gdb gives source level information. File name and line number when crash occurs. You can use -g option while compiling. There are other options as well. Please see gcc man page for that. Regards, Kalpesh -Original Message- From: [EMAIL PROT

RE: Alignment trap problem

2008-06-06 Thread Kalpesh Rathod
Running your program with gdb can help you to find out where exactly the un-aligned memory access happens. Make sure program is compiled with debugging information. (gcc -g option) To run program with gdb on target, [EMAIL PROTECTED] ~]#gdb exe_name Then (gdb) run The program will start exec