Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created May 27, 2009 09:38
Show Gist options
  • Select an option

  • Save methodmissing/118548 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/118548 to your computer and use it in GitHub Desktop.
(gdb) imr_st_insert
Breakpoint 1 at 0x863e8: file st.c, line 289.
Reading symbols for shared libraries +++... done
Breakpoint 1, st_insert (table=0x100780, key=2913, value=744718) at st.c:289
289 hash_val = do_hash(key, table);
$1 = {
type = 0xb1a3c,
num_bins = 11,
num_entries = 0,
bins = 0x100790
}
$2 = 2913
$3 = 744718
numhash (n=727612) at st.c:573
573 {
575 }
st_insert (table=0x100780, key=2913, value=744718) at st.c:290
290 FIND_ENTRY(table, ptr, hash_val, bin_pos);
289 hash_val = do_hash(key, table);
290 FIND_ENTRY(table, ptr, hash_val, bin_pos);
293 ADD_DIRECT(table, key, value, hash_val, bin_pos);
300 }
$4 = {
type = 0xb1a3c,
num_bins = 11,
num_entries = 1,
bins = 0x100790
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment