# HG changeset patch # User Nick Roberts # Date 1157427684 0 # Node ID 172b33b2d7a88120149bb919a09b5ab28f42dc68 # Parent eea30f9dbecd5aec2a5617f5f69bc4edf787f74f (gdb-var-list-children-regexp) (gdb-var-list-children-regexp): Make type field optional. diff -r eea30f9dbecd -r 172b33b2d7a8 lisp/progmodes/gdb-ui.el --- a/lisp/progmodes/gdb-ui.el Tue Sep 05 03:40:54 2006 +0000 +++ b/lisp/progmodes/gdb-ui.el Tue Sep 05 03:41:24 2006 +0000 @@ -782,7 +782,7 @@ (defconst gdb-var-list-children-regexp "child={.*?name=\"\\(.*?\\)\",.*?exp=\"\\(.*?\\)\",.*?\ -numchild=\"\\(.*?\\)\",.*?type=\"\\(.*?\\)\".*?}") +numchild=\"\\(.*?\\)\".*?\\(,type=\"\\(.*?\\)\"\\)?.*?}") (defun gdb-var-list-children-handler (varnum) (goto-char (point-min)) @@ -796,7 +796,7 @@ (let ((varchild (list (match-string 1) (match-string 2) (match-string 3) - (match-string 4) + (match-string 5) nil nil))) (if (assoc (car varchild) gdb-var-list) (throw 'child-already-watched nil)) @@ -3346,7 +3346,7 @@ (defconst gdb-var-list-children-regexp-1 "child={.*?name=\"\\(.+?\\)\",.*?exp=\"\\(.+?\\)\",.*?\ -numchild=\"\\(.+?\\)\",.*?value=\\(\".*?\"\\),.*?type=\"\\(.+?\\)\".*?}") +numchild=\"\\(.+?\\)\",.*?value=\\(\".*?\"\\).*?\\(,type=\"\\(.+?\\)\"\\)?.*?}") (defun gdb-var-list-children-handler-1 (varnum) (goto-char (point-min)) @@ -3360,7 +3360,7 @@ (let ((varchild (list (match-string 1) (match-string 2) (match-string 3) - (match-string 5) + (match-string 6) (read (match-string 4)) nil))) (if (assoc (car varchild) gdb-var-list)