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