| OLD | NEW |
| 1 /* Matsushita AM33/2.0 support for 32-bit GNU/Linux ELF | 1 /* Matsushita AM33/2.0 support for 32-bit GNU/Linux ELF |
| 2 Copyright 2003, 2005, 2007 | 2 Copyright 2003, 2005, 2007 |
| 3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of BFD, the Binary File Descriptor library. | 5 This file is part of BFD, the Binary File Descriptor library. |
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 elf32_am33lin_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) | 43 elf32_am33lin_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) |
| 44 { | 44 { |
| 45 int offset; | 45 int offset; |
| 46 unsigned int size; | 46 unsigned int size; |
| 47 | 47 |
| 48 switch (note->descsz) | 48 switch (note->descsz) |
| 49 { | 49 { |
| 50 default: | 50 default: |
| 51 return FALSE; | 51 return FALSE; |
| 52 | 52 |
| 53 case 184: |
| 53 case 188: /* Linux/am33 */ | 54 case 188: /* Linux/am33 */ |
| 54 /* pr_cursig */ | 55 /* pr_cursig */ |
| 55 elf_tdata (abfd)->core_signal = bfd_get_16 (abfd, note->descdata + 12); | 56 elf_tdata (abfd)->core_signal = bfd_get_16 (abfd, note->descdata + 12); |
| 56 | 57 |
| 57 /* pr_pid */ | 58 /* pr_pid */ |
| 58 elf_tdata (abfd)->core_lwpid = bfd_get_32 (abfd, note->descdata + 24); | 59 elf_tdata (abfd)->core_lwpid = bfd_get_32 (abfd, note->descdata + 24); |
| 59 | 60 |
| 60 /* pr_reg */ | 61 /* pr_reg */ |
| 61 offset = 72; | 62 offset = 72; |
| 62 size = 112; | 63 size = 112; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 command[n - 1] = '\0'; | 97 command[n - 1] = '\0'; |
| 97 } | 98 } |
| 98 | 99 |
| 99 return TRUE; | 100 return TRUE; |
| 100 } | 101 } |
| 101 | 102 |
| 102 #define elf_backend_grok_prstatus elf32_am33lin_grok_prstatus | 103 #define elf_backend_grok_prstatus elf32_am33lin_grok_prstatus |
| 103 #define elf_backend_grok_psinfo elf32_am33lin_grok_psinfo | 104 #define elf_backend_grok_psinfo elf32_am33lin_grok_psinfo |
| 104 | 105 |
| 105 #include "elf-m10300.c" | 106 #include "elf-m10300.c" |
| OLD | NEW |