2010-01-06 Tristan Gingold <gingold@adacore.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2010-01-06 Tristan Gingold <gingold@adacore.com>
2
3 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
4 parameter to main_objfile. Iterate on all separate debug objfiles.
5 * symfile.h (symbol_file_add_separate)
6 (find_separate_debug_file_by_debuglink): Remove parameter names.
7 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
8 (reread_symbols): Use free_objfile_separate_debug.
9 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10 Adjust comment.
11 (objfile_separate_debug_iterate, add_separate_debug_objfile)
12 (free_objfile_separate_debug): New prototypes.
13 * objfiles.c (objfile_separate_debug_iterate): New function.
14 (add_separate_debug_objfile, free_objfile_separate_debug): New
15 functions.
16 (free_objfile): Use free_objfile_separate_debug. Adjust for
17 multiple separate debug objfile.
18 (objfile_has_symbols): Adjust comment. Iterate on all separate
19 debug objfiles.
20 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
21 debug objfile.
22 (lookup_minimal_symbol_text): Ditto.
23 (lookup_minimal_symbol_by_pc_name): Ditto.
24 (lookup_minimal_symbol_solib_trampoline): Ditto.
25 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
26 debug objfiles.
27
28 2010-01-05 Stan Shebs <stan@codesourcery.com>
29
30 Add fast tracepoints.
31 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
32 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
33 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
34 * breakpoint.c (tracepoint_type): New function.
35 (ALL_TRACEPOINTS): Use it.
36 (should_be_inserted): Ditto.
37 (bpstat_check_location): Ditto.
38 (print_one_breakpoint_location): Ditto.
39 (user_settable_breakpoint): Ditto.
40 (set_breakpoint_location_function): Ditto.
41 (disable_breakpoints_in_shlibs): Ditto.
42 (delete_trace_command): Ditto.
43 (print_it_typical): Add bp_fast_tracepoint case.
44 (bpstat_what): Ditto.
45 (print_one_breakpoint_location): Ditto.
46 (allocate_bp_location): Ditto.
47 (mention): Ditto.
48 (breakpoint_re_set_one): Ditto.
49 (disable_command): Ditto.
50 (enable_command): Ditto.
51 (check_fast_tracepoint_sals): New function.
52 (break_command_really): Call it.
53 (ftrace_command): New function.
54 (_initialize_breakpoint): Add ftrace command.
55 * gdbarch.sh (fast_tracepoint_valid_at): New.
56 * gdbarch.h, gdbarch.c: Regenerate.
57 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
58 (i386_gdbarch_init): Use it.
59 * remote.c (struct remote_state): New field fast_tracepoints.
60 (PACKET_FastTracepoints): New packet config type.
61 (remote_fast_tracepoint_feature): New function.
62 (remote_protocol_features): Add FastTracepoints.
63 (remote_supports_fast_tracepoints): New function.
64 (_initialize_remote): Add FastTracepoints.
65 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
66 * NEWS: Mention fast tracepoints.
67
68 2010-01-06 Joel Brobecker <brobecker@adacore.com>
69
70 * gdb-gdb.py: New file.
71
72 2010-01-05 Michael Snyder <msnyder@vmware.com>
73
74 * infrun.c (handle_inferior_event): Fix typo in comment.
75
76 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
77
78 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
79
80 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
81
82 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
83 and s390x-linux64.
84 (s390-linux32-expedite): Define.
85 (s390-linux64-expedite): Define.
86 (s390x-linux64-expedite): Define.
87 * features/s390-acr.xml: New file.
88 * features/s390-fpr.xml: New file.
89 * features/s390-core32.xml: New file.
90 * features/s390-core64.xml: New file.
91 * features/s390x-core64.xml: New file.
92 * features/s390-linux32.xml: New file.
93 * features/s390-linux64.xml: New file.
94 * features/s390x-linux64.xml: New file.
95 * features/s390-linux32.c: New generated file.
96 * features/s390-linux64.c: New generated file.
97 * features/s390x-linux64.c: New generated file.
98
99 * regformats/s390-linux32.dat: New generated file.
100 * regformats/s390-linux64.dat: New generated file.
101 * regformats/s390x-linux64.dat: New generated file.
102 * regformats/reg-s390.dat: Remove.
103 * regformats/reg-s390x.dat: Remove.
104
105 * s390-nat.c: Include "auxv.h" and <elf.h>.
106 (HWCAP_S390_HIGH_GPRS): Define if undefined.
107 (s390_target_wordsize): New function.
108 (s390_auxv_parse): Likewise.
109 (s390_get_hwcap): Likewise.
110 (s390_read_description): Likewise.
111 (_initialize_s390_nat): Install s390_auxv_parse and
112 s390_read_description.
113
114 * s390-tdep.c: Include "features/s390-linux32.c",
115 "features/s390-linux64.c", and "features/s390x-linux64.c".
116 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
117 (s390_register_call_saved): New function.
118 (s390_register_name): Remove.
119 (s390_register_type): Remove.
120 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
121 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
122 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
123 (s390_pseudo_register_name): New function.
124 (s390_pseudo_register_type): New function.
125 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
126 Handle full GPR pesudos and varying pseudo register numbers.
127 (s390_pseudo_register_write): Likewise
128 (s390x_pseudo_register_read): Remove.
129 (s390x_pseudo_register_write): Likewise.
130 (s390_register_group): Remove.
131 (s390_pseudo_register_group): New function.
132 (s390_regmap_gregset): Add GPR upper halves.
133 (s390x_regmap_gregset): Likewise.
134 (s390_regmap_fpregset): Likewise.
135 (s390_regmap_upper): New global variable.
136 (s390_upper_regset): New global variable.
137 (s390_upper_regset_sections): New global variable.
138 (s390_regset_from_core_section): Handle GPR upper halves.
139 (s390_core_read_description): New function.
140 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
141 register information. Handle varying pseudo register numbers.
142 (s390_backchain_frame_unwind_cache): Likewise.
143 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
144 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
145 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
146 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
147 Handle varying pseudo register numbers.
148 (s390_unwind_pc): Handle varying pseudo register numbers.
149 (s390_dwarf2_prev_register): New function.
150 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
151 register information. Handle varying pseudo register numbers.
152 Install s390_dwarf2_prev_register to unwind full GPRs.
153 (s390_gdbarch_init): Handle target descriptions. Assign varying
154 pseudo register numbers. Install s390_adjust_frame_regnum.
155 (_initialize_s390_tdep): Initialize target descriptions.
156
157 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
158 (S390_NUM_REGS): Redefine to include upper half registers.
159 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
160 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
161 (tdesc_s390_linux32): Add declaration.
162 (tdesc_s390_linux64): Likewise.
163 (tdesc_s390x_linux64): Likewise.
164
165 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
166
167 * regset.h (struct core_regset_section): Add HUMAN_NAME.
168 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
169 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
170 (ppc_linux_vmx_regset_sections): Likewise.
171 (ppc_linux_fp_regset_sections): Likewise.
172
173 * corelow.c (get_core_register_section): Constify arguments.
174 (get_core_registers): Use gdbarch_core_regset_sections instead
175 of hard-coded platform-specific register section names.
176
177 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
178
179 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
180 a register, assume the least-significant part is used.
181 (write_pieced_value): Likewise.
182
183 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
184
185 * printcmd.c: Include "arch-utils.h".
186 (do_one_display): Re-parse expression if current architecture changed.
187
188 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
189 Joel Brobecker <brobecker@adacore.com>
190
191 * gdbtypes.c (check_typedef): New comment on type length.
192 * value.c (allocate_value_lazy): Remove the unused atype variable. New
193 comment on type length.
194 (value_primitive_field): Keep the original TYPE value, new comment.
195
196 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
197
198 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
199 p_start. Change != comparisons to > and < comparisons.
200
201 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
202
203 * cli/cli-script.c (process_next_line): Check P2 overrun.
204
205 2009-01-01 Joel Brobecker <brobecker@adacore.com>
206
207 Update the copyright hearder to add year 2010 for most GDB files.
208
209 2009-01-01 Joel Brobecker <brobecker@adacore.com>
210
211 Fix build failure in inf-ptrace.c.
212 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
213
214 2010-01-01 Joel Brobecker <brobecker@adacore.com>
215
216 * top.c (print_gdb_version): Update copyright year.
217
218 2010-01-01 Joel Brobecker <brobecker@adacore.com>
219
220 Fix break *FUN'address thread NUM.
221 * ada-lex.l (task): Expand rule to also match the thread keyword.
222
223 2010-01-01 Joel Brobecker <brobecker@adacore.com>
224
225 Fix break *FUN'address task NUM.
226 * ada-lex.l (task): New rule.
227 * ada-lang.c (valid_task_id): Make sure the Ada task list has
228 been built before using it.
229
230 For older changes see ChangeLog-2009.
231 \f
232 Local Variables:
233 mode: change-log
234 left-margin: 8
235 fill-column: 74
236 version-control: never
237 coding: utf-8
238 End: