diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-01-14 18:17:20 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-01-14 18:17:20 +0000 |
commit | bc8332bb44886d189fce38b812d6919a157af734 (patch) | |
tree | a590a5efa15e042b71e7abe802d574fce2477069 | |
parent | 4e18e2de1e848546c649ac74f8fbb8711c789243 (diff) | |
download | gdb-bc8332bb44886d189fce38b812d6919a157af734.zip gdb-bc8332bb44886d189fce38b812d6919a157af734.tar.gz gdb-bc8332bb44886d189fce38b812d6919a157af734.tar.bz2 |
Index: ChangeLog
2005-01-14 Andrew Cagney <cagney@gnu.org>
* varobj.c (varobj_create): Add missing \n.
Index: testsuite/ChangeLog
2005-01-14 Andrew Cagney <cagney@gnu.org>
* gdb.mi/mi-var-cmd.exp: Adjust "create int" test to match output.
* gdb.mi/mi2-var-cmd.exp: Ditto.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-cmd.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi2-var-cmd.exp | 5 | ||||
-rw-r--r-- | gdb/varobj.c | 7 |
5 files changed, 19 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 92eaaa4..b77c67f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2005-01-14 Andrew Cagney <cagney@gnu.org> + + * varobj.c (varobj_create): Add missing \n. + 2005-01-13 Michael Snyder <msnyder@redhat.com> * cli/cli-decode.h: Whitespace tweaks. diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 34f0d40..caaca37 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-01-14 Andrew Cagney <cagney@gnu.org> + + * gdb.mi/mi-var-cmd.exp: Adjust "create int" test to match output. + * gdb.mi/mi2-var-cmd.exp: Ditto. + 2005-01-10 Corinna Vinschen <vinschen@redhat.com> * gdb.base/fileio.c: Include unistd.h as required for lseek(2). diff --git a/gdb/testsuite/gdb.mi/mi-var-cmd.exp b/gdb/testsuite/gdb.mi/mi-var-cmd.exp index adc4995..30f060d 100644 --- a/gdb/testsuite/gdb.mi/mi-var-cmd.exp +++ b/gdb/testsuite/gdb.mi/mi-var-cmd.exp @@ -1,4 +1,5 @@ -# Copyright 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. +# Copyright 1999, 2000, 2001, 2002, 2004, 2005 Free Software +# Foundation, Inc. # # This Program Is Free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -148,7 +149,7 @@ mi_gdb_test "-var-create lsimple.integer * lsimple.integer" \ # Type names (like int, long, etc..) are all proper expressions to gdb. # make sure variable code does not allow users to create variables, though. mi_gdb_test "-var-create int * int" \ - "&\"Attempt to use a type name as an expression.mi_cmd_var_create: unable to create variable object\\\\n\".*\\^error,msg=\"mi_cmd_var_create: unable to create variable object\"" \ + "&\"Attempt to use a type name as an expression.\\\\n\".*&\"mi_cmd_var_create: unable to create variable object\\\\n\".*\\^error,msg=\"mi_cmd_var_create: unable to create variable object\"" \ "create int" diff --git a/gdb/testsuite/gdb.mi/mi2-var-cmd.exp b/gdb/testsuite/gdb.mi/mi2-var-cmd.exp index bbecda8..5a8f50b 100644 --- a/gdb/testsuite/gdb.mi/mi2-var-cmd.exp +++ b/gdb/testsuite/gdb.mi/mi2-var-cmd.exp @@ -1,4 +1,5 @@ -# Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +# Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2004 Free Software +# Foundation, Inc. # # This Program Is Free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -148,7 +149,7 @@ mi_gdb_test "-var-create lsimple.integer * lsimple.integer" \ # Type names (like int, long, etc..) are all proper expressions to gdb. # make sure variable code does not allow users to create variables, though. mi_gdb_test "-var-create int * int" \ - "&\"Attempt to use a type name as an expression.mi_cmd_var_create: unable to create variable object\\\\n\".*\\^error,msg=\"mi_cmd_var_create: unable to create variable object\"" \ + "&\"Attempt to use a type name as an expression.\\\\n\".*&\"mi_cmd_var_create: unable to create variable object\\\\n\".*\\^error,msg=\"mi_cmd_var_create: unable to create variable object\"" \ "create int" diff --git a/gdb/varobj.c b/gdb/varobj.c index 23a8bb3..175fd43 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -1,5 +1,6 @@ /* Implementation of the GDB variable objects API. - Copyright 1999, 2000, 2001 Free Software Foundation, Inc. + + Copyright 1999, 2000, 2001, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -472,8 +473,8 @@ varobj_create (char *objname, if (var->root->exp->elts[0].opcode == OP_TYPE) { do_cleanups (old_chain); - fprintf_unfiltered (gdb_stderr, - "Attempt to use a type name as an expression."); + fprintf_unfiltered (gdb_stderr, "Attempt to use a type name" + " as an expression.\n"); return NULL; } |