Skip to content

Commit

Permalink
Escape " since disassembled strings are between "".
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@1601 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
Daniel Grunblatt committed Jun 4, 2002
1 parent 10ea239 commit 42faf3f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ PDB_break(struct Parrot_Interp *interpreter)
}

/* PDB_escape
* escapes \r \n \t \a and \\
* escapes " \r \n \t \a and \\
*/
char *
PDB_escape(const char *string)
Expand Down Expand Up @@ -541,6 +541,10 @@ PDB_escape(const char *string)
*(fill++) = '\\';
*(fill++) = '\\';
break;
case '"':
*(fill++) = '\\';
*(fill++) = '"';
break;
default:
*(fill++) = *string;
break;
Expand Down
6 changes: 5 additions & 1 deletion src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ PDB_break(struct Parrot_Interp *interpreter)
}

/* PDB_escape
* escapes \r \n \t \a and \\
* escapes " \r \n \t \a and \\
*/
char *
PDB_escape(const char *string)
Expand Down Expand Up @@ -541,6 +541,10 @@ PDB_escape(const char *string)
*(fill++) = '\\';
*(fill++) = '\\';
break;
case '"':
*(fill++) = '\\';
*(fill++) = '"';
break;
default:
*(fill++) = *string;
break;
Expand Down

0 comments on commit 42faf3f

Please sign in to comment.