diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1994-03-01 07:57:01 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1994-03-01 07:57:01 +0000 |
commit | e3d6ec4a0d275ca63d52247b7efc16ccc392c9aa (patch) | |
tree | 57d56e5b329a1731cc107f627afbc56e5dc8a3b2 /gdb/symtab.c | |
parent | 3622687b760f5ef588c6cd4855f58038a463cf19 (diff) | |
download | gdb-e3d6ec4a0d275ca63d52247b7efc16ccc392c9aa.zip gdb-e3d6ec4a0d275ca63d52247b7efc16ccc392c9aa.tar.gz gdb-e3d6ec4a0d275ca63d52247b7efc16ccc392c9aa.tar.bz2 |
* symtab.c (decode_line_1): Handle the case when skip_quoted does not
advance `p'.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 3e751db..357b349 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1029,6 +1029,7 @@ find_pc_symtab (pc) /* Might want to error() here (in case symtab is corrupt and will cause a core dump), but maybe we can successfully continue, so let's not. */ + /* FIXME-32x64: assumes pc fits in a long */ warning ("\ (Internal error: pc 0x%lx in read in psymtab, but not in symtab.)\n", (unsigned long) pc); @@ -2148,7 +2149,8 @@ decode_line_1 (argptr, funfirstline, default_symtab, default_line, canonical) copy = (char *) alloca (p - *argptr + 1); memcpy (copy, *argptr, p - *argptr); copy[p - *argptr] = '\0'; - if ((copy[0] == copy [p - *argptr - 1]) + if (p != *argptr + && (copy[0] == copy [p - *argptr - 1]) && strchr (gdb_completer_quote_characters, copy[0]) != NULL) { copy [p - *argptr - 1] = '\0'; |