GNU Binutils with patches for OS216
Revisão | 506800a969be975219e8f7c82efa68589d56b259 (tree) |
---|---|
Hora | 2008-10-01 01:53:06 |
Autor | Tom Tromey <tromey@redh...> |
Commiter | Tom Tromey |
* gdb.base/macscp.exp: Change "M" to "MACRO_TO_EXPAND"
everywhere.
* gdb.base/macscp1.c (MACRO_TO_EXPAND): Rename from "M".
@@ -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 | + | |
1 | 7 | 2008-09-28 Jan Kratochvil <jan.kratochvil@redhat.com> |
2 | 8 | |
3 | 9 | * gdb.threads/attachstop-mt.exp: Note a real testcase name this |
@@ -410,64 +410,64 @@ gdb_test "break [gdb_get_line_number "set breakpoint here"]" \ | ||
410 | 410 | |
411 | 411 | gdb_test "continue" "foo = 0;.*" "continue to macsp_expr" |
412 | 412 | |
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\." \ | |
415 | 415 | "print expression with macro before define." |
416 | 416 | |
417 | 417 | gdb_test "next" "foo = 1;" "next to definition" |
418 | 418 | |
419 | -gdb_test "print M" \ | |
419 | +gdb_test "print MACRO_TO_EXPAND" \ | |
420 | 420 | " = 0" \ |
421 | 421 | "print expression with macro in scope." |
422 | 422 | |
423 | -gdb_test "macro define M 72" \ | |
423 | +gdb_test "macro define MACRO_TO_EXPAND 72" \ | |
424 | 424 | "" \ |
425 | 425 | "user macro override" |
426 | 426 | |
427 | -gdb_test "print M" \ | |
427 | +gdb_test "print MACRO_TO_EXPAND" \ | |
428 | 428 | " = 72" \ |
429 | 429 | "choose user macro" |
430 | 430 | |
431 | -gdb_test "macro undef M" \ | |
431 | +gdb_test "macro undef MACRO_TO_EXPAND" \ | |
432 | 432 | "" \ |
433 | 433 | "remove user override" |
434 | 434 | |
435 | -gdb_test "print M" \ | |
435 | +gdb_test "print MACRO_TO_EXPAND" \ | |
436 | 436 | " = 0" \ |
437 | 437 | "print expression with macro after removing override" |
438 | 438 | |
439 | 439 | gdb_test "next" "foo = 2;" "next to definition" |
440 | 440 | |
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\." \ | |
443 | 443 | "print expression with macro after undef." |
444 | 444 | |
445 | -gdb_test "macro define M 5" \ | |
445 | +gdb_test "macro define MACRO_TO_EXPAND 5" \ | |
446 | 446 | "" \ |
447 | 447 | "basic macro define" |
448 | 448 | |
449 | -gdb_test "print M" \ | |
449 | +gdb_test "print MACRO_TO_EXPAND" \ | |
450 | 450 | " = 5" \ |
451 | 451 | "expansion of defined macro" |
452 | 452 | |
453 | 453 | gdb_test "macro list" \ |
454 | - "macro define M 5" \ | |
454 | + "macro define MACRO_TO_EXPAND 5" \ | |
455 | 455 | "basic macro list" |
456 | 456 | |
457 | -gdb_test "macro define M(x) x" \ | |
457 | +gdb_test "macro define MACRO_TO_EXPAND(x) x" \ | |
458 | 458 | "" \ |
459 | 459 | "basic redefine, macro with args" |
460 | 460 | |
461 | -gdb_test "print M (7)" \ | |
461 | +gdb_test "print MACRO_TO_EXPAND (7)" \ | |
462 | 462 | " = 7" \ |
463 | 463 | "expansion of macro with arguments" |
464 | 464 | |
465 | -gdb_test "macro undef M" \ | |
465 | +gdb_test "macro undef MACRO_TO_EXPAND" \ | |
466 | 466 | "" \ |
467 | 467 | "basic macro undef" |
468 | 468 | |
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\." \ | |
471 | 471 | "print expression with macro after user undef." |
472 | 472 | |
473 | 473 | # Regression test; this used to crash. |
@@ -69,9 +69,9 @@ macscp_expr (void) | ||
69 | 69 | int foo = -1; |
70 | 70 | |
71 | 71 | foo = 0; /* set breakpoint here */ |
72 | -#define M foo | |
72 | +#define MACRO_TO_EXPAND foo | |
73 | 73 | foo = 1; |
74 | -#undef M | |
74 | +#undef MACRO_TO_EXPAND | |
75 | 75 | foo = 2; |
76 | 76 | } |
77 | 77 |