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