cb49ab9ddbfc466457087569406afb59d17d60e8
[binutils-gdb.git] / gdb / ChangeLog
1 2009-01-08 Joel Brobecker <brobecker@adacore.com>
2
3 GDB crash with empty executable name (MinGW).
4 * source.c (openp): Add assert that parameter string is not NULL.
5 if parameter string is an empty string, then return with a failure
6 immediately.
7
8 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9
10 Get rid of support for VAX Floats.
11 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
12 (ada_vax_float_print_function): Delete.
13 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
14 (ada_vax_float_print_function): Delete.
15 * ada-typeprint.c (print_vax_floating_point_type): Delete.
16 (ada_print_type): Remove support for VAX floats.
17 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
18
19 2010-01-08 jan kratochvil <jan.kratochvil@redhat.com>
20
21 * stabsread.c (read_args): Handle zero arguments.
22
23 2009-01-08 Joel Brobecker <brobecker@adacore.com>
24
25 Cannot find in-tree libiconv.a after reconfigure.
26 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
27 that we can use, then cache the path to this archive.
28 * configure: Regenerate.
29
30 2010-01-07 Stan Shebs <stan@codesourcery.com>
31
32 Make tracepoint operations go through target vector.
33 * target.h (enum trace_find_type): New enum.
34 (struct target_ops): New fields to_trace_init,
35 to_download_tracepoint, to_download_trace_state_variable,
36 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
37 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
38 to_set_disconnected_tracing.
39 (target_trace_init): New macro.
40 (target_download_tracepoint): New macro.
41 (target_download_trace_state_variable): New macro.
42 (target_trace_start): New macro.
43 (target_trace_set_readonly_regions): New macro.
44 (target_get_trace_status): New macro.
45 (target_trace_stop): New macro.
46 (target_trace_find): New macro.
47 (target_get_trace_state_variable_value): New macro.
48 (target_set_disconnected_tracing): New macro.
49 * target.c (update_current_target): Inherit and set defaults for
50 tracepoint operations.
51 * tracepoint.c (default_collect): Make globally visible.
52 (target_is_remote): Remove, along with all calls.
53 (tvariables_info): Call target_get_trace_state_variable_value.
54 (remote_set_transparent_ranges): Remove.
55 (trace_start_command): Call target_trace_init,
56 target_download_tracepoint, etc.
57 (download_tracepoint): Remove.
58 (trace_stop_command): Simplify.
59 (stop_tracing): Call target_trace_stop.
60 (get_trace_status): Call target_get_trace_status.
61 (trace_status_command): Add case for targets that cannot trace.
62 (finish_tfind_command): Change to take numerical arguments, call
63 target_trace_find.
64 (trace_find_command): Update call to finish_tfind_command.
65 (trace_find_pc_command): Ditto.
66 (trace_find_tracepoint_command): Ditto.
67 (trace_find_line_command): Ditto.
68 (trace_find_range_command): Ditto.
69 (trace_find_outside_command): Ditto.
70 (set_disconnected_tracing_value): Call
71 target_set_disconnected_tracing.
72 * remote.c: Add protocol encoding bits from tracepoint.c.
73 (trace_error): Move from tracepoint.c.
74 (remote_get_noisy_reply): Ditto.
75 (free_actions_list_cleanup_wrapper): Ditto.
76 (free_actions_list): Ditto.
77 (remote_trace_init): New function.
78 (remote_download_tracepoint): New function.
79 (remote_download_trace_state_variable): New function.
80 (remote_trace_set_readonly_regions): New function.
81 (remote_trace_start): New function.
82 (remote_get_trace_status): New function.
83 (remote_trace_stop): New function.
84 (remote_trace_find): New function.
85 (remote_download_trace_state_variable): New function.
86 (remote_set_disconnected_tracing): New function.
87 (init_remote_ops): Add tracepoint operations.
88
89 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
90
91 2010-01-07 Tristan Gingold <gingold@adacore.com>
92
93 * symfile.c (build_section_addr_info_from_objfile): New function.
94 (symbol_file_add_separate): Don't use offsets from objfile but
95 built an addr info.
96
97 2010-01-06 Stan Shebs <stan@codesourcery.com>
98
99 Support disconnected tracing.
100 * infcmd.c (detach_command): Ask whether to stop tracing.
101 * cli/cli-cmds.c (quit_command): Ditto.
102 * breakpoint.h (struct breakpoint): New field number_on_target.
103 * breakpoint.c (create_tracepoint_from_upload): New function.
104 (get_tracepoint_by_number_on_target): New function.
105 * remote.c (struct remote): New field disconnected_tracing.
106 (remote_disconnected_tracing_feature): New function.
107 (remote_protocol_features): Add DisconnectedTracing.
108 (struct uploaded_tp): New struct.
109 (uploaded_tps): New global.
110 (get_uploaded_tp): New function.
111 (find_matching_tracepoint): New function.
112 (remote_get_tracing_state): New function.
113 (remote_start_remote): Call it.
114 * tracepoint.c (disconnected_tracing): New global.
115 (trace_start_command): Initialize number_on_target.
116 (stop_tracing): New function, split out from...
117 (trace_stop_command): Call stop_tracing.
118 (get_trace_status): New function, split out from...
119 (trace_status_command): Call get_trace_status, add info on
120 disconnection behavior.
121 (disconnect_or_stop_tracing): New function.
122 (finish_tfind_command): Translate from number on target.
123 (trace_find_tracepoint_command): Translate to number on target.
124 (send_disconnected_tracing_value): New function.
125 (set_disconnected_tracing): New function.
126 (_initialize_tracepoint): Add disconnected-tracing variable.
127 * NEWS: Mention disconnected tracing.
128
129 2010-01-06 Tristan Gingold <gingold@adacore.com>
130
131 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
132 parameter to main_objfile. Iterate on all separate debug objfiles.
133 * symfile.h (symbol_file_add_separate)
134 (find_separate_debug_file_by_debuglink): Remove parameter names.
135 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
136 (reread_symbols): Use free_objfile_separate_debug.
137 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
138 Adjust comment.
139 (objfile_separate_debug_iterate, add_separate_debug_objfile)
140 (free_objfile_separate_debug): New prototypes.
141 * objfiles.c (objfile_separate_debug_iterate): New function.
142 (add_separate_debug_objfile, free_objfile_separate_debug): New
143 functions.
144 (free_objfile): Use free_objfile_separate_debug. Adjust for
145 multiple separate debug objfile.
146 (objfile_has_symbols): Adjust comment. Iterate on all separate
147 debug objfiles.
148 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
149 debug objfile.
150 (lookup_minimal_symbol_text): Ditto.
151 (lookup_minimal_symbol_by_pc_name): Ditto.
152 (lookup_minimal_symbol_solib_trampoline): Ditto.
153 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
154 debug objfiles.
155
156 2010-01-05 Stan Shebs <stan@codesourcery.com>
157
158 Add fast tracepoints.
159 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
160 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
161 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
162 * breakpoint.c (tracepoint_type): New function.
163 (ALL_TRACEPOINTS): Use it.
164 (should_be_inserted): Ditto.
165 (bpstat_check_location): Ditto.
166 (print_one_breakpoint_location): Ditto.
167 (user_settable_breakpoint): Ditto.
168 (set_breakpoint_location_function): Ditto.
169 (disable_breakpoints_in_shlibs): Ditto.
170 (delete_trace_command): Ditto.
171 (print_it_typical): Add bp_fast_tracepoint case.
172 (bpstat_what): Ditto.
173 (print_one_breakpoint_location): Ditto.
174 (allocate_bp_location): Ditto.
175 (mention): Ditto.
176 (breakpoint_re_set_one): Ditto.
177 (disable_command): Ditto.
178 (enable_command): Ditto.
179 (check_fast_tracepoint_sals): New function.
180 (break_command_really): Call it.
181 (ftrace_command): New function.
182 (_initialize_breakpoint): Add ftrace command.
183 * gdbarch.sh (fast_tracepoint_valid_at): New.
184 * gdbarch.h, gdbarch.c: Regenerate.
185 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
186 (i386_gdbarch_init): Use it.
187 * remote.c (struct remote_state): New field fast_tracepoints.
188 (PACKET_FastTracepoints): New packet config type.
189 (remote_fast_tracepoint_feature): New function.
190 (remote_protocol_features): Add FastTracepoints.
191 (remote_supports_fast_tracepoints): New function.
192 (_initialize_remote): Add FastTracepoints.
193 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
194 * NEWS: Mention fast tracepoints.
195
196 2010-01-06 Joel Brobecker <brobecker@adacore.com>
197
198 * gdb-gdb.py: New file.
199
200 2010-01-05 Michael Snyder <msnyder@vmware.com>
201
202 * infrun.c (handle_inferior_event): Fix typo in comment.
203
204 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
205
206 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
207
208 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
209
210 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
211 and s390x-linux64.
212 (s390-linux32-expedite): Define.
213 (s390-linux64-expedite): Define.
214 (s390x-linux64-expedite): Define.
215 * features/s390-acr.xml: New file.
216 * features/s390-fpr.xml: New file.
217 * features/s390-core32.xml: New file.
218 * features/s390-core64.xml: New file.
219 * features/s390x-core64.xml: New file.
220 * features/s390-linux32.xml: New file.
221 * features/s390-linux64.xml: New file.
222 * features/s390x-linux64.xml: New file.
223 * features/s390-linux32.c: New generated file.
224 * features/s390-linux64.c: New generated file.
225 * features/s390x-linux64.c: New generated file.
226
227 * regformats/s390-linux32.dat: New generated file.
228 * regformats/s390-linux64.dat: New generated file.
229 * regformats/s390x-linux64.dat: New generated file.
230 * regformats/reg-s390.dat: Remove.
231 * regformats/reg-s390x.dat: Remove.
232
233 * s390-nat.c: Include "auxv.h" and <elf.h>.
234 (HWCAP_S390_HIGH_GPRS): Define if undefined.
235 (s390_target_wordsize): New function.
236 (s390_auxv_parse): Likewise.
237 (s390_get_hwcap): Likewise.
238 (s390_read_description): Likewise.
239 (_initialize_s390_nat): Install s390_auxv_parse and
240 s390_read_description.
241
242 * s390-tdep.c: Include "features/s390-linux32.c",
243 "features/s390-linux64.c", and "features/s390x-linux64.c".
244 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
245 (s390_register_call_saved): New function.
246 (s390_register_name): Remove.
247 (s390_register_type): Remove.
248 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
249 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
250 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
251 (s390_pseudo_register_name): New function.
252 (s390_pseudo_register_type): New function.
253 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
254 Handle full GPR pesudos and varying pseudo register numbers.
255 (s390_pseudo_register_write): Likewise
256 (s390x_pseudo_register_read): Remove.
257 (s390x_pseudo_register_write): Likewise.
258 (s390_register_group): Remove.
259 (s390_pseudo_register_group): New function.
260 (s390_regmap_gregset): Add GPR upper halves.
261 (s390x_regmap_gregset): Likewise.
262 (s390_regmap_fpregset): Likewise.
263 (s390_regmap_upper): New global variable.
264 (s390_upper_regset): New global variable.
265 (s390_upper_regset_sections): New global variable.
266 (s390_regset_from_core_section): Handle GPR upper halves.
267 (s390_core_read_description): New function.
268 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
269 register information. Handle varying pseudo register numbers.
270 (s390_backchain_frame_unwind_cache): Likewise.
271 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
272 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
273 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
274 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
275 Handle varying pseudo register numbers.
276 (s390_unwind_pc): Handle varying pseudo register numbers.
277 (s390_dwarf2_prev_register): New function.
278 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
279 register information. Handle varying pseudo register numbers.
280 Install s390_dwarf2_prev_register to unwind full GPRs.
281 (s390_gdbarch_init): Handle target descriptions. Assign varying
282 pseudo register numbers. Install s390_adjust_frame_regnum.
283 (_initialize_s390_tdep): Initialize target descriptions.
284
285 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
286 (S390_NUM_REGS): Redefine to include upper half registers.
287 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
288 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
289 (tdesc_s390_linux32): Add declaration.
290 (tdesc_s390_linux64): Likewise.
291 (tdesc_s390x_linux64): Likewise.
292
293 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
294
295 * regset.h (struct core_regset_section): Add HUMAN_NAME.
296 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
297 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
298 (ppc_linux_vmx_regset_sections): Likewise.
299 (ppc_linux_fp_regset_sections): Likewise.
300
301 * corelow.c (get_core_register_section): Constify arguments.
302 (get_core_registers): Use gdbarch_core_regset_sections instead
303 of hard-coded platform-specific register section names.
304
305 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
306
307 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
308 a register, assume the least-significant part is used.
309 (write_pieced_value): Likewise.
310
311 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
312
313 * printcmd.c: Include "arch-utils.h".
314 (do_one_display): Re-parse expression if current architecture changed.
315
316 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
317 Joel Brobecker <brobecker@adacore.com>
318
319 * gdbtypes.c (check_typedef): New comment on type length.
320 * value.c (allocate_value_lazy): Remove the unused atype variable. New
321 comment on type length.
322 (value_primitive_field): Keep the original TYPE value, new comment.
323
324 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
325
326 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
327 p_start. Change != comparisons to > and < comparisons.
328
329 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
330
331 * cli/cli-script.c (process_next_line): Check P2 overrun.
332
333 2009-01-01 Joel Brobecker <brobecker@adacore.com>
334
335 Update the copyright hearder to add year 2010 for most GDB files.
336
337 2009-01-01 Joel Brobecker <brobecker@adacore.com>
338
339 Fix build failure in inf-ptrace.c.
340 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
341
342 2010-01-01 Joel Brobecker <brobecker@adacore.com>
343
344 * top.c (print_gdb_version): Update copyright year.
345
346 2010-01-01 Joel Brobecker <brobecker@adacore.com>
347
348 Fix break *FUN'address thread NUM.
349 * ada-lex.l (task): Expand rule to also match the thread keyword.
350
351 2010-01-01 Joel Brobecker <brobecker@adacore.com>
352
353 Fix break *FUN'address task NUM.
354 * ada-lex.l (task): New rule.
355 * ada-lang.c (valid_task_id): Make sure the Ada task list has
356 been built before using it.
357
358 For older changes see ChangeLog-2009.
359 \f
360 Local Variables:
361 mode: change-log
362 left-margin: 8
363 fill-column: 74
364 version-control: never
365 coding: utf-8
366 End: