aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-24 00:08:50 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-24 00:08:50 +0000
commit9107291db4840152f7ecff059d89f659965be4b2 (patch)
tree3824f8c25e98ad86b673c35aff0d15f2b961e5e4 /gdb/main.c
parent39a2ce33d7f365907352432bce427ec64b774454 (diff)
downloadgdb-9107291db4840152f7ecff059d89f659965be4b2.zip
gdb-9107291db4840152f7ecff059d89f659965be4b2.tar.gz
gdb-9107291db4840152f7ecff059d89f659965be4b2.tar.bz2
* main.c (cd_command): Call dont_repeat.
* dbxread.c (read_struct_type): If const/volatile character is missing, don't complain, just continue. * dbxread.c (read_struct_type): Only try to read the fcontext if it is there. Also change "error_type " to "return error_type ". values.c (value_virtual_fn_field): If there is no fcontext, then do things the way GDB 3.x did. valops.c (search_struct_method): Add type to value_virtual_fn_field arguments. * dbxread.c (read_struct_type): Fix typo: *pp != '\0' -> **pp != '\0'.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/main.c b/gdb/main.c
index dc1966a..255a411 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -1652,6 +1652,10 @@ cd_command (dir, from_tty)
int len;
int change;
+ /* If the new directory is absolute, repeat is a no-op; if relative,
+ repeat might be useful but is more likely to be a mistake. */
+ dont_repeat ();
+
if (dir == 0)
error_no_arg ("new working directory");