skip to main | skip to sidebar

Quotidian

A dump of whatever I feel like recording.

Tuesday, June 10, 2008

printing an array in gdb


(gdb) p *(bestSplit->param->mu)@9
$6 = {0, 0, 0, 0, 0, 0, 0, 0, 0}
(gdb) p *(bestSplit->param->p)@(bestSplit->param->numClusters)
$8 = {0, 0, 0, 0, 0, 0, 0, 0, 0}

Just what I've been dreaming of! The syntax: "*" <array name> "@" <number of elements>. See Debugging with GDB -- Arrays
Posted by util at 3:05 PM
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: C

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (2)
    • ►  December (1)
    • ►  September (1)
  • ►  2013 (1)
    • ►  December (1)
  • ►  2009 (1)
    • ►  March (1)
  • ▼  2008 (67)
    • ▼  June (15)
      • static field shared between instances of generic
      • R: keeping a 1-d subset of a matrix a matrix
      • printf("%02d", n)
      • get flat output in Maxima
      • Speaking game using python and Mac OS X's say
      • simulate from AR (and general ARIMA)
      • printing an array in gdb
      • -DBL_MAX
      • substitute expressions in Maxima
      • if every vector in a list has the same length, cre...
      • Getting a quiet NaN in C
      • NaN
      • proportions p such that sum(round(100 * p)) != 100
      • partition number according to proportions
      • Working with dates
    • ►  May (15)
    • ►  April (9)
    • ►  March (12)
    • ►  February (6)
    • ►  January (10)
  • ►  2007 (2)
    • ►  December (1)
    • ►  November (1)

About Me

util
View my complete profile