On Sun, 10 Aug 2008, Chris Young wrote:

On Sun, 10 Aug 2008 09:39:44 +0100 (BST), John-Mark Bell wrote:

I could probably get more from gdb if I knew how to use it!

  1: gdb ./NetSurf
  2: breakpoint form_successful_controls
  3: run
  4: <Submit a form>
  5: next
  6: <repeat step 5 until something fails -- should be obvious. note the
     failure point -- this will be the function call producing the result
     that causes goto no_memory to happen>

Steps through with no obvious failures right up to the point where the
NoMemory error appears.

Well, to get to that point, one of the instances of goto no_memory must have been hit. The only way that can happen is if something failed and returnet a NULL pointer. You can do print <varname> to print out the current value of a variable. Also make sure you're building with -O0, as optimisation can obfuscate things.


J.

Reply via email to