diff options
author | David Carlton <carlton@bactrian.org> | 2003-02-04 21:19:27 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2003-02-04 21:19:27 +0000 |
commit | 1c5cb38e90bd8955f5027f152b832675c2aa7922 (patch) | |
tree | d571f68732d294d975f9d5721dad007ed25ae8b0 /gdb/testsuite | |
parent | 0179ffacc777997a3db9f4c262c9c8923bdb41ff (diff) | |
download | gdb-1c5cb38e90bd8955f5027f152b832675c2aa7922.zip gdb-1c5cb38e90bd8955f5027f152b832675c2aa7922.tar.gz gdb-1c5cb38e90bd8955f5027f152b832675c2aa7922.tar.bz2 |
2003-02-04 David Carlton <carlton@math.stanford.edu>
* gdb.texinfo (C@t{++}): Recommend DWARF 2, then stabs+.
(Variables): Recommend stabs+ and DWARF 2.
(C plus plus expressions): Correct info about
compiler versions, debug formats.
(Contributors): Change 'DWARF2' to 'DWARF 2'.
PR symtab/874.
2003-02-04 David Carlton <carlton@math.stanford.edu>
* gdb.c++/overload.exp: Test intToChar(1).
* gdb.c++/overload.cc (intToChar): New.
(main): Call intToChar.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.c++/overload.cc | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.c++/overload.exp | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index dde2a43..44b3726 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2003-02-04 David Carlton <carlton@math.stanford.edu> + + * gdb.c++/overload.exp: Test intToChar(1). + * gdb.c++/overload.cc (intToChar): New. + (main): Call intToChar. + 2003-02-03 David Carlton <carlton@math.stanford.edu> * gdb.c++/ovldbreak.exp (continue_to_bp_overloaded): Add diff --git a/gdb/testsuite/gdb.c++/overload.cc b/gdb/testsuite/gdb.c++/overload.cc index 97083c5..2f46715 100644 --- a/gdb/testsuite/gdb.c++/overload.cc +++ b/gdb/testsuite/gdb.c++/overload.cc @@ -45,6 +45,11 @@ int overloadargs (int a1, int a2, int a3, int a4, int a5, int a6, int a7, }; +int intToChar (char c) +{ + return 297; +} + void marker1() {} @@ -72,6 +77,8 @@ int main () breakpoint(); #endif + // Verify that intToChar should work: + intToChar(1); marker1(); return 0; diff --git a/gdb/testsuite/gdb.c++/overload.exp b/gdb/testsuite/gdb.c++/overload.exp index 7bfae10..227b055 100644 --- a/gdb/testsuite/gdb.c++/overload.exp +++ b/gdb/testsuite/gdb.c++/overload.exp @@ -378,3 +378,5 @@ gdb_test "list foo::overloadfnarg(int, int (*)(int))" \ gdb_test "list \"foo::overloadfnarg(int, int (*)(int))\"" \ "int foo::overloadfnarg.*\\(int arg, int \\(\\*foo\\) \\(int\\)\\).*" \ "list overloaded function with function ptr args - quotes around argument" + +gdb_test "print intToChar(1)" ".\[0-9\]* = 297" |