• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision506800a969be975219e8f7c82efa68589d56b259 (tree)
Time2008-10-01 01:53:06
AuthorTom Tromey <tromey@redh...>
CommiterTom Tromey

Log Message

* gdb.base/macscp.exp: Change "M" to "MACRO_TO_EXPAND"
everywhere.
* gdb.base/macscp1.c (MACRO_TO_EXPAND): Rename from "M".

Change Summary

Incremental Difference

--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
1+2008-09-30 Tom Tromey <tromey@redhat.com>
2+
3+ * gdb.base/macscp.exp: Change "M" to "MACRO_TO_EXPAND"
4+ everywhere.
5+ * gdb.base/macscp1.c (MACRO_TO_EXPAND): Rename from "M".
6+
17 2008-09-28 Jan Kratochvil <jan.kratochvil@redhat.com>
28
39 * gdb.threads/attachstop-mt.exp: Note a real testcase name this
--- a/gdb/testsuite/gdb.base/macscp.exp
+++ b/gdb/testsuite/gdb.base/macscp.exp
@@ -410,64 +410,64 @@ gdb_test "break [gdb_get_line_number "set breakpoint here"]" \
410410
411411 gdb_test "continue" "foo = 0;.*" "continue to macsp_expr"
412412
413-gdb_test "print M" \
414- "No symbol \"M\" in current context\." \
413+gdb_test "print MACRO_TO_EXPAND" \
414+ "No symbol \"MACRO_TO_EXPAND\" in current context\." \
415415 "print expression with macro before define."
416416
417417 gdb_test "next" "foo = 1;" "next to definition"
418418
419-gdb_test "print M" \
419+gdb_test "print MACRO_TO_EXPAND" \
420420 " = 0" \
421421 "print expression with macro in scope."
422422
423-gdb_test "macro define M 72" \
423+gdb_test "macro define MACRO_TO_EXPAND 72" \
424424 "" \
425425 "user macro override"
426426
427-gdb_test "print M" \
427+gdb_test "print MACRO_TO_EXPAND" \
428428 " = 72" \
429429 "choose user macro"
430430
431-gdb_test "macro undef M" \
431+gdb_test "macro undef MACRO_TO_EXPAND" \
432432 "" \
433433 "remove user override"
434434
435-gdb_test "print M" \
435+gdb_test "print MACRO_TO_EXPAND" \
436436 " = 0" \
437437 "print expression with macro after removing override"
438438
439439 gdb_test "next" "foo = 2;" "next to definition"
440440
441-gdb_test "print M" \
442- "No symbol \"M\" in current context\." \
441+gdb_test "print MACRO_TO_EXPAND" \
442+ "No symbol \"MACRO_TO_EXPAND\" in current context\." \
443443 "print expression with macro after undef."
444444
445-gdb_test "macro define M 5" \
445+gdb_test "macro define MACRO_TO_EXPAND 5" \
446446 "" \
447447 "basic macro define"
448448
449-gdb_test "print M" \
449+gdb_test "print MACRO_TO_EXPAND" \
450450 " = 5" \
451451 "expansion of defined macro"
452452
453453 gdb_test "macro list" \
454- "macro define M 5" \
454+ "macro define MACRO_TO_EXPAND 5" \
455455 "basic macro list"
456456
457-gdb_test "macro define M(x) x" \
457+gdb_test "macro define MACRO_TO_EXPAND(x) x" \
458458 "" \
459459 "basic redefine, macro with args"
460460
461-gdb_test "print M (7)" \
461+gdb_test "print MACRO_TO_EXPAND (7)" \
462462 " = 7" \
463463 "expansion of macro with arguments"
464464
465-gdb_test "macro undef M" \
465+gdb_test "macro undef MACRO_TO_EXPAND" \
466466 "" \
467467 "basic macro undef"
468468
469-gdb_test "print M" \
470- "No symbol \"M\" in current context\." \
469+gdb_test "print MACRO_TO_EXPAND" \
470+ "No symbol \"MACRO_TO_EXPAND\" in current context\." \
471471 "print expression with macro after user undef."
472472
473473 # Regression test; this used to crash.
--- a/gdb/testsuite/gdb.base/macscp1.c
+++ b/gdb/testsuite/gdb.base/macscp1.c
@@ -69,9 +69,9 @@ macscp_expr (void)
6969 int foo = -1;
7070
7171 foo = 0; /* set breakpoint here */
72-#define M foo
72+#define MACRO_TO_EXPAND foo
7373 foo = 1;
74-#undef M
74+#undef MACRO_TO_EXPAND
7575 foo = 2;
7676 }
7777