gdb
authorTom Tromey <tromey@redhat.com>
Tue, 7 Jul 2009 21:33:50 +0000 (21:33 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 7 Jul 2009 21:33:50 +0000 (21:33 +0000)
commit30b66ecc739234c58f8f1aca25a8c068b09f9cc8
tree070269a7bacad563ef335cdac2c05c8ab3cca332
parent7ec721f405a1b9bb6598e80f5919ba7a27e997f6
gdb
* c-lang.c (convert_octal): Only allow 3 octal digits.
(print_wchar): Prefer 3-digit octal form.  Fall back to hex if
needed.
* c-exp.y (c_parse_escape): Only allow 3 octal digits.
gdb/testsuite
* gdb.base/call-rt-st.exp: Update for change to escape output.
* gdb.base/callfuncs.exp: Likewise.
* gdb.base/charset.exp: Likewise.
* gdb.base/constvars.exp: Likewise.
* gdb.base/long_long.exp: Likewise.
* gdb.base/pointers.exp: Likewise.
* gdb.base/printcmds.exp: Likewise.
* gdb.base/setvar.exp: Likewise.
* gdb.base/store.exp: Likewise.
* gdb.cp/ref-types.exp: Likewise.
* gdb.mi/mi-var-child.exp: Likewise.
* gdb.mi/mi-var-display.exp: Likewise.
* gdb.mi/mi2-var-display.exp: Likewise.
* gdb.base/charset.exp: Test octal escape sequence length.
Update for change to escape output.
17 files changed:
gdb/ChangeLog
gdb/c-exp.y
gdb/c-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/call-rt-st.exp
gdb/testsuite/gdb.base/callfuncs.exp
gdb/testsuite/gdb.base/charset.exp
gdb/testsuite/gdb.base/constvars.exp
gdb/testsuite/gdb.base/long_long.exp
gdb/testsuite/gdb.base/pointers.exp
gdb/testsuite/gdb.base/printcmds.exp
gdb/testsuite/gdb.base/setvar.exp
gdb/testsuite/gdb.base/store.exp
gdb/testsuite/gdb.cp/ref-types.exp
gdb/testsuite/gdb.mi/mi-var-child.exp
gdb/testsuite/gdb.mi/mi-var-display.exp
gdb/testsuite/gdb.mi/mi2-var-display.exp