OLD | NEW |
1 /* Native-dependent code for GNU/Linux SPARC. | 1 /* Native-dependent code for GNU/Linux SPARC. |
2 Copyright (C) 2005-2012 Free Software Foundation, Inc. | 2 Copyright (C) 2005-2012 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GDB. | 4 This file is part of GDB. |
5 | 5 |
6 This program is free software; you can redistribute it and/or modify | 6 This program is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation; either version 3 of the License, or | 8 the Free Software Foundation; either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 sparc32_collect_gregset (sparc_gregset, regcache, regnum, gregs); | 46 sparc32_collect_gregset (sparc_gregset, regcache, regnum, gregs); |
47 } | 47 } |
48 | 48 |
49 void | 49 void |
50 fill_fpregset (const struct regcache *regcache, | 50 fill_fpregset (const struct regcache *regcache, |
51 prfpregset_t *fpregs, int regnum) | 51 prfpregset_t *fpregs, int regnum) |
52 { | 52 { |
53 sparc32_collect_fpregset (regcache, regnum, fpregs); | 53 sparc32_collect_fpregset (regcache, regnum, fpregs); |
54 } | 54 } |
55 | 55 |
56 void _initialialize_sparc_linux_nat (void); | 56 void _initialize_sparc_linux_nat (void); |
57 | 57 |
58 void | 58 void |
59 _initialize_sparc_linux_nat (void) | 59 _initialize_sparc_linux_nat (void) |
60 { | 60 { |
61 struct target_ops *t; | 61 struct target_ops *t; |
62 | 62 |
63 /* Fill in the generic GNU/Linux methods. */ | 63 /* Fill in the generic GNU/Linux methods. */ |
64 t = linux_target (); | 64 t = linux_target (); |
65 | 65 |
66 /* Add our register access methods. */ | 66 /* Add our register access methods. */ |
67 t->to_fetch_registers = sparc_fetch_inferior_registers; | 67 t->to_fetch_registers = sparc_fetch_inferior_registers; |
68 t->to_store_registers = sparc_store_inferior_registers; | 68 t->to_store_registers = sparc_store_inferior_registers; |
69 | 69 |
70 /* Register the target. */ | 70 /* Register the target. */ |
71 linux_nat_add_target (t); | 71 linux_nat_add_target (t); |
72 } | 72 } |
OLD | NEW |