sk@pop-os ~/ocaml ((HEAD detached at 2bb2bde74))
$ ocamlopt fft.ml
sk@pop-os ~/ocaml ((HEAD detached at 2bb2bde74))
$ gdb --args ./a.out 512
GNU gdb (Ubuntu 9.2-0ubuntu2) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./a.out...
Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, 4 or 5) [in module /home/sk/ocaml/a.out]
(No debugging symbols found in ./a.out)
(gdb) break caml_empty_minor_heap
Breakpoint 1 at 0x26650
(gdb) r
Starting program: /home/sk/ocaml/a.out 512
Breakpoint 1, 0x000055555557a650 in caml_empty_minor_heap ()
(gdb) bt
#0 0x000055555557a650 in caml_empty_minor_heap ()
#1 0x000055555557abea in caml_gc_dispatch ()
#2 0x00005555555820e7 in caml_make_vect ()
#3 0x0000555555573628 in camlStdlib__array__init_101 ()
#4 0x000055555556f94f in camlFft__entry ()
#5 0x000055555556e7c9 in caml_program ()
#6 0x0000555555593420 in caml_start_program ()
#7 0x0000555555593c85 in caml_startup_common ()
#8 0x0000555555593cff in caml_main ()
#9 0x000055555556e662 in main ()
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) c
Continuing.
Breakpoint 1, 0x000055555557a650 in caml_empty_minor_heap ()
(gdb) bt
#0 0x000055555557a650 in caml_empty_minor_heap ()
#1 0x000055555557abea in caml_gc_dispatch ()
#2 0x00005555555820e7 in caml_make_vect ()
#3 0x0000555555573c2b in camlStdlib__array__map_145 ()
#4 0x000055555556f6db in camlFft__ifft_187 ()
#5 0x000055555556f973 in camlFft__entry ()
#6 0x000055555556e7c9 in caml_program ()
#7 0x0000555555593420 in caml_start_program ()
#8 0x0000555555593c85 in caml_startup_common ()
#9 0x0000555555593cff in caml_main ()
#10 0x000055555556e662 in main ()
(gdb) c
Continuing.
[Inferior 1 (process 276604) exited normally]
(gdb) quit
Created
November 11, 2020 16:11
-
-
Save shubhamkumar13/ee21bdc6586a749da604fabf0d372a45 to your computer and use it in GitHub Desktop.
2bb2bde gdb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment