OLD | NEW |
1 /* Auxiliary vector support for GDB, the GNU debugger. | 1 /* Auxiliary vector support for GDB, the GNU debugger. |
2 | 2 |
3 Copyright (C) 2004-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2004-2012 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GDB. | 5 This file is part of GDB. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 TAG (AT_DCACHEBSIZE, _("Data cache block size"), dec); | 438 TAG (AT_DCACHEBSIZE, _("Data cache block size"), dec); |
439 TAG (AT_ICACHEBSIZE, _("Instruction cache block size"), dec); | 439 TAG (AT_ICACHEBSIZE, _("Instruction cache block size"), dec); |
440 TAG (AT_UCACHEBSIZE, _("Unified cache block size"), dec); | 440 TAG (AT_UCACHEBSIZE, _("Unified cache block size"), dec); |
441 TAG (AT_IGNOREPPC, _("Entry should be ignored"), dec); | 441 TAG (AT_IGNOREPPC, _("Entry should be ignored"), dec); |
442 TAG (AT_BASE_PLATFORM, _("String identifying base platform"), str); | 442 TAG (AT_BASE_PLATFORM, _("String identifying base platform"), str); |
443 TAG (AT_RANDOM, _("Address of 16 random bytes"), hex); | 443 TAG (AT_RANDOM, _("Address of 16 random bytes"), hex); |
444 TAG (AT_EXECFN, _("File name of executable"), str); | 444 TAG (AT_EXECFN, _("File name of executable"), str); |
445 TAG (AT_SECURE, _("Boolean, was exec setuid-like?"), dec); | 445 TAG (AT_SECURE, _("Boolean, was exec setuid-like?"), dec); |
446 TAG (AT_SYSINFO, _("Special system info/entry points"), hex); | 446 TAG (AT_SYSINFO, _("Special system info/entry points"), hex); |
447 TAG (AT_SYSINFO_EHDR, _("System-supplied DSO's ELF header"), hex); | 447 TAG (AT_SYSINFO_EHDR, _("System-supplied DSO's ELF header"), hex); |
| 448 TAG (AT_L1I_CACHESHAPE, _("L1 Instruction cache information"), hex); |
| 449 TAG (AT_L1D_CACHESHAPE, _("L1 Data cache information"), hex); |
| 450 TAG (AT_L2_CACHESHAPE, _("L2 cache information"), hex); |
| 451 TAG (AT_L3_CACHESHAPE, _("L3 cache information"), hex); |
448 TAG (AT_SUN_UID, _("Effective user ID"), dec); | 452 TAG (AT_SUN_UID, _("Effective user ID"), dec); |
449 TAG (AT_SUN_RUID, _("Real user ID"), dec); | 453 TAG (AT_SUN_RUID, _("Real user ID"), dec); |
450 TAG (AT_SUN_GID, _("Effective group ID"), dec); | 454 TAG (AT_SUN_GID, _("Effective group ID"), dec); |
451 TAG (AT_SUN_RGID, _("Real group ID"), dec); | 455 TAG (AT_SUN_RGID, _("Real group ID"), dec); |
452 TAG (AT_SUN_LDELF, _("Dynamic linker's ELF header"), hex); | 456 TAG (AT_SUN_LDELF, _("Dynamic linker's ELF header"), hex); |
453 TAG (AT_SUN_LDSHDR, _("Dynamic linker's section headers"), hex); | 457 TAG (AT_SUN_LDSHDR, _("Dynamic linker's section headers"), hex); |
454 TAG (AT_SUN_LDNAME, _("String giving name of dynamic linker"), str); | 458 TAG (AT_SUN_LDNAME, _("String giving name of dynamic linker"), str); |
455 TAG (AT_SUN_LPAGESZ, _("Large pagesize"), dec); | 459 TAG (AT_SUN_LPAGESZ, _("Large pagesize"), dec); |
456 TAG (AT_SUN_PLATFORM, _("Platform name string"), str); | 460 TAG (AT_SUN_PLATFORM, _("Platform name string"), str); |
457 TAG (AT_SUN_HWCAP, _("Machine-dependent CPU capability hints"), hex); | 461 TAG (AT_SUN_HWCAP, _("Machine-dependent CPU capability hints"), hex); |
(...skipping 18 matching lines...) Expand all Loading... |
476 break; | 480 break; |
477 case hex: | 481 case hex: |
478 fprintf_filtered (file, "%s\n", paddress (target_gdbarch, val)); | 482 fprintf_filtered (file, "%s\n", paddress (target_gdbarch, val)); |
479 break; | 483 break; |
480 case str: | 484 case str: |
481 { | 485 { |
482 struct value_print_options opts; | 486 struct value_print_options opts; |
483 | 487 |
484 get_user_print_options (&opts); | 488 get_user_print_options (&opts); |
485 if (opts.addressprint) | 489 if (opts.addressprint) |
486 » fprintf_filtered (file, "%s", paddress (target_gdbarch, val)); | 490 » fprintf_filtered (file, "%s ", paddress (target_gdbarch, val)); |
487 val_print_string (builtin_type (target_gdbarch)->builtin_char, | 491 val_print_string (builtin_type (target_gdbarch)->builtin_char, |
488 NULL, val, -1, file, &opts); | 492 NULL, val, -1, file, &opts); |
489 fprintf_filtered (file, "\n"); | 493 fprintf_filtered (file, "\n"); |
490 } | 494 } |
491 break; | 495 break; |
492 } | 496 } |
493 ++ents; | 497 ++ents; |
494 if (type == AT_NULL) | 498 if (type == AT_NULL) |
495 break; | 499 break; |
496 } | 500 } |
(...skipping 29 matching lines...) Expand all Loading... |
526 | 530 |
527 /* Set an auxv cache per-inferior. */ | 531 /* Set an auxv cache per-inferior. */ |
528 auxv_inferior_data | 532 auxv_inferior_data |
529 = register_inferior_data_with_cleanup (auxv_inferior_data_cleanup); | 533 = register_inferior_data_with_cleanup (auxv_inferior_data_cleanup); |
530 | 534 |
531 /* Observers used to invalidate the auxv cache when needed. */ | 535 /* Observers used to invalidate the auxv cache when needed. */ |
532 observer_attach_inferior_exit (invalidate_auxv_cache_inf); | 536 observer_attach_inferior_exit (invalidate_auxv_cache_inf); |
533 observer_attach_inferior_appeared (invalidate_auxv_cache_inf); | 537 observer_attach_inferior_appeared (invalidate_auxv_cache_inf); |
534 observer_attach_executable_changed (invalidate_auxv_cache); | 538 observer_attach_executable_changed (invalidate_auxv_cache); |
535 } | 539 } |
OLD | NEW |