1 2013-09-18 Pedro Alves <palves@redhat.com>
2 Yue Lu <hacklu.newborn@gmail.com>
4 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
6 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
7 (set_sig_thread_cmd): Use the lwpid field of ptids to
8 store/extract thread ids instead of the tid field.
9 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
11 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
13 * infcmd.c (default_print_one_register_info): Add detection of
15 (default_print_registers_info): Switch to using
16 get_frame_register_value.
18 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
20 * infrun.c (handle_inferior_event): Check if we know the
21 function start address before setting a resume breakpoint.
23 2013-09-18 Pedro Alves <palves@redhat.com>
25 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
26 minus_one_ptid instead of looking at the ptid's tid field and
29 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
31 * main.h (get_gdb_program_name): Remove extra whitespace.
33 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
35 * main.h (get_gdb_program_name): Add declaration.
36 * main.c (get_gdb_program_name): Add definition.
38 2013-09-17 Doug Evans <dje@google.com>
40 * dwarf2read.c: Move definitions of complaint functions to after
41 forward declarations of local functions.
43 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
44 Pedro Alves <palves@redhat.com>
47 * breakpoint.c (remove_threaded_breakpoints): New function.
48 (_initialize_breakpoint): Attach remove_threaded_breakpoints
49 as thread_exit observer.
51 2013-09-17 Pedro Alves <palves@redhat.com>
54 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
55 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
56 * corelow.c (core_open):
57 * frame.h (print_stack_frame, print_frame_info): New
58 'set_current_sal' parameter.
59 * infcmd.c (finish_command, kill_command): Adjust call to
61 * inferior.c (inferior_command): Likewise.
62 * infrun.c (normal_stop): Likewise.
63 * linux-fork.c (linux_fork_context): Likewise.
64 * record-full.c (record_full_goto_entry, record_full_restore):
66 * remote-mips.c (common_open): Likewise.
67 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
69 (print_frame_info): New 'set_current_sal' parameter. Set the last
70 displayed sal depending on the new paremeter instead of looking at
72 (backtrace_command_1, select_and_print_frame, frame_command)
73 (current_frame_command, up_command, down_command): Adjust call to
75 * thread.c (print_thread_info, restore_selected_frame)
76 (do_captured_thread_select): Adjust call to print_stack_frame.
77 * tracepoint.c (tfind_1): Likewise.
78 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
79 (mi_cmd_stack_info_frame): Likewise.
80 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
81 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
83 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
85 * value.c (isvoid_internal_fn): Replace "parameter" with
88 2013-09-16 Stan Shebs <stan@codesourcery.com>
90 * README: Update references to writing code for GDB.
91 * configure.ac (build_warnings): Remove obsolete comment.
92 * configure: Regenerate.
93 * gdbarch.sh: Remove references to gdbint.texinfo.
94 * gdbarch.h: Regenerate.
95 * gdbtypes.c (objfile_type): Remove comments referencing internals
98 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
100 * NEWS: Mention new convenience function $_isvoid.
101 * value.c (isvoid_internal_fn): New function.
102 (_initialize_values): Add new convenience function $_isvoid.
104 2013-09-16 Pierre Muller <muller@sourceware.org>
106 * arm-linux-tdep.c: Add "elf/common.h" header.
107 Remove AT_HWCAP macro definintion as it is provided in
109 * s390-tdep.c: Remove system header <elf.h>
110 Add "elf/common.h" header for AT_HWCAP definition.
111 (s390_core_read_description): Use correct CORE_ADDR
112 for hwcap local variable used as third parameter
113 of function target_auxv_search.
115 2013-09-14 Pierre Muller <muller@sourceware.org>
116 Tom Tromey <tromey@redhat.com>
117 Pedro Alves <palves@redhat.com>
119 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
120 mode if operating system doesn't know O_CLOEXEC.
122 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
125 * symfile.c (reread_symbols): Move variable obfd_filename to a more
128 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
130 * NEWS: Mention TDB support.
131 * features/s390-tdb.xml: New file.
132 * features/s390-te-linux64.xml: New file.
133 * features/s390x-te-linux64.xml: New file.
134 * features/Makefile (WHICH): Add new tdescs above.
135 (s390-te-linux64-expedite): Set.
136 (s390x-te-linux64-expedite): Set.
137 * features/s390-te-linux64.c: New file (generated).
138 * features/s390x-te-linux64.c: New file (generated).
139 * regformats/s390-te-linux64.dat: New file (generated).
140 * regformats/s390x-te-linux64.dat: New file (generated).
141 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
142 (HWCAP_S390_TE): Likewise.
143 (S390_TDB_DWORD0_REGNUM): Likewise.
144 (S390_TDB_DWORD0_REGNUM): Likewise.
145 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
146 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
147 (S390_TDB_ATIA_REGNUM): Likewise.
148 (S390_TDB_R0_REGNUM): Likewise.
149 (S390_TDB_R1_REGNUM): Likewise.
150 (S390_TDB_R2_REGNUM): Likewise.
151 (S390_TDB_R3_REGNUM): Likewise.
152 (S390_TDB_R4_REGNUM): Likewise.
153 (S390_TDB_R5_REGNUM): Likewise.
154 (S390_TDB_R6_REGNUM): Likewise.
155 (S390_TDB_R7_REGNUM): Likewise.
156 (S390_TDB_R8_REGNUM): Likewise.
157 (S390_TDB_R9_REGNUM): Likewise.
158 (S390_TDB_R10_REGNUM): Likewise.
159 (S390_TDB_R11_REGNUM): Likewise.
160 (S390_TDB_R12_REGNUM): Likewise.
161 (S390_TDB_R13_REGNUM): Likewise.
162 (S390_TDB_R14_REGNUM): Likewise.
163 (S390_TDB_R15_REGNUM): Likewise.
164 (S390_NUM_REGS): Increase.
165 (S390_IS_TDBREGSET_REGNUM): New macro.
166 (s390_regmap_tdb): Declare.
167 (s390_sizeof_tdbregset): Define.
168 (tdesc_s390_te_linux64): Declare.
169 (tdesc_s390x_te_linux64): Likewise.
170 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
171 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
172 (s390_regmap_tdb): New regmap.
173 (s390_supply_tdb_regset): New function.
174 (s390_tdb_regset): New regset.
175 (s390_linux64v2_regset_sections): Add TDB regset to list.
176 (s390x_linux64v2_regset_sections): Likewise.
177 (s390_regset_from_core_section): Recognize TDB core note section.
178 (s390_core_read_description): If HWCAP indicates TE support,
179 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
180 (s390_gdbarch_init): Handle TDB regset.
181 (_initialize_s390_tdep): Initialize new tdescs.
182 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
183 (have_regset_tdb): New variable.
184 (s390_native_supply): Support register invalidation.
185 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
186 (check_regset): Treat ENODATA as "regset exists".
187 (s390_linux_fetch_inferior_registers): Add TDB.
188 (s390_read_description): Check for TDB existence and select
190 * gdbserver/Makefile.in (clean): Add removal of new makefile
192 (s390-te-linux64.c): New makefile target.
193 (s390x-te-linux64.c): Likewise.
194 * gdbserver/configure.srv (srv_regobj): Append new objects
195 s390-te-linux64.o and s390x-te-linux64.o.
196 (srv_xmlfiles): Append new files s390-te-linux64.xml,
197 s390x-te-linux64.xml, and s390-tdb.xml.
198 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
200 (tdesc_s390_te_linux64): Likewise.
201 (init_registers_s390x_te_linux64): Likewise.
202 (tdesc_s390x_te_linux64): Likewise.
203 (s390_check_regset): Treat ENODATA as "regset exists".
204 (s390_arch_setup): Add TDB regset support.
205 (initialize_low_arch): Initialize registers for new tdescs.
207 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
209 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
210 (S390_IS_FPREGSET_REGNUM): New macro.
211 * s390-tdep.c (s390_dwarf_regmap): Make const.
212 (regnum_is_gpr_full): New function for replacing repeated code.
213 (s390_pseudo_register_name): Use it.
214 (s390_pseudo_register_type): Likewise.
215 (s390_pseudo_register_read): Likewise.
216 (s390_pseudo_register_write): Likewise.
217 (s390_unwind_pseudo_register): Likewise.
218 (s390_regmap_gregset): New format for regmap.
219 (s390x_regmap_gregset): Likewise.
220 (s390_regmap_fpregset): Likewise.
221 (s390_regmap_upper): Likewise.
222 (s390_regmap_last_break): Likewise.
223 (s390_regmap_system_call): Likewise.
224 (s390_supply_regset): Adjust to new regmap format.
225 (s390_collect_regset): Likewise.
226 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
227 (s390_native_collect): Likewise.
228 (supply_gregset): Likewise.
229 (fill_gregset): Likewise.
230 (supply_fpregset): Likewise.
231 (fill_fpregset): Likewise.
232 (fetch_regset): Likewise.
233 (store_regset): Likewise.
234 (s390_linux_fetch_inferior_registers): Likewise.
235 (s390_linux_fetch_inferior_registers): Likewise.
237 2013-09-12 Andrew Pinski <apinski@cavium.com>
239 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
241 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
243 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
245 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
247 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
249 2013-09-06 Pedro Alves <palves@redhat.com>
251 * remote-sim.c (dump_mem, gdbsim_fetch_register)
252 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
253 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
254 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
255 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
258 2013-09-06 Pedro Alves <palves@redhat.com>
260 * remote-sim.c (dump_mem): Constify buf parameter.
261 gdbsim_xfer_inferior_memory): Rename to ...
262 (gdbsim_xfer_memory): ... this. Adjust interface as
263 target_xfer_partial helper.
264 (gdbsim_xfer_partial): New function.
265 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
266 Install a to_xfer_partial hook. Send output to gdb_stdlog.
268 2013-09-06 Pedro Alves <palves@redhat.com>
270 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
271 host_address_to_string, and send debug output to gdb_stdlog.
273 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
275 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
276 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
277 gdb_target_obs for cris target.
278 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
279 (cris_gdbarch_init): Move calls to
280 set_gdbarch_fetch_tls_load_module_address and
281 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
282 Add call to gdbarch_init_osabi.
283 * cris-linux-tdep.c: New file.
284 * cris-tdep.h: New file.
286 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
288 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
289 to deprecated_init_ui_hook.
291 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
293 * cli/cli-interp.c (_initialize_cli_interp): Add a
294 command_loop_proc to interp_procs.
295 * event-top.c (cli_command_loop): Change signature to match
296 interp_command_loop_ftype.
297 * event-top.h (cli_command_loop): Same.
298 * interps.c (interp_new): Require every interpreter to have a
300 (current_interp_command_loop): Just call the command_loop_proc on
301 the current interpreter.
302 * tui/tui-interp.c (_initialize_tui_interp): Add a
303 command_loop_proc to interp_procs.
305 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
307 * cris-tdep.c (cris_gdbarch_init): Add call to
308 get_gdbarch_fetch_tls_load_module_address.
310 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
312 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
313 (cris_elf_gregset_t): Rename from elf_gregset_t.
314 (crisv32_elf_gregset_t): Adjust.
315 (cris_supply_gregset, fetch_core_registers): Adjust.
317 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
319 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
321 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
323 * defs.h (deprecated_command_loop_hook): Remove, including
324 references in comments.
325 * interps.c (current_interp_command_loop): No longer use
326 deprecated_command_loop_hook.
327 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
329 * top.c (deprecated_command_loop_hook): Remove.
331 2013-09-05 Pedro Alves <palves@redhat.com>
333 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
334 local is now int instead of ULONGEST. Print it with %d
337 2013-09-05 Tristan Gingold <gingold@adacore.com>
339 * MAINTAINERS: Remove avr maintainership.
341 2013-09-05 Pedro Alves <palves@redhat.com>
343 * findvar.c (value_of_register): Rework in terms of
344 value_of_register_lazy.
346 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
348 * symfile.c (add_symbol_file_command): Remove trailing
349 whitespaces and blank line after comment.
351 2013-09-05 Pedro Alves <palves@redhat.com>
353 * tui/tui-regs.c (tui_register_format): Don't look at the
354 register's name here. Return string representing register
355 value instead of storing it in the data element.
356 (tui_get_register): Compare register string representations
357 instead of register value states and contents.
359 2013-09-05 Pedro Alves <palves@redhat.com>
362 * tui/tui-regs.c (tui_show_registers): Show registers of the
363 selected frame, not the current frame.
365 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
367 * MAINTAINERS (Write After Approval): Add myself to the list.
369 2013-09-04 Doug Evans <dje@google.com>
371 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
372 (queue_and_load_dwo_tu): New function.
373 (lookup_dwo_signatured_type): Set per_cu.tu_read.
374 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
375 Make dependent_cu optional.
376 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
377 and an older .gdb_index is in use, queue and load all its TUs too.
379 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
381 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
382 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
383 variable search_flags.
384 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
385 (OPF_RETURN_REALPATH): ... here.
386 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
387 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
389 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
391 * solib.c (solib_find): Likewise. Four times.
392 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
393 in the function comment and for the realpath_fptr variable.
394 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
395 (find_and_open_source): Likewise. Twice.
396 * symfile.c (symfile_bfd_open): Likewise, also twice.
398 2013-09-04 Doug Evans <dje@google.com>
400 * progspace.c (save_current_space_and_thread): Remove unnecessary
401 call to save_current_inferior.
403 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
405 * sh64-tdep.c (sh64_do_register): Return after printing message
406 about unavailable register contents.
408 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
409 Pedro Alves <palves@redhat.com>
411 * symfile.c (add_symbol_file_command): Error out on unknown
412 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
413 options and collapse into single conditional branch.
415 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
417 * inf-child.c (inf_child_follow_fork): New parameter
419 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
420 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
421 * inferior.h (detach_fork): Remove.
422 * infrun.c (detach_fork): Adjust comment and make it
424 (follow_fork): Pass detach_fork parameter to
426 * linux-nat.c (linux_child_follow_fork): New parameter
428 * target.c (target_follow_fork): New parameter detach_fork.
429 Pass detach_fork as parameter and print its value.
430 * target.h (struct target_ops) <to_follow_fork>: New int
432 (target_follow_fork): New parameter detach_fork.
434 2013-09-03 Joel Brobecker <brobecker@adacore.com>
436 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
437 Replace sec->bfd by sec->the_bfd_section->owner.
439 2013-09-03 Yao Qi <yao@codesourcery.com>
441 * linux-tdep.c (linux_is_uclinux): New function. Code moved
442 from linux_has_shared_address_space.
443 (linux_has_shared_address_space): Call linux_is_uclinux.
444 * linux-tdep.h (linux_is_uclinux): Declare.
445 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
448 2013-09-03 Yao Qi <yao@codesourcery.com>
450 * config/djgpp/fnchange.lst: Remove entry of
451 i386-interix-nat.c and i386-interix-tdep.c.
452 * configure.ac: Remove '*-*-interix*'.
453 * configure: Re-generated.
454 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
455 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
457 * osabi.c (gdb_osabi_names): Remove "Interix".
459 2013-09-03 Yao Qi <yao@codesourcery.com>
461 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
463 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
465 * record.h (record_print_flag) <record_print_src_line,
466 record_print_insn_range>: Rename into ...
467 (record_print_flag) <record_print_src_line,
468 record_print_insn_range>: ... this. Update all users.
470 2013-09-02 Pierre Muller <muller@sourceware.org>
472 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
475 2013-09-02 Pierre Muller <muller@sourceware.org>
477 * windows-nat.c (windows_xfer_memory): Fix compilation failure
478 by use of plongest function.
480 2013-09-02 Tristan Gingold <gingold@adacore.com>
482 * NEWS: Add entry mentioning support for native Windows x64
485 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
486 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
487 (struct amd64_windows_frame_cache): New struct.
488 (amd64_windows_w2gdb_regnum): New global.
489 (pc_in_range, amd64_windows_frame_decode_epilogue)
490 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
491 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
492 (amd64_windows_frame_this_id): New functions.
493 (amd64_windows_frame_unwind): New static global.
494 (amd64_windows_skip_prologue): New function.
495 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
496 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
497 with amd64_windows_skip_prologue.
499 2013-08-30 Joel Brobecker <brobecker@adacore.com>
503 2013-08-30 Pedro Alves <palves@redhat.com>
505 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
508 2013-08-30 Pedro Alves <palves@redhat.com>
510 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
513 2013-08-30 Pedro Alves <palves@redhat.com>
515 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
516 Adjust arguments to print_stack_frame.
518 2013-08-30 Pedro Alves <palves@redhat.com>
520 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
522 2013-08-30 Pedro Alves <palves@redhat.com>
524 * frame.h (show_and_print_stack_frame): Delete declaration.
526 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
530 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
531 (archpy_name): Check for valid architecture.
532 (archpy_disassemble): Ditto.
534 2013-08-29 Joel Brobecker <brobecker@adacore.com>
536 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
537 instead of "long long" in call to ptrace64.
539 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
541 * mi/mi-interp.c (mi_command_loop): Change signature to match
542 interp_command_loop_ftype.
543 (mi1_command_loop): Remove.
544 (mi2_command_loop): Remove.
545 (mi3_command_loop): Remove.
546 (mi_interpreter_resume): Remove setting of
547 deprecated_command_loop_hook.
548 (_initialize_mi_interp): Set mi_command_loop as the command loop
551 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
553 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
556 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
558 * value.c (allocate_value_contents): Make static.
559 * value.h (allocate_value_contents): Remove prototype.
561 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
563 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
564 of assembling value via allocate_value_lazy and attribute setter.
565 * findvar.c (default_read_var_value): Use value_at_lazy instead of
566 assembling value via allocate_value_lazy and attribute setter.
567 * valops.c (do_search_struct_field): Use value_at_lazy instead of
568 assembling value via allocate_value_lazy and attribute setter.
570 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
572 * value.c (value_from_contents_and_address): Replace allocate_value and
573 memcpy with value_from_contents.
575 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
577 * python/py-framefilter.c (py_print_frame): Remove usage of
578 PyString_AsString. Use python_string_to_host_string instead.
579 Refactor function to work with a string as a new allocation
580 instead of a pointer.
581 (py_print_frame): Ditto.
582 * python/lib/gdb/frames.py (return_list): Cain iterators together
583 instead of adding them as a list.
584 (_sort_list): Call return_list, and remove duplicate code.
585 (execute_frame_filters): Convert iterator to a list with list().
586 * python/lib/gdb/command/frame_filters.py
587 (SetFrameFilterPriority._set_filter_priority): Convert priority
588 attribute to an integer.
589 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
590 wrapper function __next__.
591 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
594 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
597 * python/py-framefilter.c (apply_frame_filter): Check
598 gdb_python_initialized. Exit if the Python frame-filter code
599 cannot be initialized.
601 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
604 * top.c (print_gdb_version): Remove erroneous newline after help
607 2013-08-29 Yao Qi <yao@codesourcery.com>
609 * varobj.c (install_dynamic_child): Remove trailing space.
610 Add one blank line after variable declaration.
612 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
615 * corefile.c (get_exec_file): Use exec_filename.
616 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
617 * exec.c (exec_close): Free EXEC_FILENAME.
618 (exec_file_attach): New variable canonical_pathname. Use
619 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
621 * exec.h (exec_filename): New.
622 * inferior.c (print_inferior, inferior_command): Use
623 PSPACE_EXEC_FILENAME.
624 * mi/mi-main.c (print_one_inferior): Likewise.
625 * progspace.c (clone_program_space, print_program_space): Likewise.
626 * progspace.h (struct program_space): New field pspace_exec_filename.
627 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
628 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
630 2013-08-28 Will Newton <will.newton@linaro.org>
632 * common/linux-ptrace.c: Include stdint.h unconditionally.
634 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
637 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
639 2013-08-28 Yao Qi <yao@codesourcery.com>
640 Pedro Alves <palves@redhat.com>
642 * event-top.c (gdb_setup_readline): Call stderr_fileopen
643 instead of stdio_fileopen.
644 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
645 .Call stderr_fileopen instead of stdio_fileopen.
646 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
647 [__MINGW32__] (stderr_file_fputs): New function.
648 (stderr_fileopen): New function.
649 * ui-file.h (stderr_fileopen): Declare.
651 2013-08-27 Doug Evans <dje@google.com>
653 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
654 (struct dwarf2_per_cu_data): Ditto.
655 (maybe_queue_comp_unit): Delete forward decl. Add comment.
656 (process_imported_unit_die): Ditto.
657 (follow_die_sig_1): Simplify assert.
659 2013-08-27 Pedro Alves <palves@redhat.com>
661 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
662 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
663 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
664 windows_xfer_memory directly.
665 (init_windows_ops): Don't install a deprecated_xfer_memory method.
667 2013-08-27 Pedro Alves <palves@redhat.com>
669 * darwin-nat.c (darwin_xfer_memory): Delete.
670 (_initialize_darwin_inferior): Don't install a
671 deprecated_xfer_memory method.
673 2013-08-27 Pedro Alves <pedro@codesourcery.com>
674 Yao Qi <yao@codesourcery.com>
676 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
677 (parse_no_frames_option): Remove.
678 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
679 (mi_cmd_stack_list_args): Adjust.
680 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
681 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
682 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
684 (list_args_or_locals): New parameter 'skip_unavailable'.
686 * valprint.c (scalar_type_p): Rename to ...
687 (val_print_scalar_type_p): ... this. Make extern.
688 (val_print, value_check_printable): Adjust.
689 * valprint.h (val_print_scalar_type_p): Declare.
690 * value.c (value_entirely_unavailable): New function.
691 * value.h (value_entirely_unavailable): Declare.
693 * NEWS: Mention the new option "--skip-unavailable" to MI
694 commands '-stack-list-locals', '-stack-list-arguments' and
695 '-stack-list-variables'.
697 2013-08-27 Yao Qi <yao@codesourcery.com>
699 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
700 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
702 * mi/mi-getopt.c (mi_getopt): Remove.
703 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
705 (mi_getopt): Call mi_getopt_1.
706 (mi_getopt_silent): New.
707 * mi/mi-getopt.h (mi_getopt_silent): Declare.
709 2013-08-26 Doug Evans <dje@google.com>
712 * dwarf2read.c (dw2_dump): Print some minimal information indicating
713 .gdb_index is in use.
714 * symfile.c (reread_symbols): Reset objfile->sf.
716 * NEWS: Document "mt print objfiles" now takes optional regexp.
717 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
718 regexp of objfiles to print.
719 (_initialize_symmisc): Update doc string for "mt print objfiles".
721 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
722 missing debug info checks.
724 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
725 Ulrich Weigand <uweigand@de.ibm.com>
727 * xcoffread.c (arrange_linetable): Add fix to correctly handle
728 line tables generated by XLC compiled binaries.
730 2013-08-23 Doug Evans <dje@google.com>
732 * symmisc.c (dump_symtab): Delete prototype.
733 (dump_msymbols, dump_objfile): Ditto.
734 (maintenance_info_symtabs): Mark as dont_repeat.
735 (_initialize_symmisc): Improve doc string for "mt info symtabs".
737 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
738 debugging printf to better location.
740 2013-08-23 Pedro Alves <palves@redhat.com>
742 * target.c (target_read_live_memory): Change type of 'ret' local
745 2013-08-23 Pedro Alves <palves@redhat.com>
747 * remote.c (remote_write_bytes_aux, remote_write_bytes)
748 (remote_read_bytes): Change return type to LONGEST, and adjust to
749 return a target_xfer_error on error.
750 (remote_xfer_memory): Delete.
751 (remote_flash_write): Change type of 'ret' local to LONGEST.
752 (remote_xfer_partial, remote_xfer_partial): Adjust.
753 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
755 2013-08-23 Pierre Muller <muller@sourceware.org>
757 ARI fix: Push # directives to start of line.
758 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
760 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
763 * breakpoint.c (enable_command, disable_command): Iterate over
764 all specified breakpoint locations.
766 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
768 * common/linux-ptrace.c (linux_fork_to_function): Push #
769 directives to the start of the line.
770 (linux_check_ptrace_features): Fix warning message to use
773 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
775 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
777 (linux-waitpid.o): New object file rule.
778 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
779 (current_ptrace_options): Moved from linux-nat.c.
780 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
782 (linux_fork_to_function): New function.
783 (linux_grandchild_function): Likewise.
784 (linux_child_function): Likewise.
785 (linux_check_ptrace_features): New function, heavily
786 based on linux-nat.c:linux_test_for_tracefork.
787 (linux_enable_event_reporting): New function.
788 (ptrace_supports_feature): Likewise.
789 (linux_supports_tracefork): Likewise.
790 (linux_supports_traceclone): Likewise.
791 (linux_supports_tracevforkdone): Likewise.
792 (linux_supports_tracesysgood): Likewise.
793 * common/linux-ptrace.h (HAS_NOMMU): Moved from
794 gdbserver/linux-low.c.
795 (linux_enable_event_reporting): New declaration.
796 (linux_supports_tracefork): Likewise.
797 (linux_supports_traceclone): Likewise.
798 (linux_supports_tracevforkdone): Likewise.
799 (linux_supports_tracesysgood): Likewise.
800 * config.in (PTRACE_TYPE_ARG4): Regenerate.
801 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
802 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
803 * config/arm/linux.mh (NATDEPFILES): Likewise.
804 * config/i386/linux.mh (NATDEPFILES): Likewise.
805 * config/i386/linux64.mh (NATDEPFILES): Likewise.
806 * config/ia64/linux.mh (NATDEPFILES): Likewise.
807 * config/m32r/linux.mh (NATDEPFILES): Likewise.
808 * config/m68k/linux.mh (NATDEPFILES): Likewise.
809 * config/mips/linux.mh (NATDEPFILES): Likewise.
810 * config/pa/linux.mh (NATDEPFILES): Likewise..
811 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
812 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
813 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
814 * config/sparc/linux.mh (NATDEPFILES): Likewise.
815 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
816 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
817 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
818 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
819 ptrace's 4th argument's types.
820 Check the type of PTRACE_TYPE_ARG4.
821 * configure: Regenerate.
822 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
823 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
824 (linux_supports_tracefork_flag): Remove.
825 (linux_supports_tracesysgood_flag): Likewise.
826 (linux_supports_tracevforkdone_flag): Likewise.
827 (current_ptrace_options): Moved to
828 common/linux-ptrace.c.
829 (linux_tracefork_child): Remove.
830 (my_waitpid): Remove.
831 (linux_test_for_tracefork): Renamed to
832 linux_check_ptrace_features and moved to common/linux-ptrace.c.
833 (linux_test_for_tracesysgood): Remove.
834 (linux_supports_tracesysgood): Remove.
835 (linux_supports_tracefork): Remove.
836 (linux_supports_tracevforkdone): Remove.
837 (linux_enable_tracesysgood): Remove.
838 (linux_enable_event_reporting): Remove.
839 (linux_init_ptrace): New function.
840 (linux_child_post_attach): Call linux_init_ptrace.
841 (linux_child_post_startup_inferior): Call linux_init_ptrace.
842 (linux_child_follow_fork): Call linux_supports_tracefork
843 and linux_supports_tracevforkdone.
844 (linux_child_insert_fork_catchpoint): Call
845 linux_supports_tracefork.
846 (linux_child_insert_vfork_catchpoint): Likewise.
847 (linux_child_set_syscall_catchpoint): Call
848 linux_supports_tracesysgood.
849 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
850 * nat/linux-nat.h: New file.
851 * nat/linux-waitpid.c: New file.
852 * nat/linux-waitpid.h: New file.
854 2013-08-22 Samuel Bronson <naesten@gmail.com>
856 ARM Linux support for `catch syscall'.
857 * syscalls/arm-linux.py: New file.
858 * syscalls/arm-linux.xml: Likewise.
859 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
860 (arm_linux_init_abi): Register the new function and syscall xml file.
861 * data-directory/Makefile.in: Install the new syscall xml file.
862 * NEWS: Brag about this.
864 2013-08-22 Pedro Alves <palves@redhat.com>
867 * corefile.c (target_xfer_memory_error): New function.
868 (memory_error): Defer EIO to target_memory_error.
869 (read_memory): Use target_xfer_partial, and handle finer-grained
871 * target.c (target_xfer_error_to_string): New function.
872 (memory_xfer_partial_1): If memory is known to be
873 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
874 (target_xfer_partial): Make extern.
875 * target.h (enum target_xfer_error): New enum.
876 (target_xfer_error_to_string): Declare function.
877 (target_xfer_partial): Declare function.
878 (struct target_ops) <xfer_partial>: Adjust describing comment.
880 2013-08-22 Alan Modra <amodra@gmail.com>
882 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
883 * configure.tgt: Likewise as targets.
885 2013-08-20 Doug Evans <dje@google.com>
887 * buildsym.c (subfile_stack): Move here from buildsym.h.
888 (pending_macros): Ditto.
889 (get_macro_table): New function.
890 (buildsym_init): Initialize subfile_stack.
891 * coffread.c (type_vector,type_vector_length): Moved here from
893 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
894 (coff_symtab_read): Use it.
895 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
896 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
897 with call to get_macro_table.
898 * stabsread.c (type_vector,type_vector_length): Moved here from
900 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
901 * buildsym.h (get_macro_table): Declare.
903 2013-08-20 Tom Tromey <tromey@redhat.com>
905 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
907 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
909 2013-08-20 Doug Evans <dje@google.com>
911 * blockframe.c: Remove #include "psymtab.h".
912 * cp-support.c: Ditto.
916 2013-08-20 Tom Tromey <tromey@redhat.com>
919 * exceptions.h (return_mask): Now an enum.
920 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
923 2013-08-20 Tom Tromey <tromey@redhat.com>
925 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
927 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
928 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
929 * jit.c (jit_object_close_impl): Update.
930 * jv-lang.c (get_dynamics_objfile): Update.
931 * linespec.c (add_minsym): Use get_dynamics_objfile.
932 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
933 (allocate_objfile): Don't initialize 'gdbarch' field.
934 (get_objfile_arch): Update.
935 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
937 (struct objfile) <gdbarch>: ... here. Remove.
938 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
940 * symfile.c (init_entry_point_info): Use get_objfile_arch.
942 2013-08-20 Alan Modra <amodra@gmail.com>
944 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
945 for IBM long double nan and inf.
946 (floatformat_is_negative, floatformat_classify,
947 floatformat_mantissa): Similarly.
948 (floatformat_ieee_single, floatformat_ieee_double,
949 floatformat_ieee_quad, floatformat_arm_ext,
950 floatformat_ia64_spill): Delete unused vars.
951 (_initialize_doublest): Delete unused function.
952 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
953 little-endian variants of floatformat_ibm_long_double.
955 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
957 * Makefile.in (SFILES): Remove common/target-common.c and
958 add target/waitstatus.c.
959 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
960 target/resume.h, target/wait.h and target/waitstatus.h.
961 (COMMON_OBS): Remove target-common.o and add
963 (target-common.o): Remove.
964 (waitstatus.o): New target object file.
965 * common/target-common.c: Move contents to
966 target/waitstatus.c and remove.
967 * common/target-common.h: Move contents to other files and
969 (enum resume_kind: Move to target/resume.h.
970 (TARGET_WNOHANG): Move to target/wait.h.
971 (enum target_waitkind): Move to target/waitstatus.h.
972 (struct target_waitstatus): Likewise.
973 * target.h: Do not include target-common.h and
974 include target/resume.h, target/wait.h and
976 * target/resume.h: New file.
977 * target/wait.h: New file.
978 * target/waitstatus.h: New file.
979 * target/waitstatus.c: New file.
981 2013-08-19 Pedro Alves <palves@redhat.com>
983 * linux-nat.c (linux_test_for_tracefork)
984 (linux_test_for_tracesysgood, linux_child_follow_fork)
985 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
986 (linux_nat_wait_1): Extend comment.
987 (linux_async_pipe): Add comment.
989 2013-08-15 Kevin Buettner <kevinb@redhat.com>
991 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
992 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
993 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
994 Update to account for fact that PC is now a pseudo-register.
995 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
996 cases for RL78_PC_REGNUM.
998 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
1001 * top.c (quit_force): Skip writing history file
1002 if input is not from terminal.
1004 2013-08-14 Tom Tromey <tromey@redhat.com>
1006 * remote.c (struct remote_state) <echo_nextthread, nextthread,
1007 resultthreadlist>: New fields.
1008 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
1009 (remote_get_threadlist, remote_threadlist_iterator): Use
1010 new fields. Remove static variables.
1012 2013-08-14 Tom Tromey <tromey@redhat.com>
1014 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
1015 remote_watch_data_address>: New fields.
1016 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
1017 (process_stop_reply, remote_wait_as)
1018 (remote_check_watch_resources, remote_stopped_data_address): Update.
1020 2013-08-14 Tom Tromey <tromey@redhat.com>
1022 * remote.c (struct remote_state) <async_client_callback,
1023 async_client_context>: New fields.
1024 (async_client_callback, async_client_context): Remove.
1025 (remote_async_serial_handler, remote_async): Update.
1027 2013-08-14 Tom Tromey <tromey@redhat.com>
1029 * remote.c (sizeof_pkt): Remove.
1030 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
1032 2013-08-14 Tom Tromey <tromey@redhat.com>
1034 * remote.c (struct remote_state) <use_threadinfo_query,
1035 use_threadextra_query>: New fields.
1036 (remote_threads_info, remote_threads_extra_info)
1037 (remote_open_1): Update.
1039 2013-08-14 Tom Tromey <tromey@redhat.com>
1041 * remote.c (struct remote_state) <finished_object,
1042 finished_annex, finished_offset>: New fields.
1043 (remote_read_qxfer): Use remote_state fields; remove static
1046 2013-08-14 Tom Tromey <tromey@redhat.com>
1048 * remote.c (struct remote_state) <last_sent_step>:
1050 (last_sent_step): Remove.
1051 (remote_resume, remote_wait_as): Update.
1053 2013-08-14 Tom Tromey <tromey@redhat.com>
1055 * remote.c (struct remote_state) <last_sent_signal>:
1057 (last_sent_signal): Remove.
1058 (new_remote_state, remote_resume, remote_wait_as): Update.
1060 2013-08-14 Tom Tromey <tromey@redhat.com>
1062 * remote.c (struct remote_state) <last_program_signals_packet>:
1064 (last_program_signals_packet): Remove.
1065 (remote_program_signals, remote_open_1): Update.
1067 2013-08-14 Tom Tromey <tromey@redhat.com>
1069 * remote.c (struct remote_state) <last_pass_packet>:
1071 (last_pass_packet): Remove.
1072 (remote_pass_signals, remote_open_1): Update.
1074 2013-08-14 Tom Tromey <tromey@redhat.com>
1076 * remote.c (struct remote_state) <remote_traceframe_number>:
1078 (remote_traceframe_number): Remove.
1079 (new_remote_state, remote_open_1, set_remote_traceframe)
1080 (remote_trace_find): Update.
1082 2013-08-14 Tom Tromey <tromey@redhat.com>
1084 * remote.c (struct remote_state) <general_thread, continue_thread>:
1086 (general_thread, continue_thread): Remove.
1087 (record_currthread, set_thread, set_general_process)
1088 (remote_open_1, extended_remote_attach_1, remote_wait_as)
1089 (extended_remote_mourn_1): Update.
1091 2013-08-14 Tom Tromey <tromey@redhat.com>
1093 * remote.c (struct remote_state) <remote_desc>: New field.
1094 (remote_desc): Remove.
1095 (remote_threads_info, remote_threads_extra_info, remote_close)
1096 (send_interrupt_sequence, remote_start_remote, remote_open_1)
1097 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
1098 (remote_hostio_send_command, remote_file_put, remote_file_get)
1099 (remote_file_delete, remote_can_async_p, remote_is_async_p)
1100 (remote_async, remote_new_objfile, set_range_stepping): Update.
1102 2013-08-14 Tom Tromey <tromey@redhat.com>
1104 * remote.c (remote_state): Now a pointer.
1105 (get_remote_state_raw): Update.
1106 (new_remote_state): New function.
1107 (_initialize_remote): Use new_remote_state.
1109 2013-08-14 Tom Tromey <tromey@redhat.com>
1111 * remote.c (remote_protocol_features): Now const.
1113 2013-08-14 Tom Tromey <tromey@redhat.com>
1115 * remote.c (crc32_table, crc32): Remove.
1116 (remote_verify_memory): Use xcrc32.
1118 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
1120 * value.h (create_internalvar_type_lazy): Adjust prototype
1123 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
1125 * common/format.c (parse_format_string): Don't allow '#' flag for
1126 pointer arguments in format string.
1128 2013-08-13 Pierre Muller <muller@sourceware.org>
1130 * utils.c (init_page_info): Only call tgetnum function
1131 if rl_get_screen_size did not return useful values.
1133 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
1135 PR breakpoints/15117
1136 * linespec.c (linespec_parse_basic): Check for convenience
1137 variable or history value while parsing.
1139 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
1141 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
1143 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
1144 different signals between the generic Linux kernel implementation
1146 (avr_linux_gdb_signal_from_target): Delete.
1147 (avr_linux_gdb_signal_to_target): Delete.
1148 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
1150 2013-08-09 Doug Evans <dje@google.com>
1152 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
1155 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
1157 * linux-tdep.c: Define enum with generic signal numbers.
1158 (linux_gdb_signal_from_target): New function.
1159 (linux_gdb_signal_to_target): Likewise.
1160 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1161 methods to the functions above.
1162 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
1163 (linux_gdb_signal_to_target): Likewise.
1164 * alpha-linux-tdep.c: Define new enum with signals different
1165 from generic Linux kernel.
1166 (alpha_linux_gdb_signal_from_target): New function.
1167 (alpha_linux_gdb_signal_to_target): Likewise.
1168 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1169 with the functions mentioned above.
1170 * avr-tdep.c: Define enum with differences between Linux kernel
1172 (avr_linux_gdb_signal_from_target): New function.
1173 (avr_linux_gdb_signal_to_target): Likewise.
1174 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
1175 the functions mentioned above.
1176 * sparc-linux-tdep.c: Define enum with differences between SPARC
1177 and generic Linux kernel signal numbers.
1178 (sparc32_linux_gdb_signal_from_target): New function.
1179 (sparc32_linux_gdb_signal_to_target): Likewise.
1180 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1181 to the functions defined above.
1182 * xtensa-linux-tdep.c: Define enum with differences between
1183 Xtensa and Linux kernel generic signals.
1184 (xtensa_linux_gdb_signal_from_target): New function.
1185 (xtensa_linux_gdb_signal_to_target): Likewise.
1186 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
1187 to the functions defined above.
1188 * mips-linux-tdep.c: Define enum with differences between
1189 signals in MIPS and Linux kernel generic ones.
1190 (mips_gdb_signal_to_target): New function.
1191 (mips_gdb_signal_from_target): Redefine to use new enum, handle
1192 only different signals from the Linux kernel generic.
1193 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1194 the functions defined above.
1195 * mips-linux-tdep.h (enum mips_signals): Remove.
1197 2013-08-09 Pedro Alves <palves@redhat.com>
1199 * avr-tdep.c (XMALLOC): Delete macro.
1200 * cli/cli-dump.c (XMALLOC): Delete macro.
1202 2013-08-09 Pedro Alves <palves@redhat.com>
1204 * cli/cli-dump.c: Don't include cli/cli-dump.h.
1205 (scan_expression_with_cleanup, scan_filename_with_cleanup)
1206 (fopen_with_cleanup, add_dump_command): Make static.
1207 * cli/cli-dump.h: Delete file.
1208 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
1211 2013-08-09 Pedro Alves <palves@redhat.com>
1213 * tracepoint.c (tfile_start): Show tilde-expanded filename in
1216 2013-08-09 Pedro Alves <palves@redhat.com>
1218 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
1221 2013-08-09 Pedro Alves <palves@redhat.com>
1223 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
1224 (gcore_command): Use tilde_expand here, and when showing the
1225 filename to the user, show the expanded version.
1227 2013-08-09 Yao Qi <yao@codesourcery.com>
1229 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
1232 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
1234 * gcore.c (create_gcore_bfd): Use tilde_expand.
1236 2013-08-08 Yao Qi <yao@codesourcery.com>
1238 * frame.h (read_frame_local): Declare.
1239 * mi/mi-cmd-stack.c (list_args_or_locals): Call
1241 * stack.c (read_frame_local): New.
1243 2013-08-08 Yao Qi <yao@codesourcery.com>
1245 * mi/mi-cmd-stack.c: Update comments to function
1246 list_args_or_locals.
1248 2013-08-07 Tom Tromey <tromey@redhat.com>
1251 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
1252 (process_psymtab_comp_unit_reader): Use it.
1253 (process_psymtab_comp_unit): Update. Add "pretend_language"
1255 (dwarf2_build_psymtabs_hard): Update.
1256 (scan_partial_symbols): Pass CU's language to
1257 process_psymtab_comp_unit.
1259 2013-08-07 Tom Tromey <tromey@redhat.com>
1261 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
1262 (dwarf2_gdb_index_functions): Update.
1263 * psymtab.c (find_symbol_file_from_partial): Remove.
1264 (psym_functions): Update.
1265 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1268 2013-08-07 Tom Tromey <tromey@redhat.com>
1270 * symfile.c (set_initial_language): Look up "main" symbol
1271 and use its language.
1272 * symtab.c (find_main_filename): Remove.
1273 * symtab.h (find_main_filename): Remove.
1275 2013-08-07 Tom Tromey <tromey@redhat.com>
1277 * dwarf2read.c (recursively_compute_inclusions): Add
1278 "immediate_parent" argument. Set symtab's "user" field
1280 (compute_symtab_includes): Update.
1282 2013-08-07 Tom Tromey <tromey@redhat.com>
1284 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
1285 when adding label symbols.
1287 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1288 Ulrich Weigand <uweigand@de.ibm.com>
1290 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
1291 * configure.host (powerpc64-*-aix*): Likewise.
1293 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1294 Ulrich Weigand <uweigand@de.ibm.com>
1296 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
1298 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
1299 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
1300 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
1301 * configure.ac: Check for ptrace64.
1302 * configure, config.in: Regenerate.
1304 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1305 Ulrich Weigand <uweigand@de.ibm.com>
1307 * aixthread.c: Call ptrace64 instead of ptracex if defined.
1308 Call ptrace64 instead of ptrace if defined.
1309 Add macro addr_ptr to take care of ptrace address argument.
1310 (pdc_read_regs): Likewise.
1311 (pdc_write_regs): Likewise.
1312 (aix_thread_resume): Likewise.
1313 (fetch_regs_kernel_thread): Likewise.
1314 (store_regs_kernel_thread): Likewise.
1316 2013-08-07 Anton Blanchard <anton@samba.org>
1318 * MAINTAINERS: Add myself to Write After Approval.
1320 2013-08-05 Tom Tromey <tromey@redhat.com>
1322 * aix-thread.c (_initialize_aix_thread): Use
1323 complete_target_initialization.
1324 * bsd-uthread.c (_initialize_bsd_uthread): Use
1325 complete_target_initialization.
1326 * dec-thread.c (_initialize_dec_thread): Use
1327 complete_target_initialization.
1328 * ravenscar-thread.c (_initialize_ravenscar): Use
1329 complete_target_initialization.
1330 * sol-thread.c (_initialize_sol_thread): Use
1331 complete_target_initialization.
1332 * spu-multiarch.c (_initialize_spu_multiarch): Use
1333 complete_target_initialization.
1335 2013-08-05 Tom Tromey <tromey@redhat.com>
1337 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
1338 * ada-lang.c (ada_lookup_simple_minsym): Return
1339 bound_minimal_symbol.
1340 * ada-lang.h (ada_lookup_simple_minsym): Update.
1341 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
1342 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
1343 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
1344 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
1345 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
1346 * minsyms.c (msymbol_objfile): Remove.
1347 (lookup_minimal_symbol_internal): New function, from
1348 lookup_minimal_symbol.
1349 (lookup_minimal_symbol): Rewrite using
1350 lookup_minimal_symbol_internal.
1351 (lookup_bound_minimal_symbol): New function.
1352 * minsyms.h (msymbol_objfile): Remove.
1353 (lookup_bound_minimal_symbol): Declare.
1354 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
1355 * parse.c (write_exp_msymbol): Change parameter to a
1356 bound_minimal_symbol.
1357 (write_dollar_variable): Use lookup_bound_minimal_symbol.
1358 * parser-defs.h (write_exp_msymbol): Update.
1359 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
1360 * symfile.c (simple_read_overlay_table): Use
1361 lookup_bound_minimal_symbol.
1362 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
1363 (search_symbols): Likewise.
1364 (print_msymbol_info): Take a bound_minimal_symbol argument.
1365 (symtab_symbol_info, rbreak_command): Update.
1366 * symtab.h (struct symbol_search) <msymbol>: Change type
1367 to bound_minimal_symbol.
1368 * valops.c (find_function_in_inferior): Use
1369 lookup_bound_minimal_symbol.
1370 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
1372 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1375 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
1377 (async_cleanup_sigint_signal_handler): ... this.
1378 (initialize_sigint_signal_handler): Remove declaration.
1379 (handle_remote_sigint): Rename the declaration to ...
1380 (async_handle_remote_sigint): ... this.
1381 (handle_remote_sigint_twice): Rename the declaration to ...
1382 (async_handle_remote_sigint_twice): ... this.
1383 (async_remote_interrupt, async_remote_interrupt_twice)
1384 (remote_interrupt): Remove the declarations.
1385 (remote_interrupt_twice): Rename the declaration ...
1386 (sync_remote_interrupt_twice): ... this.
1387 (sigint_remote_twice_token): Rename the variable to ...
1388 (async_sigint_remote_twice_token): ... this.
1389 (sigint_remote_token): Rename the variable to ...
1390 (async_sigint_remote_token): ... this.
1391 (initialize_sigint_signal_handler): Rename the function to ...
1392 (async_initialize_sigint_signal_handler): ... this. Update the name
1394 (handle_remote_sigint): Rename the function to ...
1395 (async_handle_remote_sigint): ... this. Update the names inside.
1396 (handle_remote_sigint_twice): Rename the function to ...
1397 (async_handle_remote_sigint_twice): ... this. Update the names inside.
1398 (cleanup_sigint_signal_handler): Rename the function to ...
1399 (async_cleanup_sigint_signal_handler): ... this.
1400 (remote_interrupt): Rename the function to ...
1401 (sync_remote_interrupt): this. Update the names inside.
1402 (remote_interrupt_twice): Rename the function to ...
1403 (sync_remote_interrupt_twice): this. Update the names inside.
1404 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
1405 (_initialize_remote): Update the names inside.
1407 2013-08-02 Tom Tromey <tromey@redhat.com>
1410 * breakpoint.c (update_watchpoint, watchpoint_check)
1411 (watch_command_1): Update.
1412 * eval.c (fetch_subexp_value): Add "preserve_errors"
1414 * ppc-linux-nat.c (check_condition): Update.
1415 * value.h (fetch_subexp_value): Update.
1417 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
1419 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
1422 2013-08-01 Doug Evans <dje@google.com>
1425 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
1426 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
1427 Add assert of sig_entry->dwo_unit == NULL.
1428 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
1429 had already been read.
1430 (read_signatured_type): Set per_cu.tu_read.
1433 * valops.c (value_struct_elt): Add missing call to check_typedef.
1434 (value_find_oload_method_list): Ditto.
1436 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
1437 effectively, struct symbol_search **.
1438 (make_cleanup_free_search_symbols): Change arg to struct
1439 symbol_search **. All callers updated.
1440 (compare_search_syms): Compare symtab file name and block as well.
1441 (search_symbols_equal): New function.
1442 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
1443 New args new_head, new_tail. Result is now void. Remove dups after
1444 sorting the symbols.
1445 (search_symbols): Sort all found symbols once, after all have been
1446 found, and remove duplicates. Simplify cleanup tracking of result.
1447 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
1449 Further workarounds for binutils/15021.
1450 * dwarf2read.c (recursively_compute_inclusions): Change type of result
1451 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
1452 Watch for duplicate symtabs coming from type units.
1453 (compute_symtab_includes): Update call to
1454 recursively_compute_inclusions. Build vector of included symtabs
1456 * symtab.h (symtab_ptr): New typedef.
1457 (DEF_VEC_P (symtab_ptr)): New VEC type.
1458 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
1461 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
1463 * cli/cli-script.c (script_from_file): Remove use of
1465 * main.c (captured_main): Remove use of error_pre_print and
1467 * utils.c (error_pre_print, quit_pre_print): Remove.
1468 * utils.h (error_pre_print, quit_pre_print): Likewise.
1470 2013-08-01 Yao Qi <yao@codesourcery.com>
1472 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
1474 (mi_cmd_stack_list_variables): Likewise.
1476 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1478 * exceptions.c (deprecated_throw_reason): Remove.
1479 * exceptions.h (deprecated_throw_reason): Remove.
1481 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1483 * remote-mips.c (mips_error): Replace use of
1484 deprecated_throw_reason with throw_verror. Use the error message
1485 passed to mips_error as the error message for throw_verror.
1487 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1489 * monitor.c (monitor_interrupt_query): Replace use of
1490 deprecated_throw_reason with quit.
1491 * nto-procfs.c (interrupt_query): Likewise.
1492 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
1493 * remote-mips.c (mips_kill): Likewise.
1494 * remote.c (interrupt_query): Likewise.
1496 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1498 * utils.c (internal_verror): Replace use of deprecated_throw_reason
1501 2013-07-31 Pedro Alves <pedro@codesourcery.com>
1502 Yao Qi <yao@codesourcery.com>
1504 * tracepoint.c (trace_dump_command): Select the current frame.
1506 2013-07-30 Doug Evans <dje@google.com>
1508 * dwarf2read.c (process_queue): Add type signature to debug output.
1510 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
1512 * value.c (value_fetch_lazy): Mark optimized out values as such
1513 rather than raising an error.
1515 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
1517 * value.c (value_fetch_lazy): Ensure parent value is not lazy
1518 before checking which bits of the parent, not the child, value are
1521 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
1524 * top.c: Include "filenames.h".
1525 (set_history_filename): New function.
1526 (init_main): Install it as set hook of the "set history filename"
1529 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1531 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
1532 attribute parameter.
1533 (dwarf2_const_value_data): Constify struct attribute parameter.
1534 (dwarf2_const_value): Constify struct attribute parameter.
1535 (dwarf2_const_value_attr): Constify struct attribute parameter.
1536 (lookup_die_type): Constify struct attribute parameter.
1537 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
1538 (follow_die_ref_or_sig): Constify struct attribute parameter.
1539 (follow_die_ref): Constify struct attribute parameter.
1540 (follow_die_sig): Constify struct attribute parameter.
1541 (get_DW_AT_signature_type): Constify struct attribute parameter.
1542 (get_type_unit_group): Constify struct attribute parameter.
1543 (fill_in_loclist_baton): Constify struct attribute parameter.
1544 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
1545 (type_unit_group): Constify struct attribute parameter.
1547 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1549 * dwarf2read.c (attr_form_is_block): Make argument const.
1550 (attr_form_is_section_offset): Make argument const.
1551 (attr_form_is_constant): Make argument const.
1552 (attr_form_is_ref): Make argument const.
1554 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1556 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
1558 (attr_form_is_ref): Moved below attr_form_is_constant.
1560 2013-07-29 Doug Evans <dje@google.com>
1562 * main.c (captured_command_loop): Tweak comment.
1564 * target.c (target_async_permitted_1): Fix comment.
1566 * symtab.c (iterate_over_some_symtabs): Add comment.
1568 * symtab.c (iterate_over_some_symtabs): Fix indentation.
1570 2013-07-27 Yao Qi <yao@codesourcery.com>
1572 * NEWS: Mention that GDBserver now supports hardware
1573 watchpoints on the MIPS GNU/Linux target.
1575 2013-07-27 Yao Qi <yao@codesourcery.com>
1577 * Makefile.in (HFILES_NO_SRCDIR): Add
1578 common/mips-linux-watch.h.
1579 (mips-linux-watch.o): New rule.
1580 * common/mips-linux-watch.c: New.
1581 * common/mips-linux-watch.h: New.
1582 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
1583 * mips-linux-nat.c: Include mips-linux-watch.h.
1584 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
1585 to common/mips-linux-watch.h.
1586 (MAX_DEBUG_REGISTER): Likewise.
1587 (enum pt_watch_style): Likewise.
1588 (struct mips32_watch_regs): Likewise.
1589 (struct mips64_watch_regs): Likewise.
1590 (struct pt_watch_regs): Likewise.
1591 (struct mips_watchpoint): Likewise.
1592 (mips_linux_watch_get_irw_mask): Move to
1593 common/mips-linux-watch.c.
1594 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
1595 (mips_linux_watch_get_watchlo): Likewise.
1596 (mips_linux_watch_set_watchlo): Likewise.
1597 (mips_linux_watch_get_watchhi): Likewise.
1598 (mips_linux_watch_set_watchhi): Likewise.
1599 (mips_linux_read_watch_registers): Likewise.
1600 (mips_linux_watch_type_to_irw): Likewise.
1601 (mips_linux_stopped_data_address, fill_mask): Likewise.
1602 (mips_linux_watch_try_one_watch): Likewise.
1603 (mips_linux_watch_populate_regs): Likewise.
1605 2013-07-27 Yao Qi <yao@codesourcery.com>
1607 * mips-linux-nat.c (get_irw_mask): Rename to ...
1608 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
1609 'set' to 'n'. Update function comment. All callers changed.
1610 (get_reg_mask): Rename parameter 'set' to 'n'. Update
1611 function comment. All callers changed.
1612 (get_num_valid): Rename to ...
1613 (mips_linux_watch_get_num_valid): ... this. Rename parameter
1614 'set' to 'n'. Update function comment. All callers changed.
1615 (get_watchlo): Rename to ...
1616 (mips_linux_watch_get_watchlo): ... this. Rename parameter
1617 'set' to 'n'. Update function comment. All callers changed.
1618 (set_watchlo): Rename to ...
1619 (mips_linux_watch_set_watchlo): ... this. Rename parameter
1620 'set' to 'n'. Update function comment. All callers changed.
1621 (get_watchhi): Rename to ...
1622 (mips_linux_watch_get_watchhi): ... this. Update function
1623 comment. All callers changed.
1624 (set_watchhi): Rename to ...
1625 (mips_linux_watch_set_watchhi): ... this. Update function
1626 comment. All callers changed.
1627 (mips_linux_read_watch_registers): Update function comment.
1628 Add new parameters 'lwpid', 'watch_readback', and
1629 'watch_readback_valid'. Update.
1630 (type_to_irw): Rename to ...
1631 (mips_linux_watch_type_to_irw): ... this. Update function
1632 comment. All callers changed.
1633 (fill_mask): Update function comment.
1634 (try_one_watch): Rename to ...
1635 (mips_linux_watch_try_one_watch): ... this. Change the type
1636 of parameter 'irw' from 'unsigned' to 'uint32_t'.
1637 (populate_regs_from_watches): Rename to ...
1638 (mips_linux_watch_populate_regs): ... this. Add parameter
1639 'current_watches'. All callers changed.
1641 2013-07-27 Yao Qi <yao@codesourcery.com>
1643 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
1645 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
1646 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
1647 (struct pt_watch_regs): Likewise.
1648 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
1649 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
1650 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
1651 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
1652 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
1654 2013-07-27 Yao Qi <yao@codesourcery.com>
1656 * breakpoint.h: Include break-common.h.
1657 (enum target_hw_bp_type): Move to ...
1658 * common/break-common.h: ... here. New.
1660 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
1662 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
1663 process group regardless of having tty on stdin.
1665 2013-07-25 Doug Evans <dje@google.com>
1667 * linux-fork.h (detach_fork): Delete.
1669 2013-07-25 Tom Tromey <tromey@redhat.com>
1671 PR remote/15256, PR remote/15266:
1672 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
1673 * monitor.c (monitor_detach): Use unpush_target.
1674 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
1675 * remote-mips.c (mips_detach): Use unpush_target. Don't
1677 * remote-sim.c (gdbsim_detach): Use unpush_target.
1678 * target.c (pop_target): Remove.
1679 (pop_all_targets_above): Don't call target_close.
1680 (target_close): Assert that the target is unpushed.
1681 * target.h (pop_target): Don't declare.
1682 * tracepoint.c (tfile_open): Use unpush_target.
1684 2013-07-25 Tom Tromey <tromey@redhat.com>
1686 * linux-thread-db.c (init_thread_db_ops): Call
1687 complete_target_initialization.
1688 (_initialize_thread_db): Don't call add_target.
1689 * target.c (complete_target_initialization): New function.
1690 (add_target_with_completer): Call it.
1691 * target.h (complete_target_initialization): Declare.
1693 2013-07-25 Mark Kettenis <kettenis@gnu.org>
1695 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
1696 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
1697 (HPPANBSD_SIZEOF_GREGS): New define.
1698 (hppaobsd_supply_gregset): Handle additional registers.
1699 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
1700 we provide more registers now.
1701 (hppabsd_supply_gregset): Supply additional registers.
1702 (hppabsd_collect_gregset): Collect additional registers.
1704 2013-07-25 Mark Kettenis <kettenis@gnu.org>
1706 * hppabsd-tdep.c: Include "dwarf2-frame.h".
1707 (hppabsd_dwarf2_frame_init_reg): New function.
1708 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
1710 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
1712 * mi/mi-main.c (output_register): Make MI 'r' format use standard
1713 'z' format code. Remove error for optimized out values, standard
1714 code will handle these fine.
1716 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
1718 * NEWS: Mention new 'z' formatter.
1719 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
1720 (_initialize_printcmd): Mention 'z' formatter in help text of the
1723 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
1725 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
1728 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
1730 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
1731 interface can evaluate arguments. Fallback to the old mode if it
1733 (create_exception_master_breakpoint): Likewise.
1734 * elfread.c (elf_can_evaluate_probe_arguments): New function.
1735 (struct sym_probe_fns elf_probe_fns): Export function above to the
1737 * probe.c (can_evaluate_probe_arguments): New function.
1738 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
1740 (can_evaluate_probe_arguments): New function prototype.
1741 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
1742 probe interface can evaluate arguments. Fallback to the old mode
1744 * stap-probe.c (stap_get_probe_argument_count): Check if probe
1745 interface can evaluate arguments. Warning the user if it cannot.
1746 (stap_can_evaluate_probe_arguments): New function.
1747 (struct probe_ops stap_probe_ops): Export function above to the
1749 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
1750 New function pointer.
1752 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
1754 * Makefile.in (SFILES): Add common/target-common.c.
1755 Add common/target-common.h to headers.
1756 (COMMON_OBS): Add target-common.o.
1757 (target-common.o): New target.
1758 * linux-nat.h (resume_kind): Move to common/target-common.h.
1759 * target.c (target_waitstatus_to_string): Move to
1760 common/target-common.c.
1761 * target.h: Include target-common.h.
1762 (target_waitkind): Move to common/target-common.h.
1763 (target_waitstatus): Likewise.
1764 (TARGET_WNOHANG): Likewise.
1765 * common/target-common.c: New file.
1766 * common/target-common.h: New file.
1768 2013-07-24 Doug Evans <dje@google.com>
1770 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
1773 2013-07-23 Yao Qi <yao@codesourcery.com>
1775 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
1776 parameter 'gdbarch'.
1777 (i386_stack_tramp_frame_sniffer): Caller update.
1778 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
1779 parameter 'gdbarch' and 'target'.
1780 (i386_linux_core_read_description): Caller update.
1781 * amd64-linux-tdep.c (amd64_linux_core_read_description):
1783 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
1786 2013-07-23 Tom Tromey <tromey@redhat.com>
1788 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
1791 2013-07-22 Doug Evans <dje@google.com>
1793 * exec.h (remove_target_sections): Delete arg abfd.
1794 * exec.c (exec_close): Update call to remove_target_sections.
1795 (remove_target_sections): Delete arg abfd.
1796 * solib.c (update_solib_list): Ditto.
1797 (reload_shared_libraries_1): Ditto.
1798 (clear_solib): Ditto, and unconditionally call remove_target_sections.
1799 * target.h (struct target_section): Rename key to owner.
1802 2013-07-22 Tom Tromey <tromey@redhat.com>
1804 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
1806 2013-07-22 Tom Tromey <tromey@redhat.com>
1808 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
1809 Simplify cleanup handling.
1811 2013-07-22 Tom Tromey <tromey@redhat.com>
1813 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
1814 on all return paths.
1816 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1818 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
1819 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
1820 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
1822 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
1824 * top.c (print_gdb_version): Add help, apropos description and
1825 url to online documentation.
1827 2013-07-19 Hui Zhu <hui@codesourcery.com>
1830 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
1832 2013-07-19 Yao Qi <yao@codesourcery.com>
1834 * target.c (update_current_target): Change the default action
1835 of 'to_traceframe_info' from tcomplain to return_zero.
1836 * target.h (struct target_ops) <to_traceframe_info>: Add more
1838 * valops.c (read_value_memory): Call
1839 traceframe_available_memory unconditionally.
1841 2013-07-18 Yao Qi <yao@codesourcery.com>
1843 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
1844 if the name is prefixed by "__imp_" or "_imp_", look for minimal
1845 symbol without prefix. If found, set its type to
1846 'mst_solib_trampoline'.
1848 2013-07-17 Doug Evans <dje@google.com>
1850 * NEWS: Mention "set print raw frame-arguments".
1851 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
1852 * stack.c (print_raw_frame_arguments): New static global.
1853 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
1854 (_initialize_stack): New command "set/show print raw frame-arguments".
1855 * valprint.c (setprintrawlist, showprintrawlist): New globals.
1856 (set_print_raw, show_print_raw): New functions.
1857 (_initialize_valprint): New prefix command "set/show print raw".
1858 * valprint.h (value_print_options): Improve comments.
1860 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
1861 of all *list variables.
1863 * gdbcmd.h (togglelist): Delete.
1864 * cli/cli-cmds.c (togglelist): Delete.
1865 (init_cmd_lists): Update.
1866 * cli/cli-cmds.h (togglelist): Delete.
1868 2013-07-17 Tom Tromey <tromey@redhat.com>
1870 * dwarf2read.c (dwarf2_per_objfile_free): Clear
1873 2013-07-16 Doug Evans <dje@google.com>
1875 * nto-tdep.c (nto_relocate_section_addresses): Update,
1876 target_section.bfd deleted.
1877 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
1878 * s390-tdep.c (s390_load): Ditto.
1879 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
1881 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
1883 * common/format.c (parse_format_string): Add checks for NULL
1884 character before calling strchr.
1886 2013-07-16 Doug Evans <dje@google.com>
1888 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
1889 temp_pathname argument.
1890 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
1891 when opening the file fails.
1893 * target.h (struct target_section): Delete member bfd.
1894 All users updated to use the_bfd_section->owner instead.
1895 * exec.c (add_to_section_table): Assert bfd is expected value.
1896 Remove initialization of target_section.bfd.
1897 (remove_target_sections): Update.
1898 (section_table_available_memory): Update.
1899 (section_table_xfer_memory_partial): Update.
1900 (print_section_info): Update.
1901 (exec_set_section_address): Update.
1902 * record-full.c (record_full_core_xfer_partial): Update.
1903 * solib-svr4.c (svr4_relocate_section_addresses): Update.
1904 * solib-target.c (solib_target_relocate_section_addresses): Update.
1905 * symfile.c (build_section_addr_info_from_section_table): Update.
1906 * target.c (memory_xfer_live_readonly_partial): Update.
1907 (memory_xfer_partial_1): Update.
1909 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1911 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
1912 now available for embedded (BookE) and server (BookS) processors,
1913 correct mentions of 'booke' and adjust comments accordingly in order to
1914 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
1915 (have_ptrace_booke_interface): Rename function and variable
1916 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
1917 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
1918 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
1919 'hwdebug_point_cmp'. Update all uses.
1920 (booke_find_thread_points_by_tid): Rename function
1921 'booke_find_thread_points_by_tid' to
1922 'hwdebug_find_thread_points_by_tid'. Update all uses.
1923 (booke_insert_point): Rename function 'booke_insert_point' to
1924 'hwdebug_insert_point'. Update all uses.
1925 (booke_remove_point): Rename function 'booke_remove_point' to
1926 'hwdebug_remove_point'. Update all uses.
1928 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
1930 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
1931 numbers with enum values.
1933 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
1936 * thread.c (thread_apply_all_command): Check for valid threads
1938 (thread_array_cleanup): New struct.
1939 (set_thread_refcount): New function.
1941 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
1943 * infcmd.c (default_print_one_register_info): Reuse function
1946 2013-07-10 Tom Tromey <tromey@redhat.com>
1948 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
1949 (ada-exp.o): New target.
1951 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
1953 * mt-tdep.c (mt_registers_info): Call
1954 get_no_prettyformat_print_options instead of
1955 get_raw_print_options (regression by last patch from Doug
1958 2013-07-09 Pedro Alves <palves@redhat.com>
1960 Checked in by Joel Brobecker <brobecker@adacore.com>.
1961 * ada-lang.c (coerce_unspec_val_to_type): Use
1962 value_optimized_out_const.
1963 * value.c (value_optimized_out_const): New function.
1964 * value.h (value_optimized_out_const): New declaration.
1966 2013-07-09 Doug Evans <dje@google.com>
1968 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
1969 Enum values rename as well. All uses updated.
1970 * valprint.h (value_print_options): Rename member pretty to
1971 pretty format. Rename member prettyprint_arrays to
1972 prettyformat_arrays. Rename member prettyprint_structs to
1973 prettyformat_structs. All uses updated.
1974 (get_no_prettyformat_print_options): Renamed from
1975 get_raw_print_options.
1976 * valprint.c (get_no_prettyformat_print_options): Renamed from
1977 get_raw_print_options. All callers updated.
1978 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
1979 All callers updated.
1980 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
1981 All callers updated.
1982 (_initialize_valprint): Improve help text for "set print pretty" and
1985 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
1987 * value.c (value_bits_valid): Revert previous change, and change
1988 by Pedro on 2013-07-04, due to regressions in
1989 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
1991 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
1992 Pedro Alves <palves@redhat.com>
1994 * value.c (value_bits_valid): If the value is not lval_computed
1995 or has no check validity handler then the answer is the
1996 optimized_out flag, otherwise defer to the handler.
1998 2013-07-06 Eli Zaretskii <eliz@gnu.org>
2000 * top.c (print_gdb_configuration): Explain in output of
2001 --configuration what does "relocatable" mean.
2003 * main.c (print_gdb_help): Regroup options in the --help text.
2004 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
2005 the relevant discussions.
2007 2013-07-06 Yao Qi <yao@codesourcery.com>
2009 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
2010 Remove parameter 'lsal'.
2011 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
2012 to inner block. Caller update.
2013 (base_breakpoint_create_breakpoints_sal): Update.
2014 (bkpt_create_breakpoints_sal): Likewise.
2015 (tracepoint_create_breakpoints_sal): Likewise.
2016 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
2017 element 0 of vector 'canonical->sals'.
2019 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
2021 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
2022 register number instead of the pseudo register one.
2023 (rs6000_dwarf2_reg_to_regnum): Likewise.
2025 2013-07-04 Pedro Alves <palves@redhat.com>
2027 * findvar.c (value_of_register): Use allocate_optimized_out_value
2028 if the register has been optimized out, instead of
2029 set_value_optimized_out.
2030 * frame-unwind.c (frame_unwind_got_optimized): Use
2031 allocate_optimized_out_value.
2033 2013-07-04 Pedro Alves <palves@redhat.com>
2035 * value.c (value_bits_valid): If the value is not lval_computed,
2036 or doesn't have a check_validity hook, assume the value is entirely
2039 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
2041 * stack.c (read_frame_arg): No longer fetch lazy values.
2042 * value.c (value_optimized_out): If the value is not already
2043 marked optimized out, and is lazy then fetch it.
2044 (value_primitive_field): Move optimized out check to later in the
2045 function, after we have loaded any lazy values.
2046 (value_fetch_lazy): Use optimized out flag directly rather than
2047 calling optimized_out method.
2049 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
2051 * valops.c: Don't include "user-regs.h".
2052 (value_fetch_lazy): Moved to value.c.
2053 * value.c: Include "user-regs.h".
2054 (value_fetch_lazy): Moved from valops.c.
2056 2013-07-04 Yao Qi <yao@codesourcery.com>
2059 2013-06-27 Yao Qi <yao@codesourcery.com>
2061 * common/create-version.sh: Update comments. Handle the case
2062 that TARGET_ALIAS is empty.
2064 2013-07-03 Pedro Alves <palves@redhat.com>
2066 * Makefile.in (config.status): Depend on development.sh.
2067 (aclocal_m4_deps): Add libmcheck.m4.
2068 * acinclude.m4: Include libmcheck.m4.
2069 * configure.ac: Source development.sh instead of setting
2070 'development' here. --enable-libmcheck/--disable-libmcheck code
2071 factored out to GDB_AC_LIBMCHECK. Run it.
2072 * development.sh: New file.
2073 * libmcheck.m4: New file.
2074 * configure: Regenerate.
2076 2013-07-02 Tom Tromey <tromey@redhat.com>
2078 * contrib/ari/update-web-ari.sh: Update for version.in change.
2080 2013-07-02 Tom Tromey <tromey@redhat.com>
2082 * common/ptid.h: Comment fixes.
2084 2013-07-01 Tom Tromey <tromey@redhat.com>
2086 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
2087 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
2088 (dwarf2_read_index, create_all_comp_units): Update.
2090 2013-07-01 Tom Tromey <tromey@redhat.com>
2092 * configure.ac (build_warnings): Add -Wold-style-definition.
2093 * configure: Rebuild.
2094 * machoread.c (_initialize_machoread): Use "(void)".
2095 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
2098 2013-07-01 Tom Tromey <tromey@redhat.com>
2100 * configure.ac (build_warnings): Add -Wold-style-declaration.
2101 * configure: Rebuild.
2102 * dsrec.c (make_srec): Use "static const", not "const static".
2103 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
2105 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
2106 Use "static const", not "const static".
2107 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
2109 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
2111 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
2113 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
2115 (v850_dbtrap_breakpoint_from_pc): Likewise.
2116 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
2119 2013-07-01 Tom Tromey <tromey@redhat.com>
2121 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
2122 * configure: Rebuild.
2124 2013-07-01 Pedro Alves <palves@redhat.com>
2126 * defs.h: Include "pathmax.h".
2127 * utils.c: Don't include sys/param.h.
2128 (gdb_realpath): Remove code that checks for MAXPATHLEN.
2129 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
2130 instead of MAXPATHLEN.
2131 * solib-sunos.c: Don't include sys/param.h.
2132 * xcoffread.c: Don't include sys/param.h.
2133 * bsd-kvm.c: Don't include sys/param.h.
2134 * darwin-nat.c: Don't include sys/param.h.
2135 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2136 * darwin-nat-info.c: Don't include sys/param.h.
2137 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
2139 * i386obsd-nat.c: Don't include sys/param.h.
2140 * inf-child.c: Don't include sys/param.h.
2141 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
2142 * linux-fork.c: Don't include sys/param.h.
2143 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
2144 * linux-nat.c: Don't include sys/param.h.
2145 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
2146 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
2147 * m68klinux-nat.c: Don't include sys/param.h.
2148 * nbsd-nat.c: Don't include sys/param.h.
2149 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2150 * ppc-linux-nat.c: Don't include sys/param.h.
2151 * rs6000-nat.c: Don't include sys/param.h.
2152 * spu-linux-nat.c. Don't include sys/param.h.
2153 * windows-nat.c: Don't include sys/param.h.
2154 * xtensa-linux-nat.c: Don't include sys/param.h.
2155 * config/i386/nm-fbsd.h: Don't include sys/param.h.
2157 2013-07-01 Pedro Alves <palves@redhat.com>
2159 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
2160 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
2161 * gnulib/aclocal.m4: Regenerate.
2162 * gnulib/config.in: Regenerate.
2163 * gnulib/configure: Regenerate.
2164 * gnulib/import/pathmax.h: New file.
2165 * gnulib/import/Makefile.am: Regenerate.
2166 * gnulib/import/Makefile.in: Regenerate.
2167 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2168 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2169 * gnulib/import/m4/pathmax.m4: New file.
2171 2013-07-01 Pedro Alves <palves@redhat.com>
2173 * configure.ac (GDBINIT): Define, depending on host.
2174 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
2175 * top.c (PATH_MAX): Delete fallback definition.
2176 (GDBINIT_FILENAME): Delete.
2177 (gdbinit): Reimplement as const char array set to the GDBINIT
2179 * top.h (gdbinit): Make const.
2180 * configure, config.in: Regenerate.
2182 2013-07-01 Pedro Alves <palves@redhat.com>
2184 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
2185 * cli/cli-cmds.h (source_script): Likewise.
2186 * exceptions.c (catch_command_errors_const): New function.
2187 * exceptions.h (catch_command_errors_const): Declare.
2188 * main.c (get_init_files): Make parameters const, and adjust.
2189 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
2190 'local_gdbinit' locals const. Adjust to use
2191 catch_command_errors_const.
2192 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
2193 'local_gdbinit' locals const.
2195 2013-07-01 Pedro Alves <palves@redhat.com>
2197 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
2198 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
2199 * tracepoint.c: Don't check HAVE_UNISTD_H before including
2202 2013-07-01 Pedro Alves <palves@redhat.com>
2204 Import the "unistd" gnulib module.
2205 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
2206 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
2207 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
2208 import/m4/unistd_h.m4.
2209 * gnulib/aclocal.m4: Renenerate.
2210 * gnulib/config.in: Renenerate.
2211 * gnulib/configure: Renenerate.
2212 * gnulib/import/Makefile.am: Renenerate.
2213 * gnulib/import/Makefile.in: Renenerate.
2214 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
2215 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
2216 * gnulib/import/m4/off_t.m4: New file.
2217 * gnulib/import/m4/ssize_t.m4: New file.
2218 * gnulib/import/m4/sys_types_h.m4: New file.
2219 * gnulib/import/m4/unistd_h.m4: New file.
2220 * gnulib/import/sys_types.in.h: New file.
2221 * gnulib/import/unistd.c: New file.
2222 * gnulib/import/unistd.in.h: New file.
2224 2013-07-01 Pedro Alves <palves@redhat.com>
2226 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
2227 defined instead of checking HAVE_UNISTD_H.
2229 2013-07-01 Pedro Alves <palves@redhat.com>
2231 Reimport gnulib from scratch.
2232 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
2233 import/m4/onceonly.m4.
2234 * gnulib/aclocal.m4: Renegerate.
2235 * gnulib/config.in: Renegerate.
2236 * gnulib/configure: Renegerate.
2237 * gnulib/import/Makefile.in: Renegerate.
2238 * gnulib/import/extra/update-copyright: Renegerate.
2239 * gnulib/import/m4/onceonly.m4: Delete.
2241 2013-07-01 Pedro Alves <palves@redhat.com>
2243 * tui/tui-regs.c (pagination_enabled): Delete declaration.
2245 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2248 * remote.c (async_remote_interrupt_twice): Make it static.
2249 * remote.h (async_remote_interrupt_twice): Remove the declaration.
2251 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
2253 * ia64-linux-tdep.c: Include <ctype.h>.
2254 (ia64_linux_stap_is_single_operand): New function.
2255 (ia64_linux_init_abi): Initialize SystemTap related attributes.
2257 2013-06-28 Tom Tromey <tromey@redhat.com>
2259 * Makefile.in (version.c): Use version.in, not
2261 * common/create-version.sh: Likewise.
2262 * common/version.in: Move...
2263 * version.in: ...here.
2265 2013-06-28 Pedro Alves <palves@redhat.com>
2267 * infrun.c (set_observer_mode): Don't declare pagination_enabled
2269 * utils.h (pagination_enabled): Declare.
2271 2013-06-28 Pedro Alves <palves@redhat.com>
2273 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
2274 Move higher up in file.
2276 2013-06-28 Tom Tromey <tromey@redhat.com>
2278 * tracepoint.c (deprecated_readline_begin_hook)
2279 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
2282 2013-06-28 Pedro Alves <palves@redhat.com>
2285 * tui/tui-regs.c (tui_get_register): Fetch value contents before
2286 checking if they're available.
2287 * value.c (value_available_contents_eq): Change comment.
2288 * value.h (value_available_contents_eq): Expand comment.
2290 2013-06-27 Tom Tromey <tromey@redhat.com>
2292 * target.c (find_run_target): Remove.
2293 * target.h (find_run_target): Remove.
2295 2013-06-27 Tom Tromey <tromey@redhat.com>
2297 * corelow.c (core_gdbarch): Now static.
2299 2013-06-27 Tom Tromey <tromey@redhat.com>
2301 * target.c (target_struct_index): Remove.
2303 2013-06-27 Pedro Alves <palves@redhat.com>
2305 * infrun.c: Remove comment describing the 'stepping over runtime
2306 loader dynamic symbol resolution code' mechanism; moved to
2309 2013-06-27 Pedro Alves <palves@redhat.com>
2311 * exceptions.c (catch_command_errors): Remove spurious space.
2312 * exceptions.h (catch_command_errors): Second parameter is "arg",
2315 2013-06-27 Yao Qi <yao@codesourcery.com>
2317 * common/create-version.sh: Update comments. Handle the case
2318 that TARGET_ALIAS is empty.
2320 2013-06-26 Pedro Alves <palves@redhat.com>
2322 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
2325 2013-06-26 Pedro Alves <palves@redhat.com>
2327 * infrun.c: Update comments on stepping over runtime loader
2328 dynamic symbol resolution code.
2330 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
2332 * ax-gdb.h (union exp_element): Forward declare.
2333 * parser-defs.h: Include expression.h.
2335 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2337 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
2339 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2341 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
2343 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2345 Fix trace-status to output proper start-time and stop-time.
2346 * tracepoint.c (trace_status_command): Fix type of printf arg to
2347 prevent improper type conversion.
2348 (trace_status_mi): Likewise.
2350 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2352 * mips-tdep.c (mips_next_pc): Fix a typo.
2354 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2356 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
2358 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2359 Yao Qi <yao@codesourcery.com>
2361 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
2362 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
2363 * mi/mi-main.c (print_variable_or_computed): New function.
2364 (mi_cmd_trace_frame_collected): New function.
2365 * tracepoint.c (find_trace_state_variable_by_number): New.
2366 (struct traceframe_info): Move to tracepoint.h
2367 (struct collection_list): Likewise.
2368 (do_collect_symbol): Include locals and arguments in the
2369 collected variables list.
2370 (clear_collection_list): Clear wholly collected variables list
2371 and computed variables list.
2372 (append_exp): New function.
2373 (encode_actions_1): Include variables in the wholly
2374 collected variables list. Include memory ranges and
2375 full-fledged expressions in the computed expressions list.
2376 (encode_actions): Move some code to ...
2377 Return the cleanup chain.
2378 (encode_actions_rsp): ... here. New function.
2379 (get_traceframe_location, get_traceframe_info): Remove static.
2380 * tracepoint.h (struct memrange): Moved from tracepoint.c.
2381 (struct collection_list): Moved from tracepoint.c. Add two
2382 new fields 'wholly_collected' and 'computed'.
2383 (find_trace_state_variable_by_number): Declare.
2384 (encode_actions): Adjust declaration.
2385 (encode_actions_rsp): Declare.
2386 (get_traceframe_info, get_traceframe_location): Declare.
2388 * NEWS: Mention new MI command -trace-frame-collected.
2390 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2391 Yao Qi <yao@codesourcery.com>
2393 * ctf.c (ctf_traceframe_info): Push trace state variables
2394 present in the trace data into the traceframe info object.
2395 * breakpoint.c (DEF_VEC_I): Remove.
2396 * common/filestuff.c (DEF_VEC_I): Likewise.
2397 * dwarf2loc.c (DEF_VEC_I): Likewise.
2398 * mi/mi-main.c (DEF_VEC_I): Likewise.
2399 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
2400 * features/traceframe-info.dtd: Add tvar element and its
2402 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
2403 (build_traceframe_info): Push trace state variables present in
2404 the trace data into the traceframe info object.
2405 (traceframe_info_start_tvar): New function.
2406 (tvar_attributes): New.
2407 (traceframe_info_children): Add "tvar" element.
2408 * tracepoint.h (struct traceframe_info) <tvars>: New field.
2410 * NEWS: Mention the change in GDB and GDBserver.
2412 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2413 Yao Qi <yao@codesourcery.com>
2415 * tracepoint.c (trace_dump_command): Move code to ...
2416 (get_traceframe_location): ... here. New.
2418 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2419 Yao Qi <yao@codesourcery.com>
2421 * tracepoint.c (trace_dump_command): GDB emits an error
2422 instead of a warning when a traceframe is not selected.
2424 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2425 Yao Qi <yao@codesourcery.com>
2427 * tracepoint.c (tracepoint_list, stepping_list): Remove.
2428 (clear_collection_list): Free fields 'aexpre_list' and 'list'
2430 (do_clear_collection_list, init_collection_list): New.
2431 (encode_actions): Add local variables 'tracepoint_list' and
2432 'stepping_list'. Call init_collection_list and make cleanup
2433 which calls do_clear_collection_list. Don't call
2434 clear_collection_list.
2435 (_initialize_tracepoint): Delete references to
2436 'tracepoint_list' and 'stepping_list'.
2438 2013-06-25 Tom Tromey <tromey@redhat.com>
2440 * common/create-version.sh (date): Use "$", not "$$" in sed
2443 2013-06-25 Kevin Buettner <kevinb@redhat.com>
2445 * NEWS (New targets): Add entry for TI MSP430.
2447 2013-06-25 Yao Qi <yao@codesourcery.com>
2449 * remote.c (remote_start_remote): Move code to upload tsv
2452 2013-06-25 Yao Qi <yao@codesourcery.com>
2453 Hui Zhu <hui@codesourcery.com>
2454 Pedro Alves <palves@redhat.com>
2456 PR breakpoints/15075
2457 PR breakpoints/15434
2458 * breakpoint.c (bpstat_stop_status): Call
2459 b->ops->after_condition_true.
2460 (update_dprintf_command_list): Don't append "continue" command
2461 to the command list of dprintf breakpoint.
2462 (base_breakpoint_after_condition_true): New function.
2463 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
2464 (dprintf_after_condition_true): New function.
2465 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
2466 * breakpoint.h (breakpoint_ops): Add after_condition_true.
2468 2013-06-24 Kevin Buettner <kevinb@redhat.com>
2470 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
2471 (ALLDEPFILES): Add msp430-tdep.c.
2472 * configure.tgt (msp430*-*-elf): New target.
2473 * msp430-tdep.c: New file.
2475 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2477 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
2478 microMIPS synthetic symbols.
2480 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2482 * objfiles.h (pc_in_section): New prototype.
2483 (in_plt_section): Remove name argument, replace prototype with
2484 static inline function.
2485 * mips-tdep.h: Include "objfiles.h".
2486 (in_mips_stubs_section): New function.
2487 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
2488 in_solib_call_trampoline member.
2489 (hppa_in_solib_call_trampoline): Remove name argument.
2490 * objfiles.c (pc_in_section): New function.
2491 (in_plt_section): Remove function.
2492 * mips-linux-tdep.c: Include "objfiles.h".
2493 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
2494 name argument. Return 1 rather than the low 16-bit halfword of
2495 any instruction examined.
2496 (mips_linux_in_dynsym_resolve_code): Update
2497 mips_linux_in_dynsym_stub call accordingly.
2498 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
2499 rather than an equivalent hand-coded sequence.
2500 * hppa-hpux-tdep.c (in_opd_section): Remove function.
2501 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
2502 (hppa64_hpux_in_solib_call_trampoline): Likewise.
2503 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
2505 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
2506 on call to tdep->in_solib_call_trampoline.
2507 (hppa_in_solib_call_trampoline): Remove name argument, update
2508 according to in_plt_section change.
2509 (hppa_skip_trampoline_code): Update according to in_plt_section
2511 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
2512 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
2514 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
2515 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2516 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2517 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
2518 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
2519 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
2520 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
2521 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
2522 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
2523 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
2524 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
2525 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
2526 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
2528 2013-06-24 Joel Brobecker <brobecker@adacore.com>
2530 * common/create-version.sh: Fix expansion of $host_alias
2531 and $target_alias in generation of HOST_NAME and TARGET_NAME
2534 2013-06-24 Tom Tromey <tromey@redhat.com>
2536 * common/create-version.sh: New file.
2537 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
2539 (HFILES_NO_SRCDIR): Use common/version.h.
2540 * version.in: Move to ...
2541 * common/version.in: ... here. Replace date with "DATE".
2542 * version.h: Move to ...
2543 * common/version.h: ... here.
2545 2013-06-21 Joel Brobecker <brobecker@adacore.com>
2547 * gdb/gnulib/Makefile.in: Update date in copyright header.
2548 * gdb/gnulib/configure.ac: Ditto.
2549 * gdb/gnulib/update-gnulib.sh: Ditto.
2551 2013-06-21 Joel Brobecker <brobecker@adacore.com>
2553 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
2554 "gdb/gnulib/import".
2556 2013-06-21 Will Newton <will.newton@linaro.org>
2558 * doublest.c (ldfrexp): Remove function.
2559 (convert_doublest_to_floatformat): Call frexpl instead of
2562 2013-06-21 Will Newton <will.newton@linaro.org>
2564 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
2565 * gnulib/aclocal.m4: Regenerate.
2566 * gnulib/config.in: Regenerate.
2567 * gnulib/configure: Regenerate.
2568 * gnulib/import/Makefile.am: Update.
2569 * gnulib/import/Makefile.in: Update.
2570 * gnulib/import/m4/gnulib-cache.m4: Update.
2571 * gnulib/import/m4/gnulib-comp.m4: Update.
2572 * gnulib/import/float+.h: Import.
2573 * gnulib/import/float.c: Import.
2574 * gnulib/import/float.in.h: Import.
2575 * gnulib/import/fpucw.h: Import.
2576 * gnulib/import/frexp.c: Import.
2577 * gnulib/import/frexpl.c: Import.
2578 * gnulib/import/isnan.c: Import.
2579 * gnulib/import/isnand-nolibm.h: Import.
2580 * gnulib/import/isnand.c: Import.
2581 * gnulib/import/isnanl-nolibm.h: Import.
2582 * gnulib/import/isnanl.c: Import.
2583 * gnulib/import/itold.c: Import.
2584 * gnulib/import/m4/exponentd.m4: Import.
2585 * gnulib/import/m4/exponentl.m4: Import.
2586 * gnulib/import/m4/float_h.m4: Import.
2587 * gnulib/import/m4/fpieee.m4: Import.
2588 * gnulib/import/m4/frexp.m4: Import.
2589 * gnulib/import/m4/frexpl.m4: Import.
2590 * gnulib/import/m4/isnand.m4: Import.
2591 * gnulib/import/m4/isnanl.m4: Import.
2592 * gnulib/import/m4/math_h.m4: Import.
2593 * gnulib/import/math.c: Import.
2594 * gnulib/import/math.in.h: Import.
2596 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2598 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
2599 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
2600 signature_INTEL_edx comparisons.
2602 2013-06-20 Doug Evans <dje@google.com>
2605 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
2606 All callers updated.
2607 (open_dwp_file): If we can't find the dwp file, search the basename
2608 in debug-file-directory.
2610 * dwarf2read.c (struct dwp_file): Fix comment.
2611 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
2613 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
2616 2013-06-20 Yao Qi <yao@codesourcery.com>
2618 * breakpoint.c (create_breakpoint): Fix code indentation.
2620 2013-06-20 Yao Qi <yao@codesourcery.com>
2622 * breakpoint.c (create_breakpoints_sal_default): Remove
2623 parameter 'lsal'. Update declaration.
2624 (bkpt_create_breakpoints_sal): Caller update.
2625 (tracepoint_create_breakpoints_sal): Likewise.
2627 2013-06-20 Pedro Alves <pedro@codesourcery.com>
2628 Yao Qi <yao@codesourcery.com>
2630 * NEWS: Mention the new option '--skip-unavailable' of command
2631 -data-list-register-values.
2632 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
2633 --skip-unavailable option. Adjust to use output_register.
2634 (output_register): Add new 'skip_unavailable' parameter.
2637 2013-06-19 Mike Frysinger <vapier@gentoo.org>
2639 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
2640 common/i386-gcc-cpuid.h.
2641 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
2642 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
2643 Copy the latest version from upstream gcc.
2644 * common/linux-btrace.c: Include i386-cpuid.h.
2645 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
2647 (cpu_supports_btrace): Likewise.
2648 * go32-nat.c: Include i386-cpuid.h.
2649 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
2651 2013-06-19 Doug Evans <dje@google.com>
2653 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
2654 (get_section_index): Ditto.
2656 2013-06-19 Tom Tromey <tromey@redhat.com>
2658 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
2661 2013-06-18 Doug Evans <dje@google.com>
2663 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
2665 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
2666 Move test of cu_index closer to use. Print complaint if cu_index
2669 2013-06-18 Joel Brobecker <brobecker@adacore.com>
2671 * machoread.c (oso_vector): Delete this global.
2672 (macho_register_oso): Add new parameter "oso_vector_ptr".
2673 Use it instead of the "oso_vector" global.
2674 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
2675 (macho_symfile_read): Use a local oso_vector, to be free'ed
2676 at the end of this function, in place of the old "oso_vector"
2677 global. Update various function calls accordingly. Use one
2678 single cleanup chain for the entire function.
2680 2013-06-18 Joel Brobecker <brobecker@adacore.com>
2682 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
2683 DWARF2_PER_OBJFILE by uses of DATA instead.
2685 2013-06-18 Tom Tromey <tromey@redhat.com>
2687 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
2689 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
2690 Special case signals other than GDB_SIGNAL_TRAP.
2691 (explains_signal_watchpoint): New function.
2692 (base_breakpoint_explains_signal): Add 'sig' argument.
2693 (initialize_breakpoint_ops): Set 'explains_signal' method for
2695 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
2697 (bpstat_explains_signal): Likewise.
2698 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
2700 2013-06-18 Tom Tromey <tromey@redhat.com>
2702 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
2704 2013-06-18 Tom Tromey <tromey@redhat.com>
2706 * python/python.c (finish_python_initialization): Decref
2707 'pythondir' on failure path as well.
2709 2013-06-18 Tom Tromey <tromey@redhat.com>
2712 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
2713 after taking bits_to_skip into account. Sign extend byte_offset.
2714 * utils.h (gdb_sign_extend): Declare.
2715 * utils.c (gdb_sign_extend): New function.
2717 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2719 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
2721 2013-06-17 Pierre Muller <muller@sourceware.org>
2723 * corelow.c (core_open): Print GDB signal name instead of target
2726 2013-06-17 Mike Frysinger <vapier@gentoo.org>
2728 * .gitignore: Add /gcore.
2730 2013-06-13 Doug Evans <dje@google.com>
2732 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
2733 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
2735 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
2737 * stack.c (backtrace_command_1): Fix indentation.
2739 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2741 * window-nat.c (thread_rec): Add missing empty line after
2742 local variable declaration.
2744 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2746 * windows-nat.c (thread_rec): Revert format used to print
2747 error code returned by SuspendThread from %d back to %u.
2749 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2751 * windows-nat.c (windows_continue): Add "0x" prefix for thread
2753 (get_windows_debug_event): Likewise, for all debug traces.
2755 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2757 * window-nat.c (thread_rec): Add thread ID in SuspendThread
2760 2013-06-08 Pedro Alves <pedro@codesourcery.com>
2761 Yao Qi <yao@codesourcery.com>
2763 * mi/mi-main.c (get_register): Remove declaration.
2764 (output_register): Declare.
2765 (mi_cmd_data_list_register_values): Remove local variable
2766 'tuple_cleanup'. Move some code into output_register.
2767 (get_register): Renamed to ...
2768 (output_register): ... this. Output the register's
2769 "number" ui_out tuple here.
2771 2013-06-07 Pedro Alves <palves@redhat.com>
2773 * darwin-nat.c: Fix formating in copyright header.
2774 * darwin-nat.h: Likewise.
2775 * gnu-nat.c: Likewise.
2776 * machoread.c: Likewise.
2778 2013-06-07 Pedro Alves <palves@redhat.com>
2781 * regformats/regdat.sh: Output #include tdesc.h. Make globals
2782 static. Output a global target description pointer.
2783 (init_registers_${name}): Adjust to initialize a
2784 target description structure.
2786 2013-06-07 Will Newton <will.newton@linaro.org>
2788 * printcmd.c (build_address_symbolic): Call
2789 gdbarch_addr_bits_remove for text minimal symbols.
2791 2013-06-07 Will Newton <will.newton@linaro.org>
2793 * MAINTAINERS: Add myself to Write After Approval.
2795 2013-06-07 Yao Qi <yao@codesourcery.com>
2797 * tracepoint.c (start_tracing): Move code to ...
2798 (trace_reset_local_state): ... here. New.
2799 (disconnect_tracing): Don't call set_current_traceframe,
2800 set_tracepoint_num, and set_traceframe_context. Call
2801 trace_reset_local_state instead.
2802 (tfile_close): Call trace_reset_local_state.
2803 * ctf.c (ctf_close): Likewise.
2804 * remote.c (remote_close): Likewise.
2805 * tracepoint.h (trace_reset_local_state): Declare.
2807 2013-06-06 Doug Evans <dje@google.com>
2809 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
2810 and fix header docs.
2812 2013-06-05 Doug Evans <dje@google.com>
2813 Keith Seitz <keiths@redhat.com>
2816 * cp-namespace.c (find_symbol_in_baseclass): Call
2817 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
2818 Check result of call to lookup_symbol_static.
2819 Call lookup_static_symbol_aux unconditionally.
2820 Call check_typedef on base types before accessing them.
2821 (cp_lookup_nested_symbol): Fix comment.
2823 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
2825 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
2826 minimal symbols pointing to function descriptors.
2828 2013-06-05 Tom Tromey <tromey@redhat.com>
2830 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
2832 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2833 Pedro Alves <palves@redhat.com>
2835 * remote.c (remote_wait_as): Restore signal handler before returning
2836 when GDB gets a notification.
2838 2013-06-04 Gary Benson <gbenson@redhat.com>
2841 * breakpoint.h (handle_solib_event): Moved function declaration
2843 * breakpoint.c (handle_solib_event): Moved function to solib.c.
2844 (bpstat_stop_status): Pass new argument to handle_solib_event.
2845 * solib.h (update_solib_breakpoints): New function declaration.
2846 (handle_solib_event): Moved function declaration from
2848 * solib.c (update_solib_breakpoints): New function.
2849 (handle_solib_event): Moved function from breakpoint.c.
2850 Updated to call solib_ops->handle_event if not NULL.
2851 * solist.h (target_so_ops): New fields "update_breakpoints" and
2853 * infrun.c (set_stop_on_solib_events): New function.
2854 (_initialize_infrun): Use the above for "set
2855 stop-on-solib-events".
2856 (handle_inferior_event): Pass new argument to handle_solib_event.
2857 * solib-svr4.c (probe.h): New include.
2858 (svr4_free_library_list): New forward declaration.
2859 (probe_action): New enum.
2860 (probe_info): New struct.
2861 (probe_info): New static variable.
2862 (NUM_PROBES): New definition.
2863 (svr4_info): New fields "using_xfer", "probes_table" and
2865 (free_probes_table): New function.
2866 (free_solib_list): New function.
2867 (svr4_pspace_data_cleanup): Free probes table and solib list.
2868 (svr4_copy_library_list): New function.
2869 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
2870 (svr4_read_so_list): New parameter "prev_lm".
2871 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
2872 (svr4_current_sos): New function.
2873 (probe_and_action): New struct.
2874 (hash_probe_and_action): New function.
2875 (equal_probe_and_action): Likewise.
2876 (register_solib_event_probe): Likewise.
2877 (solib_event_probe_at): Likewise.
2878 (solib_event_probe_action): Likewise.
2879 (solist_update_full): Likewise.
2880 (solist_update_incremental): Likewise.
2881 (disable_probes_interface_cleanup): Likewise.
2882 (svr4_handle_solib_event): Likewise.
2883 (svr4_update_solib_event_breakpoint): Likewise.
2884 (svr4_update_solib_event_breakpoints): Likewise.
2885 (svr4_create_solib_event_breakpoints): Likewise.
2886 (enable_break): Free probes table before creating breakpoints.
2887 Use svr4_create_solib_event_breakpoints to create breakpoints.
2888 (svr4_solib_create_inferior_hook): Free the solib list.
2889 (_initialize_svr4_solib): Initialise
2890 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
2892 2013-06-04 Gary Benson <gbenson@redhat.com>
2894 * target.h (target_ops): New field
2895 "to_augmented_libraries_svr4_read".
2896 (target_augmented_libraries_svr4_read): New macro.
2897 * target.c (update_current_target): Handle
2898 to_augmented_libraries_svr4_read.
2899 * remote.c (remote_state): New field
2900 "augmented_libraries_svr4_read".
2901 (remote_augmented_libraries_svr4_read_feature): New function.
2902 (remote_protocol_features): Add entry for
2903 "augmented-libraries-svr4-read".
2904 (remote_augmented_libraries_svr4_read): New function.
2905 (init_remote_ops): Initialize
2906 remote_ops.to_augmented_libraries_svr4_read.
2908 2013-06-04 Gary Benson <gbenson@redhat.com>
2912 2013-06-04 Gary Benson <gbenson@redhat.com>
2914 * objfiles.h (inhibit_section_map_updates): New function
2916 (resume_section_map_updates): Likewise.
2917 (resume_section_map_updates_cleanup): Likewise.
2918 * objfiles.c (objfile_pspace_info): Removed field
2919 "objfiles_changed_p". New fields "new_objfiles_available",
2920 "section_map_dirty" and "inhibit_updates".
2921 (allocate_objfile): Set new_objfiles_available.
2922 (free_objfile): Set section_map_dirty.
2923 (objfile_relocate1): Likewise.
2924 (in_plt_section): Likewise.
2925 (find_pc_section): Update the conditions under which the
2926 section map will be updated.
2927 (inhibit_section_map_updates): New function.
2928 (resume_section_map_updates): Likewise.
2929 (resume_section_map_updates_cleanup): Likewise.
2931 2013-06-04 Gary Benson <gbenson@redhat.com>
2933 * probe.h (get_probe_argument_count): New declaration.
2934 (evaluate_probe_argument): Likewise.
2935 * probe.c (get_probe_argument_count): New function.
2936 (evaluate_probe_argument): Likewise.
2937 (probe_safe_evaluate_at_pc): Use the above new functions.
2939 2013-06-04 Alan Modra <amodra@gmail.com>
2941 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
2942 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
2943 (ppc_insns_match_pattern): Add frame param. Avoid multiple
2944 target mem reads on optional insns.
2945 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
2946 ppc_insns_match_pattern calls.
2947 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
2948 Add match for power7 thread safety insns, and new order of
2949 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
2950 invocation in comment, and update rest of comment.
2951 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
2952 PPC64_STANDARD_LINKAGE3_LEN): Delete.
2953 (ppc64_standard_linkage2_target): Update insn offsets.
2954 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
2955 stubs first. Update calls.
2957 2013-06-04 Yao Qi <yao@codesourcery.com>
2959 * solib.c (solib_find): Don't need dir separator if path has
2962 2013-06-03 Joel Brobecker <brobecker@adacore.com>
2964 Revert (indirectly causes a SIGSEGV):
2965 * machoread.c (macho_symfile_read): Assign first cleanup to
2968 2013-06-03 Yao Qi <yao@codesourcery.com>
2970 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
2971 mi-parse.c. Make them static.
2972 (mi_all_values): Likewise.
2973 (mi_parse_values_option): Move to mi-parse.c. Rename it to
2974 mi_parse_print_values. Make it external.
2975 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
2976 Remove the declarations.
2977 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
2978 * mi/mi-parse.h (mi_parse_print_values): Declare.
2979 * mi/mi-cmd-stack.c: Include mi-parse.h.
2980 (parse_print_values): Remove
2981 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
2982 of parse_print_values.
2983 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
2985 2013-05-31 Pedro Alves <pedro@codesourcery.com>
2986 Yao Qi <yao@codesourcery.com>
2988 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
2989 (encode_actions): Move code to ...
2990 (all_tracepoint_actions_and_cleanup): ... here. New.
2991 (trace_dump_command): Likewise.
2993 2013-05-30 Tom Tromey <tromey@redhat.com>
2995 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
2997 2013-05-30 Tom Tromey <tromey@redhat.com>
2999 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
3000 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
3001 'old_chain' argument. Add 'parser_result' argument.
3002 (gdb_xml_create_parser_and_cleanup): Remove old version.
3003 (gdb_xml_parse_quick): Update.
3004 (xml_process_xincludes): Update.
3005 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
3008 2013-05-30 Tom Tromey <tromey@redhat.com>
3010 * probe.c (collect_probes): Check arguments for NULL before
3011 calling compile_rx_or_error.
3012 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
3015 2013-05-30 Tom Tromey <tromey@redhat.com>
3017 * infrun.c (adjust_pc_after_break): Introduce an outer null
3020 2013-05-30 Tom Tromey <tromey@redhat.com>
3022 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
3024 2013-05-30 Tom Tromey <tromey@redhat.com>
3026 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
3027 for 'old_chain'. Do not check 'head' before processing
3030 2013-05-30 Tom Tromey <tromey@redhat.com>
3032 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
3035 2013-05-30 Tom Tromey <tromey@redhat.com>
3037 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
3038 inner scope. Unconditionally call do_cleanups.
3040 2013-05-30 Tom Tromey <tromey@redhat.com>
3042 * source.c (find_and_open_source): Call do_cleanups.
3044 2013-05-30 Tom Tromey <tromey@redhat.com>
3046 * linux-thread-db.c (thread_db_load_search): Unconditionally
3049 2013-05-30 Tom Tromey <tromey@redhat.com>
3051 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
3052 for 'cleanup'; instead use a later one.
3054 2013-05-30 Tom Tromey <tromey@redhat.com>
3056 * python/py-breakpoint.c (bppy_get_commands): Use
3057 explicit, unconditional return.
3058 * python/py-frame.c (frapy_read_var): Likewise.
3059 * python/python.c (gdbpy_decode_line): Likewise.
3061 2013-05-30 Tom Tromey <tromey@redhat.com>
3063 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
3064 do_cleanups on all return paths.
3066 2013-05-30 Tom Tromey <tromey@redhat.com>
3068 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
3070 2013-05-30 Tom Tromey <tromey@redhat.com>
3072 * stabsread.c (read_struct_type): Call do_cleanups along
3075 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
3077 * mips-linux-tdep.c: Adjust formatting throughout.
3079 2013-05-30 Tom Tromey <tromey@redhat.com>
3081 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
3082 along all return paths.
3084 2013-05-30 Tom Tromey <tromey@redhat.com>
3086 * symfile.c (find_separate_debug_file): Call do_cleanups
3087 along all return paths.
3089 2013-05-30 Tom Tromey <tromey@redhat.com>
3091 * symtab.c (search_symbols): Introduce a null cleanup for
3094 2013-05-30 Tom Tromey <tromey@redhat.com>
3096 * python/py-value.c (valpy_binop): Call do_cleanups before
3099 2013-05-30 Tom Tromey <tromey@redhat.com>
3101 * python/py-prettyprint.c (print_children): Remove extra
3104 2013-05-30 Tom Tromey <tromey@redhat.com>
3106 * python/py-frame.c (frapy_read_var): Call do_cleanups along
3109 2013-05-30 Tom Tromey <tromey@redhat.com>
3111 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
3112 along all return paths.
3114 2013-05-30 Tom Tromey <tromey@redhat.com>
3116 * cli/cli-logging.c (set_logging_redirect): Unconditionally
3119 2013-05-30 Tom Tromey <tromey@redhat.com>
3121 * varobj.c (c_value_of_root): Call do_cleanups along all
3124 2013-05-30 Tom Tromey <tromey@redhat.com>
3126 * tracepoint.c (trace_dump_command): Unconditionally call
3129 2013-05-30 Tom Tromey <tromey@redhat.com>
3131 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
3132 do_cleanups earlier.
3134 2013-05-30 Tom Tromey <tromey@redhat.com>
3136 * machoread.c (macho_symfile_read): Assign first cleanup to
3139 2013-05-30 Tom Tromey <tromey@redhat.com>
3141 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
3143 2013-05-30 Tom Tromey <tromey@redhat.com>
3145 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
3147 2013-05-30 Tom Tromey <tromey@redhat.com>
3149 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
3150 call discard_cleanups.
3151 (inf_ptrace_attach): Likewise.
3153 2013-05-30 Tom Tromey <tromey@redhat.com>
3155 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
3157 (mips_initialize): Likewise.
3158 (common_open): Call do_cleanups.
3160 2013-05-30 Tom Tromey <tromey@redhat.com>
3162 * utils.c (internal_vproblem): Call do_cleanups.
3164 2013-05-30 Tom Tromey <tromey@redhat.com>
3166 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
3168 2013-05-30 Tom Tromey <tromey@redhat.com>
3170 * cli/cli-script.c (setup_user_args): Don't return after error.
3172 2013-05-30 Tom Tromey <tromey@redhat.com>
3174 * somread.c (som_symtab_read): Call do_cleanups.
3176 2013-05-30 Tom Tromey <tromey@redhat.com>
3178 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
3180 2013-05-30 Tom Tromey <tromey@redhat.com>
3182 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
3183 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
3184 * interps.c (interpreter_exec_cmd): Call do_cleanups.
3185 * source.c (show_substitute_path_command): Call do_cleanups.
3186 (unset_substitute_path_command, set_substitute_path_command):
3188 * symfile.c (load_command): Call do_cleanups.
3190 2013-05-30 Tom Tromey <tromey@redhat.com>
3192 * contrib/cleanup_check.py: New file.
3193 * contrib/gcc-with-excheck: Add option parsing.
3195 2013-05-30 Joel Brobecker <brobecker@adacore.com>
3197 * windows-nat.c (windows_delete_thread): Add missing space
3200 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3202 * inferior.c (top level): Include tilde.h.
3203 (add_inferior_command): Call tilde_expand on the value of 'exec'
3206 2013-05-30 Pedro Alves <pedro@codesourcery.com>
3207 Yao Qi <yao@codesourcery.com>
3209 * tracepoint.c (encode_actions_1): Remove parameter 't'.
3211 (encode_actions): Likewise.
3212 * remote.c (remote_download_tracepoint): Caller update.
3213 * tracepoint.h (encode_actions): Update declaration.
3215 2013-05-30 Pedro Alves <palves@redhat.com>
3217 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
3220 2013-05-30 Yao Qi <yao@codesourcery.com>
3222 * remote.c (remote_check_symbols): Remove unused parameter
3225 (remote_start_remote, remote_new_objfile): Caller update.
3227 2013-05-30 Yao Qi <yao@codesourcery.com>
3229 * mi/mi-cmds.c (mi_cmds): Define MI command
3230 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
3233 2013-05-29 Pedro Alves <palves@redhat.com>
3235 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
3236 (remote_insert_watchpoint, remote_remove_watchpoint)
3237 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
3238 (remote_verify_memory, compare_sections_command)
3239 (remote_search_memory): Set the general process/thread on the
3242 2013-05-29 Pedro Alves <palves@redhat.com>
3244 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
3245 (_initialize_aarch64_tdep): Don't call
3246 initialize_tdesc_aarch64_without_fpu.
3247 * features/Makefile (WHICH): Remove reference to
3248 aarch64-without-fpu.
3249 * features/aarch64-without-fpu.c: Delete file.
3250 * regformats/aarch64-without-fpu.dat: Delete file.
3252 2013-05-28 Yao Qi <yao@codesourcery.com>
3254 * tracepoint.c (stringify_collection_list): Remove parameter
3256 (encode_actions): Caller update. Remove local variables.
3258 2013-05-24 Yao Qi <yao@codesourcery.com>
3260 * tracepoint.c (TFILE_PID): Remove.
3261 (tfile_open): Don't add thread and inferior.
3262 (tfile_close): Don't set 'inferior_ptid'. Don't call
3263 exit_inferior_silent.
3264 (tfile_thread_alive): Remove.
3265 (init_tfile_ops): Don't set field 'to_thread_alive' of
3268 2013-05-23 Doug Evans <dje@google.com>
3270 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
3272 2013-05-23 Pedro Alves <palves@redhat.com>
3274 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
3275 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
3276 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
3277 Only define if HAVE_SOCKETS is defined.
3278 * configure.ac: Check for sys/socket.h.
3279 * config.in, configure: Regenerate.
3281 2013-05-23 Pedro Alves <palves@redhat.com>
3283 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
3284 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
3285 printing uint32_t variables.
3287 2013-05-23 Pedro Alves <palves@redhat.com>
3289 * NEWS: Mention GDBserver range stepping support.
3291 2013-05-23 Yao Qi <yao@codesourcery.com>
3292 Pedro Alves <palves@redhat.com>
3294 * gdbthread.h (struct thread_control_state) <may_range_step>: New
3296 * infcmd.c (step_once, until_next_command): Enable range stepping.
3297 * infrun.c (displaced_step_prepare): Disable range stepping.
3298 (resume): Disable range stepping if stepping over a breakpoint or
3299 we have software watchpoints. If range stepping is enabled,
3300 assert the thread is in the stepping range.
3301 (clear_proceed_status_thread): Clear may_range_step.
3302 (handle_inferior_event): Disable range stepping as soon as we know
3303 the thread that hit the event. Re-enable it whenever we're going
3304 to step with a step range.
3305 * remote.c (struct vCont_action_support) <r>: New field.
3306 (use_range_stepping): New global.
3307 (remote_vcont_probe): Handle 'r' action.
3308 (append_resumption): Append an 'r' action if the thread may range
3310 (show_range_stepping): New function.
3311 (set_range_stepping): New function.
3312 (_initialize_remote): Call add_setshow_boolean_cmd to register the
3313 'set range-stepping' and 'show range-stepping' commands.
3314 * NEWS: Mention range stepping, the new vCont;r action, and the
3315 new "set/show range-stepping" commands.
3317 2013-05-23 Yao Qi <yao@codesourcery.com>
3318 Pedro Alves <palves@redhat.com>
3320 * remote.c (struct vCont_action_support): New struct.
3321 (struct remote_state) <support_vCont_t>: Remove field.
3322 <vCont_actions_support>: New field.
3323 (remote_vcont_probe, remote_stop_ns): Update.
3325 2013-05-23 Yao Qi <yao@codesourcery.com>
3326 Pedro Alves <palves@redhat.com>
3328 * gdbthread.h (pc_in_thread_step_range): New declaration.
3329 * thread.c (pc_in_thread_step_range): New function.
3330 * infrun.c (handle_inferior_event): Use it.
3332 2013-05-23 Joel Brobecker <brobecker@adacore.com>
3334 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
3337 2013-05-22 Keith Seitz <keiths@redhat.com>
3339 * ada-lang.c (is_known_support_routine): Add explicit free of
3340 'func_name' from find_frame_funname.
3341 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
3342 for func_name from find_frame_funname.
3343 * python/py-frame.c (frapy_name): Add explicit free of
3344 'name' from find_frame_funname.
3345 * stack.c (find_frame_funname): Add comment explaining that
3346 funcp must be freed by the caller.
3347 Return copy of symbol names instead of pointers.
3348 (print_frame): Add a cleanup for 'funname' from
3350 * stack.h (find_frame_funname): Remove "const" from
3351 'funname' parameter.
3353 2013-05-22 Tom Tromey <tromey@redhat.com>
3356 * c-valprint.c (c_value_print): Use value_addr for
3357 references. Convert back to reference type with value_ref.
3359 2013-05-22 Eli Zaretskii <eliz@gnu.org>
3361 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
3362 unloaded DLL, it will be done by handle_solib_event. See
3363 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
3366 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
3368 * ui-out.c: Create typedef ui_out_level_p and define vector
3369 operations for that type.
3370 (struct ui_out): Use a vector instead of an array.
3371 (current_level): Return level from a vector.
3372 (push_level): Create a level in a vector.
3373 (pop_level): Delete a level in a vector.
3374 (ui_out_new): Create initial level zero level, and store in a
3376 (ui_out_destroy): Add vector cleanup.
3378 2013-05-22 Pedro Alves <palves@redhat.com>
3380 * python/python-internal.h (gdb_Py_DECREF): Tag with
3381 "ARI: editCase function".
3383 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3385 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
3387 2013-05-21 Pedro Alves <palves@redhat.com>
3389 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3390 whether PRINTER is NULL before installing a Py_DECREF cleanup.
3391 * python/py-utils.c (py_decref): Don't check for NULL before
3394 2013-05-21 Pedro Alves <palves@redhat.com>
3396 * python/py-utils.c (py_decref): Remove extra braces.
3397 (gdb_pymodule_addobject): Remove extra braces.
3398 * python-internal.h (gdb_Py_DECREF): New static inline function.
3399 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
3401 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3403 * breakpoints.c (detach_breakpoints): Do not
3404 detach breakpoints locations with loc_type bp_loc_other.
3406 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3408 Workaround Python 2.6.
3409 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
3412 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3414 Code cleanup: constification.
3415 * solib.c (solib_ops): Make return type and ops variable type const.
3416 (set_solib_ops): Make the new_ops parameter and ops variable const.
3417 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
3418 (solib_add, solib_keep_data_in_core, clear_solib)
3419 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3420 (reload_shared_libraries, solib_global_lookup): Make the ops variable
3422 * solib.h (set_solib_ops): Make the new_ops parameter const.
3424 2013-05-21 Joel Brobecker <brobecker@adacore.com>
3426 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
3428 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
3429 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
3430 (SYSTEM_GDBINIT_FILES): New variables.
3431 (all): Add stamp-system-gdbinit.
3432 (stamp-system-gdbinit): New rule.
3433 (clean-system-gdbinit, install-system-gdbinit)
3434 (uninstall-system-gdbinit): New rules. Make them .PHONY.
3435 (install-only): Add dependency on install-system-gdbinit.
3436 (uninstall): Add dependency on uninstall-system-gdbinit.
3437 (clean): Add dependency on clean-system-gdbinit.
3438 * system-gdbinit/elinos.py: New file.
3439 * system-gdbinit/wrs-linux.py: New file.
3441 2013-05-21 Joel Brobecker <brobecker@adacore.com>
3443 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
3445 2013-05-21 Hui Zhu <hui@codesourcery.com>
3447 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
3448 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
3449 * mi/mi-cmd-break.c (ctype.h): New include.
3450 (gdb_obstack.h): New include.
3451 (mi_argv_to_format, mi_cmd_break_insert_1): New.
3452 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
3453 (mi_cmd_dprintf_insert): New.
3454 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
3455 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
3457 2013-05-20 Tom Tromey <tromey@redhat.com>
3459 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
3461 2013-05-20 Tom Tromey <tromey@redhat.com>
3463 * python/py-value.c (valpy_get_dynamic_type): Simplify
3464 dynamic_type assignment. Use Py_XINCREF.
3466 2013-05-20 Tom Tromey <tromey@redhat.com>
3468 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
3470 2013-05-20 Tom Tromey <tromey@redhat.com>
3472 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
3473 (gdbpy_selected_frame): Move object-construction code
3476 2013-05-20 Tom Tromey <tromey@redhat.com>
3478 * python/py-arch.c (gdbpy_initialize_arch): Use
3479 gdb_pymodule_addobject.
3480 * python/py-block.c (gdbpy_initialize_blocks): Use
3481 gdb_pymodule_addobject.
3482 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
3483 gdb_pymodule_addobject.
3484 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
3485 gdb_pymodule_addobject.
3486 * python/py-event.c (gdbpy_initialize_event_generic): Use
3487 gdb_pymodule_addobject.
3488 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
3489 gdb_pymodule_addobject.
3490 * python/py-evts.c (add_new_registry): Use
3491 gdb_pymodule_addobject.
3492 (gdbpy_initialize_py_events): Likewise.
3493 * python/py-finishbreakpoint.c
3494 (gdbpy_initialize_finishbreakpoints): Use
3495 gdb_pymodule_addobject.
3496 * python/py-frame.c (gdbpy_initialize_frames): Use
3497 gdb_pymodule_addobject.
3498 * python/py-function.c (gdbpy_initialize_functions): Use
3499 gdb_pymodule_addobject.
3500 * python/py-inferior.c (gdbpy_initialize_inferior): Use
3501 gdb_pymodule_addobject.
3502 * python/py-infthread.c (gdbpy_initialize_thread): Use
3503 gdb_pymodule_addobject.
3504 * python/py-objfile.c (gdbpy_initialize_objfile): Use
3505 gdb_pymodule_addobject.
3506 * python/py-param.c (gdbpy_initialize_parameters): Use
3507 gdb_pymodule_addobject.
3508 * python/py-progspace.c (gdbpy_initialize_pspace): Use
3509 gdb_pymodule_addobject.
3510 * python/py-symbol.c (gdbpy_initialize_symbols): Use
3511 gdb_pymodule_addobject.
3512 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
3513 gdb_pymodule_addobject.
3514 * python/py-type.c (gdbpy_initialize_types): Use
3515 gdb_pymodule_addobject.
3516 * python/py-utils.c (gdb_pymodule_addobject): New function.
3517 * python/py-value.c (gdbpy_initialize_values): Use
3518 gdb_pymodule_addobject.
3519 * python/python-internal.h (gdb_pymodule_addobject): Declare.
3520 * python/python.c (_initialize_python): Use
3521 gdb_pymodule_addobject.
3523 2013-05-20 Tom Tromey <tromey@redhat.com>
3525 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
3526 * python/py-param.c (get_set_value, get_show_value): Use
3528 * python/python.c (start_type_printers, apply_type_printers):
3529 Use explicit decrefs.
3531 2013-05-20 Tom Tromey <tromey@redhat.com>
3533 * python/py-evts.c (gdbpy_initialize_py_events): Don't
3536 2013-05-20 Tom Tromey <tromey@redhat.com>
3538 * python/python.c (gdbpy_run_events): Decref the result
3539 of PyObject_CallObject.
3541 2013-05-20 Tom Tromey <tromey@redhat.com>
3543 * python/py-symtab.c (set_sal): Use
3544 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
3545 (symtab_and_line_to_sal_object): Update.
3547 2013-05-20 Tom Tromey <tromey@redhat.com>
3549 * python/py-param.c (compute_enum_values): Decref 'item'.
3551 2013-05-20 Tom Tromey <tromey@redhat.com>
3553 * mi/mi-main.c: Include python-internal.h.
3554 (mi_cmd_list_features): Check gdb_python_initialized.
3555 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
3556 (python_inferior_exit, python_new_objfile, add_thread_object)
3557 (delete_thread_object, py_free_inferior): Check
3558 gdb_python_initialized.
3559 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3560 gdb_python_initialized.
3561 * python/py-type.c (save_objfile_types): Check
3562 gdb_python_initialized.
3563 * python/python-internal.h (gdb_python_initialized): Declare.
3564 * python/python.c (ensure_python_env): Throw exception if
3565 Python not initialized.
3566 (before_prompt_hook, source_python_script_for_objfile)
3567 (start_type_printers, apply_type_printers,
3568 free_type_printers): Check gdb_python_initialized.
3569 * varobj.c (varobj_get_display_hint)
3570 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
3571 (install_new_value_visualizer, varobj_set_visualizer)
3572 (value_get_print_value): Check gdb_python_initialized.
3574 2013-05-20 Tom Tromey <tromey@redhat.com>
3576 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
3578 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
3579 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
3581 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
3583 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
3585 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
3587 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
3588 init function to return 'int'.
3589 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
3590 Return 'int'. Check errors.
3591 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
3593 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
3594 Return 'int'. Check errors.
3595 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
3597 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
3599 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
3601 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
3603 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
3605 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
3607 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
3609 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
3611 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
3613 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
3615 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
3617 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
3619 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
3621 * python/python-internal.h (gdbpy_initialize_auto_load,
3622 gdbpy_initialize_values, gdbpy_initialize_frames,
3623 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
3624 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
3625 gdbpy_initialize_blocks, gdbpy_initialize_types,
3626 gdbpy_initialize_functions, gdbpy_initialize_pspace,
3627 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
3628 gdbpy_initialize_finishbreakpoints,
3629 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
3630 gdbpy_initialize_thread, gdbpy_initialize_inferior,
3631 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
3632 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
3633 gdbpy_initialize_signal_event,
3634 gdbpy_initialize_breakpoint_event,
3635 gdbpy_initialize_continue_event,
3636 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
3637 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
3638 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3639 * python/python.c (gdb_python_initialized): New global.
3640 (gdbpy_initialize_events): Return 'int'. Check errors.
3641 (_initialize_python): Check errors. Set
3642 gdb_python_initialized.
3644 2013-05-20 Tom Tromey <tromey@redhat.com>
3646 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
3647 Decref the reslut of PyObject_CallMethod.
3649 2013-05-20 Tom Tromey <tromey@redhat.com>
3651 * python/py-event.c (gdbpy_initialize_event_generic): Return
3652 early if PyType_Ready fails.
3654 2013-05-20 Tom Tromey <tromey@redhat.com>
3656 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
3657 as 'default' in the switch.
3659 2013-05-20 Tom Tromey <tromey@redhat.com>
3661 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
3662 get_addr_from_python calls out of TRY_CATCH.
3663 (infpy_write_memory, infpy_search_memory): Likewise.
3664 * python/py-utils.c (get_addr_from_python): Return negative
3665 value on error. Use TRY_CATCH.
3666 * python/python-internal.h (get_addr_from_python): Use
3667 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3669 2013-05-20 Tom Tromey <tromey@redhat.com>
3671 * python/py-event.c (evpy_emit_event): Decref the
3672 result of PyObject_CallFunctionObjArgs.
3674 2013-05-20 Tom Tromey <tromey@redhat.com>
3676 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
3679 2013-05-20 Tom Tromey <tromey@redhat.com>
3681 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
3683 2013-05-20 Tom Tromey <tromey@redhat.com>
3685 * python/py-event.h (gdbpy_initialize_event_generic): Use
3686 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3687 * python/py-evts.c (add_new_registry): Use
3688 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3689 * python/python-internal.h
3690 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
3692 2013-05-20 Tom Tromey <tromey@redhat.com>
3694 * python/py-arch.c (archpy_disassemble): Update.
3695 * python/py-type.c (typy_get_composite, typy_lookup_typename)
3696 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
3697 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
3698 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
3700 (GDB_PY_HANDLE_EXCEPTION): Update.
3701 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
3703 2013-05-20 Tom Tromey <tromey@redhat.com>
3705 * python/python-internal.h (events_object_type): Remove.
3707 2013-05-20 Tom Tromey <tromey@redhat.com>
3709 * python/py-event.h (evpy_emit_event): Use
3710 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3711 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3714 2013-05-20 Tom Tromey <tromey@redhat.com>
3716 * py-evtregistry.c (create_event_object): Decref
3717 eventregistry_object if PyList_New fails.
3719 2013-05-20 Tom Tromey <tromey@redhat.com>
3721 * py-cmd.c (gdbpy_string_to_argv): Check result of
3724 2013-05-20 Tom Tromey <tromey@redhat.com>
3726 * python/python.c (before_prompt_hook): Add cleanup to
3729 2013-05-20 Tom Tromey <tromey@redhat.com>
3731 * python/py-function.c (fnpy_init): Decref result of
3732 PyObject_GetAttrString.
3734 2013-05-20 Tom Tromey <tromey@redhat.com>
3736 * python/py-threadevent.c (get_event_thread): Use
3737 CPYCHECKER_RETURNS_BORROWED_REF.
3738 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3740 (pspace_to_pspace_object, objfile_to_objfile_object)
3741 (find_thread_object): Use it.
3743 2013-05-20 Tom Tromey <tromey@redhat.com>
3745 * python/py-arch.c (arch_object_type): Use
3746 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3747 * python/py-block.c (block_syms_iterator_object_type):
3748 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3749 * python/py-bpevent.c (breakpoint_event_object_type):
3750 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3751 * python/py-cmd.c (cmdpy_object_type): Use
3752 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3753 * python/py-continueevent.c (continue_event_object_type):
3754 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3755 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
3756 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3757 * python/py-events.h (thread_event_object_type):
3758 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3759 * python/py-evtregistry.c (eventregistry_object_type): Use
3760 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3761 * python/py-exitedevent.c (exited_event_object_type):
3762 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3763 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
3764 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3765 * python/py-function.c (fnpy_object_type): Use
3766 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3767 * python/py-inferior.c (inferior_object_type, membuf_object_type):
3768 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3769 * python/py-infthread.c (thread_object_type): Use
3770 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3771 * python/py-lazy-string.c (lazy_string_object_type):
3772 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3773 * python/py-newobjfileevent.c (new_objfile_event_object_type):
3774 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3775 * python/py-objfile.c (objfile_object_type): Use
3776 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3777 * python/py-param.c (parmpy_object_type):
3778 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3779 * python/py-progspace.c (pspace_object_type):
3780 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3781 * python/py-signalevent.c (signal_event_object_type):
3782 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3783 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
3784 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3785 * python/py-type.c (type_object_type, field_object_type)
3786 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3787 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
3789 (value_object_type, block_object_type, symbol_object_type)
3790 (event_object_type, stop_event_object_type, breakpoint_object_type)
3791 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3793 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
3795 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
3796 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
3798 2013-05-20 Doug Evans <dje@google.com>
3800 When reading CU, stay in DWO. Be more tolerent of bad debug info.
3802 * dwarf2read.c (struct dwarf2_per_cu_data): New member
3803 reading_dwo_directly.
3804 (struct signatured_type): New member dwo_unit.
3805 (struct die_reader_specs): New member comp_dir.
3806 (create_signatured_type_table_from_index): Use malloc for
3807 all_type_units instead of objfile's obstack.
3808 (create_all_type_units): Ditto.
3809 (fill_in_sig_entry_from_dwo_entry): New function.
3810 (add_type_unit): New function.
3811 (lookup_dwo_signatured_type): New function.
3812 (lookup_dwp_signatured_type): New function.
3813 (lookup_signatured_type): New arg cu. All callers updated.
3814 (init_cu_die_reader): Initialize comp_dir.
3815 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
3816 Change assert of matching type signatures to call error on mismatch.
3817 (lookup_dwo_unit): Add assert.
3818 (init_tu_and_read_dwo_dies): New function.
3819 (init_cutu_and_read_dies): Call it.
3820 (build_type_unit_groups): Handle case of no type unit groups created.
3821 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
3822 (lookup_dwo_cutu): Tweak complaint.
3823 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
3824 (dwarf2_per_objfile_free): Free all_type_units.
3826 2013-05-20 Joel Brobecker <brobecker@adacore.com>
3828 * windows-nat.c (handle_unload_dll): Add missing empty line.
3830 2013-05-20 Joel Brobecker <brobecker@adacore.com>
3832 * dwarf2read.c (prototyped_function_p): New function.
3833 (read_subroutine_type): Use it.
3835 2013-05-20 Joel Brobecker <brobecker@adacore.com>
3837 * rs6000-aix-tdep.c: De-indent some example code provided
3840 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
3842 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
3843 region is ok for a hardware watchpoint using the new ptrace interface
3846 2013-05-17 Doug Evans <dje@google.com>
3848 * NEWS: Mention new maintenance commands check-symtabs, and
3849 expand-symtabs, and renamed check-psymtabs.
3850 * psymtab.c (maintenance_check_psymtabs): Renamed from
3851 maintenance_check_symtabs. Only process already-expanded symbol
3853 (_initialize_psymtab): Update.
3854 * symmisc.c (maintenance_check_symtabs): New function.
3855 (maintenance_expand_name_matcher): New function
3856 (maintenance_expand_file_matcher): New function
3857 (maintenance_expand_symtabs): New function.
3858 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
3861 2013-05-17 Tom Tromey <tromey@redhat.com>
3863 * python/py-inferior.c (infpy_read_memory): Don't call
3864 PyErr_SetString if PyObject_New fails.
3865 * python/py-frame.c (frame_info_to_frame_object): Don't call
3866 PyErr_SetString if PyObject_New fails.
3868 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
3870 * acinclude.m4: Add check for dlopen in libdl.
3871 * configure.ac: Ditto.
3872 * configure: Regenerate.
3874 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
3876 * frame.c (frame_stash): Convert to htab.
3877 (frame_addr_hash): New function.
3878 (frame_addr_hash_eq): New function.
3879 (frame_stash_create): Convert function to create
3881 (frame_stash_add): Convert function to add an entry to a hash
3883 (frame_stash_find): Convert function to search the hash table.
3884 (frame_stash_invalidate): Convert function to empty the hash
3886 (get_frame_id): Only add to stash if a frame_id is created.
3887 (_initialize_frame): Call frame_stash_create.
3889 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
3891 * configure.ac: Ensure MIG is available when building for GNU Hurd
3893 * configure: Regenerate.
3895 2013-05-16 Joel Brobecker <brobecker@adacore.com>
3897 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
3899 2013-05-16 Joel Brobecker <brobecker@adacore.com>
3901 * ada-lang.c (ada_make_symbol_completion_list): Make sure
3902 all cleanups are done before returning from this function.
3904 2013-05-15 Joel Brobecker <brobecker@adacore.com>
3906 * utils.h: #include "exceptions.h".
3907 (enum errors): Remove partial declaration.
3909 2013-05-15 Joel Brobecker <brobecker@adacore.com>
3911 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
3912 * gdbarch.h, gdbarch.c: Regenerate.
3913 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
3916 * rs6000-aix-tdep.h: New file.
3917 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
3918 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
3920 (struct field_info, struct ld_info_desc): New types.
3921 (ld_info32_desc, ld_info64_desc): New static constants.
3922 (struct ld_info): New type.
3923 (rs6000_aix_extract_ld_info): New function.
3924 (rs6000_aix_shared_library_to_xml): Likewise.
3925 (rs6000_aix_ld_info_to_xml): Likewise.
3926 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3927 (rs6000_aix_init_osabi): Add call to
3928 set_gdbarch_core_xfer_shared_libraries_aix.
3929 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
3930 Remove "xml-utils.h" include.
3931 (LdInfo): Delete typedef.
3932 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
3934 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
3935 Adjust code accordingly.
3936 (rs6000_core_ldinfo): Delete, folded into
3937 rs6000_aix_core_xfer_shared_libraries_aix.
3938 (rs6000_xfer_shared_library): Delete.
3939 (rs6000_xfer_shared_libraries): Reimplement.
3941 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
3943 * record.c (record_goto_cmdlist): New.
3944 (cmd_record_goto): Split into this ...
3945 (cmd_record_goto_begin): ... this
3946 (cmd_record_goto_end): ... and this.
3947 (_initialize_record): Change "record goto" to prefix command.
3948 Add commands for "record goto begin" and "record goto end".
3949 Add an alias for "record goto start" to "record goto begin".
3951 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3953 * linespec.c (convert_linespec_to_sals): New comment for
3954 SOURCE_FILENAME assignment.
3956 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3958 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
3961 2013-05-14 Tom Tromey <tromey@redhat.com>
3963 * eval.c (parse_and_eval_long): Make 'exp' const.
3964 * value.h (parse_and_eval_long): Update.
3966 2013-05-14 Tom Tromey <tromey@redhat.com>
3968 * ui-file.c (gdb_fopen): Make arguments const.
3969 * ui-file.h (gdb_fopen): Make arguments const.
3971 2013-05-14 Tom Tromey <tromey@redhat.com>
3973 * remote.c (remote_set_trace_notes): Make arguments const.
3974 * target.c (update_current_target): Update cast.
3975 * target.h (to_set_trace_notes): Make arguments const.
3977 2013-05-14 Tom Tromey <tromey@redhat.com>
3979 * go32-nat.c (go32_terminal_info): Make 'args' const.
3980 * inferior.h (child_terminal_info): Update.
3981 * inflow.c (child_terminal_info): Make 'args' const.
3982 * target.c (default_terminal_info): Make 'args' const.
3983 (debug_to_terminal_save_ours): Likewise.
3984 * target.h (struct target_ops) <to_terminal_info>: Make argument
3987 2013-05-13 Tom Tromey <tromey@redhat.com>
3989 * gcore.c (create_gcore_bfd): Make 'filename' const.
3990 * gcore.h (create_gcore_bfd): Make 'filename' const.
3991 * record-full.c (record_full_save): Make 'recfilename' const.
3992 * target.c (target_save_record): Make 'filename' const.
3993 * target.h (struct target_ops) <to_save_record>: Make 'filename'
3995 (target_save_record): Likewise.
3997 2013-05-13 Tom Tromey <tromey@redhat.com>
4000 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
4001 ranges section has been read.
4003 2013-05-13 Tom Tromey <tromey@redhat.com>
4006 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4007 STRUCTOP_PTR>: Return a not_lval value for
4008 EVAL_AVOID_SIDE_EFFECTS.
4009 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
4010 for EVAL_AVOID_SIDE_EFFECTS.
4012 2013-05-13 Joel Brobecker <brobecker@adacore.com>
4014 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
4015 floating point registers to register type before storing
4017 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
4020 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4021 Tom Tromey <tromey@redhat.com>
4023 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4025 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4027 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
4028 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
4029 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
4030 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
4032 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
4033 Tom Tromey <tromey@redhat.com>
4036 * configure: Rebuild.
4037 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
4040 2013-05-10 Pedro Alves <palves@redhat.com>
4042 * remote.c (_initialize_remote): Fix spelling of
4043 qXfer:traceframe-info:read packet in packet config command.
4045 2013-05-10 David Taylor <dtaylor@emc.com>
4049 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
4050 "QTro" at start of packet.
4052 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4054 * solib-aix.c (solib_aix_relocate_section_addresses):
4055 For the .bss section action, apply the same offset as
4058 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4060 * solib-aix.c (solib_aix_relocate_section_addresses):
4061 Remove FIXME comment.
4063 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4066 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
4067 New functions, directly copied from sparc-sol-thread.c.
4068 * sparc-sol-thread.c: Delete.
4069 * configure.ac: Remove code handling sparc-solaris-thread.c.
4070 * configure: Regenerate.
4072 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
4074 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
4076 (backtrace_command): Add "no-filters" option parsing.
4077 (_initialize_stack): Alter help to reflect "no-filters" option.
4078 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
4079 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
4080 (py-frame.o): Add target
4081 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
4083 * python/python.h: Add new frame filter constants, and flag enum.
4084 (apply_frame_filter): Add definition.
4085 * python/python.c (apply_frame_filter): New non-Python
4087 * python/py-utils.c (py_xdecref): New function.
4088 (make_cleanup_py_xdecref): Ditto.
4089 * python/py-objfile.c: Declare frame_filters dictionary.
4090 (objfpy_dealloc): Add frame_filters dealloc.
4091 (objfpy_new): Initialize frame_filters attribute.
4092 (objfile_to_objfile_object): Ditto.
4093 (objfpy_get_frame_filters): New function.
4094 (objfpy_set_frame_filters): New function.
4095 * python/py-progspace.c: Declare frame_filters dictionary.
4096 (pspy_dealloc): Add frame_filters dealloc.
4097 (pspy_new): Initialize frame_filters attribute.
4098 (pspacee_to_pspace_object): Ditto.
4099 (pspy_get_frame_filters): New function.
4100 (pspy_set_frame_filters): New function.
4101 * python/py-framefilter.c: New file.
4102 * python/lib/gdb/command/frame_filters.py: New file.
4103 * python/lib/gdb/frames.py: New file.
4104 * python/lib/gdb/__init__.py: Initialize global frame_filters
4106 * python/lib/gdb/FrameDecorator.py: New file.
4107 * python/lib/gdb/FrameIterator.py: New file.
4108 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
4109 * mi/mi-cmds.h: Declare.
4110 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
4111 --no-frame-filter logic, and Python frame filter logic.
4112 (stack_enable_frame_filters): New function.
4113 (parse_no_frame_option): Ditto.
4114 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
4116 (mi_cmd_stack_list_locals): Ditto.
4117 (mi_cmd_stack_list_args): Ditto.
4118 (mi_cmd_stack_list_variables): Ditto.
4119 * NEWS: Add frame filter note.
4121 2013-05-09 Doug Evans <dje@google.com>
4123 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
4124 All callers updated.
4125 (syms_from_objfile): Ditto. Make static.
4126 (symbol_file_add_with_addrs): Renamed from
4127 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
4128 num_offsets. All callers updated.
4129 * symfile.h (syms_from_objfile): Delete.
4131 * symfile.c (decrement_reading_symtab): Add assert.
4132 (increment_reading_symtab): Ditto.
4134 2013-05-09 Joel Brobecker <brobecker@adacore.com>
4136 * source.c (forward_search_command): Replace call to getc
4138 (reverse_search_command): Likewise.
4140 2013-05-08 Doug Evans <dje@google.com>
4142 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
4145 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4147 * sol-thread.c (info_cb): Factorize the code a little.
4149 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4151 * sol-thread.c (info_cb): Rework the output of the "maintenance
4152 info sol-threads" command a bit.
4154 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4156 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
4157 Replace ti.ti_startfunc by ti.ti_pc.
4159 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4161 * solib-aix.c (solib_aix_free_library_list): New function
4162 for the case where HAVE_LIBEXPAT is not defined.
4164 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4166 PR breakpoints/15413:
4167 * breakpoint.c (condition_completer): Simplify the code to
4168 disconsider multiple locations of breakpoints when completing the
4169 "condition" command.
4171 2013-05-07 Pierre Muller <muller@sourceware.org>
4173 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
4174 instead of <sys/wait.h>.
4176 2013-05-07 Pierre Muller <muller@sourceware.org>
4178 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
4179 trailing new line from warning message.
4181 2013-05-07 Pierre Muller <muller@sourceware.org>
4183 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
4184 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
4186 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4188 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
4189 error message (ARI fix).
4191 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4193 * features/library-list-aix.dtd: Replace library-list by
4195 * rs6000-nat.c: Replace library-list by library-list-aix
4197 * solib-aix.c: Likewise.
4199 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4201 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
4202 Renames TARGET_OBJECT_AIX_LIBRARIES.
4203 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
4204 TARGET_OBJECT_LIBRARIES_AIX throughout.
4205 * solib-aix.c: Likwise.
4207 2013-05-07 Yao Qi <yao@codesourcery.com>
4209 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
4210 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
4212 2013-05-07 Yao Qi <yao@codesourcery.com>
4214 * solib-dsbt.c (enable_break): Declare.
4215 (dsbt_current_sos): Remove call to enable_break2.
4216 (enable_break2): Rename to enable_break. Set solib breakpoint
4217 on '_dl_debug_state'.
4218 (enable_break): Remove.
4220 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
4222 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
4223 debug state prior to replicating existing hardware watchpoints or
4226 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4228 * gcore.c (gcore_create_callback): Ignore sections with
4229 separate_debug_objfile_backlink != NULL.
4231 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
4232 Andrew Jenner <andrew@codesourcery.com>
4233 Chung-Lin Tang <cltang@codesourcery.com>
4234 Julian Brown <julian@codesourcery.com>
4236 Based on the nios2-elf port from Altera Corporation.
4238 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
4240 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
4241 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
4242 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
4243 * nios2-tdep.h: New.
4244 * nios2-tdep.c: New.
4245 * nios2-linux-tdep.c: New.
4246 * features/Makefile (WHICH): Add nios2-linux.
4247 (nios2-linux-expedite): Set.
4248 * features/nios2-cpu.xml: New.
4249 * features/nios2.xml: New.
4250 * features/nios2-linux.xml: New.
4251 * features/nios2.c: New (autogenerated).
4252 * features/nios2-linux.c: New (autogenerated).
4253 * regformats/nios2-linux.dat: New (autogenerated).
4254 * NEWS (Changes since GDB 7.6): Add new Nios II targets
4257 2013-05-06 Doug Evans <dje@google.com>
4259 * symfile.c: Whitespace cleanup.
4261 * solist.h (struct target_so_ops): New member clear_so.
4262 * solib-svr4.c (svr4_clear_so): New function.
4263 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
4264 * solib.c (clear_so): Renamed from free_so_symbols.
4265 All callers updated. Call target clear_so if it exists.
4267 2013-05-06 Tom Tromey <tromey@redhat.com>
4269 * ada-lang.c (ada_value_primitive_packed_val): Don't
4271 * value.c (set_value_parent): Incref the new parent and decref
4273 (value_copy, value_primitive_field): Use set_value_parent.
4275 2013-05-06 Tom Tromey <tromey@redhat.com>
4277 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
4278 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
4280 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
4281 * dwarf2read.c (write_constant_as_bytes)
4282 (dwarf2_fetch_constant_bytes): New functions.
4284 2013-05-06 Tom Tromey <tromey@redhat.com>
4286 * dwarf2read.c (dwarf2_const_value_data): Remove unused
4288 (dwarf2_const_value_attr): Update.
4290 2013-05-06 Tom Tromey <tromey@redhat.com>
4292 * somread.c (som_symfile_offsets): Add 'const' to addrs.
4293 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
4294 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
4297 2013-05-06 Tom Tromey <tromey@redhat.com>
4299 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
4302 2013-05-06 Doug Evans <dje@google.com>
4304 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
4305 * stabsread.h (process_one_symbol): Update declaration.
4306 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
4307 * elfread.c (elf_symfile_relocate_probe): Ditto.
4308 * psymtab.c (relocate_psymtabs): Ditto.
4309 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
4310 (objfile_relocate): Ditto.
4311 * objfiles.h (objfile_relocate): Update declaration.
4312 * symfile.c (relative_addr_info_to_section_offsets): Constify
4314 (default_symfile_offsets): Ditto.
4315 (syms_from_objfile_1): Constify offsets parameter.
4316 (syms_from_objfile): Ditto.
4317 (symbol_file_add_with_addrs_or_offsets): Ditto.
4318 (symfile_map_offsets_to_segments): Constify data parameter.
4319 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
4320 delta parameters of member relocate.
4321 (struct sym_probe_fns): Constify new_offsets,
4322 delta parameters of member sym_relocate_probe.
4323 (struct sym_fns): Constify section_addr_info parameter of member
4325 (relative_addr_info_to_section_offsets): Update declaration.
4326 (default_symfile_offsets): Ditto.
4327 (syms_from_objfile): Ditto.
4328 (symfile_map_offsets_to_segments): Ditto.
4330 * symfile.c (syms_from_objfile_1): Use correct section count when
4331 objfile->sf == NULL.
4333 2013-05-06 Mike Frysinger <vapier@gentoo.org>
4335 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
4337 2013-05-06 Doug Evans <dje@google.com>
4339 * psympriv.h (struct partial_symtab): Augment comment for member
4342 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4344 Reimplement shared library support on ppc-aix...
4345 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
4346 * features/library-list-aix.dtd: New file.
4347 * solib-aix.h, solib-aix.c: New file.
4348 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
4349 (rs6000_find_toc_address_hook): Delete.
4350 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
4351 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
4352 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
4354 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
4355 (vmap_symtab, fixup_breakpoints): Delete.
4356 (rs6000_xfer_shared_libraries): New function.
4357 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
4358 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
4359 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
4360 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
4361 (rs6000_xfer_shared_library): New function.
4362 (find_toc_address): Delete.
4363 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
4364 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
4365 * xcoffread.c (record_minimal_symbol): Reloate symbol address
4366 before creating minimal symbol. Adjust function description
4368 (scan_xcoff_symtab): Replace call to
4369 prim_record_minimal_symbol_and_info by call to
4370 record_minimal_symbol.
4371 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
4372 around default_symfile_offsets.
4373 * configure.tgt: Add solib-aix.o to gdb_target_obs for
4374 powerpc-aix targets.
4375 * config/rs6000/nm-rs6000.h: Delete.
4376 * config/powerpc/aix.mh (NAT_FILE): Delete.
4377 (NATDEPFILES): Remove xcoffsolib.o.
4378 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
4379 (ALL_TARGET_OBS): Add solib-aix.o.
4380 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
4381 config/rs6000/nm-rs6000.h. Add solib-aix.h.
4382 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
4383 * xcoffsolib.h, xcoffsolib.c: Delete.
4385 * solib.c (reload_shared_libraries): Remove reference to
4386 SOLIB_CREATE_INFERIOR_HOOK.
4387 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
4388 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
4389 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
4391 * corelow.c (deprecated_core_resize_section_table): Delete.
4392 * exec.c: Remove include of xcoffsolib.h".
4393 (map_vmap, vmap): Delete.
4394 (exec_close_1): Remove references to vmap.
4395 (exec_file_attach): Remove vmap handling code, and reference
4396 to DEPRECATED_IBM6000_TARGET.
4397 (bfdsec_to_vmap): Delete.
4398 (exec_files_info): Remove block of code handling VMAP.
4399 * infcmd.c (post_create_inferior): Remove reference to
4400 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
4401 * infrun.c (follow_exec): Remove reference to
4402 SOLIB_CREATE_INFERIOR_HOOK.
4403 * stack.c (print_frame): Remove reference to PC_SOLIB.
4404 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
4405 (dsbt_relocate_main_executable): Likewise.
4406 * solib-frv.c (frv_current_sos): Likewise.
4408 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4410 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
4411 to target_write_memory and target_read_memory.
4413 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4415 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
4416 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
4418 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4420 * darwin-nat.c: Replace all "%x" instances in format strings
4421 into "0x%x" throughout.
4423 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4425 * darwin-nat.c (darwin_mourn_inferior): Replace call to
4426 gdb_assert by call to MACH_CHECK_ERROR.
4427 (darwin_attach_pid): Raise an error rather than a failed
4428 assertion when various system calls failed. Report a warning
4429 instead of raising a failed assertion when PREV_NOT is not NULL
4430 after call to mach_port_request_notification.
4431 (darwin_ptrace_me): Raise an error rather than a failed
4432 assertion when read returns nonzero.
4434 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4436 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
4438 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4440 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
4442 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4444 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
4445 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
4446 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
4447 a stale cleanup. Fix double free of NAME.
4449 2013-05-04 Eli Zaretskii <eliz@gnu.org>
4451 * windows-nat.c (windows_delete_thread): Accept an additional
4452 argument, the thread's exit code, and announce thread death when
4453 print_thread_events is non-zero and we are deleting a thread that
4454 is not the main thread.
4455 (get_windows_debug_event): Pass thread exit code to
4456 windows_delete_thread.
4458 2013-05-03 Kevin Buettner <kevinb@redhat.com>
4460 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
4461 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
4462 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
4463 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
4464 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
4465 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
4466 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
4467 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
4468 (gdbarch_tdep): New struct.
4469 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
4471 (v850e3v5_register_name): New function.
4472 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
4473 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
4474 code handling the struct return conventions for the RH850 ABI.
4476 (v850_eight_byte_align_p): New function.
4477 (v850_push_call_dummy): Push structs by value, not by reference
4478 for the RH850 ABI. Add support for eight byte alignment.
4479 (v850_dbtrap_breakpoint_from_pc): New function.
4480 (v850_gdbarch_init): Add ABI detection code. Register
4481 v850e3v5_register_name for the v850e3v5 architecture. Set the
4482 number of registers for v850e3v5. Register
4483 v850_dbtrap_breakpoint_from_pc as appropriate.
4484 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
4486 2013-05-03 Doug Evans <dje@google.com>
4488 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
4489 of bfd_count_sections.
4490 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
4491 * symfile.c (default_symfile_offsets): Ditto.
4492 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
4493 one entry, not bfd_count_sections entries.
4495 2013-05-03 Kevin Buettner <kevinb@redhat.com>
4497 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
4498 `save' and `restore' register groups. Don't include SPL
4499 or SPH in these groups.
4500 (rl78_dwarf_reg_to_regnum): Adjust mapping for
4501 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
4502 RL78_ES_REGNUM, and RL78_CS_REGNUM.
4503 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
4504 dwarf2_append_unwinders().
4506 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4508 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
4509 ignore SIGINT and SIGTRAP in case these internal signals are
4512 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4514 * darwin-nat.c (darwin_read_write_inferior): Change types
4515 of parameters rdaddr and wraddr to "gdb_byte *". Change type
4516 of copy_count to "mach_msg_type_number_t".
4517 (darwin_read_dyld_info): Change type of parameter
4518 rdaddr to "gdb_byte *".
4520 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4522 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
4523 of &info->load_map from "char *" to "gdb_byte *".
4525 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4527 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
4528 from "char *" to "gdb_byte *".
4529 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
4531 2013-04-30 Doug Evans <dje@google.com>
4533 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
4534 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
4535 DWO stub. If DWO isn't found, just use stub.
4536 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
4538 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
4539 calling init_cutu_and_read_dies.
4541 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4543 * target-descriptions.c (maint_print_c_tdesc_cmd):
4544 Add case to parse structures as register types and
4547 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
4549 * MAINTAINERS (Write After Approval): Add myself to the list.
4551 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4553 * sol-thread.c (rw_common): Change type of parameter "buf"
4555 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
4556 rw_common to "gdb_byte *" instead of "char *".
4558 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4560 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
4561 of local variable msym to const struct bound_minimal_symbol.
4562 Adjust use accordingly.
4563 [ti.ti_state == TD_THR_SLEEP]: Likewise.
4565 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
4567 * i386gnu-nat.c (CREG_OFFSET): New macro.
4568 (creg_offset): New array.
4569 (CREG_ADDR): Use creg_offset instead of reg_offset.
4571 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4573 * mep-tdep.c (mep_write_pc): Delete.
4574 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
4575 Add call to set_gdbarch_pc_regnum.
4577 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4579 * common/filestuff.c: Replace #include <dirent.h> by
4580 #include "gdb_dirent.h".
4582 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4584 * common/filestuff.c: Replace #include <sys/stat.h> by
4585 #include "gdb_stat.h".
4587 2013-04-29 Pierre Muller <muller@sourceware.org>
4589 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
4590 editCase function rule.
4591 (get_DW_AT_signature_type): Likewise.
4593 2013-04-29 Joel Brobecker <brobecker@adacore.com>
4595 * m32r-tdep.c (m32r_write_pc): Delete.
4596 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
4597 Add call to set_gdbarch_pc_regnum.
4599 2013-04-29 Pierre Muller <muller@sourceware.org>
4601 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
4603 2013-04-29 Joel Brobecker <brobecker@adacore.com>
4605 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
4607 2013-04-28 Yao Qi <yao@codesourcery.com>
4609 * solib-dsbt.c (fetch_loadmap): Re-indent.
4610 (displacement_from_map, enable_break2): Likewise.
4611 (dsbt_relocate_section_addresses): Likewise.
4613 2013-04-26 Joel Brobecker <brobecker@adacore.com>
4617 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
4620 * dwarf2read.c (process_full_comp_unit): Always create a static
4623 2013-04-25 Hui Zhu <hui@codesourcery.com>
4625 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
4626 to loc->cmd_bytecode.
4628 2013-04-24 Doug Evans <dje@google.com>
4630 * dwarf2read.c (setup_type_unit_groups): Fix comment.
4632 2013-04-22 Keith Seitz <keiths@redhat.com>
4634 * tracepoint.c (trace_save): Call the writer's start method.
4636 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
4639 * cli/cli-decode.c (lookup_command): Show an error if there is no space
4642 2013-04-23 Tom Tromey <tromey@redhat.com>
4644 * common/filestuff.c: Check USE_WIN32API before including
4646 (HAVE_F_GETFD): New define.
4647 (mark_cloexec): Check HAVE_F_GETFD.
4648 (gdb_open_cloexec): Change 'mode' to unsigned long.
4649 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
4650 (gdb_pipe_cloexec): Check HAVE_PIPE.
4651 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
4654 2013-04-23 Hui Zhu <hui@codesourcery.com>
4657 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
4659 2013-04-23 Hui Zhu <hui@codesourcery.com>
4662 * breakpoint.c (dprintf_print_recreate): New.
4663 (save_breakpoints): Let it not save dprintf commands.
4664 (initialize_breakpoint_ops): Set dprintf_print_recreate.
4666 2013-04-22 Tom Tromey <tromey@redhat.com>
4669 * Makefile.in (SFILES): Add filestuff.c
4670 (COMMON_OBS): Add filestuff.o.
4671 (filestuff.o): New target.
4672 * auto-load.c (auto_load_objfile_script_1): Use
4674 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
4675 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
4676 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
4677 * common/agent.c (gdb_connect_sync_socket): Use
4679 * common/filestuff.c: New file.
4680 * common/filestuff.h: New file.
4681 * common/linux-osdata.c (linux_common_core_of_thread)
4682 (command_from_pid, commandline_from_pid, print_source_lines)
4683 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4684 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
4686 * common/linux-procfs.c (linux_proc_get_int)
4687 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
4688 * config.in, configure: Rebuild.
4689 * configure.ac: Don't check for sys/socket.h. Check for
4691 * corelow.c (core_open): Use gdb_open_cloexec.
4692 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
4693 * fork-child.c (fork_inferior): Call close_most_fds.
4694 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
4695 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
4696 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
4697 Use gdb_fopen_cloexec.
4698 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
4700 (linux_async_pipe): Use gdb_pipe_cloexec.
4701 * remote-fileio.c (remote_fileio_func_open): Use
4703 * remote.c (remote_file_put, remote_file_get): Use
4705 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
4707 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
4708 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
4709 * solib.c (solib_find): Use gdb_open_cloexec.
4710 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
4711 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
4712 (tfile_open): Use gdb_open_cloexec.
4713 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
4714 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
4715 * xml-support.c (xml_fetch_content_from_file): Use
4717 * main.c (captured_main): Call notice_open_fds.
4719 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
4721 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
4722 'char *' to 'gdb_byte *'.
4723 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
4726 2013-04-22 Yao Qi <yao@codesourcery.com>
4728 * infrun.c: Fix typo in comment.
4730 2013-04-22 Andrew Haley <aph@redhat.com>
4732 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
4735 2013-04-20 Yao Qi <yao@codesourcery.com>
4737 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
4738 'char *' to 'gdb_byte *'. Cast the return value of
4739 'bt_ctf_get_char_array' to 'gdb_byte *'.
4741 2013-04-19 Pedro Alves <palves@redhat.com>
4743 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
4745 * configure: Regenerate.
4747 2013-04-19 Pedro Alves <palves@redhat.com>
4749 * ser-tcp.c (net_read_prim): Cast second argument to recv to
4752 2013-04-19 Pedro Alves <palves@redhat.com>
4754 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
4755 Change type of 'myaddr' parameter to gdb_byte pointer.
4756 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
4757 to 'long long' pointer instead of to 'unsigned long long'.
4758 (monitor_write_memory_block, monitor_read_memory_single)
4759 (monitor_read_memory): Change type of 'myaddr' parameter to
4762 2013-04-19 Pedro Alves <palves@redhat.com>
4764 * record.c (validate_history_size): Make parameter 'setting'
4767 2013-04-19 Pedro Alves <palves@redhat.com>
4769 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
4772 2013-04-19 Pedro Alves <palves@redhat.com>
4774 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
4777 2013-04-19 Pedro Alves <palves@redhat.com>
4779 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
4780 * ada-tasks.c (read_fat_string_value): Likewise.
4782 2013-04-19 Pedro Alves <palves@redhat.com>
4784 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
4785 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
4786 'offset', and adjust.
4788 2013-04-19 Pedro Alves <palves@redhat.com>
4790 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
4791 (read_index_from_section): Add cast to 'char *'.
4793 2013-04-19 Pedro Alves <palves@redhat.com>
4795 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
4797 2013-04-19 Pedro Alves <palves@redhat.com>
4799 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
4801 2013-04-19 Pedro Alves <palves@redhat.com>
4803 * record-full.c (record_full_get_bookmark): Change local 'ret'
4804 type to char * and add cast to gdb_byte *.
4805 (record_full_goto_bookmark): Handle 'bookmark' argument as a
4807 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
4809 2013-04-19 Pedro Alves <palves@redhat.com>
4811 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
4812 * python/py-prettyprint.c (print_string_repr): Change type of
4813 'output' local to char *. Add cast to gdb_byte * in
4814 LA_PRINT_STRING call.
4815 (print_children): Change type of 'output' local to char *.
4816 * python/py-value.c (valpy_string): Add cast to const char * in
4817 PyUnicode_Decode call.
4819 2013-04-19 Pedro Alves <palves@redhat.com>
4821 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
4822 and change its type to 'const char *'. Adjust.
4823 (mips_send_packet): Add cast to 'char *', and remove cast to
4825 (mips_receive_packet): Remove cast to 'unsigned char *'.
4826 (mips_load_srec): Use bfd_byte.
4827 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
4828 (pmon_checkset): Make 'value' parameter unsigned.
4830 2013-04-19 Pedro Alves <palves@redhat.com>
4832 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
4834 2013-04-19 Pedro Alves <palves@redhat.com>
4836 * remote.c (remote_write_bytes_aux, compare_sections_command)
4838 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
4839 (remote_hostio_readlink, remote_bfd_iovec_pread)
4840 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
4841 binary buffer, and char when buffer is used as string.
4842 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
4843 (trace_save, tfile_open, traceframe_walk_blocks)
4844 (tfile_fetch_registers): Likewise.
4846 2013-04-19 Pedro Alves <palves@redhat.com>
4848 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
4849 buffer and size_t size. Adjust.
4850 * ser-base.h (ser_base_write): Adjust.
4851 * ser-go32.c (cnts): Change type to size_t.
4852 (dos_write): Change prototype -- take 'void *'
4853 buffer and size_t size. Adjust.
4854 (dos_info): Print elements of 'cnts' as unsigned long.
4855 * serial.c (serial_write): Likewise.
4856 * serial.h (serial_write): Adjust.
4857 (struct serial_ops) <write>: Change prototype -- take 'void *'
4858 buffer and size_t size. Adjust.
4860 2013-04-19 Pedro Alves <palves@redhat.com>
4862 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
4864 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
4866 2013-04-19 Pedro Alves <palves@redhat.com>
4868 * alpha-tdep.c (alpha_extract_return_value): Use
4869 regcache_cooked_read_unsigned to read 'v0'.
4871 2013-04-19 Pedro Alves <palves@redhat.com>
4873 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
4874 parameters 'at', 'as' and 'offset' to uint32_t.
4876 2013-04-19 Pedro Alves <palves@redhat.com>
4878 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
4879 'is64' to signed 'int'.
4881 2013-04-19 Pedro Alves <palves@redhat.com>
4883 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
4886 2013-04-19 Pedro Alves <palves@redhat.com>
4888 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
4889 'insnbuf' buffer type to unsigned int[].
4891 2013-04-19 Pedro Alves <palves@redhat.com>
4893 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
4895 2013-04-19 Pedro Alves <palves@redhat.com>
4897 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
4900 2013-04-19 Pedro Alves <palves@redhat.com>
4902 * alpha-tdep.c (heuristic_fence_post): Change type to int.
4903 (alpha_heuristic_proc_start): Adjust to check -1 instead of
4905 * mips-tdep.c (heuristic_fence_post): Change type to int.
4906 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
4908 2013-04-19 Pedro Alves <palves@redhat.com>
4910 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
4911 (struct gdbarch_tdep) <cris_version>: Make unsigned.
4912 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
4914 2013-04-19 Pedro Alves <palves@redhat.com>
4916 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
4917 it to get a string view of the byte buffer.
4918 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
4919 type to gdb_byte *. Adjust.
4920 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
4921 Change local to char *.
4922 * solib-darwin.c (find_program_interpreter): Change return type to
4924 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
4925 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
4926 * solib-frv.c (enable_break2): Change local 'buf' to char *.
4927 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
4928 * solib-svr4.c (find_program_interpreter): Change return type to
4930 (enable_break): Change local 'interp_name' to char *.
4931 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
4932 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
4933 (spu_pseudo_register_write_spu): Use char for string buffer.
4935 (info_spu_event_command, info_spu_signal_command): Add casts to
4938 2013-04-19 Pedro Alves <palves@redhat.com>
4940 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
4942 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
4943 * ada-lang.c (ada_value_assign): Use gdb_byte.
4944 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
4945 (alphanbsd_sigtramp_offset): Use gdb_byte.
4946 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
4947 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
4948 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
4949 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
4950 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
4951 * arm-tdep.c (arm_stub_unwind_sniffer)
4952 (arm_displaced_init_closure): Use gdb_byte.
4953 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
4954 (arm_default_thumb_le_breakpoint)
4955 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
4956 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
4957 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
4958 * arm-wince-tdep.c (arm_wince_le_breakpoint)
4959 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
4960 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
4961 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
4962 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
4963 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
4964 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
4965 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
4966 (cris_store_return_value, cris_extract_return_value): Use
4968 (constraint): Change type of parameter to char * from signed
4969 char*. Use gdb_byte.
4970 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
4971 of local buffer to gdb_byte *.
4972 * dwarf2read.c (read_index_from_section): Use gdb_byte.
4973 (create_dwp_hash_table): Change type of locals to gdb_byte *.
4974 (add_address_entry): Change type of local buffer to gdb_byte[].
4975 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
4976 (frv_push_dummy_call): Use gdb_byte.
4977 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
4978 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
4979 (hppa_hpux_supply_save_state): Use gdb_byte.
4980 * hppa-tdep.c (hppa32_push_dummy_call)
4981 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
4982 * ia64-tdep.c (extract_bit_field, replace_bit_field)
4983 (slotN_contents, replace_slotN_contents): Change type of parameter
4985 (fetch_instruction, ia64_pseudo_register_write)
4986 (ia64_register_to_value, ia64_value_to_register)
4987 (ia64_extract_return_value, ia64_store_return_value)
4988 (ia64_push_dummy_call): Use gdb_byte.
4989 * m32c-tdep.c (m32c_return_value): Remove cast.
4990 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
4991 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
4993 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
4994 * mn10300-tdep.c (mn10300_store_return_value)
4995 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
4997 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
4998 (moxie_process_record): Remove casts.
4999 * ppc-ravenscar-thread.c (supply_register_at_address)
5000 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
5001 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
5002 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
5003 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
5004 * remote.c (compare_sections_command): Use gdb_byte.
5005 * score-tdep.c (score7_free_memblock): Change type of parameter to
5007 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
5008 gdb_byte *. Use gdb_byte.
5009 (sh_push_dummy_call_fpu): Use gdb_byte.
5010 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
5011 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
5012 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
5013 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5014 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
5015 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
5016 (sh64_store_return_value, sh64_register_convert_to_virtual):
5017 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5018 (sh64_pseudo_register_write): Use gdb_byte.
5019 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
5020 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
5022 (irix_current_sos): Use gdb_byte.
5023 * solib-som.c (som_current_sos): Use gdb_byte.
5024 * sparc-ravenscar-thread.c (supply_register_at_address)
5025 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
5026 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5027 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
5028 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
5030 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
5032 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
5033 * xstormy16-tdep.c (xstormy16_extract_return_value)
5034 (xstormy16_store_return_value): Change parameter type to
5035 'gdb_byte *'. Adjust.
5036 (xstormy16_push_dummy_call): Use gdb_byte.
5037 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
5038 (call0_analyze_prologue, execute_code): Use gdb_byte.
5040 2013-04-19 Vladimir Kargov <kargov@gmail.com>
5041 Pedro Alves <palves@redhat.com>
5043 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
5046 2013-04-17 Doug Evans <dje@google.com>
5048 * dwarf2read.c (struct signatured_type): New member type.
5049 (struct attribute): Replace member signatured_type with signature.
5050 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
5051 (read_call_site_scope): Call follow_die_ref instead of
5052 follow_die_ref_or_sig.
5053 (read_structure_type): Rewrite handling of signatured types.
5054 (read_enumeration_type): Ditto.
5055 (read_attribute_value): Update.
5056 (build_error_marker_type): New function.
5057 (lookup_die_type): Add assert. Rewrite handling of signatured types.
5058 Don't call error for bad types, just build an error marker type.
5059 (dump_die_shallow): Update.
5060 (follow_die_sig_1): Renamed from follow_die_sig.
5061 Don't call error for bad types, instead return NULL.
5062 (follow_die_sig): New function.
5063 (get_signatured_type, get_DW_AT_signature_type): New functions.
5065 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
5067 * aarch64-tdep.c (aarch64_write_pc): Removed.
5068 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
5071 2013-04-17 Yao Qi <yao@codesourcery.com>
5073 * top.c (print_gdb_configuration): Print configure-time
5074 parameter on using libbabeltrace or not.
5076 2013-04-16 Pedro Alves <palves@redhat.com>
5078 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
5080 2013-04-16 Pedro Alves <palves@redhat.com>
5082 * common/glibc_thread_db.h: Update from upstream glibc
5083 (git 568035b7874a099087b77f7bba3e36a1173787b0).
5085 2013-04-16 Pedro Alves <palves@redhat.com>
5087 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
5088 * common/glibc_thread_db.h: ... this new file ...
5089 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
5091 2013-04-16 Will Newton <will.newton@gmail.com>
5092 Pedro Alves <palves@redhat.com>
5096 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
5097 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
5100 2013-04-16 Pedro Alves <palves@redhat.com>
5101 Eli Zaretskii <eliz@gnu.org>
5103 * NEWS: Mention "set foo unlimited".
5105 2013-04-15 Doug Evans <dje@google.com>
5107 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
5108 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
5109 (create_dwo_cu_reader): Renamed from
5110 create_dwo_debug_info_hash_table_reader.
5111 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
5112 Remove support for multiple CUs in a DWO file.
5113 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
5115 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
5117 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
5118 (create_dwo_in_dwp): Ditto.
5120 2013-04-15 Tom Tromey <tromey@redhat.com>
5122 * NEWS: Move recent entries into "since 7.6" section.
5124 2013-04-15 Tom Tromey <tromey@redhat.com>
5128 * break-catch-throw.c (struct exception_catchpoint)
5129 <exception_rx, pattern>: New fields.
5130 (fetch_probe_arguments, dtor_exception_catchpoint)
5131 (check_status_exception_catchpoint)
5132 (print_one_detail_exception_catchpoint): New functions.
5133 (handle_gnu_v3_exceptions): Add "except_rx" argument.
5134 Compile regular expression if needed.
5135 (extract_exception_regexp): New function.
5136 (catch_exception_command_1): Use extract_exception_regexp.
5137 (compute_exception): Use fetch_probe_arguments.
5138 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
5139 and check_status fields.
5140 * cp-abi.c (cplus_typename_from_type_info): New function.
5141 * cp-abi.h (cplus_typename_from_type_info): Declare.
5142 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
5143 * gdb_regex.h (compile_rx_or_error): Declare.
5144 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
5146 (init_gnuv3_ops): Set get_type_from_type_info field.
5147 * probe.c (compile_rx_or_error): Move...
5148 * utils.c (compile_rx_or_error): ... here.
5150 2013-04-15 Tom Tromey <tromey@redhat.com>
5154 * break-catch-throw.c (compute_exception): New function.
5155 (exception_funcs): New global.
5156 (_initialize_break_catch_throw): Create $_exception.
5157 * cp-abi.c (cplus_type_from_type_info): New function.
5158 * cp-abi.h (cplus_type_from_type_info): Declare.
5159 (struct cp_abi_ops) <get_type_from_type_info>: New field.
5160 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
5161 (gnuv3_get_type_from_type_info): New functions.
5162 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
5164 2013-04-15 Tom Tromey <tromey@redhat.com>
5166 * break-catch-throw.c (struct exception_names): New.
5167 (exception_functions): Change type.
5168 (re_set_exception_catchpoint): Look for SDT probes.
5170 2013-04-15 Tom Tromey <tromey@redhat.com>
5173 * break-catch-throw.c (exception_functions): New global.
5174 (gnu_v3_exception_catchpoint_ops): Move earlier.
5175 (struct exception_catchpoint): New.
5176 (classify_exception_breakpoint): Rewrite.
5177 (re_set_exception_catchpoint): New function.
5178 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
5179 Allocate a struct exception_catchpoint.
5180 (catch_exception_command_1): Update.
5181 (initialize_throw_catchpoint_ops): Set 're_set' method.
5183 2013-04-15 Tom Tromey <tromey@redhat.com>
5185 * Makefile.in (SFILES): Add break-catch-throw.c
5186 (COMMON_OBS): Add break-catch-throw.o.
5187 * break-catch-throw.c: New file.
5188 * breakpoint.c: Move exception-catching code to new file.
5189 (ep_parse_optional_if_clause): No longer static.
5190 * breakpoint.h (ep_parse_optional_if_clause): Declare.
5192 2013-04-15 Tom Tromey <tromey@redhat.com>
5196 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
5197 * c-exp.y (TYPEID): New token.
5198 (exp): Add new TYPEID productions.
5199 (ident_tokens): Add "typeid".
5200 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
5201 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
5202 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
5203 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
5204 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
5206 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
5207 (build_std_type_info_type, gnuv3_get_typeid_type)
5208 (gnuv3_get_typeid): New functions.
5209 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
5210 new fields on ABI object.
5211 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
5212 * std-operator.def (OP_TYPEID): New.
5214 2013-04-15 Tom Tromey <tromey@redhat.com>
5216 * elfread.c (elf_symtab_read): Install versioned symbol under
5217 unversioned name as well.
5219 2013-04-15 Tom Tromey <tromey@redhat.com>
5222 * c-lang.c (cplus_language_defn): Use gdb_demangle.
5223 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
5224 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
5225 (gdb_demangle): New function.
5226 * cp-support.h (gdb_demangle): Declare.
5227 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
5228 (dwarf2_name): Use gdb_demangle.
5229 * gdbtypes.c (check_stub_method): Use gdb_demangle.
5230 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
5232 (gnuv3_print_method_ptr): Use gdb_demangle.
5233 * jv-lang.c (java_demangle): Use gdb_demangle.
5234 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
5235 * language.c (unk_lang_demangle): Use gdb_demangle.
5236 * symtab.c (symbol_find_demangled_name)
5237 (demangle_for_lookup): Use gdb_demangle.
5239 2013-04-15 Tom Tromey <tromey@redhat.com>
5243 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
5245 (classify_exception_breakpoint): New function.
5246 (print_it_exception_catchpoint, print_one_exception_catchpoint)
5247 (print_mention_exception_catchpoint)
5248 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
5249 (catch_exception_command_1): Handle "rethrow" catchpoint.
5250 (catch_rethrow_command): New function.
5251 (_initialize_breakpoint): Add "catch rethrow" command.
5253 2013-04-15 Pierre Muller <muller@sourceware.org>
5255 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
5256 set_gdbarch_write_pc as deprecated anymore.
5258 2013-04-15 Joel Brobecker <brobecker@adacore.com>
5260 * spu-tdep.c (spu_write_pc): Add empty line after local variable
5263 2013-04-13 Yao Qi <yao@codesourcery.com>
5265 * ctf.c (_initialize_ctf): Include "completer.h".
5266 Call add_target_with_completer instead of add_target.
5268 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5270 Fix GDB regression related to PR binutils/14813.
5271 * jit.c (mem_bfd_iovec_close): Return 0 for success.
5272 * minidebug.c (lzma_close): Add return value comment.
5273 * remote.c (remote_bfd_iovec_close): Return 0 for success.
5274 * solib-spu.c (spu_bfd_iovec_close): Likewise.
5275 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
5277 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5279 * config.in: Regenerate.
5281 2013-04-12 Tom Tromey <tromey@redhat.com>
5283 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
5285 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
5286 (struct die_reader_specs) <buffer>: Likewise.
5287 (die_reader_func_ftype): Make 'info_ptr' const.
5288 (struct line_header) <include_dirs, statement_program_start,
5289 statement_program_end>: Now const.
5290 (struct file_entry) <name>: Likewise.
5291 (struct partial_die_info) <sibling>: Likewise.
5292 (struct dwarf_block) <data>: Likewise.
5293 (dwarf2_read_section): Remove cast.
5294 (dwarf2_get_section_info): Make 'bufp' const.
5295 (read_index_from_section): Constify.
5296 (dw2_get_file_names_reader): Make 'info_ptr' const.
5297 (dw2_get_primary_filename_reader): Likewise.
5298 (read_comp_unit_head): Make 'info_ptr' and return type const.
5299 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
5301 (read_abbrev_offset): Constify.
5302 (dwarf2_create_include_psymtab): Make 'name' const.
5303 (create_debug_types_hash_table): Update.
5304 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
5305 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
5307 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
5308 (load_partial_comp_unit_reader): Make 'info_ptr' const.
5309 (read_comp_units_from_section): Constify.
5310 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
5311 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
5313 (dwarf2_compute_name, setup_type_unit_groups): Constify.
5314 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
5315 (create_dwp_hash_table, dwarf2_ranges_read)
5316 (dwarf2_record_block_ranges): Constify.
5317 (read_die_and_children, read_die_and_siblings_1)
5318 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
5320 (read_full_die_1, read_full_die): Make 'info_ptr' const.
5321 (abbrev_table_read_table): Constify.
5322 (load_partial_dies): Make 'info_ptr' const.
5323 (read_partial_die, read_attribute_value, read_attribute): Make
5324 'info_ptr' and return type const.
5325 (read_address, read_initial_length)
5326 (read_checked_initial_length_and_offset, read_offset)
5327 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
5329 (read_direct_string): Make 'buf' and return type const.
5330 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
5331 (read_indirect_string): Make return type const.
5332 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
5333 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
5335 (read_str_index): Make return type const.
5336 (add_include_dir): Make 'include_dir' const.
5337 (add_file_name): Make 'name' const.
5338 (dwarf_decode_line_header): Constify.
5339 (psymtab_include_file_name): Make return type const.
5340 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
5341 (dwarf2_start_subfile): Make 'filename' const.
5342 (dwarf2_const_value_attr): Make 'bytes' const.
5343 (read_signatured_type_reader): Make 'info_ptr' const.
5344 (decode_locdesc): Constify.
5345 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
5347 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
5348 'mac_end', and return type const.
5349 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
5350 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
5352 (per_cu_header_read_in): Constify.
5353 * symfile.h (dwarf2_get_section_info): Update.
5355 2013-04-12 Tom Tromey <tromey@redhat.com>
5357 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
5359 2013-04-12 Eli Zaretskii <eliz@gnu.org>
5361 * NEWS: Mention "show configuration", --configuration.
5362 * top.c (print_gdb_configuration): New function, displays the
5363 details about GDB configure-time parameters.
5364 (print_gdb_version): Mention "show configuration".
5365 * cli/cli-cmds.c (show_configuration): New function.
5366 (_initialize_cli_cmds): Add the "show configuration" command.
5367 * main.c (captured_main) <print_configuration>: New static var.
5368 <long_options>: Use it.
5369 If --configuration was given, call print_gdb_configuration.
5371 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5372 Pedro Alves <palves@redhat.com>
5374 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
5375 (generated_files): Add gcore.
5376 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
5377 HAVE_NATIVE_GCORE_HOST.
5379 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
5380 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
5381 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
5382 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
5383 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
5384 Add HAVE_NATIVE_GCORE_HOST.
5385 * configure: Regenerate.
5386 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
5387 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
5388 AC_CONFIG_FILES for gcore.
5389 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
5391 * gdb_gcore.sh: Rename to ...
5392 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
5393 and GCORE_TRANSFORM_NAME substitutions.
5395 Fix parsing tabs in ${gdb_target_obs}.
5396 * configure.tgt (gdb_have_gcore): Replace case with for and if.
5398 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5400 * remote.c (unpush_and_perror): Add output message final dot.
5402 2013-04-11 Yao Qi <yao@codesourcery.com>
5404 * tracepoint.c (tfile_interp_line): Fit parameters line and
5407 2013-04-10 Joel Brobecker <brobecker@adacore.com>
5409 * solib.c (solib_map_sections): Remove code overwriting
5410 SO->SO_NAME with the bfd's filename.
5412 2013-04-10 Pedro Alves <palves@redhat.com>
5414 * cli/cli-decode.c (integer_unlimited_completer): New function.
5415 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
5416 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
5418 * cli/cli-setshow.c: Include "cli/cli-utils.h".
5419 (is_unlimited_literal): New function.
5420 (do_set_command): Handle literal "unlimited" arguments.
5421 * frame.c (_initialize_frame) <set backtrace limit>: Document
5423 * printcmd.c (_initialize_printcmd) <set print
5424 max-symbolic-offset>: Add help text.
5425 * record-full.c (_initialize_record_full) <set record full
5426 insn-number-max>: Likewise.
5427 * record.c (_initialize_record) <set record
5428 instruction-history-size, set record function-call-history-size>:
5430 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
5432 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
5434 * source.c (_initialize_source) <set listsize>: Add help text.
5435 * utils.c (initialize_utils) <set height, set width>: Likewise.
5436 <set pagination>: Mention "set height unlimited".
5437 * valprint.c (_initialize_valprint) <set print elements, set print
5438 repeats>: Document "unlimited".
5440 2013-04-10 Pedro Alves <palves@redhat.com>
5442 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
5443 instead of disconnect_tracing.
5444 * infcmd.c (detach_command, disconnect_command): Call
5445 query_if_trace_running. Adjust.
5446 * top.c: Include "tracepoint.h".
5447 (quit_target): Delete. Contents moved ...
5448 (quit_force): ... here. Wrap each stage of teardown in
5449 TRY_CATCH. Call disconnect_tracing before detaching.
5451 2013-04-10 Hui Zhu <hui@codesourcery.com>
5452 Yao Qi <yao@codesourcery.com>
5454 * configure.ac: Check libbabeltrace is installed.
5455 * config.in: Regenerate.
5456 * configure: Regenerate.
5457 * Makefile.in (LIBBABELTRACE): New.
5458 (CLIBS): Add LIBBABELTRACE.
5459 * ctf.c: Include "exec.h".
5460 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
5461 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
5462 (ctf_save_metadata_header): Define new type aliases in
5464 (ctf_write_header): Define event type "tsv_def" and "tp_def"
5465 in metadata. Start a new faked packet for trace status.
5466 (ctf_write_status): Write trace status to CTF.
5467 (ctf_write_uploaded_tsv): Write TSV to CTF.
5468 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
5469 (ctf_write_definition_end): End the faked packet.
5471 (ctx, ctf_iter, trace_dirname): New.
5472 (start_pos): New variable.
5473 (ctf_destroy, ctf_open_dir, ctf_open): New.
5474 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
5476 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
5477 (ctf_fetch_registers, ctf_xfer_partial): New.
5478 (ctf_get_trace_state_variable_value): New.
5479 (ctf_get_tpnum_from_frame_event): New.
5480 (ctf_get_traceframe_address): New.
5481 (ctf_trace_find, ctf_has_stack): New.
5482 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
5483 (ctf_get_trace_status, ctf_read_status): New.
5484 (_initialize_ctf): New.
5485 * tracepoint.c (get_tracepoint_number): New
5486 (get_uploaded_tsv): Remove 'static'.
5487 (struct traceframe_info, trace_regblock_size): Move it to ...
5488 * tracepoint.h: ... here.
5489 (get_tracepoint_number): Declare it.
5490 (get_uploaded_tsv): Declare it.
5492 * NEWS: Mention new configure option.
5494 2013-04-10 Pedro Alves <palves@redhat.com>
5495 Hui Zhu <hui@codesourcery.com>
5497 * breakpoint.c (dprintf_re_set): New.
5498 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
5501 2013-04-09 Joel Brobecker <brobecker@adacore.com>
5503 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
5504 Remove solib-svr4.o from the list.
5506 2013-04-09 Joel Brobecker <brobecker@adacore.com>
5508 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
5509 Use gdb_assert_not_reached instead of invalid boolean expression.
5511 2013-04-09 Pedro Alves <palves@redhat.com>
5513 * remote.c (unpush_and_perror): New function.
5514 (readchar, remote_serial_write): Use it.
5516 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
5518 * NEWS: Mention new btrace RSP packets.
5520 2013-04-08 Tom Tromey <tromey@redhat.com>
5522 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
5525 2013-04-08 Tom Tromey <tromey@redhat.com>
5527 * maint.c (print_bfd_section_info): Print the section index.
5528 * symmisc.c (dump_msymbols): Print the section index.
5530 2013-04-08 Tom Tromey <tromey@redhat.com>
5533 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
5534 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
5535 * breakpoint.c (resolve_sal_pc): Update.
5536 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5537 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
5538 (minsym_lookup_iterator_cb): Use it.
5539 (default_read_var_value): Update.
5540 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
5542 * infcmd.c (jump_command): Update.
5543 * linespec.c (minsym_found): Update.
5544 * maint.c (maintenance_translate_address): Update.
5545 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
5546 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
5547 * parse.c (write_exp_msymbol): Update.
5548 * printcmd.c (address_info): Update.
5549 * psymtab.c (find_pc_sect_psymbol): Update.
5550 (fixup_psymbol_section): Check SYMBOL_SECTION, not
5552 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
5553 Don't initialize SYMBOL_OBJ_SECTION.
5554 * spu-tdep.c (spu_catch_start): Update.
5555 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
5556 * symmisc.c (dump_msymbols, print_symbol): Update.
5557 * symtab.c (fixup_section): Don't set 'obj_section'. Change
5558 how fallback section is computed.
5559 (fixup_symbol_section): Update.
5560 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
5562 (allocate_symbol, initialize_symbol, allocate_template_symbol):
5563 Initialize SYMBOL_SECTION.
5564 * symtab.h (struct general_symbol_info) <section>: Update comment.
5565 <obj_section>: Remove.
5566 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
5567 (SYMBOL_OBJFILE): New macro.
5569 2013-04-08 Tom Tromey <tromey@redhat.com>
5571 * coffread.c (record_minimal_symbol): Update.
5572 * dbxread.c (record_minimal_symbol): Update.
5573 * elfread.c (record_minimal_symbol): Update.
5574 * machoread.c (macho_symtab_add_minsym): Update.
5575 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
5577 * minsyms.c (prim_record_minimal_symbol): Update.
5578 (prim_record_minimal_symbol_full): Remove 'bfd_section'
5580 (prim_record_minimal_symbol_and_info): Likewise.
5581 * minsyms.h (prim_record_minimal_symbol_full)
5582 (prim_record_minimal_symbol_and_info): Update.
5583 * symtab.c (allocate_symbol, initialize_symbol)
5584 (allocate_template_symbol): Initialize SYMBOL_SECTION.
5585 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
5588 2013-04-08 Tom Tromey <tromey@redhat.com>
5591 * solib-som.c (som_solib_section_offsets): Use BFD section
5592 indices. Set offsets for all sections.
5593 * somread.c (som_symtab_read): Compute BFD section for
5594 symbol. Use prim_record_minimal_symbol_and_info.
5595 (som_symfile_read): Fix comment.
5596 (struct find_section_offset_arg): New.
5597 (find_section_offset, set_section_index): New functions.
5598 (som_symfile_offsets): Use set_section_index to compute
5601 2013-04-08 Tom Tromey <tromey@redhat.com>
5603 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
5604 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
5605 gdb_bfd_section_index.
5606 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
5608 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
5610 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
5612 * objfiles.c (add_to_objfile_sections_full): New function.
5613 (add_to_objfile_sections): Use it.
5614 (build_section_table): Rewrite.
5615 (objfile_relocate1): Use gdb_bfd_section_index. Update.
5616 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
5617 (struct objfile) <sections>: Update comment.
5618 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
5620 (ALL_OBJSECTIONS): Use it.
5621 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5622 * solib-frv.c (frv_relocate_main_executable): Update.
5623 * solib-target.c (solib_target_relocate_section_addresses):
5624 Use gdb_bfd_section_index.
5625 * symfile.c (build_section_addr_info_from_section_table):
5626 Use gdb_bfd_section_index.
5627 (build_section_addr_info_from_bfd, place_section): Likewise.
5628 * symtab.c (fixup_section): Update.
5629 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
5631 2013-04-08 Tom Tromey <tromey@redhat.com>
5633 * minsyms.h (struct bound_minimal_symbol): New.
5634 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5635 Remove objfile argument.
5636 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5637 Return bound_minimal_symbol.
5638 * minsyms.c (lookup_minimal_symbol_by_pc_1)
5639 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5640 Return bound_minimal_symbol.
5641 (in_gnu_ifunc_stub): Update.
5642 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5643 Remove 'objfile_p' argument.
5644 (lookup_solib_trampoline_symbol_by_pc): Update.
5645 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
5646 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
5647 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
5648 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
5649 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
5650 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
5651 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
5652 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
5653 stack.c, symtab.c, tui/tui-disasm.c: Update.
5655 2013-04-08 Tom Tromey <tromey@redhat.com>
5657 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
5658 Use symbol's obstack, not an objfile.
5659 * coffread.c (process_coff_symbol): Update.
5660 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
5661 * jv-lang.c (add_class_symbol): Update.
5662 * mdebugread.c (new_symbol): Update.
5663 * minsyms.c (prim_record_minimal_symbol_full)
5664 (terminate_minimal_symbol_table): Update.
5665 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
5666 * stabsread.c (define_symbol, read_enum_type): Update.
5667 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
5668 Handle Ada specially.
5669 (symbol_set_language): Add 'obstack' argument.
5670 (symbol_set_names): Update.
5671 (symbol_natural_name, symbol_demangled_name): Always use
5673 * symtab.h (struct general_symbol_info)
5674 <language_specific::obstack>: New field.
5675 <ada_mangled>: New field.
5676 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
5677 (symbol_set_language): Update.
5679 2013-04-08 Tom Tromey <tromey@redhat.com>
5681 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
5682 Take an obstack, not an objfile.
5683 (symbol_set_names): Update.
5684 * symtab.h (symbol_set_demangled_name): Update.
5686 2013-04-08 Tom Tromey <tromey@redhat.com>
5688 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
5690 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
5691 (read_func_scope): Call allocate_template_symbol.
5692 (new_symbol_full): Call allocate_symbol.
5693 * jit.c (finalize_symtab): Call allocate_symbol.
5694 * jv-lang.c (add_class_symbol): Call allocate_symbol.
5695 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
5696 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5697 (common_block_end): Call allocate_symbol.
5698 * symtab.c (allocate_symbol, initialize_symbol)
5699 (allocate_template_symbol): New functions.
5700 * symtab.c (allocate_symbol, initialize_symbol)
5701 (allocate_template_symbol): Declare.
5702 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
5704 2013-04-08 Pedro Alves <palves@redhat.com>
5705 Keith Seitz <keiths@redhat.com>
5707 * breakpoint.c (create_breakpoint): Rename
5708 "parse_condition_and_thread" parameter to "parse_arg". Update
5709 describing comment. If !PARSE_ARG, then error out if ARG is not
5710 the empty string after extracting the location.
5711 * breakpoint.h (create_breakpoint): Rename
5712 "parse_condition_and_thread" parameter to "parse_arg".
5714 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
5716 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
5718 2013-04-07 Yao Qi <yao@codesourcery.com>
5720 * remote.c (remote_trace_find): Change type of parameters 'addr1'
5721 and 'addr2' to CORE_ADDR.
5722 * target.c (update_current_target): Update.
5723 * target.h (struct target_ops) <to_trace_find>: Change parameter
5725 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
5726 'addr2' to CORE_ADDR.
5727 (tfile_trace_find): Likewise.
5728 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
5729 Change local variable 'addr' to type CORE_ADDR.
5730 * tracepoint.h (tfind_1): Update declaration.
5732 2013-04-06 Eli Zaretskii <eliz@gnu.org>
5734 * windows-nat.c (windows_get_absolute_argv0): Move from here...
5735 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
5738 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
5740 * main.h (windows_get_absolute_argv0): ...to here.
5742 2013-04-05 Doug Evans <dje@google.com>
5744 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
5745 (read_cutu_die_from_dwo): Add comments.
5746 (read_structure_type): Update comment.
5747 (read_enumeration_type, read_namespace_type): Update comment.
5748 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
5750 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5752 Convert man pages to texinfo, new gdbinit.5 texinfo page.
5753 * Makefile.in (gdb.z): Remove.
5754 (install-only): Remove $(man1dir) and gdb.1 installation.
5757 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5759 Fix compatibility with Linux kernel 3.8.3.
5760 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
5761 to more inner block. Remove parsing of NUMBER from outer block.
5762 Parse NUMBER only if KEYWORD has been identified.
5764 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5766 Fix variable name shadowing.
5767 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
5768 filename to mapsfilename and update its uses.
5770 2013-04-05 Eli Zaretskii <eliz@gnu.org>
5772 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
5773 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
5774 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
5775 details of the problem.
5777 2013-04-04 Pedro Alves <palves@redhat.com>
5778 Hui Zhu <hui@codesourcery.com>
5780 * breakpoint.c (validate_commands_for_breakpoint): If validating a
5781 tracepoint, reset its STEP_COUNT and call validate_actionline.
5783 2013-04-03 Doug Evans <dje@google.com>
5785 * dwarf2read.c (read_die_and_siblings_1): Renamed from
5786 read_die_and_siblings.
5787 (read_die_and_siblings): New function.
5788 (read_cutu_die_from_dwo): Dump die if requested.
5789 (read_die_and_children): Call read_full_die_1 and
5790 read_die_and_siblings_1.
5791 (read_full_die): Dump die if requested.
5793 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
5795 * dwarf2read.c (struct dwo_file): New member comp_dir.
5796 Rename member name to dwo_name. All uses updated.
5797 (hash_dwo_file): Include comp_dir in computation.
5798 (eq_dwo_file): Ditto.
5799 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
5800 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
5802 * psymtab.c (read_psymtabs_with_fullname): Don't call
5803 psymtab_to_fullname if the basenames are different.
5805 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5807 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
5808 New entry about "fullname" presence.
5810 2013-04-03 Pedro Alves <palves@redhat.com>
5812 * NEWS: Mention x86_64/Cygwin as new native configuration.
5814 2013-04-02 Doug Evans <dje@google.com>
5816 * dwarf2read.c (read_structure_type): Fix typo in comment.
5818 2013-04-02 Pedro Alves <palves@redhat.com>
5820 * NEWS: Mention "set/show debug aarch64", "set/show debug
5821 coff-pe-read" and "set/show debug mach-o".
5823 2013-04-02 Pedro Alves <palves@redhat.com>
5825 * NEWS: Mention "set/show remote trace-buffer-size-packet".
5827 2013-04-02 Eli Zaretskii <eliz@gnu.org>
5829 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
5830 gdb_string.h is now in common/.
5832 2013-04-02 Pedro Alves <palves@redhat.com>
5834 * NEWS: Move "set debug notification" and "set trace-buffer-size"
5835 under "New options".
5837 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5841 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
5843 2013-04-02 Pedro Alves <palves@redhat.com>
5847 * remote.c (send_interrupt_sequence): Use remote_serial_write.
5848 (remote_serial_write): New function.
5849 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
5851 2013-04-01 Jiong Wang <jiwang@tilera.com>
5853 * NEWS: Mention TILE-Gx in "New native configurations" and
5854 "New targets" sections.
5856 2013-04-01 Doug Evans <dje@google.com>
5858 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
5859 (process_enumeration_scope): Simplify.
5861 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
5863 (struct signatured_type): ... to here.
5864 (sig_type_ptr): New typedef.
5865 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
5866 out of union 't'. All uses updated.
5867 (dw2_get_file_names_reader): Assert not called for a type unit.
5868 (dw2_get_file_names): Assert not called for a type unit or type
5870 (build_type_psymtabs_reader): Assert called for a type unit.
5871 (build_type_psymtab_dependencies): Assert called for a type unit group.
5873 * dwarf2read.c (free_dwo_file): Add comment.
5874 (dwarf2_per_objfile_free): Unref dwp bfd.
5876 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5878 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
5879 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
5880 (read_pe_exported_syms): Remove unused 'exportix'.
5881 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
5882 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
5883 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
5885 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
5887 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
5888 (print_it_watchpoint): Remove unused 'bl'.
5889 (say_where): Remove unused 'uiout'.
5890 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
5891 (bkpt_breakpoint_hit): Remove unused 'b'.
5892 (internal_bkpt_print_it): Remove unused 'uiout'.
5893 * buildsym.c (augment_type_symtab): Remove unused 'i'.
5895 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
5897 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
5898 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
5900 2013-03-29 Doug Evans <dje@google.com>
5902 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
5903 Delete arg is_dwp. All callers updated.
5904 (open_dwp_file): New function.
5905 (open_and_init_dwp_file): Call it.
5906 (get_dwp_file): New function.
5907 (lookup_dwo_cutu): Call it.
5909 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
5910 unnecessary, cleanup.
5912 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
5914 * dwarf2read.c (read_cutu_die_from_dwo): New function.
5915 (lookup_dwo_unit): New function.
5916 (init_cutu_and_read_dies): Move DWO handling to new functions.
5918 * dwarf2read.c (struct signatured_type): Tweak comment.
5919 (struct dwo_unit): Tweak comment.
5920 (create_debug_types_hash_table): Tweak comment. Reformat long line.
5921 (create_dwo_debug_info_hash_table): Tweak comment.
5922 (dwarf2_per_cu_offset_and_type): Tweak comment.
5924 * dwarf2read.c (lookup_signatured_type): Remove complaint about
5925 missing .debug_types section.
5927 2013-03-29 Yao Qi <yao@codesourcery.com>
5929 * corelow.c: Include "completer.h".
5930 (_initialize_corelow): Call add_target_with_completer with
5931 argument 'filename_completer'.
5932 * tracepoint.c: Likewise.
5933 * exec.c (_initialize_exec): Likewise.
5934 * target.c (add_target): Rename to ...
5935 (add_target_with_completer): ... this. Call set_cmd_completer
5936 if parameter completer is not NULL.
5938 * target.h: Include "command.h".
5939 (add_target_with_completer): Declare it.
5941 2013-03-28 Joel Brobecker <brobecker@adacore.com>
5943 * coffread.c (is_import_fixup_symbol): New function.
5944 (record_minimal_symbol): Use is_import_fixup_symbol to
5945 detect import fixup symbols, and discard them.
5947 2013-03-28 Doug Evans <dje@google.com>
5949 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
5950 types hash table until we know we need it.
5952 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
5955 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
5956 All callers updated.
5957 (dw2_print_stats): Print #read CUs too.
5958 (dump_die_shallow): Print signatured types better.
5960 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
5961 info_or_types_section to section. All uses updated.
5962 (struct dwo_unit): Ditto.
5964 2013-03-28 Pedro Alves <palves@redhat.com>
5966 * NEWS (New options): New section.
5967 (New options): Mention set/show remote trace-status-packet.
5968 * remote.c (PACKET_qTStatus): New enumeration value.
5969 (remote_get_trace_status): Skip sending qTStatus if the packet is
5970 disabled. Use packet_ok.
5971 (_initialize_remote): Register a configuration command for
5974 2013-03-28 Doug Evans <dje@google.com>
5976 * symfile.c (find_separate_debug_file): Add comment.
5977 (terminate_after_last_dir_separator): Tweak comment.
5979 * dwarf2read.c (create_partial_symtab): Add forward decl.
5980 (create_partial_symtab): Move to be closer to other psymtab functions.
5981 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
5983 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
5984 (compute_symtab_includes): Remove unnecessary forward declaration.
5985 (die_needs_namespace): Add comment marking group of functions for
5986 dwarf2 name computation.
5988 * typeprint.c (_initialize_typeprint): Improve type help text.
5990 * python/python.c (finish_python_initialization): Provide suggestion
5991 for how to tell gdb to find its python files.
5993 2013-03-28 Pedro Alves <palves@redhat.com>
5997 * source.c (_initialize_source): Change back "set listsize" to an
6000 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
6003 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6005 2013-03-27 Pedro Alves <palves@redhat.com>
6007 * top.c (history_size): Rename to ...
6008 (history_size_setshow_var): ... this. Add comment.
6009 (show_commands): Use readline's 'history_length' instead of
6010 computing the history length by calling history_get in a loop.
6011 (set_history_size_command): Error out for sizes over INT_MAX.
6012 Restore previous history size on invalid size.
6013 (init_history): If HISTSIZE is negative, leave the history size as
6015 (init_main): Adjust.
6017 2013-03-27 Pedro Alves <palves@redhat.com>
6019 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
6020 coff_pe_read" command to "set debug coff-pe-read".
6022 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
6024 * record.c (command_size_to_target_size): Fix size comparison.
6025 Change parameter type from pointer to integer to integer.
6028 2013-03-27 Pierre Muller <muller@sourceware.org>
6030 * windows-nat.c (handle_output_debug_string): Avoid typecast
6031 from integer of different size warning.
6033 2013-03-26 Joel Brobecker <brobecker@adacore.com>
6035 * windows-nat.c (handle_output_debug_string): Add empty line
6036 after local block variable definition.
6038 2013-03-26 Pedro Alves <palves@redhat.com>
6040 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
6041 (net_open): Make 'polls' local unsigned.
6043 2013-03-26 Pedro Alves <palves@redhat.com>
6045 * remote.c (_initialize_remote): Make "set remoteaddresssize"
6046 a zuinteger command instead of uinteger.
6048 2013-03-26 Pedro Alves <palves@redhat.com>
6050 * record-full.c (record_full_insn_num): Make it unsigned.
6051 (record_full_check_insn_num, record_full_message)
6052 (record_full_registers_change, record_full_xfer_partial): Remove
6053 record_full_insn_max_num check (it's always != 0).
6054 (record_full_info, record_full_restore): Use %u as format string.
6055 (): Use %u as format string.
6056 (set_record_full_insn_max_num): Remove record_full_insn_max_num
6057 check (it's always != 0).
6059 2013-03-26 Pedro Alves <palves@redhat.com>
6061 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
6062 and "set dcache size" commands zuinteger instead of uinteger.
6064 2013-03-26 Pedro Alves <palves@redhat.com>
6066 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
6067 command zuinteger instead of uinteger.
6069 2013-03-26 Pedro Alves <palves@redhat.com>
6071 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
6072 zuinteger instead of uinteger.
6074 2013-03-26 Pedro Alves <palves@redhat.com>
6076 * record.c (record_insn_history_size_setshow_var)
6077 (record_call_history_size_setshow_var): New globals.
6078 (command_size_to_target_size): New function.
6079 (cmd_record_insn_history, cmd_record_call_history): Use
6080 command_size_to_target_size instead of cast.
6081 (validate_history_size, set_record_insn_history_size)
6082 (set_record_call_history_size): New functions.
6083 (_initialize_record): Install set_record_insn_history_size and
6084 set_record_call_history_size as "set" hooks of "set record
6085 instruction-history-size" and "set record
6086 function-call-history-size".
6088 2013-03-26 Pedro Alves <palves@redhat.com>
6090 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
6091 use with history_max_entries use. Remove FIXME note.
6093 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
6095 * record-btrace.c (record_btrace_close): Call
6096 record_btrace_auto_disable.
6098 2013-03-25 Joel Brobecker <brobecker@adacore.com>
6100 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
6102 2013-03-25 Doug Evans <dje@google.com>
6104 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
6106 2013-03-25 Tom Tromey <tromey@redhat.com>
6109 * c-exp.y (exp): Add new productions for destructors after '.' and
6111 (write_destructor_name): New function.
6113 2013-03-25 Tom Tromey <tromey@redhat.com>
6116 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
6117 value_struct_elt, not lookup_struct_elt_type.
6118 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6119 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
6120 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
6122 2013-03-25 Yao Qi <yao@codesourcery.com>
6124 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
6125 instead of '_mkdir'.
6127 2013-03-23 Eli Zaretskii <eliz@gnu.org>
6129 * windows-nat.c (windows_get_absolute_argv0): New function.
6130 * windows-nat.h: Add its prototype.
6132 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
6133 Use IS_DIR_SEPARATOR instead of looking for a character inside
6134 SLASH_STRING. Include filenames.h.
6135 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
6136 relocate_gdb_directory works when passed gdb_program_name.
6137 Include windows-nat.h.
6139 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6141 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
6142 * remote.c (trace_error): Remove the special handling of '2'.
6143 (readchar) <SERIAL_EOF>
6144 (readchar) <SERIAL_ERROR>
6145 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
6146 (remote_get_trace_status): Call throw_exception if EX is
6148 * utils.c (perror_with_name): Rename to ...
6149 (throw_perror_with_name): ... here. New parameter errcode, describe it
6150 in the function comment.
6151 (perror_with_name): New function wrapper.
6152 * utils.h (enum errors): New stub declaration.
6153 (throw_perror_with_name): New declaration.
6155 2013-03-22 Pedro Alves <palves@redhat.com>
6156 Yao Qi <yao@codesourcery.com>
6157 Mark Kettenis <kettenis@gnu.org>
6159 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
6160 Don't let the user set the value to UINT_MAX directly.
6161 <var_integer>: Don't let the user set the value to INT_MAX
6164 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6166 * remote.c (remote_unpush_target): New function.
6167 (remote_open_1): Remove two pop_target calls, update one comment, add
6168 comment to target_preopen call. Replace pop_target call by
6169 remote_unpush_target call.
6170 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
6171 pop_target calls by remote_unpush_target calls.
6173 2013-03-22 Pedro Alves <palves@redhat.com>
6175 * linux-nat.c (linux_child_follow_fork): Don't call
6176 linux_enable_event_reporting.
6177 (linux_handle_extended_wait): Don't call
6178 linux_enable_event_reporting.
6180 2013-03-22 Pedro Alves <palves@redhat.com>
6182 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
6183 use it to rewrite the trampoline buffers with type gdb_byte[], and
6184 undefine the macro. Remove char* cast.
6186 2013-03-21 Doug Evans <dje@google.com>
6188 New commands "mt set per-command {space,time,symtab} {on,off}".
6190 * event-top.c: #include "maint.h".
6191 * main.c: #include "maint.h".
6192 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
6193 timeval-utils.h, maint.h, cli/cli-setshow.h.
6194 (per_command_time, per_command_space): New static globals.
6195 (per_command_symtab): New static global.
6196 (per_command_setlist, per_command_showlist): New static globals.
6197 (struct cmd_stats): Move here from utils.c.
6198 (set_per_command_time): Renamed from set_display_time in utils.c
6199 and moved here. All callers updated.
6200 (set_per_command_space): Renamed from set_display_space in utils.c
6201 and moved here. All callers updated.
6202 (count_symtabs_and_blocks): New function.
6203 (report_command_stats): Moved here from utils.c. Add support for
6204 printing symtab stats. Only print data if enabled before command
6206 (make_command_stats_cleanup): Ditto.
6207 (sert_per_command_cmd, show_per_command_cmd): New functions.
6208 (_initialize_maint_cmds): Add new commands
6209 mt set per-command {space,time,symtab} {on,off}.
6210 * maint.h: New file.
6211 * top.c: #include "maint.h".
6212 * utils.c (reset_prompt_for_continue_wait_time): New function.
6213 (get_prompt_for_continue_wait_time): New function.
6214 * utils.h (reset_prompt_for_continue_wait_time): Declare
6215 (get_prompt_for_continue_wait_time): Declare.
6216 (make_command_stats_cleanup): Moved to maint.h.
6217 (set_display_time, set_display_space): Moved to maint.h and renamed
6218 to set_per_command_time, set_per_command_space.
6219 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
6220 parse_binary_operation and made non-static. Don't call error,
6221 just return an error marker. All callers updated.
6222 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
6224 2013-03-21 Tom Tromey <tromey@redhat.com>
6226 * symfile.c (alloc_section_addr_info): Update header. Don't set
6227 'num_sections' field.
6228 (build_section_addr_info_from_section_table): Set 'num_sections'.
6229 (build_section_addr_info_from_bfd): Likewise.
6230 (build_section_addr_info_from_objfile): Remove dead loop
6232 (free_section_addr_info): Unconditionally call xfree.
6233 (relative_addr_info_to_section_offsets, addrs_section_sort)
6234 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
6236 (syms_from_objfile_1): Remove dead 'if' condition. Check
6238 (add_symbol_file_command): Set 'num_sections'.
6239 * symfile-mem.c (symbol_file_add_from_memory): Set
6241 * somread.c (som_symfile_offsets): Remove dead loop condition.
6242 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
6243 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
6245 2013-03-21 Tom Tromey <tromey@redhat.com>
6247 * tracepoint.h (decode_agent_options): Add 'trace_string'
6249 * tracepoint.c (decode_agent_options): Add 'trace_string'
6251 (validate_actionline): Update.
6252 (collect_symbol): Add 'trace_string' argument.
6253 (struct add_local_symbols_data) <trace_string>: New field.
6254 (do_collect_symbol): Update.
6255 (add_local_symbols): Add 'trace_string' argument.
6256 (encode_actions_1): Update.
6257 (trace_dump_actions): Update.
6258 * dwarf2loc.c (access_memory): Update.
6259 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
6260 * ax-general.c (new_agent_expr): Update.
6261 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
6262 (gen_trace_for_return_address): Add argument.
6263 (trace_kludge, trace_string_kludge): Remove.
6264 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
6265 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
6266 (gen_trace_for_var): Add 'trace_string' argument.
6267 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
6268 (gen_printf, agent_eval_command_one): Update.
6270 2013-03-21 Tom Tromey <tromey@redhat.com>
6273 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
6274 Handle FILENAME token.
6276 2013-03-21 Tom Tromey <tromey@redhat.com>
6278 * c-exp.y (YYPRINT): Define.
6279 (c_print_token): New function.
6281 2013-03-21 Tom Tromey <tromey@redhat.com>
6283 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
6285 2013-03-21 Yao Qi <yao@codesourcery.com>
6287 * ctf.c: Include "gdb_stat.h".
6288 [USE_WIN32API]: New macro 'mkdir'.
6289 (ctf_start): Use permission bits macros if they are defined.
6291 2013-03-20 Keith Seitz <keiths@redhat.com>
6293 * breakpoint.h (struct breakpoint): Add comment to
6294 extra_string indicating that this member is mallod'd.
6295 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
6297 2013-03-20 Pedro Alves <palves@redhat.com>
6301 * cli/cli-setshow.c (do_set_command)
6302 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
6303 the result of parsing the command argument. Throw error if the
6304 value is greater than UINT_MAX. Print the invalid value with
6306 <var_integer, var_zinteger>: Use LONGEST for variable holding the
6307 result of parsing the command argument. Throw error if the value
6308 is greater than INT_MAX, not greater or equal. Also throw error
6309 if the value is less than INT_MIN. Print the invalid value with
6311 <var_zuinteger_unlimited>: Throw error if the value is greater
6312 than INT_MAX, not greater or equal.
6313 (do_show_command) <var_integer, var_zinteger,
6314 var_zuinteger_unlimited>: Use %d for printing int, not %u.
6316 2013-03-20 Tom Tromey <tromey@redhat.com>
6318 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
6320 * dwarf2read.c (read_func_scope): Remove old FIXME.
6321 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
6323 * findvar.c (symbol_read_needs_frame, default_read_var_value):
6324 Unconditionally call via computed ops, if possible.
6325 * printcmd.c (address_info): Unconditionally call via computed ops,
6327 * stack.c (read_frame_arg): Unconditionally call via computed ops,
6329 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
6330 * tracepoint.c (scope_info): Unconditionally call via computed ops,
6333 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6334 Tom Tromey <tromey@redhat.com>
6337 * coffread.c (coff_register_index): New global.
6338 (process_coff_symbol, coff_read_enum_type): Set
6339 SYMBOL_ACLASS_INDEX.
6340 (_initialize_coffread): Initialize new global.
6341 * dwarf2loc.c (locexpr_find_frame_base_location)
6342 (dwarf2_block_frame_base_locexpr_funcs)
6343 (loclist_find_frame_base_location)
6344 (dwarf2_block_frame_base_loclist_funcs): New.
6345 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
6346 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
6347 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
6348 (dwarf2_block_frame_base_loclist_funcs): New.
6349 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
6350 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
6352 (read_func_scope): Update.
6353 (fixup_go_packaging, mark_common_block_symbol_computed)
6354 (var_decode_location, new_symbol_full, dwarf2_const_value):
6355 Set SYMBOL_ACLASS_INDEX.
6356 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
6357 (_initialize_dwarf2_read): Initialize new globals.
6358 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
6359 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
6360 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
6362 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
6363 (_initialize_mdebugread): Initialize new globals.
6364 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
6365 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
6366 (stab_register_index, stab_regparm_index): New globals.
6367 (define_symbol, read_enum_type, common_block_end): Set
6368 SYMBOL_ACLASS_INDEX.
6369 (_initialize_stabsread): Initialize new globals.
6370 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
6372 (MAX_SYMBOL_IMPLS): New define.
6373 (register_symbol_computed_impl, register_symbol_block_impl)
6374 (register_symbol_register_impl)
6375 (initialize_ordinary_address_classes): New functions.
6376 (_initialize_symtab): Call initialize_ordinary_address_classes.
6377 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
6378 (struct symbol_impl): New.
6379 (SYMBOL_ACLASS_BITS): New define.
6380 (struct symbol) <aclass, ops>: Remove fields.
6381 <aclass_index>: New field.
6382 (symbol_impls): Declare.
6383 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
6384 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
6385 (register_symbol_computed_impl, register_symbol_block_impl)
6386 (register_symbol_register_impl): Declare.
6387 (struct symbol_computed_ops): Add location_has_loclist.
6388 (struct symbol_block_ops): New.
6389 (SYMBOL_BLOCK_OPS): New.
6390 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
6392 2013-03-20 Tom Tromey <tromey@redhat.com>
6394 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
6395 (print_partial_symbols, recursively_search_psymtabs): Use
6398 2013-03-20 Pierre Muller <muller@sourceware.org>
6400 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
6401 addtion, subtraction, multiplication and division binary operator.
6403 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6406 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
6407 * bsd-kvm.c (bsd_kvm_close): Likewise.
6408 * bsd-uthread.c (bsd_uthread_close): Likewise.
6409 * corelow.c (core_close): Likewise.
6410 (core_close_cleanup): Remove parameter quitting from a caller.
6411 * event-top.c (async_disconnect): Likewise.
6412 * exec.c (exec_close_1): Remove parameter quitting.
6413 * go32-nat.c (go32_close): Likewise.
6414 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
6415 parameter quitting from a caller.
6416 * mips-linux-nat.c (super_close): Remove parameter quitting from the
6418 (mips_linux_close): Remove parameter quitting. Remove parameter
6419 quitting from a caller.
6420 * monitor.c (monitor_close): Remove parameter quitting.
6421 * monitor.h (monitor_close): Likewise.
6422 * record-btrace.c (record_btrace_close): Likewise.
6423 * record-full.c (record_full_close): Likewise.
6424 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
6425 it also from fprintf_unfiltered.
6426 * remote-mips.c (mips_close): Remove parameter quitting.
6427 (mips_detach): Remove parameter quitting from a caller.
6428 * remote-sim.c (gdbsim_close): Remove parameter quitting.
6429 (gdbsim_close): Remove duplicate function comment. Remove parameter
6430 quitting and remove it also from printf_filtered.
6431 * remote.c (remote_close): Remove parameter quitting.
6432 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
6433 * target.c (update_current_target): Remove parameter int from to_close
6435 (push_target, unpush_target, pop_target): Remove parameter quitting from
6437 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
6438 Remove parameter quitting from a caller.
6439 (target_preopen): Remove parameter quitting from a caller.
6440 (target_close): Remove parameter quitting. Remove parameter quitting
6441 from a caller two times. Remove parameter quitting also from
6443 * target.h (struct target_ops): Remove parameter quitting and as int
6444 from fields to_xclose and to_close.
6445 (extern struct target_ops current_target):
6446 (target_close, pop_all_targets): Remove parameter quitting. Update the
6448 (pop_all_targets_above): Remove parameter quitting.
6449 * top.c (quit_target): Remove parameter quitting from a caller.
6450 * tracepoint.c (tfile_close): Remove parameter quitting.
6451 * windows-nat.c (windows_close): Remove parameter quitting.
6453 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
6455 * windows-nat.c (handle_output_debug_string): Replace call
6456 to string_to_core_addr with call to strtoull.
6458 2013-03-20 Yao Qi <yao@codesourcery.com>
6460 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
6461 and write it to CTF metadata.
6463 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
6465 * windows-nat.c (handle_output_debug_string): Change type of n to
6466 SIZE_T to avoid crash on 64 bit systems.
6468 2013-03-17 Eli Zaretskii <eliz@gnu.org>
6470 * python/python-internal.h (HAVE_SNPRINTF)
6471 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
6472 about redefinition of snprintf by pyerrors.h.
6474 2013-03-15 Steve Ellcey <sellcey@mips.com>
6476 * remote-sim.c (sim_command_completer): Make char arguments const.
6478 2013-03-15 Tom Tromey <tromey@redhat.com>
6481 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
6483 2013-03-14 Tom Tromey <tromey@redhat.com>
6485 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
6487 (get_file_crc): Move from symfile.c.
6488 (gdb_bfd_crc): New function.
6489 * gdb_bfd.h (gdb_bfd_crc): Declare.
6490 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
6491 * symfile.c (get_file_crc): Move to gdb_bfd.c.
6492 (separate_debug_file_exists): Use gdb_bfd_crc.
6494 2013-03-14 Tom Tromey <tromey@redhat.com>
6496 * symfile.c (get_debug_link_info): Remove.
6497 (find_separate_debug_file_by_debuglink): Use
6498 bfd_get_debug_link_info.
6500 2013-03-14 Tom Tromey <tromey@redhat.com>
6502 * symtab.c (error_in_psymtab_expansion): New function.
6503 (lookup_symbol_aux_quick)
6504 (basic_lookup_transparent_type_quick): Remove "last resort"
6505 code. Use error_in_psymtab_expansion.
6507 2013-03-14 Doug Evans <dje@google.com>
6508 Jan Kratochvil <jan.kratochvil@redhat.com>
6510 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
6511 any successful compare_filenames_for_search or FILENAME_CMP.
6512 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6513 * symtab.c (iterate_over_some_symtabs): Likewise.
6515 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6517 * source.c (print_source_lines_base): Make a local copy of
6520 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
6521 Jan Kratochvil <jan.kratochvil@redhat.com>
6523 * source.c (print_source_lines_base): Suppress "file" for TUI.
6525 2013-03-14 Keith Seitz <keiths@redhat.com>
6526 Alan Matsuoka <alanm@redhat.com>
6530 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
6532 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
6535 2013-03-14 Yao Qi <yao@codesourcery.com>
6537 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
6538 status to tfile if trace is stopped by command 'tstop'.
6540 2013-03-14 Yao Qi <yao@codesourcery.com>
6542 * tracepoint.c (tfile_write_status): Write trace notes and user
6543 name into tfile if they are not NULL.
6545 2013-03-14 Hui Zhu <hui@codesourcery.com>
6546 Yao Qi <yao@codesourcery.com>
6548 * Makefile.in (REMOTE_OBS): Add ctf.o.
6549 (SFILES): Add ctf.c.
6550 (HFILES_NO_SRCDIR): Add ctf.h.
6551 * ctf.c, ctf.h: New files.
6552 * tracepoint.c: Include 'ctf.h'.
6553 (collect_pseudocommand): Remove static.
6554 (trace_save_command): Parse option "-ctf".
6555 Produce different trace file writers per option.
6556 Adjust output message.
6557 (trace_save_tfile, trace_save_ctf): New.
6558 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
6559 * mi/mi-main.c: Include 'ctf.h'.
6560 (mi_cmd_trace_save): Handle option '-ctf'. Call either
6561 trace_save_tfile or trace_save_ctf.
6562 * NEWS: Mention these changes.
6564 2013-03-14 Yao Qi <yao@codesourcery.com>
6566 * tracepoint.c (trace_file_writer_xfree): New.
6567 (struct tfile_writer_data): New.
6568 (tfile_dtor, tfile_can_target_save, tfile_start): New.
6569 (tfile_write_header, tfile_write_regblock_type): New.
6570 (tfile_write_status, tfile_write_uploaded_tsv): New.
6571 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
6572 (tfile_write_raw_data, (tfile_end): New.
6573 (tfile_write_ops): New global variable.
6574 (TRACE_WRITE_R_BLOCK): New macro.
6575 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
6576 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
6577 (TRACE_WRITE_V_BLOCK): New macro.
6578 (trace_save): Add extra one parameter WRITER. Make it static.
6579 Use WRITER to writer trace.
6580 (tfile_trace_file_writer_new): New.
6581 (trace_save_command): Caller update.
6582 (trace_save_tfile): Write trace data in TFILE format.
6583 * tracepoint.h (struct trace_frame_write_ops): New.
6584 (struct trace_file_write_ops): New.
6585 (struct trace_file_writer): New.
6586 (trace_save): Remove its declaration.
6587 (trace_save_tfile): Declare it.
6588 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
6589 instead of trace_save.
6591 2013-03-13 Pedro Alves <palves@redhat.com>
6593 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
6595 2013-03-13 Pedro Alves <palves@redhat.com>
6597 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
6599 * demangle.c (current_demangling_style_string): Make it const.
6600 (set_demangling_command): Assert the demangling style is known.
6601 Remove all handling of unknown styles. Set
6602 'current_demangling_style_string' to an element of the
6603 demangling_style_names array.
6604 (set_demangling_style): Delete.
6605 (_initialize_demangler): Set current_demangling_style_string to the
6606 element of the demangling_style_names array that corresponds to
6607 the default demangling style. Remove FIXME note. Don't call
6608 set_demangling_style.
6609 * gdb-demangle.h (set_demangling_style): Remove declaration.
6611 2013-03-13 Pedro Alves <palves@redhat.com>
6613 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
6615 (ada_make_symbol_completion_list): Make "text0" parameter const.
6616 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
6617 * breakpoint.c (condition_completer): Make "text" and "word"
6618 parameters const. Adjust.
6619 (check_tracepoint_command): Adjust to validate_actionline
6621 (catch_syscall_completer): Make "text" and "word" parameters
6623 * cli/cli-cmds.c (show_user): Make "comname" local const.
6624 (valid_command_p): Make "command" parameter const.
6625 (alias_command): Make "alias_prefix" and "command_prefix" locals
6627 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
6628 (add_alias_cmd): Make "name" and "oldname" parameters const.
6629 Adjust. No longer make copy of OLDNAME.
6630 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
6631 (add_setshow_cmd_full, add_setshow_enum_cmd)
6632 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6633 (add_setshow_filename_cmd, add_setshow_string_cmd)
6634 (add_setshow_string_noescape_cmd)
6635 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6636 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6637 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
6638 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
6639 Make "name" parameter const.
6640 (help_cmd): Rename "command" parameter to "arg". New const local
6642 (find_cmd): Make "command" parameter const.
6643 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
6644 deprecated_cmd_warning prototype change.
6645 (undef_cmd_error): Make "cmdtype" parameter const.
6646 (lookup_cmd): Make "line" parameter const.
6647 (deprecated_cmd_warning): Change type of "text" parameter to
6648 pointer to const char, from pointer to pointer to char. Adjust.
6649 (lookup_cmd_composition): Make "text" parameter const.
6650 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
6652 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
6654 * cli/cli-script.c (validate_comname): Make "tem" local const.
6655 (define_command): New const local "tem_c". Use it in calls to
6657 (document_command): Make "tem" and "comfull" locals const.
6658 (show_user_1): Make "prefix" and "name" parameters const.
6659 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
6661 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
6662 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
6663 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
6664 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
6665 (complete_on_enum, add_setshow_enum_cmd)
6666 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6667 (add_setshow_filename_cmd, add_setshow_string_cmd)
6668 (add_setshow_string_noescape_cmd)
6669 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6670 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6671 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
6672 Change prototypes, constifying strings.
6673 * completer.c (noop_completer, filename_completer): Make "text"
6674 and "prefix" parameters const.
6675 (location_completer, expression_completer)
6676 (complete_line_internal): Make "text" and "prefix" parameters
6678 (command_completer, signal_completer): Make "text" and "prefix"
6680 * completer.h (noop_completer, filename_completer)
6681 (expression_completer, location_completer, command_completer)
6682 (signal_completer): Change prototypes.
6683 * corefile.c (complete_set_gnutarget): Make "text" and "word"
6685 * cp-abi.c (cp_abi_completer): Likewise.
6686 * expression.h (parse_expression_for_completion): Change
6688 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
6690 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
6691 * infrun.c (handle_completer): Make "text" and "word" parameters
6693 * interps.c (interpreter_completer): Make "text" and "word"
6695 * language.h (struct language_defn)
6696 <la_make_symbol_completion_list>: Make "text" and "word"
6698 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
6699 (parse_exp_in_context): Rename to ...
6700 (parse_exp_in_context_1): ... this.
6701 (parse_exp_in_context): Reimplement, with const hack from
6703 (parse_expression_for_completion): Make "string" parameter const.
6704 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
6705 to pointer to const char. Adjust.
6706 (print_command_1): Make "exp" parameter const.
6707 (output_command): Rename to ...
6708 (output_command_const): ... this. Make "exp" parameter const.
6709 (output_command): Reimplement.
6710 (x_command): Adjust.
6711 (display_command): Rename "exp" parameter to "arg". New "exp"
6712 local, const version of "arg".
6713 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
6714 "cmd_name" local const.
6715 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
6717 (cmdpy_completer): Make "text" and "word" parameters const.
6718 (gdbpy_parse_command_name): Make "prefix_text2" local const.
6719 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
6721 * remote.c (_initialize_remote): Make "cmd_name" local const.
6722 * symtab.c (language_search_unquoted_string): Make "text" and "p"
6723 parameters const. Adjust.
6724 (completion_list_add_fields): Make "sym_text", "text" and "word"
6726 (struct add_name_data) <sym_text, text, word>: Make fields const.
6727 (default_make_symbol_completion_list_break_on): Make "text" and
6728 "word" parameters const. Adjust locals.
6729 (default_make_symbol_completion_list)
6730 (make_symbol_completion_list, make_symbol_completion_type)
6731 (make_symbol_completion_list_fn): Make "text" and "word"
6733 (make_file_symbol_completion_list): Make "text", "word" and
6734 "srcfile" parameters const. Adjust locals.
6735 (add_filename_to_list): Make "text" and "word" parameters const.
6736 (struct add_partial_filename_data) <text, word>: Make fields
6738 (make_source_files_completion_list): Make "text" and "word"
6740 * symtab.h (default_make_symbol_completion_list_break_on)
6741 (default_make_symbol_completion_list, make_symbol_completion_list)
6742 (make_symbol_completion_type enum type_code)
6743 (make_symbol_completion_list_fn make_file_symbol_completion_list)
6744 (make_source_files_completion_list): Change prototype.
6745 * top.c (execute_command): Adjust to pass pointer to pointer to
6746 const char to lookup_cmd, and to deprecated_cmd_warning prototype
6748 (set_verbose): Make "cmdname" local const.
6749 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
6751 (validate_actionline): Make "line" parameter a pointer to const
6753 (encode_actions_1): Make "action_exp" local const, and adjust.
6754 (encode_actions): Adjust.
6755 (replace_comma): Delete.
6756 (trace_dump_actions): Make "action_exp" and "next_comma" locals
6757 const, and adjust. Don't frob the action string while splitting
6758 it at commas. Instead, make a copy of each split substring in
6760 (trace_dump_command): Adjust to validate_actionline prototype
6762 * tracepoint.h (decode_agent_options, decode_agent_options)
6763 (encode_actions, validate_actionline): Change prototypes.
6764 * valprint.h (output_command): Delete declaration.
6765 (output_command_const): Declare.
6766 * value.c (function_destroyer): Cast const away in xfree call.
6768 2013-03-13 Pedro Alves <palves@redhat.com>
6770 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
6771 rather than casting 'const char * const *' to 'const char **'.
6772 * ada-lex.l (processInt): Make "trailer" local const. Remove
6773 'const char **' cast.
6774 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
6775 locals, and use those as strtol output pointer, instead than doing
6776 invalid casts to from 'const char **' to 'char **'.
6777 (_initialize_demangle): Remove cast.
6778 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
6779 locals, and use those as strtol output pointer, instead than doing
6780 invalid casts to from 'const char **' to 'char **'.
6781 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
6783 * stap-probe.c (stap_parse_register_operand)
6784 (stap_parse_single_operand): Likewise.
6786 2013-03-13 Yao Qi <yao@codesourcery.com>
6788 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
6789 the last matched 'V' blcok in trace frame.
6791 2013-03-12 Joel Brobecker <brobecker@adacore.com>
6793 * NEWS: Create a new section for the next release branch.
6794 Rename the section of the current branch, now that it has
6797 2013-03-12 Joel Brobecker <brobecker@adacore.com>
6799 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
6800 * version.in: Bump version to 7.6.50.20130312-cvs.
6802 2013-03-12 Keith Seitz <keiths@redhat.com>
6804 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
6805 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
6806 Remove temporary copy of input string.
6807 (mi_execute_command_wrapper): Make "cmd" const.
6808 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
6809 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
6811 (mi_parse): Make "cmd" const.
6813 * mi/mi-parse.h (mi_parse): Make "cmd" const.
6815 2013-03-12 Keith Seitz <keiths@redhat.com>
6817 * ada-lang.c (ada_read_renaming_var_value): Pass const
6818 pointer to expression string to parse_exp_1.
6819 (create_excep_cond_exprs): Likewise.
6820 * ax-gdb.c (agent_eval_command_one): Likewise.
6821 (maint_agent_printf_command): Likewise.
6822 Constify much of the string handling/parsing.
6823 * breakpoint.c (set_breakpoint_condition): Pass const
6824 pointer to expression string to parse_exp_1.
6825 (update_watchpoint): Likewise.
6826 (parse_cmd_to_aexpr): Constify string handling.
6827 Pass const pointer to parse_exp_1.
6828 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
6829 (find_condition_and_thread): Likewise.
6831 (watch_command_1): Make "arg" const.
6832 Constify string handling.
6833 Copy the expression string instead of changing the input
6835 (update_breakpoint_location): Pass const pointer to
6837 * eval.c (parse_and_eval_address): Make "exp" const.
6838 (parse_to_comma_and_eval): Make "expp" const.
6839 (parse_and_eval): Make "exp" const.
6840 * expression.h (parse_expression): Make argument const.
6841 (parse_exp_1): Make first argument const.
6842 * findcmd.c (parse_find_args): Treat "args" as const.
6843 * linespec.c (parse_linespec): Pass const pointer to
6844 linespec_expression_to_pc.
6845 (linespec_expression_to_pc): Make "exp_ptr" const.
6846 * parse.c (parse_exp_1): Make "stringptr" const.
6847 Make a copy of the expression to pass to parse_exp_in_context until
6848 this whole interface can be constified.
6849 (parse_expression): Make "string" const.
6850 * printcmd.c (ui_printf): Treat "arg" as const.
6851 Handle const strings.
6852 * tracepoint.c (validate_actionline): Pass const pointer to
6853 all calls to parse_exp_1.
6854 (encode_actions_1): Likewise.
6855 * value.h (parse_to_comma_and_eval): Make argument const.
6856 (parse_and_eval_address): Likewise.
6857 (parse_and_eval): Likewise.
6858 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
6859 (varobj_set_value): Likewise.
6860 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
6861 constify string handling.
6862 Pass const pointers to parse_and_eval_address and
6863 parse_to_comman_and_eval.
6864 * cli/cli-utils.c (skip_to_space): Rename to ...
6865 (skip_to_space_const): ... this. Handle const strings.
6866 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
6867 skip_to_space_const.
6868 (skip_to_space_const): Declare.
6869 * common/format.c (parse_format_string): Make "arg" const.
6870 Handle const strings.
6871 * common/format.h (parse_format_string): Make "arg" const.
6872 * gdbserver/ax.c (ax_printf): Make "format" const.
6873 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
6874 of the expression string.
6876 2013-03-12 Hui Zhu <hui@codesourcery.com>
6878 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
6880 2013-03-12 Yao Qi <yao@codesourcery.com>
6881 Hui Zhu <hui@codesourcery.com>
6883 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
6884 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
6887 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
6889 * ada-lex.l (rules): Only recognize 'thread' as a
6890 delimiter when followed by numerals, as for c-exp.y.
6891 Use new rewind_to_char function to rewind the input for
6892 expression-delimiting tokens.
6893 (rewind_to_char): New function.
6895 2013-03-11 Pedro Alves <palves@redhat.com>
6896 Jan Kratochvil <jan.kratochvil@redhat.com>
6898 * configure: Regenerate.
6899 * configure.ac (check dynamic export flag): Link python test with
6902 2013-03-11 Doug Evans <dje@google.com>
6903 Keith Seitz <keiths@redhat.com>
6905 * linespec.c (find_linespec_symbols): Call find_function_symbols
6906 first, and then call lookup_prefix_sym/find_method.
6908 2013-03-11 Pedro Alves <palves@redhat.com>
6910 * charset.c (convert_between_encodings): Don't cast between
6911 different pointer to pointer types. Instead, make the 'inp' local
6912 be of the type iconv expects.
6913 (wchar_iterate): Don't cast between different pointer to pointer
6914 types. Instead, use new pointer local of the type iconv expects.
6915 * target.c (target_read_stralloc, target_fileio_read_stralloc):
6916 Add new local of type char pointer, and use it to get a
6917 char/string view of the byte buffer, instead of casting between
6918 pointer to pointer types.
6920 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
6922 * remote.c (remote_set_trace_buffer_size): Move != operator
6923 to the start of next line to fix an ARI warning.
6925 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6927 * NEWS: Add record changes.
6929 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6931 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
6932 the instruction history disassembly.
6933 * disasm.c (dump_insns): Omit the pc prefix, if requested.
6934 * disasm.h (DISASSEMBLY_OMIT_PC): New.
6936 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6938 * Makefile.in (SFILES): Add record-btrace.c
6939 (COMMON_OBS): Add record-btrace.o
6940 * record-btrace.c: New.
6941 * objfiles.c: Include btrace.h.
6942 (free_objfile): call btrace_free_objfile.
6944 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6946 * target.c (target_call_history, target_call_history_from,
6947 target_call_history_range): New.
6948 * target.h (target_ops) <to_call_history, to_call_history_from,
6949 to_call_history_range>: New fields.
6950 (target_call_history, target_call_history_from,
6951 target_call_history_range): New declaration.
6952 * record.c (get_call_history_modifiers, cmd_record_call_history,
6953 record_call_history_size): New.
6954 (_initialize_record): Add the "record function-call-history" command.
6955 Add "set/show record function-call-history-size" commands.
6956 * record.h (record_print_flag): New.
6958 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6960 * target.h (target_ops) <to_insn_history, to_insn_history_from,
6961 to_insn_history_range>: New fields.
6962 (target_insn_history): New.
6963 (target_insn_history_from): New.
6964 (target_insn_history_range): New.
6965 * target.c (target_insn_history): New.
6966 (target_insn_history_from): New.
6967 (target_insn_history_range): New.
6968 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
6969 (record_insn_history_size): New.
6970 (get_insn_number): New.
6971 (get_context_size): New.
6973 (get_insn_history_modifiers): New.
6974 (cmd_record_insn_history): New.
6975 (_initialize_record): Add "set/show record instruction-history-size"
6976 command. Add "record instruction-history" command.
6978 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6980 * record.h (record_disconnect): New.
6981 (record_detach): New.
6982 (record_mourn_inferior): New.
6984 * record-full.c (record_disconnect, record_detach,
6985 record_mourn_inferior, record_kill): Move to...
6986 * record.c: ...here.
6989 (record_unpush): New.
6990 (cmd_record_stop): Call record_stop. Replace unpush_target
6991 call with record_unpush call.
6992 (record_disconnect, record_detach): Assert that the target
6993 is of record stratum. Call record_unpush, record_stop, and
6995 (record_mourn_inferior, record_kill): Assert that the target
6996 is of record stratum. Call record_unpush and DEBUG.
6998 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7000 * record-full.h, record-full.c (record_memory_query): Rename
7002 (record_full_memory_query): ...this. Update all users.
7003 (record_arch_list_add_reg): Rename to ...
7004 (record_full_arch_list_add_reg): ...this. Update all users.
7005 (record_arch_list_add_mem): Rename to ...
7006 (record_full_arch_list_add_mem): ...this. Update all users.
7007 (record_arch_list_add_end): Rename to ...
7008 (record_full_arch_list_add_end): ...this. Update all users.
7009 (record_gdb_operation_disable_set): Rename to ...
7010 (record_full_gdb_operation_disable_set): ...this.
7013 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7015 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
7016 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
7017 (RECORD_IS_REPLAY): Renamed to ...
7018 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
7019 (RECORD_FILE_MAGIC): Renamed to ...
7020 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
7021 (record_mem_entry): Renamed to ...
7022 (record_full_mem_entry): ... this. Updated all users.
7023 (record_reg_entry): Renamed to ...
7024 (record_full_reg_entry): ... this. Updated all users.
7025 (record_end_entry): Renamed to ...
7026 (record_full_end_entry): ... this. Updated all users.
7027 (record_type) <record_end, record_reg, record_mem>: Renamed
7029 (record_full_type) <record_full_end, record_full_reg,
7030 record_full_mem>: ... this. Updated all users.
7031 (record_entry): Renamed to ...
7032 (record_full_entry): ... this. Updated all users.
7033 (record_core_buf_entry): Renamed to ...
7034 (record_full_core_buf_entry): ... this. Updated all users.
7035 (record_core_regbuf): Renamed to ...
7036 (record_full_core_regbuf): ... this. Updated all users.
7037 (record_core_start): Renamed to ...
7038 (record_full_core_start): ... this. Updated all users.
7039 (record_core_end): Renamed to ...
7040 (record_full_core_end): ... this. Updated all users.
7041 (record_core_buf_list): Renamed to ...
7042 (record_full_core_buf_list): ... this. Updated all users.
7043 (record_first): Renamed to ...
7044 (record_full_first): ... this. Updated all users.
7045 (record_list): Renamed to ...
7046 (record_full_list): ... this. Updated all users.
7047 (record_arch_list_head): Renamed to ...
7048 (record_full_arch_list_head): ... this. Updated all users.
7049 (record_arch_list_tail): Renamed to ...
7050 (record_full_arch_list_tail): ... this. Updated all users.
7051 (record_stop_at_limit): Renamed to ...
7052 (record_full_stop_at_limit): ... this. Updated all users.
7053 (record_insn_max_num): Renamed to ...
7054 (record_full_insn_max_num): ... this. Updated all users.
7055 (record_insn_num): Renamed to ...
7056 (record_full_insn_num): ... this. Updated all users.
7057 (record_insn_count): Renamed to ...
7058 (record_full_insn_count): ... this. Updated all users.
7059 (record_ops): Renamed to ...
7060 (record_full_ops): ... this. Updated all users.
7061 (record_core_ops): Renamed to ...
7062 (record_full_core_ops): ... this. Updated all users.
7063 (set_record_cmdlist): Renamed to ...
7064 (set_record_full_cmdlist): ... this. Updated all users.
7065 (show_record_cmdlist): Renamed to ...
7066 (show_record_full_cmdlist): ... this. Updated all users.
7067 (record_cmdlist): Renamed to ...
7068 (record_full_cmdlist): ... this. Updated all users.
7069 (record_beneath_to_resume_ops): Renamed to ...
7070 (record_full_beneath_to_resume_ops): ... this. Updated all users.
7071 (record_beneath_to_resume): Renamed to ...
7072 (record_full_beneath_to_resume): ... this. Updated all users.
7073 (record_beneath_to_wait_ops): Renamed to ...
7074 (record_full_beneath_to_wait_ops): ... this. Updated all users.
7075 (record_beneath_to_wait): Renamed to ...
7076 (record_full_beneath_to_wait): ... this. Updated all users.
7077 (record_beneath_to_store_registers_ops): Renamed to ...
7078 (record_full_beneath_to_store_registers_ops): ... this.
7080 (record_beneath_to_store_registers): Renamed to ...
7081 (record_full_beneath_to_store_registers): ... this.
7083 (record_beneath_to_xfer_partial_ops): Renamed to ...
7084 (record_full_beneath_to_xfer_partial_ops): ... this.
7086 (record_beneath_to_xfer_partial): Renamed to ...
7087 (record_full_beneath_to_xfer_partial): ... this.
7089 (record_beneath_to_insert_breakpoint): Renamed to ...
7090 (record_full_beneath_to_insert_breakpoint): ... this.
7092 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
7093 (record_full_beneath_to_stopped_by_watchpoint): ... this.
7095 (record_beneath_to_stopped_data_address): Renamed to ...
7096 (record_full_beneath_to_stopped_data_address): ... this.
7098 (record_beneath_to_async): Renamed to ...
7099 (record_full_beneath_to_async): ... this. Updated all users.
7100 (record_goto_insn): Renamed to ...
7101 (record_full_goto_insn): ... this. Updated all users.
7102 (record_save): Renamed to ...
7103 (record_full_save): ... this. Updated all users.
7104 (record_reg_alloc): Renamed to ...
7105 (record_full_reg_alloc): ... this. Updated all users.
7106 (record_reg_release): Renamed to ...
7107 (record_full_reg_release): ... this. Updated all users.
7108 (record_mem_alloc): Renamed to ...
7109 (record_full_mem_alloc): ... this. Updated all users.
7110 (record_mem_release): Renamed to ...
7111 (record_full_mem_release): ... this. Updated all users.
7112 (record_end_alloc): Renamed to ...
7113 (record_full_end_alloc): ... this. Updated all users.
7114 (record_end_release): Renamed to ...
7115 (record_full_end_release): ... this. Updated all users.
7116 (record_entry_release): Renamed to ...
7117 (record_full_entry_release): ... this. Updated all users.
7118 (record_list_release): Renamed to ...
7119 (record_full_list_release): ... this. Updated all users.
7120 (record_list_release_following): Renamed to ...
7121 (record_full_list_release_following): ... this.
7123 (record_list_release_first): Renamed to ...
7124 (record_full_list_release_first): ... this. Updated all users.
7125 (record_arch_list_add): Renamed to ...
7126 (record_full_arch_list_add): ... this. Updated all users.
7127 (record_get_loc): Renamed to ...
7128 (record_full_get_loc): ... this. Updated all users.
7129 (record_check_insn_num): Renamed to ...
7130 (record_full_check_insn_num): ... this. Updated all users.
7131 (record_arch_list_cleanups): Renamed to ...
7132 (record_full_arch_list_cleanups): ... this. Updated all users.
7133 (record_message): Renamed to ...
7134 (record_full_message): ... this. Updated all users.
7135 (record_message_wrapper): Renamed to ...
7136 (record_full_message_wrapper): ... this. Updated all users.
7137 (record_message_wrapper_safe): Renamed to ...
7138 (record_full_message_wrapper_safe): ... this. Updated all users.
7139 (record_gdb_operation_disable): Renamed to ...
7140 (record_full_gdb_operation_disable): ... this. Updated all users.
7141 (record_hw_watchpoint): Renamed to ...
7142 (record_full_hw_watchpoint): ... this. Updated all users.
7143 (record_exec_insn): Renamed to ...
7144 (record_full_exec_insn): ... this. Updated all users.
7145 (record_restore): Renamed to ...
7146 (record_full_restore): ... this. Updated all users.
7147 (record_async_inferior_event_token): Renamed to ...
7148 (record_full_async_inferior_event_token): ... this.
7150 (record_async_inferior_event_handler): Renamed to ...
7151 (record_full_async_inferior_event_handler): ... this.
7153 (record_core_open_1): Renamed to ...
7154 (record_full_core_open_1): ... this. Updated all users.
7155 (record_open_1): Renamed to ...
7156 (record_full_open_1): ... this. Updated all users.
7157 (record_open): Renamed to ...
7158 (record_full_open): ... this. Updated all users.
7159 (record_close): Renamed to ...
7160 (record_full_close): ... this. Updated all users.
7161 (record_resume_step): Renamed to ...
7162 (record_full_resume_step): ... this. Updated all users.
7163 (record_resumed): Renamed to ...
7164 (record_full_resumed): ... this. Updated all users.
7165 (record_execution_dir): Renamed to ...
7166 (record_full_execution_dir): ... this. Updated all users.
7167 (record_resume): Renamed to ...
7168 (record_full_resume): ... this. Updated all users.
7169 (record_get_sig): Renamed to ...
7170 (record_full_get_sig): ... this. Updated all users.
7171 (record_sig_handler): Renamed to ...
7172 (record_full_sig_handler): ... this. Updated all users.
7173 (record_wait_cleanups): Renamed to ...
7174 (record_full_wait_cleanups): ... this. Updated all users.
7175 (record_wait_1): Renamed to ...
7176 (record_full_wait_1): ... this. Updated all users.
7177 (record_wait): Renamed to ...
7178 (record_full_wait): ... this. Updated all users.
7179 (record_stopped_by_watchpoint): Renamed to ...
7180 (record_full_stopped_by_watchpoint): ... this. Updated all users.
7181 (record_disconnect): Renamed to ...
7182 (record_full_disconnect): ... this. Updated all users.
7183 (record_detach): Renamed to ...
7184 (record_full_detach): ... this. Updated all users.
7185 (record_mourn_inferior): Renamed to ...
7186 (record_full_mourn_inferior): ... this. Updated all users.
7187 (record_kill): Renamed to ...
7188 (record_full_kill): ... this. Updated all users.
7189 (record_stopped_data_address): Renamed to ...
7190 (record_full_stopped_data_address): ... this. Updated all users.
7191 (record_registers_change): Renamed to ...
7192 (record_full_registers_change): ... this. Updated all users.
7193 (record_store_registers): Renamed to ...
7194 (record_full_store_registers): ... this. Updated all users.
7195 (record_xfer_partial): Renamed to ...
7196 (record_full_xfer_partial): ... this. Updated all users.
7197 (record_breakpoint): Renamed to ...
7198 (record_full_breakpoint): ... this. Updated all users.
7199 (record_breakpoint_p): Renamed to ...
7200 (record_full_breakpoint_p): ... this. Updated all users.
7201 (record_breakpoints): Renamed to ...
7202 (record_full_breakpoints): ... this. Updated all users.
7203 (record_sync_record_breakpoints): Renamed to ...
7204 (record_full_sync_record_breakpoints): ... this.
7206 (record_init_record_breakpoints): Renamed to ...
7207 (record_full_init_record_breakpoints): ... this.
7209 (record_insert_breakpoint): Renamed to ...
7210 (record_full_insert_breakpoint): ... this. Updated all users.
7211 (record_remove_breakpoint): Renamed to ...
7212 (record_full_remove_breakpoint): ... this. Updated all users.
7213 (record_can_execute_reverse): Renamed to ...
7214 (record_full_can_execute_reverse): ... this. Updated all users.
7215 (record_get_bookmark): Renamed to ...
7216 (record_full_get_bookmark): ... this. Updated all users.
7217 (record_goto_bookmark): Renamed to ...
7218 (record_full_goto_bookmark): ... this. Updated all users.
7219 (record_async): Renamed to ...
7220 (record_full_async): ... this. Updated all users.
7221 (record_can_async_p): Renamed to ...
7222 (record_full_can_async_p): ... this. Updated all users.
7223 (record_is_async_p): Renamed to ...
7224 (record_full_is_async_p): ... this. Updated all users.
7225 (record_execution_direction): Renamed to ...
7226 (record_full_execution_direction): ... this. Updated all users.
7227 (record_info): Renamed to ...
7228 (record_full_info): ... this. Updated all users.
7229 (record_delete): Renamed to ...
7230 (record_full_delete): ... this. Updated all users.
7231 (record_is_replaying): Renamed to ...
7232 (record_full_is_replaying): ... this. Updated all users.
7233 (record_goto_entry): Renamed to ...
7234 (record_full_goto_entry): ... this. Updated all users.
7235 (record_goto_begin): Renamed to ...
7236 (record_full_goto_begin): ... this. Updated all users.
7237 (record_goto_end): Renamed to ...
7238 (record_full_goto_end): ... this. Updated all users.
7239 (record_goto): Renamed to ...
7240 (record_full_goto): ... this. Updated all users.
7241 (init_record_ops): Renamed to ...
7242 (init_record_full_ops): ... this. Updated all users.
7243 (record_core_resume): Renamed to ...
7244 (record_full_core_resume): ... this. Updated all users.
7245 (record_core_kill): Renamed to ...
7246 (record_full_core_kill): ... this. Updated all users.
7247 (record_core_fetch_registers): Renamed to ...
7248 (record_full_core_fetch_registers): ... this. Updated all users.
7249 (record_core_prepare_to_store): Renamed to ...
7250 (record_full_core_prepare_to_store): ... this. Updated all users.
7251 (record_core_store_registers): Renamed to ...
7252 (record_full_core_store_registers): ... this. Updated all users.
7253 (record_core_xfer_partial): Renamed to ...
7254 (record_full_core_xfer_partial): ... this. Updated all users.
7255 (record_core_insert_breakpoint): Renamed to ...
7256 (record_full_core_insert_breakpoint): ... this. Updated all users.
7257 (record_core_remove_breakpoint): Renamed to ...
7258 (record_full_core_remove_breakpoint): ... this. Updated all users.
7259 (record_core_has_execution): Renamed to ...
7260 (record_full_core_has_execution): ... this. Updated all users.
7261 (init_record_core_ops): Renamed to ...
7262 (init_record_full_core_ops): ... this. Updated all users.
7263 (cmd_record_restore): Renamed to ...
7264 (cmd_record_full_restore): ... this. Updated all users.
7265 (record_save_cleanups): Renamed to ...
7266 (record_full_save_cleanups): ... this. Updated all users.
7267 (cmd_record_start): Renamed to ...
7268 (cmd_record_full_start): ... this. Updated all users.
7269 (set_record_insn_max_num): Renamed to ...
7270 (set_record_full_insn_max_num): ... this. Updated all users.
7271 (set_record_command): Renamed to ...
7272 (set_record_full_command): ... this. Updated all users.
7273 (show_record_command): Renamed to ...
7274 (show_record_full_command): ... this. Updated all users.
7275 (_initialize_record): Renamed to ...
7276 (_initialize_record_full): ... this. Updated all users.
7278 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7280 * record.h: Split into this and ...
7281 * record-full.h: ... this.
7282 * record.c: Split into this and ...
7283 * record-full.c: ... this.
7284 * target.h (target_ops): Add new fields to_info_record,
7285 to_save_record, to_delete_record, to_record_is_replaying,
7286 to_goto_record_begin, to_goto_record_end, to_goto_record.
7287 (target_info_record): New.
7288 (target_save_record): New.
7289 (target_supports_delete_record): New.
7290 (target_delete_record): New.
7291 (target_record_is_replaying): New.
7292 (target_goto_record_begin): New.
7293 (target_goto_record_end): New.
7294 (target_goto_record): New.
7295 * target.c (target_info_record): New.
7296 (target_save_record): New.
7297 (target_supports_delete_record): New.
7298 (target_delete_record): New.
7299 (target_record_is_replaying): New.
7300 (target_goto_record_begin): New.
7301 (target_goto_record_end): New.
7302 (target_goto_record): New.
7303 * record.h: Declare struct cmd_list_element.
7304 (record_cmdlist): New declaration.
7305 (set_record_cmdlist): New declaration.
7306 (show_record_cmdlist): New declaration.
7307 (info_record_cmdlist): New declaration.
7308 (cmd_record_goto): New declaration.
7309 * record.c: Remove unnecessary includes.
7311 (cmd_record_goto): Remove declaration.
7312 (record_cmdlist): Now extern. Initialize.
7313 (set_record_cmdlist): Now extern. Initialize.
7314 (show_record_cmdlist): Now extern. Initialize.
7315 (info_record_cmdlist): Now extern. Initialize.
7316 (find_record_target): New.
7317 (require_record_target): New.
7318 (cmd_record_start): Update.
7319 (cmd_record_delete): Remove target-specific code.
7320 Call target_delete_record.
7321 (cmd_record_stop): Unpush any record target.
7322 (set_record_insn_max_num): Move to record-full.c
7323 (set_record_command): Add comment.
7324 (show_record_command): Add comment.
7325 (info_record_command): Update comment.
7326 Remove target-specific code.
7327 Call the record target's to_info_record.
7328 (cmd_record_start): New.
7329 (cmd_record_goto): Now extern.
7330 Remove target-specific code.
7331 Call target_goto_begin, target_goto_end, or target_goto.
7332 (_initialize_record): Move record target ops initialization to
7334 Change "record" command help text.
7335 Move "record restore", "record set", and "record show" commands to
7337 * Makefile.in (SFILES): Add record-full.c.
7338 (HFILES_NO_SRCDIR): Add record-full.h.
7339 (COMMON_OBS): Add record-full.o.
7340 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
7341 * arm-tdep.c: Include record-full.h.
7342 * i386-linux-tdep.c: Include record-full.h instead of record.h.
7343 * i386-tdep.c: Include record-full.h.
7344 * infrun.c: Include record-full.h.
7345 * linux-record.c: Include record-full.h.
7346 * moxie-tdep.c: Include record-full.h.
7347 * record-full.c: Include record-full.h.
7348 Change module comment.
7349 (set_record_full_cmdlist): New.
7350 (show_record_full_cmdlist): New.
7351 (record_full_cmdlist): New.
7352 (record_goto_insn): New declaration.
7353 (record_save): New declaration.
7354 (record_check_insn_num): Change query string.
7356 (record_delete): New.
7357 (record_is_replaying): New.
7358 (record_goto_entry): New.
7359 (record_goto_begin): New.
7360 (record_goto_end): New.
7362 (init_record_ops): Update.
7363 (init_record_core_ops): Update.
7364 (cmd_record_save): Rename to record_save. Remove target and arg checks.
7365 (cmd_record_start): New.
7366 (set_record_insn_max_num): Moved from record.c
7367 (set_record_full_command): New.
7368 (show_record_full_command): New.
7369 (_initialize_record_full): New.
7371 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7373 * target.h (add_deprecated_target_alias): New.
7374 * target.c (add_deprecated_target_alias): New.
7376 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7378 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
7380 (linux_supports_btrace): Add kernel and
7382 (kernel_supports_btrace): New function.
7383 (cpu_supports_btrace): New function.
7384 (intel_supports_btrace): New function.
7386 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7388 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
7389 * remote.c: Include btrace.h.
7390 (struct btrace_target_info): New struct.
7391 (remote_supports_btrace): New function.
7392 (send_Qbtrace): New function.
7393 (remote_enable_btrace): New function.
7394 (remote_disable_btrace): New function.
7395 (remote_teardown_btrace): New function.
7396 (remote_read_btrace): New function.
7397 (init_remote_ops): Add btrace ops.
7398 (enum <unnamed>): Add btrace packets.
7399 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
7400 (_initialize_remote): Add packet configuration for branch tracing.
7402 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7404 * features/btrace.dtd: New file.
7405 * Makefile.in (XMLFILES): Add btrace.dtd.
7406 * btrace.h (parse_xml_btrace): New declaration.
7407 * btrace.c: Include xml-support.h.
7408 (parse_xml_btrace): New function.
7409 (parse_xml_btrace_block): New function.
7410 (block_attributes): New struct.
7411 (btrace_attributes): New struct.
7412 (btrace_children): New struct.
7413 (btrace_elements): New struct.
7415 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7417 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
7418 (amd64_linux_enable_btrace): New.
7419 (amd64_linux_disable_btrace): New.
7420 (amd64_linux_teardown_btrace): New.
7421 (_initialize_amd64_linux_nat): Initialize btrace ops.
7422 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
7423 (i386_linux_enable_btrace): New.
7424 (i386_linux_disable_btrace): New.
7425 (i386_linux_teardown_btrace): New.
7426 (_initialize_i386_linux_nat): Initialize btrace ops.
7427 * config/i386/linux.mh: Add linux-btrace.o.
7428 * config/i386/linux64.mh: Add linux-btrace.o.
7430 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7432 * common/linux_btrace.h: New file.
7433 * common/linux_btrace.c: New file.
7434 * Makefile.in (SFILES): Add btrace.c.
7435 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
7436 (COMMON_OBS): Add btrace.o.
7437 (linux-btrace.o): New rule.
7439 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7441 * target.h: Include btrace.h.
7442 (struct target_ops) <to_supports_btrace, to_enable_btrace,
7443 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
7444 * target.c (target_supports_btrace): New function.
7445 (target_enable_btrace): New function.
7446 (target_disable_btrace): New function.
7447 (target_teardown_btrace): New function.
7448 (target_read_btrace): New function.
7449 * btrace.h: New file.
7450 * btrace.c: New file.
7451 * Makefile.in: Add btrace.c.
7452 * gdbthread.h: Include btrace.h.
7453 (struct thread_info): Add btrace field.
7454 * thread.c: Include btrace.h.
7455 (clear_thread_inferior_resources): Call target_teardown_btrace.
7456 * common/btrace-common.h: New file.
7458 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7460 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
7461 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
7462 kill_status to outer block.
7464 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7466 Fix entry-values if the callee called a noreturn function.
7467 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7468 get_frame_address_in_block. Add new comment.
7470 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7472 Fix entry-values in C++ across CUs.
7473 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
7474 lookup_minimal_symbol. Add a comment.
7476 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
7479 2013-03-08 Yao Qi <yao@codesourcery.com>
7481 * tracepoint.c (_initialize_tracepoint): Indent the code.
7483 2013-03-08 Pedro Alves <palves@redhat.com>
7485 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
7486 (parse_find_args, find_command): Change type of pattern buffer
7487 locals to 'gdb_byte *'.
7489 2013-03-08 Stan Shebs <stan@codesourcery.com>
7490 Hafiz Abid Qadeer <abidh@codesourcery.com>
7492 * NEWS: Mention set and show trace-buffer-size commands.
7494 * target.h (struct target_ops): New method
7495 to_set_trace_buffer_size.
7496 (target_set_trace_buffer_size): New macro.
7497 * target.c (update_current_target): Set up new method.
7498 * tracepoint.c (trace_buffer_size): New global.
7499 (start_tracing): Send it to the target.
7500 (set_trace_buffer_size): New function.
7501 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
7502 * remote.c (remote_set_trace_buffer_size): New function.
7503 (_initialize_remote): Use it.
7504 (QTBuffer:size) New remote command.
7505 (PACKET_QTBuffer_size): New enum.
7506 (remote_protocol_features): Add an entry for
7507 PACKET_QTBuffer_size.
7509 2013-03-08 Tom Tromey <tromey@redhat.com>
7511 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
7514 2013-03-07 Pedro Alves <palves@redhat.com>
7516 * target.c (target_read_stralloc, target_fileio_read_alloc):
7517 *Cast pointer to 'gdb_byte *' in target call.
7519 2013-03-07 Pedro Alves <palves@redhat.com>
7521 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
7524 2013-03-07 Keith Seitz <keiths@redhat.com>
7526 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
7527 (trace_pass_command): Likewise.
7528 * cli/cli-cmds.c: Include cli/cli-utils.h.
7529 (source_command): Use skip-spaces.
7530 (disassemble_command): Likewise.
7531 * findcmd.c: Include cli/cli-utils.h.
7532 (parse_find_args): Use skip_spaces.
7533 * go32-nat.c: Include cli/cli-utils.h.
7534 (go32_sldt): Use skip_spaces.
7535 (go32_sgdt): Likewise.
7536 (go32_sidt): Likewise.
7537 (go32_pde): Likewise.
7538 (go32_pte): Likewise.
7539 (go32_pte_for_address): Likewise.
7540 * infcmd.c: Include cli/cli-utils.h.
7541 (registers_info): Use skip_spaces.
7542 * linux-tdep.c (read_mapping): Use skip_spaces_const.
7543 (linux_info_proc): Likewise.
7544 * linux-thread-db.c: Include cli/cli-utils.h.
7545 (info_auto_load_libthread_db): Use skip_spaces_const.
7546 * m32r-rom.c: Include cli/cli-utils.h.
7547 (m32r_upload_command): Use skip_spaces.
7548 * maint.c: Include cli/cli-utils.h.
7549 (maintenance_translate_address): Use skip_spaces.
7550 * mi/mi-parse.c: Include cli/cli-utils.h.
7551 (mi_parse_argv): Use skip_spaces.
7552 (mi_parse): Likewise.
7553 * minsyms.c: Include cli/cli-utils.h.
7554 (msymbol_hash_iw): Use skip_spaces_const.
7555 * objc-lang.c: Include cli/cli-utils.h.
7556 (parse_selector): Use skip_spaces.
7557 (parse_method): Likewise.
7558 * python/python.c: Include cli/cli-utils.h.
7559 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
7560 (python_command)[HAVE_PYTHON]: Likewise.
7561 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
7562 * remote-m32r-sdi.c: Include cli/cli-utils.h.
7563 (m32r_load): Use skip_spaces.
7564 * serial.c: Include cli/cli-utils.h.
7565 (serial_open): Use skip_spaces_const.
7566 * stack.c: Include cli/cli-utils.h.
7567 (parse_frame_specification_1): Use skip_spaces_const.
7568 * symfile.c: Include cli/cli-utils.h.
7569 (set_ext_lang_command): Use skip_spaces.
7570 * symtab.c: Include cli/cli-utils.h.
7571 (rbreak_command): Use skip_spaces.
7572 * thread.c (thread_name_command): Use skip_spaces.
7573 * tracepoint.c (validate_actionline): Use skip_spaces.
7574 (encode_actions_1): Likewise.
7575 (trace_find_range_command): Likewise.
7576 (trace_find_outside_command): Likewise.
7577 (trace_dump_actions): Likewise.
7579 2013-03-07 Pedro Alves <palves@redhat.com>
7581 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
7582 * expprint.c (print_subexp_standard): Likewise.
7583 * utils.c (host_char_to_target): Likewise.
7584 * valprint.c (generic_emit_char, generic_printstr): Likewise.
7585 * varobj.c (value_get_print_value): Change type of local to char*.
7586 Cast it gdb_byte * in call to language printer.
7588 2013-03-07 Pedro Alves <palves@redhat.com>
7590 * charset.c (struct wchar_iterator) <input>: Change type to 'const
7592 (make_wchar_iterator): Remove cast to char*.
7593 (wchar_iterate): Change type of local.
7595 2013-03-07 Pedro Alves <palves@redhat.com>
7597 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
7598 for 'regcache->register_status'.
7600 2013-03-07 Pedro Alves <palves@redhat.com>
7602 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
7605 2013-03-07 Pedro Alves <palves@redhat.com>
7607 * stap-probe.c (handle_stap_probe): Add cast to char*.
7609 2013-03-07 Pedro Alves <palves@redhat.com>
7611 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
7612 RECORD_MSGRCV>: Pass a signed variable to
7613 regcache_raw_read_signed, instead of an unsigned one.
7615 2013-03-07 Pedro Alves <palves@redhat.com>
7617 * remote-notif.c (notif_debug): Change type to int.
7618 * remote-notif.h (notif_debug): Likewise.
7620 2013-03-07 Pedro Alves <palves@redhat.com>
7622 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
7624 2013-03-07 Pedro Alves <palves@redhat.com>
7626 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
7627 * remote.h (hex2bin, bin2hex): ... here.
7628 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
7630 2013-03-07 Eli Zaretskii <eliz@gnu.org>
7632 * utils.c (initialize_utils): Improve doc strings of "set/show
7633 width", "set/show height", and "set/show pagination".
7635 2013-03-06 Keith Seitz <keiths@redhat.com>
7637 * ax-gdb.c (gen_printf): Make FORMAT const.
7638 * ax-gdb.h (gen_printf): Likewise.
7639 * ax-general.c (ax_string): Make STR const.
7640 * ax.h (ax_string): Likewise.
7642 2013-03-06 Doug Evans <dje@google.com>
7644 * elfread.c (elf_symfile_read): Move debugging printf to more
7647 2013-03-06 Pedro Alves <palves@redhat.com>
7649 * python/py-utils.c (target_string_to_unicode): Delete function.
7650 * python/python-internal.h (target_string_to_unicode): Delete
7653 2013-03-06 Pierre Muller <muller@sourceware.org>
7655 * linespec.c (get_current_search_block): ARI fix, use (void)
7656 for empty parameter list.
7658 2013-03-05 Doug Evans <dje@google.com>
7660 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
7661 of old ada_lookup_symbol_list. In !full_search case, don't
7663 (ada_lookup_symbol_list): Delete arg full_search, all callers
7664 updated. Call ada_lookup_symbol_list_worker.
7665 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
7666 * ada-lang.h (ada_lookup_symbol_list): Update.
7667 * language.h (language_defn): Update comment for
7668 la_iterate_over_symbols.
7669 * linespec.c (iterate_over_file_blocks): New function.
7670 (iterate_over_all_matching_symtabs): Call it.
7671 (lookup_prefix_sym): Ditto.
7672 (get_current_search_block): New function.
7673 (get_search_block): Delete.
7674 (find_label_symbols): Call get_current_search_block.
7675 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
7676 * symtab.c (iterate_over_symbols): Don't search superblocks.
7678 2013-03-05 Yao Qi <yao@codesourcery.com>
7680 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
7681 parameter VAR's type from "unsigned int" to "int".
7682 * command.h (var_zuinteger_unlimited): Update its comments.
7683 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
7685 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
7687 * NEWS: Mention new target x86_64-*-cygwin*.
7689 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
7691 * configure.host: Add x86_64-*-cygwin* as host.
7692 * configure.tgt: Add x86_64-*-cygwin* as target.
7693 * config/i386/cygwin64.mh: New file.
7695 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7697 * linespec.c (decode_line_2): Fix duplicate request off by two message.
7699 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7701 * linespec.c (struct linespec_canonical_name): New.
7702 (struct linespec_state): Change canonical_names type to it.
7703 (add_sal_to_sals): Change variable canonical_name to canonical. Change
7704 xrealloc element size. Initialize the different CANONICAL fields.
7705 (canonical_to_fullform): New.
7706 (filter_results): Use it. Add variables canonical, fullform and
7708 (struct decode_line_2_item, decode_line_2_compare_items): New.
7709 (decode_line_2): Remove variables iter and item_names, add variables
7710 items and items_count. Modify the code for these new variables.
7712 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
7714 * coff-pe-read.c (read_pe_exported_syms): Don't return without
7717 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
7719 * tracepoint.c (build_traceframe_info): Add code for byte order.
7721 2013-03-02 Kevin Buettner <kevinb@redhat.com>
7723 * v850-tdep.c: (v850e2_register_name): Revise system register
7724 names to match current V850E2M architecture specifications.
7725 Update register number enum comments too.
7727 2013-03-01 Jiong Wang <jiwang@tilera.com>
7728 Pedro Alves <palves@redhat.com>
7730 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
7732 (tilegx_skip_prologue): Limit prologue analysis to section end.
7734 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7736 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
7739 2013-03-01 Pedro Alves <palves@redhat.com>
7741 Use gdb_byte for bytes from the program being debugged.
7743 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
7744 Change type of local 'buf' to gdb_byte.
7745 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
7746 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
7747 * cris-tdep.c (cris_sigcontext_addr)
7748 (cris_sigtramp_frame_unwind_cache): Likewise.
7749 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
7750 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
7752 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
7753 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
7754 (hppa32_hpux_search_dummy_call_sequence)
7755 (hppa_hpux_supply_save_state): Likewise.
7756 * hppa-linux-tdep.c (insns_match_pattern)
7757 (hppa_linux_find_global_pointer): Likewise.
7758 * hppa-tdep.c (hppa_in_function_epilogue_p)
7759 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
7760 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
7761 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
7762 (i386fbsd_collect_uthread): Likewise.
7763 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
7764 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
7765 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
7766 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
7767 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
7768 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
7769 (ia64_libunwind_frame_prev_register)
7770 (ia64_libunwind_sigtramp_frame_this_id)
7771 (ia64_find_global_pointer_from_dynamic_section)
7772 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
7773 (ia64_unwind_pc): Likewise.
7774 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
7775 * m68hc11-tdep.c (m68hc11_push_dummy_call)
7776 (m68hc11_extract_return_value): Likewise.
7777 * m68klinux-nat.c (fetch_register, store_register): Likewise.
7778 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
7779 (mep_get_insn, mep_push_dummy_call): Likewise.
7780 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
7781 (mips_linux_in_dynsym_stub): Likewise.
7782 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
7783 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
7784 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
7786 * remote-mips.c (mips_set_register): Likewise.
7787 * remote-sim.c (gdbsim_fetch_register): Likewise.
7788 * score-tdep.c (score7_fetch_inst): Change type of parameter
7789 'memblock' and local 'buf' to gdb_byte.
7790 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
7791 Change type of local 'buf' to gdb_byte. Adjust.
7792 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
7794 (score7_analyze_prologue): Change type of 'memblock' and
7795 'memblock_ptr' locals to gdb_byte*.
7796 * sh64-tdep.c (sh64_extract_return_value)
7797 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
7798 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
7799 * solib-pa64.c (pa64_solib_create_inferior_hook)
7800 (pa64_open_symbol_file_object): Remove local 'buf'.
7801 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
7802 (som_open_symbol_file_object): Likewise.
7803 * solib-spu.c (spu_current_sos): Likewise.
7804 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
7805 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
7806 (spu_store_registers): Likewise.
7807 * target.c (debug_print_register): Likewise.
7808 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
7809 * xstormy16-tdep.c (xstormy16_store_return_value)
7810 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
7811 (xstormy16_find_jmp_table_entry): Likewise.
7813 2013-03-01 Jiong Wang <jiwang@tilera.com>
7815 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
7816 (tilegx_gdbarch_init): Install it.
7818 2013-02-28 Tom Tromey <tromey@redhat.com>
7820 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
7823 2013-02-28 Doug Evans <dje@google.com>
7825 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
7826 * python/python.c (gdbpy_find_pc_line): Ditto.
7828 2013-02-28 Tom Tromey <tromey@redhat.com>
7830 * contrib/excheck.py: New file.
7831 * contrib/exsummary.py: New file.
7832 * contrib/gcc-with-excheck: New file.
7834 2013-02-28 Tom Tromey <tromey@redhat.com>
7836 * python/python.c (gdbpy_print_stack): Call begin_line and
7837 fprintf_filtered inside TRY_CATCH.
7839 2013-02-28 Tom Tromey <tromey@redhat.com>
7841 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
7844 2013-02-28 Tom Tromey <tromey@redhat.com>
7846 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
7847 frame_object_to_frame_info inside TRY_CATCH.
7849 2013-02-28 Tom Tromey <tromey@redhat.com>
7851 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
7854 2013-02-28 Tom Tromey <tromey@redhat.com>
7856 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
7858 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
7860 * windows-nat.c: Throughout, fix format strings and casts of
7861 printf-like functions to avoid type related warnings on all
7863 (handle_output_debug_string): Fetch context information address
7864 from debug string using string_to_core_addr.
7866 2013-02-27 Jiong Wang <jiwang@tilera.com>
7868 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
7869 * regformats/reg-tilegx32.dat: New.
7871 2013-02-27 Jiong Wang <jiwang@tilera.com>
7873 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
7875 2013-02-27 Jiong Wang <jiwang@tilera.com>
7877 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
7879 2013-02-27 Yao Qi <yao@codesourcery.com>
7880 Pedro Alves <palves@redhat.com>
7882 * tracepoint.c (tfile_trace_find): For tfind
7883 pc/tp/range/outside, look for the next trace frame instead of
7884 always starting from frame 0.
7886 2013-02-26 Anthony Green <green@moxielogic.com>
7888 * configure.tgt: Add support for moxie-*-rtems* target.
7890 2013-02-25 Pedro Alves <palves@redhat.com>
7892 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
7895 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7897 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
7898 if $fp is used as the virtual frame pointer.
7900 2013-02-23 Alan Modra <amodra@gmail.com>
7902 * elfread.c (elf_symtab_read): Do not use udata.p here to find
7904 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
7905 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
7906 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
7907 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
7909 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7912 * elfread.c (build_id_bfd_get): Make the return type const.
7913 (build_id_verify): Make the check parameter const.
7914 (build_id_to_debug_filename): Make the build_id parameter and variable
7916 (find_separate_debug_file_by_buildid): Make the variable build_id const.
7918 2013-02-21 Alan Modra <amodra@gmail.com>
7920 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
7922 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
7924 Add a new method 'disassemble' to gdb.Architecture class.
7925 * python/py-arch.c (archpy_disassmble): Implementation of the
7926 new method gdb.Architecture.disassemble.
7927 (arch_object_methods): Add entry for the new method.
7929 2013-02-20 Jiong Wang <jiwang@tilera.com>
7931 * MAINTAINERS (Write After Approval): Add myself to the list.
7933 2013-02-19 Pedro Alves <palves@redhat.com>
7935 Garbage collect 'struct monitor_ops'::load_routine.
7937 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
7938 * monitor.c (monitor_load): No longer call
7939 current_monitor->load_routine.
7940 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
7941 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
7942 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
7944 2013-02-19 Pedro Alves <palves@redhat.com>
7948 Harmonize with generic_load.
7950 * monitor.c: Include "readline/readline.h".
7951 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
7952 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
7953 long/strtol for the 'load_offset' local. Error out if no argument
7954 is given or if too many arguments are given. Tilde expand the
7955 passed in file name.
7957 2013-02-19 Kai Tietz <ktietz@redhat.com>
7960 * symfile.c (load_section_data): Change type of load_offset
7962 (generic_load): User strtoulst instead of strtoul for conversion
7965 2013-02-19 Jiong Wang <jiwang@tilera.com>
7967 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
7968 for return address, "lr" register, saved on stack.
7969 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
7970 after we invoke tilegx_analyze_prologue.
7972 2013-02-19 Jiong Wang <jiwang@tilera.com>
7974 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
7976 2013-02-19 Jiong Wang <jiwang@tilera.com>
7978 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
7980 2013-02-19 Jiong Wang <jiwang@tilera.com>
7982 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
7983 (tilegx_write_pc): New function.
7984 (tilegx_cannot_reference_register): Return zero if REGNO
7985 is TILEGX_FAULTNUM_REGNUM.
7986 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
7987 (tilegx_register_name): Add handling of "faultnum" register.
7988 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
7989 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
7990 handling of TILEGX_FAULTNUM_REGNUM.
7991 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
7993 2013-02-19 Jiong Wang <jiwang@tilera.com>
7995 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
7996 should be aligned to 64bit.
7998 2013-02-19 Kai Tietz <ktietz@redhat.com>
8000 * windows-nat.c (windows_xfer_memory): Fix debug-output
8003 2013-02-19 Lei Liu <lei.liu2@windriver.com>
8005 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
8006 Don't check DSP register number if HAVE_DSP is not set.
8008 2013-02-19 Alan Modra <amodra@gmail.com>
8010 * elfread.c (struct build_id): Delete. Use struct elf_build_id
8011 throughout file instead.
8012 (build_id_bfd_get): Update to use new elf_tdata build_id field.
8013 Don't xmalloc return value.
8014 (build_id_verify): Similarly. Don't xfree.
8015 (build_id_to_debug_filename): Update.
8016 (find_separate_debug_file_by_buildid): Update, don't xfree.
8018 2013-02-18 Tom Tromey <tromey@redhat.com>
8021 * dwarf2read.c (read_subrange_type): Use result of
8024 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
8026 * frame.c: Remove one extra white space after #include
8029 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8031 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
8033 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8035 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
8036 and dir commands into an if block.
8038 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
8040 * python/py-breakpoint (struct pybp_code): Use int instead of
8043 2013-02-15 Pedro Alves <pedro@codesourcery.com>
8044 Hafiz Abid Qadeer <abidh@codesourcery.com>
8046 * NEWS: Mention new field "trace-file".
8047 * tracepoint.c (trace_status_mi): Output "trace-file" field.
8048 (tfile_open): Record the trace file's filename in the trace
8050 (tfile_files_info): Mention the name of the trace file.
8051 Check the "filename" field explicitely.
8052 (trace_status_command): Explicitely check "filename" field.
8053 (trace_find_command): Ditto.
8054 (trace_find_pc_command): Ditto.
8055 (trace_find_tracepoint_command): Ditto.
8056 (trace_find_line_command): Ditto.
8057 (trace_find_range_command): Ditto.
8058 (trace_find_outside_command): Ditto.
8059 * tracepoint.h (struct trace_status) <from_file>: Rename it
8060 to "filename" and make it hold the trace file's filename
8061 instead of a boolean.
8062 * remote.c (remote_get_trace_status): Initialize "filename"
8063 field with NULL instead of 0.
8065 2013-02-15 Yao Qi <yao@codesourcery.com>
8067 * remote.c: Fix a typo.
8069 2013-02-14 Pierre Muller <muller@sourceware.org>
8071 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
8073 2013-02-14 Pedro Alves <palves@redhat.com>
8075 * utils.c (savestring): Don't #undef it. Move function to
8076 common/common-utils.c.
8077 * common/common-utils.c: Include gdb_string.h.
8078 (savestring): Move here from utils.c.
8079 * common/common-utils.h (savestring): Declare.
8081 2013-02-14 Pedro Alves <palves@redhat.com>
8083 * utils.c (savestring): Rename parameter 'size' to 'len'.
8085 2013-02-14 Pedro Alves <palves@redhat.com>
8086 Yufeng Zhang <yufeng.zhang@arm.com>
8088 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
8089 (aarch64_inferior_data, struct aarch64_inferior_data):
8091 (struct aarch64_process_info): New.
8092 (aarch64_process_list): New global.
8093 (aarch64_find_process_pid, aarch64_add_process)
8094 (aarch64_process_info_get): New functions.
8095 (aarch64_inferior_data_get): Delete.
8096 (aarch64_process_info_get): New function.
8097 (aarch64_forget_process): New function.
8098 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
8099 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
8100 aarch64_get_debug_reg_state.
8101 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
8102 instead of linux_nat_iterate_watchpoint_lwps.
8103 (aarch64_linux_new_fork): New function.
8104 (aarch64_linux_child_post_startup_inferior): Use
8105 aarch64_forget_process instead of aarch64_init_debug_reg_state.
8106 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
8107 (aarch64_linux_remove_hw_breakpoint)
8108 (aarch64_handle_aligned_watchpoint)
8109 (aarch64_handle_unaligned_watchpoint)
8110 (aarch64_linux_insert_watchpoint)
8111 (aarch64_linux_remove_watchpoint)
8112 (aarch64_linux_stopped_data_address): Adjust to pass the current
8113 process id to aarch64_debug_reg_state.
8114 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
8115 linux_nat_new_fork hook, and aarch64_forget_process as
8116 linux_nat_forget_process hook; remove the call to
8117 register_inferior_data_with_cleanup.
8119 2013-02-14 Pedro Alves <palves@redhat.com>
8121 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
8122 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
8125 2013-02-14 Pedro Alves <pedro@codesourcery.com>
8126 Hafiz Abid Qadeer <abidh@codesourcery.com>
8128 * tracepoint.h (validate_trace_state_variable_name): Declare.
8129 * tracepoint.c (validate_trace_state_variable_name): New.
8130 (trace_variable_command): Parse the trace state variable's name
8131 without using parse_expression. Do several validations.
8132 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
8133 trace state variable's name with parse_expression. Validate it.
8135 2013-02-14 Yao Qi <yao@codesourcery.com>
8137 * infcmd.c (breakpoint_proceeded): Remove it.
8139 2013-02-14 Yao Qi <yao@codesourcery.com>
8141 * tracepoint.c (end_actions_pseudocommand): Make it static.
8142 (while_stepping_pseudocommand): Likewise.
8143 * tracepoint.h (end_actions_pseudocommand): Remove the
8145 (while_stepping_pseudocommand): Likewise.
8147 2013-02-14 Yao Qi <yao@codesourcery.com>
8149 * cli/cli-decode.c (help_cmd): Remove the declaration of
8151 (help_all): Likewise.
8153 2013-02-13 Pedro Alves <palves@redhat.com>
8155 * amd64-linux-nat.c (update_debug_registers_callback):
8157 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8159 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
8160 i386_debug_reg_state.
8161 (amd64_linux_new_fork): New function.
8162 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
8163 linux_nat_new_fork hook, and i386_forget_process as
8164 linux_nat_forget_process hook.
8165 * i386-linux-nat.c (update_debug_registers_callback):
8167 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8169 (i386_linux_prepare_to_resume): Pass the lwp's pid to
8170 i386_debug_reg_state.
8171 (i386_linux_new_fork): New function.
8172 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
8173 linux_nat_new_fork hook, and i386_forget_process as
8174 linux_nat_forget_process hook.
8175 * i386-nat.c (i386_init_dregs): Delete.
8176 (i386_inferior_data, struct i386_inferior_data):
8178 (struct i386_process_info): New.
8179 (i386_process_list): New global.
8180 (i386_find_process_pid, i386_add_process, i386_process_info_get):
8182 (i386_inferior_data_get): Delete.
8183 (i386_process_info_get): New function.
8184 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
8185 (i386_forget_process): New function.
8186 (i386_cleanup_dregs): Rewrite.
8187 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
8188 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
8189 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8190 (i386_remove_hw_breakpoint): Adjust to pass the current process id
8191 to i386_debug_reg_state.
8192 (i386_use_watchpoints): Don't register inferior data.
8193 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
8195 (i386_forget_process): Declare.
8196 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
8197 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
8199 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
8200 (add_initial_lwp): New, factored out from ...
8201 (add_lwp): ... this. Don't check the number of lwps before
8202 calling linux_nat_new_thread.
8203 (linux_nat_iterate_watchpoint_lwps): Delete.
8204 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
8205 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
8207 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
8209 (linux_nat_kill, linux_nat_mourn_inferior): Call
8210 linux_nat_forget_process.
8211 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8212 (linux_nat_forget_process): New functions.
8213 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
8215 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
8216 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
8218 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8219 (linux_nat_forget_process): New declarations.
8221 * amd64fbsd-nat.c (super_mourn_inferior): New global.
8222 (amd64fbsd_mourn_inferior): New function.
8223 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
8224 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
8226 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8228 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
8231 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8233 * aarch64-linux-nat.c (debug_reg_change_callback)
8234 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
8237 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8239 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
8242 2013-02-13 Pedro Alves <palves@redhat.com>
8243 Hafiz Abid Qadeer <abidh@codesourcery.com>
8245 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
8247 2013-02-12 Tom Tromey <tromey@redhat.com>
8250 * c-exp.y (lex_one_token): Initialize other fields of yylval on
8252 (classify_inner_name): Remove 'first_name' argument, add
8253 'context'. Remove unused variable.
8254 (yylex): Explicitly maintain the context type. Exit loop earlier
8255 if NAME result is seen.
8257 2013-02-12 Pedro Alves <palves@redhat.com>
8259 * amd64-darwin-tdep.c: Add (C) after Copyright.
8260 * cli/cli-cmds.h: Ditto.
8261 * cli/cli-decode.c: Ditto.
8262 * cli/cli-decode.h: Ditto.
8263 * cli/cli-dump.c: Ditto.
8264 * cli/cli-dump.h: Ditto.
8265 * cli/cli-interp.c: Ditto.
8266 * cli/cli-logging.c: Ditto.
8267 * cli/cli-script.c: Ditto.
8268 * cli/cli-script.h: Ditto.
8269 * cli/cli-setshow.c: Ditto.
8270 * cli/cli-setshow.h: Ditto.
8271 * cli/cli-utils.c: Ditto.
8272 * cli/cli-utils.h: Ditto.
8273 * config/alpha/nm-osf3.h: Ditto.
8274 * config/djgpp/djconfig.sh: Ditto.
8275 * config/i386/nm-fbsd.h: Ditto.
8276 * config/i386/nm-i386gnu.h: Ditto.
8277 * config/nm-linux.h: Ditto.
8278 * config/nm-nto.h: Ditto.
8279 * config/rs6000/nm-rs6000.h: Ditto.
8280 * config/sparc/nm-sol2.h: Ditto.
8281 * darwin-nat-info.c: Ditto.
8284 * gdb-demangle.h: Ditto.
8285 * i386-darwin-nat.c: Ditto.
8286 * i386-darwin-tdep.c: Ditto.
8287 * linux-fork.h: Ditto.
8288 * m32c-tdep.c: Ditto.
8289 * microblaze-linux-tdep.c: Ditto.
8290 * microblaze-rom.c: Ditto.
8291 * microblaze-tdep.c: Ditto.
8292 * microblaze-tdep.h: Ditto.
8293 * mips-linux-tdep.h: Ditto.
8294 * ppc-ravenscar-thread.c: Ditto.
8295 * ppc-ravenscar-thread.h: Ditto.
8296 * prologue-value.c: Ditto.
8297 * prologue-value.h: Ditto.
8298 * ravenscar-thread.c: Ditto.
8299 * ravenscar-thread.h: Ditto.
8300 * sparc-ravenscar-thread.c: Ditto.
8301 * sparc-ravenscar-thread.h: Ditto.
8302 * tilegx-linux-tdep.c: Ditto.
8303 * unwind_stop_reasons.def: Ditto.
8304 * windows-nat.h: Ditto.
8305 * xtensa-linux-tdep.c: Ditto.
8306 * xtensa-xtregs.c: Ditto.
8307 * regformats/regdat.sh: Ditto.
8308 * regformats/regdef.h: Ditto.
8310 2013-02-12 Pedro Alves <palves@redhat.com>
8312 * break-catch-sig.c: Update copyright years.
8314 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
8316 Add support for a destructor for ui_out data and use it to
8317 provide a ui_out destructor.
8318 * ui-out.h: Declare the new ui_out destructor.
8319 (ui_out_impl): Add a field for data destructor in ui_out_impl.
8320 * ui-out.c (default_data_destroy): Add a default data destructor
8322 (default_ui_out_impl): Set the new data_destroy field to
8323 default_data_destroy
8324 (uo_data_destroy): Local function which invokes the data
8325 destructor if present.
8326 (clear_table): Local function which clears the table data of a
8328 (ui_out_destroy): Public function which frees a ui_out object.
8329 (ui_out_table_end): Use the new clear_table function.
8330 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
8332 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
8335 2013-02-11 Doug Evans <dje@google.com>
8337 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
8338 (printf_decfloat): New function. Broken out from ui_printf.
8339 Remove unnecessary code to shift the entire format string down.
8340 (printf_pointer): New function.
8341 (ui_printf): Code to print C strings, wide C strings, decfloats,
8342 and pointers moved to separate functions.
8344 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
8346 * valops.c (value_assign): Handling bitfield offset in
8347 `lval_internalvar_component' case.
8349 2013-02-08 Doug Evans <dje@google.com>
8351 * common/format.c (parse_format_string): Fix whitespace.
8353 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8355 * stack.c (return_command): Work around uninitialized variable
8358 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
8360 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
8361 number of the registers from 36 to 34.
8363 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8365 * NEWS: Mention new AArch64 native and target support.
8367 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8369 * MAINTAINERS (Write After Approval): Add myself.
8371 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
8372 Marcus Shawcroft <marcus.shawcroft@arm.com>
8373 Nigel Stephens <nigel.stephens@arm.com>
8374 Yufeng Zhang <yufeng.zhang@arm.com>
8376 * aarch64-linux-nat.c: New file.
8377 * config/aarch64/linux.mh: New file.
8378 * configure.host: Add AArch64.
8379 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
8381 2013-02-07 Doug Evans <dje@google.com>
8383 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
8384 disassemble command.
8386 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
8388 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
8389 set_gdbarch_fetch_tls_load_module_address.
8391 2013-02-06 David S. Miller <davem@davemloft.net>
8393 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
8394 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8395 * value.c (struct_return_convention): New function.
8396 (using_struct_return): Implement in terms of struct_return_convention.
8397 * value.h (struct_return_convention): Declare.
8398 * stack.c (return_command): Allow successful overriding of the return
8399 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8401 2013-02-06 Tom Tromey <tromey@redhat.com>
8403 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
8404 outside of TRY_CATCH.
8406 2013-02-06 Yao Qi <yao@codesourcery.com>
8408 * mi/mi-interp.c: Include "tracepoint.h".
8409 (mi_tsv_modified): Declare.
8410 (mi_tsv_created, mi_tsv_deleted): Update declaration.
8411 (mi_interpreter_init): Call observer_attach_tsv_modified.
8412 (mi_tsv_modified): New.
8413 (mi_tsv_created, mi_tsv_deleted): Update.
8414 * tracepoint.c (trace_variable_command): Call
8415 observer_notify_tsv_modified if the initial value of tsv is
8417 (delete_trace_state_variable): Call
8418 observer_notify_tsv_deleted earlier.
8419 (trace_variable_command): Caller update.
8420 (create_tsv_from_upload): Likewise.
8421 * observer.sh: Declare "struct trace_state_variable".
8423 * NEWS: Mention the new MI notification "=tsv-modified".
8425 2013-02-05 Doug Evans <dje@google.com>
8427 * completer.c (location_completer): Fix typo in comment.
8429 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8431 * breakpoint.c (add_location_to_breakpoint): Insert the location with
8434 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8436 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
8437 Refactor if statement to avoid trailing || operator.
8439 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
8441 * NEWS: Add PowerPC FreeBSD as a new native configuration.
8443 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
8445 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
8446 * configure.host: Add powerpc*-*-freebsd* target.
8447 * configure.tgt: Add target info for powerpc*-*-freebsd*.
8448 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
8449 * config/powerpc/fbsd.mh: New file.
8451 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
8452 Denys Vlasenko <dvlasenk@redhat.com>
8453 Pedro Alves <palves@redhat.com>
8455 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
8456 (struct elf_internal_linux_prpsinfo): Forward declare.
8457 * gdbarch.h, gdbarch.c: Regenerate.
8458 * linux-tdep.c: Include `cli/cli-utils.h'.
8459 (linux_fill_prpsinfo): New function.
8460 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
8461 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
8462 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
8463 depending on gdbarch pointer bitness.
8464 * ppc-linux-tdep.c: Include elf-bfd.h.
8465 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
8468 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8469 Marcus Shawcroft <marcus.shawcroft@arm.com>
8470 Nigel Stephens <nigel.stephens@arm.com>
8471 Yufeng Zhang <yufeng.zhang@arm.com>
8473 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
8475 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8476 Marcus Shawcroft <marcus.shawcroft@arm.com>
8477 Nigel Stephens <nigel.stephens@arm.com>
8478 Yufeng Zhang <yufeng.zhang@arm.com>
8480 * aarch64-newlib-tdep.c: New file.
8481 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
8483 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
8484 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
8485 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
8486 * osabi.c (gdb_osabi_names): Add "Newlib".
8488 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8489 Marcus Shawcroft <marcus.shawcroft@arm.com>
8490 Nigel Stephens <nigel.stephens@arm.com>
8491 Yufeng Zhang <yufeng.zhang@arm.com>
8493 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
8494 (ALLDEPFILES): Add aarch64-linux-tdep.c.
8495 * aarch64-linux-tdep.c: New file.
8496 * aarch64-linux-tdep.h: New file.
8497 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
8498 * configure.tgt: Add aarch64-none-linux-gnu.
8500 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8501 Marcus Shawcroft <marcus.shawcroft@arm.com>
8502 Nigel Stephens <nigel.stephens@arm.com>
8503 Yufeng Zhang <yufeng.zhang@arm.com>
8505 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
8506 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
8507 (ALLDEPFILES): Add aarch64-tdep.c.
8508 * aarch64-tdep.c: New file.
8509 * aarch64-tdep.h: New file.
8510 * configure.tgt: Add AArch64.
8511 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
8512 (aarch64-expedite): New definition.
8513 * features/aarch64-core.xml: New file.
8514 * features/aarch64-fpu.xml: New file.
8515 * features/aarch64-without-fpu.c: New file (generated).
8516 * features/aarch64-without-fpu.xml: New file.
8517 * features/aarch64.c: New file (generated).
8518 * features/aarch64.xml: New file.
8519 * regformats/aarch64-without-fpu.dat: New file (generated).
8520 * regformats/aarch64.dat: New file (generated).
8522 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8524 * contrib/expect-read1.c: New file.
8525 * contrib/expect-read1.sh: New file.
8527 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8529 * dwarf2read.c (file_file_name): New function with code from
8531 (file_full_name): Move most of the code to file_file_name.
8532 (macro_start_file): Rename variable full_name to file_name and use
8533 file_file_name for it. Add comp_dir parameter to new_macro_table.
8534 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
8535 macro_source_file->filename access by macro_source_fullname call.
8536 * macroscope.c (_initialize_macroscope): Update the new_macro_table
8538 * macrotab.c (struct macro_table): New field comp_dir.
8539 (macro_include): New variables link_fullname and source_fullname.
8540 Replace any macro_source_file->filename access by macro_source_fullname
8542 (macro_lookup_inclusion): Remove the partial filenames checking code.
8543 (check_for_redefinition): New variables source_fullname and
8544 found_key_fullname. Replace any macro_source_file->filename access by
8545 macro_source_fullname call.
8546 (macro_undef): New variables source_fullname and key_fullname. Replace
8547 any macro_source_file->filename access by macro_source_fullname call.
8548 (macro_lookup_definition): New variables retval and source_fullname.
8549 Replace any macro_source_file->filename access by macro_source_fullname
8551 (foreach_macro): New variable key_fullname. Replace any
8552 macro_source_file->filename access by macro_source_fullname call.
8553 (foreach_macro_in_scope): New variable datum_fullname. Replace any
8554 macro_source_file->filename access by macro_source_fullname call.
8555 (new_macro_table): Add parameter comp_dir. Initialize T with it.
8556 (macro_source_fullname): New function.
8557 * macrotab.h (struct macro_source_file): Extent the filename field
8559 (new_macro_table): New parameter comp_dir, add a comment for it.
8560 (macro_source_fullname): new declaration.
8562 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8564 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
8565 this_real_name to outer block. Use it also for
8566 compare_filenames_for_search.
8567 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
8568 with dw2_get_real_path for file_matcher, considering also
8569 BASENAMES_MAY_DIFFER.
8570 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
8572 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8574 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
8575 to the file_matcher parameter. Pass 0 to it.
8576 (dwarf2_create_include_psymtab): Copy also DIRNAME.
8577 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
8578 NULL psymtab_to_fullname result.
8579 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
8580 an expected filename instead.
8581 (expand_symtabs_matching_via_partial): Add basenames parameter to the
8582 file_matcher parameter. Call also psymtab_to_fullname, after newly
8583 considering BASENAMES_MAY_DIFFER.
8584 * source.c (rewrite_source_path): Remove static.
8585 * source.h (rewrite_source_path): New declaration.
8586 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
8587 the expand_symtabs_matching field. Comment it.
8588 * symtab.c (file_matches): New function comment. Add parameter
8589 basenames, implement it.
8590 (search_symbols_file_matches): Add basenames parameter. Update the
8591 file_matches caller.
8592 (search_symbols): Match FILES also against symtab_to_fullname.
8593 Optimize it for BASENAMES_MAY_DIFFER.
8595 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8597 * source.c (print_source_lines_base): Print for TUI also "fullname".
8598 * tui/tui-data.c (init_content_element): Change tui_locator_element
8600 * tui/tui-data.h (struct tui_locator_element): Likewise.
8601 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
8602 tui_update_locator_filename calls to tui_update_locator_fullname.
8603 Replace symtab->filename refererence by symtab_to_fullname call.
8604 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
8605 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
8606 field to full_name. Replace symtab->filename refererence by
8607 symtab_to_fullname call.
8608 (tui_show_symtab_source): Rename parameter to fullname. Change
8609 tui_locator_element field to full_name.
8610 * tui/tui-stack.c: Include source.h.
8611 (tui_set_locator_filename): Rename the declaration to ...
8612 (tui_set_locator_fullname): ... here. Rename its parameter to
8613 fullname, updates its comment.
8614 (tui_set_locator_info): Rename its parameter to fullname.
8615 (tui_set_locator_filename): Rename the definition to ...
8616 (tui_set_locator_fullname): ... here. Rename its parameter to
8617 fullname, updates its comment. Change tui_locator_element field to
8619 (tui_set_locator_info): Rename its parameter to fullname.
8620 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
8621 (tui_update_locator_filename): Rename to ...
8622 (tui_update_locator_fullname): ... here. Rename callee to
8623 tui_set_locator_fullname.
8624 (tui_show_frame_info): Replace symtab->filename refererence by
8625 symtab_to_fullname call.
8626 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
8627 (tui_update_locator_fullname): ... here.
8628 * tui/tui-winsource.c (tui_display_main): Rename the callee to
8629 tui_update_locator_fullname. Replace symtab->filename refererence by
8630 symtab_to_fullname call.
8631 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
8632 Rename the callee to tui_update_locator_fullname.
8633 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
8635 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8637 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
8638 by symtab_to_filename_for_display calls.
8639 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
8640 (clear_command): New variable sal_fullname, initialize it. Replace
8641 compare_filenames_for_search by filename_cmp with sal_fullname.
8642 (say_where, update_static_tracepoint): Replace symtab->filename
8643 refererences by symtab_to_filename_for_display calls.
8644 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
8646 * dwarf2read.c: Include source.h.
8647 (fixup_go_packaging): Replace symtab->filename refererences by
8648 symtab_to_filename_for_display calls.
8649 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
8650 Replace symtab->filename refererences by symtab_to_filename_for_display
8652 (create_sals_line_offset, convert_linespec_to_sals): New variable
8653 fullname, initialize it, replace symtab->filename reference by the
8655 * linux-fork.c: Include source.h.
8656 (info_checkpoints_command): Replace symtab->filename refererences by
8657 symtab_to_filename_for_display calls.
8658 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
8659 by symtab_to_filename_for_display calls.
8660 * mdebugread.c: Include source.h.
8661 (psymtab_to_symtab_1): Replace symtab->filename refererences by
8662 symtab_to_filename_for_display calls.
8663 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8664 (mi_cmd_file_list_exec_source_files): Likewise.
8665 * printcmd.c: Include source.h.
8666 (build_address_symbolic): Replace symtab->filename refererences by
8667 symtab_to_filename_for_display calls.
8668 * psymtab.c (partial_map_symtabs_matching_filename)
8669 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
8670 with psymtab_to_fullname.
8671 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
8672 by symtab_to_filename_for_display calls.
8673 (stpy_get_filename): New variable filename, initialize it, use instead
8674 of symtab->filename refererences.
8675 (salpy_str): Make variable filename const char *. Replace
8676 symtab->filename refererences by symtab_to_filename_for_display calls.
8677 * skip.c: Include source.h and filenames.h.
8678 (skip_file_command): Remove const from the symtab variable. Replace
8679 symtab->filename refererences by symtab_to_fullname call.
8680 (function_name_is_marked_for_skip): New variables searched_for_fullname
8681 and fullname. Use them to search also with symtab's fullname.
8682 * source.c (find_source_lines): Replace symtab->filename refererences
8683 by symtab_to_filename_for_display calls.
8684 (print_source_lines_base): New variable filename, use it instead of
8685 symtab->filename. Replace symtab->filename refererences by
8686 symtab_to_filename_for_display calls.
8687 (line_info, forward_search_command): Replace symtab->filename
8688 refererences by symtab_to_filename_for_display calls.
8689 (reverse_search_command): Replace symtab->filename refererences by
8690 symtab_to_filename_for_display calls. New variable filename for it.
8691 * stack.c (frame_info): Likewise.
8692 * symmisc.c: Include source.h.
8693 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
8694 (maintenance_info_symtabs): Replace symtab->filename refererences by
8695 symtab_to_filename_for_display calls.
8696 * symtab.c (iterate_over_some_symtabs): Call
8697 compare_filenames_for_search also with symtab_to_fullname.
8698 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
8699 symtab->filename refererences by symtab_to_filename_for_display calls.
8700 (find_line_symtab): Replace symtab->filename refererences by
8701 symtab_to_filename_for_display calls.
8702 (file_matches): Replace filename_cmp by compare_filenames_for_search.
8703 (print_symbol_info): Make the last parameter const char *. New
8704 variable s_filename. Use it in the function.
8705 (symtab_symbol_info): Make the last_filename variable const char *.
8706 Replace symtab->filename refererences by symtab_to_filename_for_display
8708 (rbreak_command): New variable fullname. Use it. Replace
8709 symtab->filename refererence by symtab_to_filename_for_display call.
8710 * tracepoint.c (set_traceframe_context, trace_find_line_command)
8711 (print_one_static_tracepoint_marker): Replace symtab->filename
8712 refererences by symtab_to_filename_for_display calls.
8713 * tui/tui-source.c (tui_set_source_content): New variables filename and
8714 s_filename. Replace symtab->filename refererences by this variable.
8715 Replace other symtab->filename refererences by
8716 symtab_to_filename_for_display calls.
8718 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
8719 Jan Kratochvil <jan.kratochvil@redhat.com>
8721 Add a new variable that controls a way in which filenames are
8723 * NEWS (set filename-display): New entry.
8724 * source.c (filename_display_basename, filename_display_relative)
8725 (filename_display_absolute, filename_display_kind_names)
8726 (filename_display_string, show_filename_display_string)
8727 (symtab_to_filename_for_display): New.
8728 (_initialize_source): Added initialization of 'filename-display'
8730 * source.h (symtab_to_filename_for_display): Added declaration.
8731 * stack.c (print_frame): Added new variable and calling of a new
8732 function and condition with this variable. Changed third argument of
8733 calling of a function.
8735 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8737 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
8738 Rename field reference filename to fullname.
8739 * tui/tui-data.h (struct tui_source_info): Rename field filename to
8740 fullname. New comment for it.
8741 * tui/tui-source.c (tui_set_source_content): Rename field reference
8742 filename to fullname. Initialize field by symtab_to_fullname now.
8743 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
8744 reference filename to fullname. Use symtab_to_fullname during
8747 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8750 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
8751 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
8752 filename to fullname. Rename variable this_name to this_fullname.
8753 Lowercase FILENAME_CMP call.
8754 (dw2_find_symbol_file): New comment for the returned string.
8755 (dwarf2_gdb_index_functions): Rename the function to
8756 dw2_expand_symtabs_with_fullname.
8757 * psymtab.c (read_psymtabs_with_filename): Rename to ...
8758 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
8760 (psym_functions): Rename the function to read_psymtabs_with_fullname.
8761 * symfile.h (struct quick_symbol_functions): Rename field
8762 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
8763 parameter filename to fullname. Document returned string meaning for
8765 * symtab.c (find_line_symtab): Rename the called function to
8766 expand_symtabs_with_fullname.
8768 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8771 * breakpoint.c (clear_command): Remove variable is_abs, unify the
8772 call of filename_cmp with compare_filenames_for_search.
8773 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
8774 is_abs, unify the call of FILENAME_CMP with
8775 compare_filenames_for_search. New gdb_asserts for real_path and name.
8776 Unify the call of compare_filenames_for_search with FILENAME_CMP.
8777 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8778 * symfile.h (struct quick_symbol_functions): Extend the comment for
8779 map_symtabs_matching_filename.
8780 * symtab.c (compare_filenames_for_search): Remove the function comment
8781 relative path requirement. Handle absolute filenames, with a comment.
8782 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
8783 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
8784 real_path and name. Unify the call of compare_filenames_for_search
8786 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
8788 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8791 * breakpoint.c (print_breakpoint_location): Replace bp_location field
8792 source_file references by symtab field references. Remove variables
8794 (momentary_breakpoint_from_master, add_location_to_breakpoint):
8795 (clear_command, say_where): Replace bp_location field source_file
8796 references by symtab field references.
8797 (bp_location_dtor): Remove the source_file reference.
8798 (update_static_tracepoint): Replace bp_location field source_file
8799 references by symtab field references.
8800 (breakpoint_free_objfile): New function.
8801 * breakpoint.h (struct bp_location): Extend the comment for line_number.
8802 Replace the field source_file by field symtab, extend its comment.
8803 (breakpoint_free_objfile): New declaration.
8804 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
8805 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
8806 field source_file references by symtab field references.
8808 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8810 Replace xfullpath calls by gdb_realpath calls.
8811 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
8813 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
8814 Remove it from the iterate_over_some_symtabs call.
8815 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
8816 Remove it from the dw2_map_expand_apply calls, remove a block handling
8818 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
8819 Remove it from the iterate_over_some_symtabs call.
8820 (partial_map_symtabs_matching_filename): Remove parameter full_path.
8821 Remove it from the partial_map_expand_apply calls, remove a block
8822 handling it. Drop gdb_realpath call and cleanups from the real_path
8824 * source.c (openp): Drop the comment part about xfullpath. Replace
8825 xfullpath calls by gdb_realpath calls.
8826 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
8827 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
8828 from method map_symtabs_matching_filename and its comment.
8829 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
8831 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
8832 remove it also from the function comment, remove a block handling it.
8833 Drop gdb_realpath call and cleanups from the real_path handling.
8834 (iterate_over_symtabs): Drop variable full_path and its use.
8835 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
8836 * utils.c (xfullpath): Remove.
8837 * utils.h (xfullpath): Remove.
8839 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
8841 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
8842 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
8843 (ALLDEPFILES): Add ppc64-tdep.c.
8844 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
8845 ppc64-tdep.o to gdb_target_obs.
8846 * ppc64-tdep.h: New file.
8847 * ppc64-tdep.c: New file.
8848 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
8849 ppc-linux-tdep.c to here.
8850 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
8851 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
8852 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
8853 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
8854 from ppc-linux-tdep.c to here.
8855 (ppc64_convert_from_func_ptr_addr): Rename from
8856 ppc64_linux_convert_from_func_ptr_addr to
8857 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
8860 (read_insn): Move from ppc-linux-tdep.c to here.
8861 (insns_match_pattern, insn_d_field, insn_ds_field): Move
8862 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
8863 * ppc-linux-tdep.c: Include ppc64-tdep.h.
8864 Removed above functions.
8865 (ppc_linux_init_abi): Adjust.
8867 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8869 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
8871 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
8873 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
8875 2013-02-01 Pedro Alves <palves@redhat.com>
8877 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
8878 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
8880 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8882 * elfread.c (elf_symfile_read): Limit separate debug info additions to
8883 files with no separate debug info.
8884 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
8885 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
8886 only for files with no separate debug info.
8888 2013-01-31 Tom Tromey <tromey@redhat.com>
8890 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
8892 (struct jit_program_space_data): Rename from jit_inferior_data.
8894 (get_jit_program_space_data): Rename from get_jit_inferior_data.
8895 Change return type. Attach data to program space.
8896 (jit_program_space_data_cleanup): Rename from
8897 jit_inferior_data_cleanup; change argument type.
8898 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
8900 (jit_register_code): Update.
8901 (jit_update_inferior_cache): Remove.
8902 (jit_breakpoint_deleted): Get jit data from the location's program
8904 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
8905 'ps_data', change type.
8906 (jit_inferior_init, jit_breakpoint_re_set_internal)
8907 (jit_event_handler): Update.
8908 (free_objfile_data): Get data from objfile's program space.
8909 (_initialize_jit): Update.
8911 2013-01-31 Tom Tromey <tromey@redhat.com>
8914 * jit.c (struct jit_inferior_data) <cached_code_address,
8915 jit_breakpoint>: New fields.
8916 (jit_breakpoint_re_set_internal): Fix logging. Only create
8917 breakpoint if cached address has changed.
8918 (jit_update_inferior_cache, jit_breakpoint_deleted): New
8920 (_initialize_jit): Register breakpoint deleted observer.
8922 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8924 * infrun.c (handle_syscall_event): Remove unused gdbarch.
8925 (save_infcall_suspend_state): Ifdef out unused inf.
8926 (restore_infcall_suspend_state): Ifdef out unused inf.
8927 * jit.c (jit_register_code): Remove unused i, b, inf_data.
8928 (jit_frame_sniffer): Remove unused inf_data.
8930 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8932 * c-exp.y (classify_inner_name): Remove unused type.
8933 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
8934 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
8936 (c_get_string): Remove unused kind.
8937 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
8939 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8941 * charset.c (intermediate_encoding): Remove unused i.
8942 * completer.c (signal_completer): Remove unused i.
8943 * continuations.c (discard_my_continuations_1): Remove unused
8945 * corelow.c (core_close): Remove unuseD name.
8946 (get_core_siginfo): Remove unused pid.
8947 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
8949 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
8950 (loclist_describe_location): Remove unused first.
8951 * event-top.c (command_line_handler): Remove unused got_eof.
8952 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
8953 (resize_section_table): Remove unused old_value.
8954 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
8955 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
8956 * i386-tdep.c (i386_process_record): Remove unused rex.
8957 * infcmd.c (get_return_value): Remove unused uiout.
8958 * jv-lang.c (type_from_class): Remove unused is_array.
8959 * jv-valprint.c (java_val_print): Remove unused i.
8960 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
8961 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
8962 * m2-typeprint.c (m2_print_type): Remove unused code.
8963 * macroexp.c (get_character_constant): Remove unused body_start.
8964 (macro_stringify): Remove unused result.
8965 * objc-lang.c (find_methods): Remove unused gdbarch.
8966 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
8967 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
8968 * stack.c (print_frame_args): Remove unused summary.
8969 * thread.c (thread_apply_command): Remove unused p.
8970 * valarith.c (value_x_unop): Remove unused mangle_ptr.
8971 * valops.c (search_struct_method): Remove unused skip.
8972 * valprint.c (generic_val_print): Remove unused byte_order.
8973 * varobj.c (varobj_update): Remove unused changed.
8974 * cli/cli-cmds.c (complete_command): Remove unused next_item.
8975 (alias_command): Remove unused c.
8976 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
8977 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
8979 (mi_cmd_data_write_memory): Remove unused word_format.
8980 (mi_cmd_data_write_memory_bytes): Remove unused r.
8981 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
8983 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
8984 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
8987 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
8989 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
8990 * symtab.c (iterate_over_symtabs): Remove unused s.
8991 (find_pc_sect_symtab): Remove unused pspAce.
8992 (find_pc_sect_line): Remove unused alt_symtab.
8993 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
8994 (completion_list_add_name): Remove unused newsize.
8996 2013-01-31 Tom Tromey <tromey@redhat.com>
8999 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
9002 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9004 * target.c (target_read_string): Remove unused origlen.
9006 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9008 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
9009 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
9010 * ax-general.c (ax_print): Remove unused is_float.
9011 * blockframe.c (block_innermost_frame): Remove unused start, end.
9012 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
9014 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9016 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
9017 (svr4_read_so_list): Remove unused lmo.
9018 * solib-target.c (solib_target_relocate_section_addresses): Remove
9021 2013-01-30 Tom Tromey <tromey@redhat.com>
9023 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
9025 2013-01-30 Tom Tromey <tromey@redhat.com>
9027 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
9028 * utils.c (gnu_debuglink_crc32): Remove.
9029 * utils.h (gnu_debuglink_crc32): Don't declare.
9031 2013-01-30 Tom Tromey <tromey@redhat.com>
9033 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
9034 (read_structure_type, read_enumeration_type): Remove cast.
9036 2013-01-30 Tom Tromey <tromey@redhat.com>
9038 * dwarf2read.c (read_namespace_type): Remove cast.
9039 (read_typedef): Likewise.
9041 2013-01-29 Tom Tromey <tromey@redhat.com>
9043 * dwarf2read.c (free_dwo_file): Remove assert.
9045 2013-01-29 Tom Tromey <tromey@redhat.com>
9047 * value.c (deprecated_set_value_modifiable): Remove.
9048 * value.h (deprecated_set_value_modifiable): Remove.
9050 2013-01-28 Doug Evans <dje@google.com>
9052 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
9053 to addresses from dwo files.
9055 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
9057 * valops.c (find_overload_match): Remove unused argument 'lax'.
9058 * value.h: Remove unused argument 'lax' from the declaration of
9059 find_overload_match.
9060 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
9061 to find_overload_match.
9062 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
9063 argument to find_overload_match.
9065 2013-01-25 Tom Tromey <tromey@redhat.com>
9067 * dwarf2read.c (processing_has_namespace_info): Remove.
9068 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
9069 (process_die, read_func_scope, dwarf2_start_symtab)
9070 (new_symbol_full): Update.
9072 2013-01-25 Tom Tromey <tromey@redhat.com>
9074 * cp-namespace.c (cp_set_block_scope): Remove.
9075 * cp-support.h (cp_set_block_scope): Remove.
9076 * dbxread.c: Include block.h.
9077 (cp_set_block_scope): New function.
9078 (process_one_symbol): Update.
9079 * dwarf2read.c (read_func_scope): Use block_set_scope.
9081 2013-01-25 Pedro Alves <palves@redhat.com>
9083 * remote.c (add_current_inferior_and_thread): Tweak comment.
9085 2013-01-25 Tom Tromey <tromey@redhat.com>
9087 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
9088 (cp_add_using_directive): Add 'copy_names' argument.
9089 * cp-support.h (cp_add_using_directive): Update.
9090 (struct using_direct) <import_src, import_dest, alias,
9091 declaration>: Now const.
9092 * dwarf2read.c (read_import_statement): Use obconcat.
9093 Don't copy names passed to cp_add_using_directive.
9095 2013-01-25 Tom Tromey <tromey@redhat.com>
9097 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
9099 2013-01-25 Pedro Alves <palves@redhat.com>
9101 * remote.c (stop_reply_extract_thread): New.
9102 (add_current_inferior_and_thread): New parameter 'wait_status'.
9104 (remote_start_remote): Pass wait status to
9105 add_current_inferior_and_thread.
9106 (extended_remote_run): Update comment.
9107 (extended_remote_create_inferior_1): Pass wait status to
9108 add_current_inferior_and_thread.
9110 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
9111 Ulrich Weigand <uweigand@de.ibm.com>
9113 * valarith.c (value_vector_widen): New function for replicating a
9114 scalar into a vector.
9115 (value_binop): Use value_vector_widen to widen scalar to vector
9116 rather than casting, this better matches gcc C behaviour.
9117 * valops.c (value_casst): Update logic for casting between vector
9118 types, and for casting from scalar to vector, try to match gcc C
9120 * value.h (value_vector_widen): Declare.
9121 * opencl-lang.c (opencl_value_cast): New opencl specific casting
9122 function, handle special case for casting scalar to vector.
9123 (opencl_relop): Use opencl_value_cast.
9124 (evaluate_subexp_opencl): Use opencl_value_cast instead of
9125 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
9126 in order to use opencl_value_cast.
9128 2013-01-25 Yao Qi <yao@codesourcery.com>
9130 * event-loop.c: Include "queue.h".
9131 (gdb_event_p): New typedef.
9132 (DECLARE_QUEUE_P): Use.
9133 (DEFINE_QUEUE_P): Use.
9134 (async_queue_event): Remove.
9135 (gdb_event_xfree): New.
9136 (initialize_event_loop): New.
9137 (process_event): Use QUEUE macros.
9138 (event_queue): Remove.
9139 (gdb_wait_for_event): Caller update.
9140 (check_async_event_handlers): Likewise.
9141 (poll_timers): Likewise.
9142 * event-loop.h (initialize_event_loop): Declare.
9143 * event-loop.c (gdb_event_xfree): New.
9144 * top.c (gdb_init): Call initialize_event_loop.
9146 2013-01-25 Yao Qi <yao@codesourcery.com>
9148 * event-loop.c (async_queue_event): Remove one parameter
9149 'position'. Remove code handling 'position' == TAIL.
9150 (gdb_wait_for_event): Caller update.
9151 (check_async_event_handlers): Caller update.
9152 (poll_timers): Caller update.
9153 * event-loop.h (enum queue_position): Remove.
9155 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
9157 * MAINTAINERS: Update my email.
9159 2013-01-25 Yao Qi <yao@codesourcery.com>
9161 * main.c (print_gdb_help): Remove "--epoch" from the help
9164 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
9166 * symtab.c (skip_prologue_using_sal): Consider a file
9167 change the same as an increased line number
9169 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9171 * MAINTAINERS (Write After Approval): Add myself to the list.
9173 2013-01-24 Tom Tromey <tromey@redhat.com>
9175 * ada-lang.h (ada_decode_symbol): Make return type const.
9176 * ada-lang.c (ada_decode_symbol): Likewise.
9178 2013-01-23 Doug Evans <dje@google.com>
9180 * linespec.c (find_linespec_symbols): Make static.
9182 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9184 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
9185 type on float conversion for complex type.
9187 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
9189 Add a new class gdb.Architecture which exposes GDB's
9190 internal representation of architecture via GDB Python API.
9191 * Makefile.in: Add entries corresponding to the new file
9193 * NEWS (Python Scripting): Add entries for the new class
9194 gdb.Architecture and the new method gdb.Frame.architecture.
9195 * python/py-arch.c: Implement gdb.Architecture class.
9196 * python/py-frame.c (frapy_arch): Implement the method
9197 gdb.Frame.architecture().
9198 (frame_object_methods): Add 'architecture' to the method table.
9199 * python/python-internal.h: Add declarations of new utility
9201 * python/python.c (_initialize_python): Initialize
9202 gdb.Architecture class.
9204 2013-01-23 Doug Evans <dje@google.com>
9206 Work around binutils/15021.
9207 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
9208 type_unit_group out of union s. All uses updated.
9209 (read_index_from_section): Watch for index version 8.
9210 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
9212 (write_psymtabs_to_index): Increment version number to 8.
9214 2013-01-22 Pedro Alves <palves@redhat.com>
9216 * annotate.c (breakpoint_changed): Skip if breakpoint is not
9219 2013-01-22 Pedro Alves <palves@redhat.com>
9221 * annotate.c (annotate_breakpoints_changed): Rename to ...
9222 (annotate_breakpoints_invalid): ... this. Make static.
9223 (breakpoint_changed): Adjust.
9224 (_initialize_annotate): Always install the observers. Install a
9225 "breakpoint_created" observer.
9226 * annotate.h (annotate_breakpoints_changed): Delete declaration.
9227 * breakpoint.c (set_breakpoint_condition)
9228 (breakpoint_set_commands, do_map_commands_command)
9229 (init_raw_breakpoint, clear_command, set_ignore_count)
9230 (enable_breakpoint_disp): No longer call
9231 annotate_breakpoints_changed.
9233 2013-01-22 Pedro Alves <palves@redhat.com>
9235 * annotate.c: Include "inferior.h".
9236 (frames_invalid_emitted)
9237 (breakpoints_invalid_emitted): New globals.
9238 (async_background_execution_p): New function.
9239 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
9240 emitting the annotation if it has already been emitted.
9241 (annotate_display_prompt): New function.
9242 * annotate.h (annotate_display_prompt): New declaration.
9243 * event-top.c: Include annotate.h.
9244 (display_gdb_prompt): Call annotate_display_prompt.
9246 2013-01-22 Pedro Alves <palves@redhat.com>
9248 * annotate.c (ignore_count_changed): Delete.
9249 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
9250 (annotate_ignore_count_change): Delete.
9251 (annotate_stopped): Don't emit a delayed breakpoints-changed
9253 * annotate.h (annotate_ignore_count_change): Delete.
9254 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
9255 annotate_ignore_count_change.
9257 2013-01-22 Tom Tromey <tromey@redhat.com>
9259 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
9260 require_rvalue for a register location.
9262 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
9264 * breakpoint.c (print_one_breakpoint_location): Add MI
9265 field 'thread-groups' when printing a breakpoint.
9266 (output_thread_groups): New function.
9268 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
9270 * python/lib/gdb/commands/explore.py
9271 (CompoundExplorer.explore_expr): Correct the name of a method
9273 (ExploreTypeCommand.invoke): Add a missing 'return'.
9275 2013-01-21 Tom Tromey <tromey@redhat.com>
9277 * gdb_obstack.h (obconcat): Move declaration here, from...
9278 * symfile.h (obconcat): ... here.
9279 * gdb_obstack.c: New file.
9280 (obconcat): Move from...
9281 * symfile.c (obconcat): ... here.
9282 * Makefile.in (SFILES): Add gdb_obstack.c.
9283 (COMMON_OBS): Add gdb_obstack.o.
9285 2013-01-21 Tom Tromey <tromey@redhat.com>
9287 * symfile.h (obsavestring): Don't declare.
9288 * symfile.c (obsavestring): Remove.
9289 * ada-exp.y: Use obstack_copy0, not obsavestring.
9290 * ada-lang.c: Use obstack_copy0, not obsavestring.
9291 * coffread.c: Use obstack_copy0, not obsavestring.
9292 * cp-namespace.c: Use obstack_copy0, not obsavestring.
9293 * dbxread.c: Use obstack_copy0, not obsavestring.
9294 * dwarf2read.c: Use obstack_copy0, not obsavestring.
9295 * jit.c: Use obstack_copy0, not obsavestring.
9296 * mdebugread.c: Use obstack_copy0, not obsavestring.
9297 * psymtab.c: Use obstack_copy0, not obsavestring.
9298 * stabsread.c: Use obstack_copy0, not obsavestring.
9299 * xcoffread.c: Use obstack_copy0, not obsavestring.
9301 2013-01-21 Tom Tromey <tromey@redhat.com>
9303 * dwarf2read.c (fixup_go_packaging): Save package name
9305 * gdbtypes.c (init_type): Don't copy name.
9307 2013-01-21 Tom Tromey <tromey@redhat.com>
9309 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
9311 (struct attribute) <u.str>: Now const.
9312 (struct fnfieldlist) <name>: Now const.
9313 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
9314 (partial_die_parent_scope): Make return type const.
9315 (partial_die_full_name, add_partial_symbol): Update.
9316 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
9318 (find_file_and_directory): Make 'name' and 'comp_dir' const.
9319 (read_file_scope, read_func_scope, dwarf2_add_field)
9320 (dwarf2_add_member_fn, read_structure_type)
9321 (process_enumeration_scope, read_array_type, read_module_type)
9322 (read_base_type, read_subrange_type): Update.
9323 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
9324 (new_symbol_full, guess_full_die_structure_name): Update.
9325 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
9326 (dwarf2_name): Return const type.
9327 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
9330 2013-01-21 Tom Tromey <tromey@redhat.com>
9332 * gdbtypes.c (init_type): Make 'name' const.
9333 * gdbtypes.h (init_type): Update.
9335 2013-01-21 Tom Tromey <tromey@redhat.com>
9337 * buildsym.c (patch_subfile_names): Use set_last_source_file.
9338 (start_symtab): Make 'name' and 'dirname' const. Use
9339 set_last_source_file.
9340 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
9341 (last_source_file): Define. Now static.
9342 (set_last_source_file, get_last_source_file): New functions.
9343 * buildsym.h (last_source_file): Don't declare.
9344 (start_symtab): Update.
9345 (set_last_source_file, get_last_source_file): Declare.
9346 * coffread.c (complete_symtab): Use set_last_source_file.
9347 (coff_end_symtab): Likewise.
9348 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
9349 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
9350 set_last_source_file.
9351 (process_one_symbol): Use get_last_source_file.
9352 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
9353 (psymtab_to_symtab_1): Use get_last_source_file.
9354 * xcoffread.c (process_linenos): Use get_last_source_file.
9355 (complete_symtab): Use set_last_source_file.
9356 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
9357 (scan_xcoff_symtab): Use set_last_source_file.
9359 2013-01-21 Tom Tromey <tromey@redhat.com>
9361 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
9362 (symbol_set_names): Remove casts. Handle field const-ness.
9364 2013-01-21 Tom Tromey <tromey@redhat.com>
9366 * dwarf2read.c (new_symbol_full): Remove cast.
9367 * symtab.c (symbol_set_demangled_name): Make 'name' const.
9368 * symtab.h (symbol_set_demangled_name): Update.
9370 2013-01-21 Tom Tromey <tromey@redhat.com>
9372 * main.c (captured_main): Call bfd_init.
9374 2013-01-21 Tom Tromey <tromey@redhat.com>
9376 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
9377 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
9378 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
9381 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9383 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
9385 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9387 Fix gdb.fortran/common-block.exp crash in PIE mode.
9388 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
9390 * f-valprint.c (info_common_command_for_block): Expect
9391 LOC_COMMON_BLOCK in gdb_assert.
9392 * symtab.h (struct general_symbol_info): Update comment for the
9393 common_block member.
9394 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
9395 (enum address_class): New member LOC_COMMON_BLOCK.
9397 2013-01-18 David Blaikie <dblaikie@gmail.com>
9399 * MAINTAINERS (Write After Approval): Add "David Blaikie".
9401 2013-01-18 Tom Tromey <tromey@redhat.com>
9404 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
9405 Call require_rvalue.
9407 2013-01-18 Yao Qi <yao@codesourcery.com>
9409 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
9410 (dbx_read_symtab): New declaration.
9411 (dbx_psymtab_to_symtab): Delete.
9412 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
9413 Rename parameter PST to SELF. Exchanged two parameters.
9414 (start_psymtab): Caller update.
9415 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
9416 (dwarf2_read_symtab): New declaration.
9417 (dwarf2_psymtab_to_symtab): Delete.
9418 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
9419 Rename parameter PST to SELF. Exchanged two parameters.
9420 (create_partial_symtab): Caller update.
9421 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
9422 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
9423 Rename parameter PST to SELF. Exchanged two parameters.
9424 (parse_partial_symbols, new_psymtab): Caller update.
9425 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
9427 * psymtab.c (psymtab_to_symtab): Caller update.
9428 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
9429 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
9430 Rename parameter PST to SELF. Exchanged two parameters.
9431 (xcoff_start_psymtab): Caller update.
9433 2013-01-18 Yao Qi <yao@codesourcery.com>
9435 * infrun.c (proceed): Rename local variable 'oneproc' to
9438 2013-01-17 Doug Evans <dje@google.com>
9440 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
9441 (dw2_build_type_unit_groups): Delete. All uses updated.
9443 * symtab.h (struct symbol_search): Add comment.
9445 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9447 * symtab.c (compare_filenames_for_search): New comment for
9450 2013-01-17 Tom Tromey <tromey@redhat.com>
9452 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
9454 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9456 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
9457 initialize it by existing make_cleanup. Call new do_cleanups.
9459 2013-01-17 Tom Tromey <tromey@redhat.com>
9461 * cp-abi.c (cp_abi_completer): New function.
9462 (_initialize_cp_abi): Set completer for "set cp-abi".
9464 2013-01-17 Tom Tromey <tromey@redhat.com>
9466 * mem-break.c: Remove obsolete comment.
9467 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
9469 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9471 * jit.c (jit_reader_load_command): Interpret the jit reader name
9472 as an absolute path if it begins with a forward slash.
9474 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9478 * jit.c (finalize_symtab): Ensure that only the global block has a
9481 2013-01-17 Pedro Alves <palves@redhat.com>
9483 * acinclude.m4: Include ../config/plugins.m4,
9484 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
9485 * Makefile.in (aclocal_m4_deps): Update.
9486 * aclocal.m4: Renegerate.
9488 2013-01-16 Doug Evans <dje@google.com>
9490 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
9492 2013-01-16 Pedro Alves <palves@redhat.com>
9493 Tom Tromey <tromey@redhat.com>
9496 * NEWS: Add "catch signal".
9497 * breakpoint.c (base_breakpoint_ops): No longer static.
9498 (bpstat_explains_signal): New function.
9499 (init_catchpoint): No longer static.
9500 (base_breakpoint_explains_signal): New function.
9501 (base_breakpoint_ops): Initialize new field.
9502 * breakpoint.h (enum bpstat_signal_value): New.
9503 (struct breakpoint_ops) <explains_signal>: New field.
9504 (bpstat_explains_signal): Remove macro, declare as function.
9505 (base_breakpoint_ops, init_catchpoint): Declare.
9506 * break-catch-sig.c: New file.
9507 * inferior.h (signal_catch_update): Declare.
9508 * infrun.c (signal_catch): New global.
9509 (handle_syscall_event): Update for change to
9510 bpstat_explains_signal.
9511 (handle_inferior_event): Likewise. Always handle random signals
9513 (signal_cache_update): Check signal_catch.
9514 (signal_catch_update): New function.
9515 (_initialize_infrun): Initialize signal_catch.
9516 * Makefile.in (SFILES): Add break-catch-sig.c.
9517 (COMMON_OBS): Add break-catch-sig.o.
9519 2013-01-16 Tom Tromey <tromey@redhat.com>
9521 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
9522 (print_one_catch_solib, print_one_catch_syscall)
9523 (print_one_catch_exec, print_one_exception_catchpoint): Emit
9526 2013-01-16 Yao Qi <yao@codesourcery.com>
9528 * printcmd.c (current_display_number): Make it static.
9530 2013-01-16 Yao Qi <yao@codesourcery.com>
9532 * infcmd.c (step_once): Don't check '!single_inst' as it was
9535 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9537 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
9539 2013-01-14 Tom Tromey <tromey@redhat.com>
9541 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
9543 * command.h (add_setshow_string_noescape_cmd): Update.
9544 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
9545 (complete_set_gnutarget): New function.
9546 (_initialize_core): Set the "set gnutarget" completer.
9548 2013-01-14 Tom Tromey <tromey@redhat.com>
9551 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
9552 (c_type_print_modifier): Likewise.
9553 * dwarf2read.c (read_tag_restrict_type): New function.
9554 (read_type_die_1): Handle DW_TAG_restrict_type.
9555 * gdbtypes.c (make_restrict_type): New function.
9556 (recursive_dump_type): Handle TYPE_RESTRICT.
9557 * gdbtypes.h (enum type_flag_values): Renumber.
9558 (enum type_instance_flag_value): Add
9559 TYPE_INSTANCE_FLAG_RESTRICT.
9560 (TYPE_RESTRICT): New macro.
9561 (make_restrict_type): Declare.
9563 2013-01-14 Tom Tromey <tromey@redhat.com>
9566 * psymtab.c (struct psymtab_state): New.
9567 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
9569 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
9570 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
9572 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
9573 Pedro Alves <palves@redhat.com>
9577 * remote.c (remote_threads_info): Make a copy of the reply from
9578 qfThreadInfo and use that instead of rs->buf.
9580 2013-01-14 Yao Qi <yao@codesourcery.com>
9582 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
9583 (dbx_psymtab_to_symtab): Likewise.
9584 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
9585 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
9586 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
9588 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9590 * parse.c (parse_exp_in_context): New variable inner_chain. Call
9591 make_cleanup_restore_current_language. Call set_language. Move
9592 OLD_CHAIN and INNER_CHAIN cleanups.
9593 * utils.c (do_restore_current_language)
9594 (make_cleanup_restore_current_language): New functions.
9595 * utils.h (make_cleanup_restore_current_language): New declaration.
9597 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9599 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
9602 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
9603 non-existing files if FILENAME is already absolute.
9605 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9607 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
9608 fputs_filtered. Append trailing newline.
9610 2013-01-11 Yao Qi <yao@codesourcery.com>
9611 Stan Shebs <stan@codesourcery.com>
9613 * psymtab.c (init_psymbol_list): Clarify the comment.
9615 2013-01-11 Yao Qi <yao@codesourcery.com>
9617 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
9618 (update_dprintf_command_list): Assert that 'printf_line' is
9619 non-null. Remove condition check.
9621 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9624 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
9626 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
9628 * tui/tui-source.h (tui_source_is_displayed): Likewise.
9630 2013-01-09 Anthony Green <green@moxielogic.com>
9632 * cp-abi.c (cplus_print_vtable): Don't return value from void
9634 * ada-lang.c (re_set_catch_assert): Ditto.
9636 2013-01-09 Doug Evans <dje@google.com>
9638 * symfile.h (quick_symbol_functions): Delete member
9639 pre_expand_symtabs_matching. All uses removed.
9640 * dwarf2read.c (dw2_lookup_symbol): Implement.
9641 (dw2_do_expand_symtabs_matching): Delete.
9642 (dw2_pre_expand_symtabs_matching): Delete.
9643 (struct dw2_symtab_iterator): New type.
9644 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
9645 (dw2_expand_symtabs_for_function): Rewrite.
9646 (dwarf2_gdb_index_functions): Update.
9647 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
9648 (psym_functions): Update.
9650 2013-01-09 Tom Tromey <tromey@redhat.com>
9652 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
9653 * configure: Rebuild.
9654 * configure.ac: Add somread.o to the build if BFD has SOM
9656 * somread.c: Include som/aout.h, not syms.h.
9657 (som_symtab_read): Use som_external_symbol_dictionary_record.
9658 Unpack records manually.
9659 (_initialize_somread): Declare.
9661 2012-01-08 Mike Frysinger <vapier@gentoo.org>
9663 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
9664 Cast return_address to 64bits.
9666 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
9668 * printcmd.c: Remove define of function output_command.
9669 * tracepoint.c: Remove extern of function output_command.
9670 * valprint.h: (output_command): New extern.
9672 2013-01-07 Tom Tromey <tromey@redhat.com>
9674 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
9676 (objc_language_defn): Use c_printchar, c_printstr,
9679 2013-01-07 Tom Tromey <tromey@redhat.com>
9683 * ada-valprint.c (printstr, print_field_values): Remove
9685 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
9687 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
9689 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
9690 * main.c (captured_main): Remove "epoch" argument.
9691 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
9692 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
9693 * p-valprint.c (pascal_object_print_value_fields): Remove
9695 * printcmd.c (print_command_1): Remove 'inspect' argument.
9696 (print_command, call_command): Update.
9697 (inspect_command): Remove.
9698 (_initialize_printcmd): Make "inspect" an alias for "print".
9699 * top.c (epoch_interface): Remove.
9700 * top.h (epoch_interface): Remove.
9701 * valprint.c (user_print_options): Update.
9702 (print_converted_chars_to_obstack): Remove "inspect_it" code.
9703 * valprint.h (struct value_print_options) <inspect_it>: Remove
9706 2013-01-04 Tom Tromey <tromey@redhat.com>
9708 * valprint.h (read_string): Add 'extern'.
9710 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9712 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
9713 used to decide whether to define darwin_read_dyld_info or not.
9715 2013-01-03 Pierre Muller <muller@sourceware.org>
9717 * main.c (relocate_gdb_directory): Avoid calling stat function
9720 2013-01-03 Yao Qi <yao@codesourcery.com>
9722 * psymtab.c (fixup_psymbol_section): Update declaration.
9723 (fixup_psymbol_section): Remove code returning value.
9725 2013-01-03 Yao Qi <yao@codesourcery.com>
9727 * symtab.h: Remove some out of date comments.
9728 (enum exception_event_kind): Move it ...
9729 * breakpoint.c: ... here.
9731 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
9734 * darwin-nat.c (darwin_read_dyld_info): Only build if
9735 TASK_DYLD_INFO_COUNT is defined.
9736 (darwin_xfer_partial): Call darwin_read_dyld_info only if
9737 TASK_DYLD_INFO_COUNT is defined.
9739 2013-01-02 Tom Tromey <tromey@redhat.com>
9741 * symfile.h (struct ecoff_debug_hack): Remove.
9742 * objfiles.c: Don't include mdebugread.h.
9744 2013-01-02 Tom Tromey <tromey@redhat.com>
9746 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
9747 * configure.ac: Check for Mach-O support in BFD. Update
9749 * configure: Rebuild.
9751 2013-01-02 Tom Tromey <tromey@redhat.com>
9753 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
9754 * configure.ac: Use GDB_AC_CHECK_BFD.
9755 * configure: Rebuild.
9757 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
9759 * MAINTAINERS: Update my email.
9761 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9763 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
9765 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9767 * rs6000-nat.c (bss_data_overlap): New function.
9768 (vmap_symtab): Use it to adjust the .bss section's offset.
9770 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9772 Update year range in copyright notice of all files.
9774 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
9776 * top.c (print_gdb_version): Update copyright year.
9778 For older changes see ChangeLog-2012.
9784 version-control: never