# HG changeset patch # User Andreas Schwab # Date 1073421533 0 # Node ID 1c9b877f555dc7ba7d41b5ce80b3505db411f85a # Parent a48d12609a3e38c62a9032878c5ff3cc48c81028 (gdb-frame-handler): Handle word wrapping anywhere in output. diff -r a48d12609a3e -r 1c9b877f555d lisp/gdb-ui.el --- a/lisp/gdb-ui.el Tue Jan 06 16:11:00 2004 +0000 +++ b/lisp/gdb-ui.el Tue Jan 06 20:38:53 2004 +0000 @@ -4,7 +4,7 @@ ;; Maintainer: FSF ;; Keywords: unix, tools -;; Copyright (C) 2002, 2003 Free Software Foundation, Inc. +;; Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. ;; This file is part of GNU Emacs. @@ -1985,7 +1985,7 @@ (with-current-buffer (gdb-get-create-buffer 'gdb-partial-output-buffer) (goto-char (point-min)) (forward-line) - (if (looking-at ".*= 0x\\(\\S-*\\) in \\(\\S-*\\)") + (if (looking-at ".*=\\s-+0x\\(\\S-*\\)\\s-+in\\s-+\\(\\S-*\\)") (progn (setq gdb-current-frame (match-string 2)) (let ((address (match-string 1))) @@ -1994,7 +1994,7 @@ (setq gdb-current-address (concat "0x" (match-string 1 address))) (setq gdb-current-address (concat "0x" address)))) - (if (or (if (not (looking-at ".*(\\S-*:[0-9]*)")) + (if (or (if (not (re-search-forward "(\\S-*:[0-9]*);" nil t)) (progn (setq gdb-view-source nil) t)) (eq gdb-selected-view 'assembler)) (progn @@ -2003,8 +2003,7 @@ (gdb-get-create-buffer 'gdb-assembler-buffer)) ;;update with new frame for machine code if necessary (gdb-invalidate-assembler)))))) - (forward-line) - (if (looking-at " source language \\(\\S-*\\)\.") + (if (re-search-forward " source language \\(\\S-*\\)\." nil t) (setq gdb-current-language (match-string 1)))) (provide 'gdb-ui)