Skip to content

Instantly share code, notes, and snippets.

@KevinKu
Created March 14, 2016 07:52
Show Gist options
  • Select an option

  • Save KevinKu/a13218cd3cddaf0c6ab9 to your computer and use it in GitHub Desktop.

Select an option

Save KevinKu/a13218cd3cddaf0c6ab9 to your computer and use it in GitHub Desktop.
(gdb) set $head=(List*)0
(gdb) create_list $head 2
$1 = 0
$2 = (List *) 0x602010
$3 = 0
$4 = (struct List_node *) 0x0
$5 = (List *) 0x602010
$6 = (List *) 0x602010
$7 = 1
$8 = (List *) 0x602030
$9 = 1
$10 = (struct List_node *) 0x0
$11 = (struct List_node *) 0x602030
$12 = 2
$13 = (struct List_node *) 0x602030
$14 = (List *) 0x602010
(gdb) printf_list $hea
headmap heap_info
(gdb) printf_list $head
$15 = (List *) 0x602010
$16 = 0
$17 = (struct List_node *) 0x602030
$18 = 1
$19 = (struct List_node *) 0x0
(gdb) call bubble_sort(&($head))
Attempt to take address of value not located in memory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment