Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Update README.md | d950c53af3a3b3bed374cee734f7d81b64fa16ad | Jan Allersma | 2018-11-16 19:15:47 |
Dump to log file. | 8aced5b3cbe9fd245b68168de57f55f2b0cd68e9 | Jan Allersma | 2018-05-30 12:08:53 |
Add compile info at runtime error. Determine appropiate code for architecture when compiling. | 41baa10ac827df8efb3040c2b82197053d6b43c0 | Jan Allersma | 2018-05-22 12:15:18 |
Remove redundant variables and header includes. | fb31483b36a5f9e249d8fa88f0c3ff66b1fce6cd | Jan Allersma | 2018-05-22 11:40:35 |
Initial commit. | 86c80da5a6a677f1686e50996b61fd51632259ba | Jan Allersma | 2018-05-18 13:12:38 |
File | Lines added | Lines deleted |
---|---|---|
README.md | 6 | 6 |
File README.md changed (mode: 100644) (index 939a821..8006ce0) | |||
... | ... | Running `./exe` results in this output: | |
18 | 18 | ||
19 | 19 | ``` | ``` |
20 | 20 | Error 11 at (nil): | Error 11 at (nil): |
21 | Called from 0x40233f | ||
21 | Called from 0x400a48 | ||
22 | 22 | Compiled at: May 30 2018 09:24:41 | Compiled at: May 30 2018 09:24:41 |
23 | 23 | Aborted (geheugendump gemaakt) | Aborted (geheugendump gemaakt) |
24 | 24 | ``` | ``` |
... | ... | Possible output would be: | |
35 | 35 | ||
36 | 36 | ``` | ``` |
37 | 37 | May 30 09:38:14 localhost postmortem-debugging[14671]: Error 11 at (nil): | May 30 09:38:14 localhost postmortem-debugging[14671]: Error 11 at (nil): |
38 | May 30 09:38:14 localhost postmortem-debugging[14671]: Called from 0x40233f. | ||
38 | May 30 09:38:14 localhost postmortem-debugging[14671]: Called from 0x400a48. | ||
39 | 39 | May 30 09:38:14 localhost postmortem-debugging[14671]: Compiled at: May 30 2018 09:24:41 | May 30 09:38:14 localhost postmortem-debugging[14671]: Compiled at: May 30 2018 09:24:41 |
40 | 40 | ``` | ``` |
41 | 41 | ||
... | ... | $ gdb ./dbgexe | |
48 | 48 | Then you need to use the information from the log file. Execute this code in `gdb`: | Then you need to use the information from the log file. Execute this code in `gdb`: |
49 | 49 | ||
50 | 50 | ``` | ``` |
51 | l *0x40233f | ||
51 | l *0x400a48 | ||
52 | 52 | ``` | ``` |
53 | 53 | ||
54 | > Use the output from running ./exe ('Called from 0x40233f'). | ||
54 | > Use the output from running ./exe ('Called from 0x400a48'). | ||
55 | 55 | ||
56 | As `gdb` states, the error was caused at line 57: | ||
56 | As `gdb` states, the error was caused at line 71: | ||
57 | 57 | ||
58 | 58 | ``` | ``` |
59 | 0x40233f is in main() (main.cpp:71). | ||
59 | 0x400a48 is in main() (main.cpp:71). | ||
60 | 60 | ``` | ``` |