1 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Pass down original filename for objfile.
4 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
5 * elfread.c (elf_symfile_read): Likewise.
6 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
7 longer set ORIGINAL_NAME.
8 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
9 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
10 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
11 symbol_file_add_from_bfd call.
12 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
13 (macho_check_dsym): Add parameter filenamep. Change function comment.
15 (macho_symfile_read): New variable dsym_filename. Update
16 macho_check_dsym call. Use it for symbol_file_add_separate.
17 * objfiles.c (allocate_objfile): Add parameter name. New comment for
18 it. Use it for objfile->original_name.
19 (objfile_name): Return OBFD's filename, if available.
20 * objfiles.h (allocate_objfile): Add new parameter name.
21 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
22 * symfile-mem.c (symbol_file_add_from_memory): Update
23 symbol_file_add_from_bfd call.
24 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
26 (symbol_file_add_with_addrs): New parameter name, add function comment
27 for it. Remove variable name. Update allocate_objfile call.
28 (symbol_file_add_separate): New parameter name, add function comment
29 for it. Update symbol_file_add_with_addrs call.
30 (symbol_file_add_from_bfd): New parameter name. Update
31 symbol_file_add_with_addrs call.
32 (symbol_file_add): Update symbol_file_add_from_bfd call.
33 (reread_symbols): New variable original_name. Save
34 objfile->original_name by it.
35 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
38 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
40 Code cleanup: Add objfile_name accessor function.
41 * ada-lang.c (is_known_support_routine): Use objfile_name.
42 * auto-load.c (source_gdb_script_for_objfile)
43 (auto_load_objfile_script): Likewise.
44 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
45 * dbxread.c (dbx_symfile_read): Likewise.
46 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
47 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
48 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
49 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
50 (lookup_dwp_signatured_type, lookup_dwo_unit)
51 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
52 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
53 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
54 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
55 (dwarf2_record_block_ranges, read_common_block, read_typedef)
56 (read_subrange_type, load_partial_dies, read_partial_die)
57 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
58 (die_containing_type, build_error_marker_type, lookup_die_type)
59 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
60 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
61 (get_DW_AT_signature_type, write_psymtabs_to_index)
62 (save_gdb_index_command): Likewise.
63 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
65 * expprint.c (dump_subexp_body_standard): Likewise.
66 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
67 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
69 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
70 obj_name, use objfile_name for it, use the variable.
71 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
73 * machoread.c (macho_symtab_read, macho_check_dsym)
74 (macho_symfile_relocate): Likewise.
75 * maint.c (maintenance_translate_address): Likewise.
76 * minidebug.c (find_separate_debug_file_in_section): Likewise.
77 * minsyms.c (install_minimal_symbols): Likewise.
78 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
80 (filter_overlapping_sections): Use objfile_name.
81 (objfile_name): New function.
82 * objfiles.h (struct objfile): Rename field name to original_name.
83 (objfile_name): New prototype.
84 * printcmd.c (sym_info, address_info): Use objfile_name.
85 * probe.c (parse_probes, collect_probes, compare_probes)
86 (info_probes_for_ops): Likewise.
87 * progspace.c (clone_program_space): Likewise.
88 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
89 (maintenance_info_psymtabs): Likewise.
90 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
91 (source_section_scripts): Likewise.
92 * python/py-objfile.c (objfpy_get_filename): Likewise.
93 * python/py-progspace.c (pspy_get_filename): Likewise.
94 * solib-aix.c (solib_aix_get_toc_value): Likewise.
95 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
96 * solib.c (solib_read_symbols): Likewise.
97 * stabsread.c (scan_file_globals): Likewise.
98 * stap-probe.c (handle_stap_probe): Likewise.
99 * symfile.c (symbol_file_clear, separate_debug_file_exists)
100 (find_separate_debug_file_by_debuglink): Likewise.
101 (reread_symbols): Likewise. Use the objfile field name renamed to
103 (allocate_symtab): Use objfile_name.
104 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
105 (dump_objfile, dump_msymbols, dump_symtab_1)
106 (maintenance_print_msymbols, maintenance_print_objfiles)
107 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
108 * target.c (target_translate_tls_address, target_info): Likewise.
109 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
112 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
115 * probe.c (parse_probes): Rename variable objfile_name to
118 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
120 Remove solib-sunos.c.
121 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
122 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
123 * objfiles.c (rt_common_objfile): Remove.
124 (free_objfile): Remove rt_common_objfile comparison.
125 * objfiles.h (rt_common_objfile): Remove.
126 * solib-sunos.c: Remove.
127 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
129 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
131 Remove a.out NetBSD and OpenBSD hosts.
132 * NEWS (Removed native configurations): New.
133 * config/arm/nbsdaout.mh: Remove.
134 * config/i386/nbsdaout.mh: Remove.
135 * config/i386/obsdaout.mh: Remove.
136 * config/m68k/nbsdaout.mh: Remove.
137 * config/sparc/nbsdaout.mh: Remove.
138 * config/vax/nbsdaout.mh: Remove.
139 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
140 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
141 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
143 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
144 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
145 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
147 2013-09-23 Tom Tromey <tromey@redhat.com>
149 * linespec.c (struct minsym_and_objfile): Remove.
150 (minsym_and_objfile_d): Remove.
151 (struct linespec, struct collect_info, linespec_parse_basic)
152 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
153 (compare_msymbols, find_method, find_function_symbols)
154 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
155 (add_minsym, search_minsyms_for_name): Update.
157 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
159 * regcache.c: Add include of valprint.h.
160 (dump_endian_bytes): Delete.
161 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
163 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
165 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
167 2013-09-19 Pedro Alves <palves@redhat.com>
169 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
172 2013-09-19 Pedro Alves <palves@redhat.com>
173 Thomas Schwinge <thomas@codesourcery.com>
174 Yue Lu <hacklu.newborn@gmail.com>
176 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
177 Take a gdb_byte pointer instead of a char pointer.
179 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
180 gnu_xfer_partial helper.
181 (gnu_xfer_partial): New function.
182 (gnu_target): Don't install a deprecated_xfer_memory hook.
183 Install a to_xfer_partial hook.
185 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
188 * main.c (captured_main): Replace catch_command_errors by
189 catch_command_errors_const. Twice.
190 * symfile.c (symbol_file_add_main_1): Make args parameter const.
191 (symbol_file_add): Make name parameter const.
192 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
193 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
194 variable name. Change their usage accordingly.
195 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
197 (symbol_file_add_main): Make args parameter const.
199 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
200 Ulrich Weigand <uweigand@de.ibm.com>
202 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
204 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
206 2013-09-18 Pedro Alves <palves@redhat.com>
207 Yue Lu <hacklu.newborn@gmail.com>
209 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
210 (gnu_create_inferior)
211 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
212 (set_sig_thread_cmd): Use the lwpid field of ptids to
213 store/extract thread ids instead of the tid field.
214 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
216 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
218 * infcmd.c (default_print_one_register_info): Add detection of
219 optimized out values.
220 (default_print_registers_info): Switch to using
221 get_frame_register_value.
223 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
225 * infrun.c (handle_inferior_event): Check if we know the
226 function start address before setting a resume breakpoint.
228 2013-09-18 Pedro Alves <palves@redhat.com>
230 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
231 minus_one_ptid instead of looking at the ptid's tid field and
232 comparing that to -1.
234 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
236 * main.h (get_gdb_program_name): Remove extra whitespace.
238 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
240 * main.h (get_gdb_program_name): Add declaration.
241 * main.c (get_gdb_program_name): Add definition.
243 2013-09-17 Doug Evans <dje@google.com>
245 * dwarf2read.c: Move definitions of complaint functions to after
246 forward declarations of local functions.
248 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
249 Pedro Alves <palves@redhat.com>
252 * breakpoint.c (remove_threaded_breakpoints): New function.
253 (_initialize_breakpoint): Attach remove_threaded_breakpoints
254 as thread_exit observer.
256 2013-09-17 Pedro Alves <palves@redhat.com>
259 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
260 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
261 * corelow.c (core_open):
262 * frame.h (print_stack_frame, print_frame_info): New
263 'set_current_sal' parameter.
264 * infcmd.c (finish_command, kill_command): Adjust call to
266 * inferior.c (inferior_command): Likewise.
267 * infrun.c (normal_stop): Likewise.
268 * linux-fork.c (linux_fork_context): Likewise.
269 * record-full.c (record_full_goto_entry, record_full_restore):
271 * remote-mips.c (common_open): Likewise.
272 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
274 (print_frame_info): New 'set_current_sal' parameter. Set the last
275 displayed sal depending on the new paremeter instead of looking at
277 (backtrace_command_1, select_and_print_frame, frame_command)
278 (current_frame_command, up_command, down_command): Adjust call to
280 * thread.c (print_thread_info, restore_selected_frame)
281 (do_captured_thread_select): Adjust call to print_stack_frame.
282 * tracepoint.c (tfind_1): Likewise.
283 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
284 (mi_cmd_stack_info_frame): Likewise.
285 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
286 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
288 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
290 * value.c (isvoid_internal_fn): Replace "parameter" with
293 2013-09-16 Stan Shebs <stan@codesourcery.com>
295 * README: Update references to writing code for GDB.
296 * configure.ac (build_warnings): Remove obsolete comment.
297 * configure: Regenerate.
298 * gdbarch.sh: Remove references to gdbint.texinfo.
299 * gdbarch.h: Regenerate.
300 * gdbtypes.c (objfile_type): Remove comments referencing internals
303 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
305 * NEWS: Mention new convenience function $_isvoid.
306 * value.c (isvoid_internal_fn): New function.
307 (_initialize_values): Add new convenience function $_isvoid.
309 2013-09-16 Pierre Muller <muller@sourceware.org>
311 * arm-linux-tdep.c: Add "elf/common.h" header.
312 Remove AT_HWCAP macro definintion as it is provided in
314 * s390-tdep.c: Remove system header <elf.h>
315 Add "elf/common.h" header for AT_HWCAP definition.
316 (s390_core_read_description): Use correct CORE_ADDR
317 for hwcap local variable used as third parameter
318 of function target_auxv_search.
320 2013-09-14 Pierre Muller <muller@sourceware.org>
321 Tom Tromey <tromey@redhat.com>
322 Pedro Alves <palves@redhat.com>
324 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
325 mode if operating system doesn't know O_CLOEXEC.
327 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
330 * symfile.c (reread_symbols): Move variable obfd_filename to a more
333 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
335 * NEWS: Mention TDB support.
336 * features/s390-tdb.xml: New file.
337 * features/s390-te-linux64.xml: New file.
338 * features/s390x-te-linux64.xml: New file.
339 * features/Makefile (WHICH): Add new tdescs above.
340 (s390-te-linux64-expedite): Set.
341 (s390x-te-linux64-expedite): Set.
342 * features/s390-te-linux64.c: New file (generated).
343 * features/s390x-te-linux64.c: New file (generated).
344 * regformats/s390-te-linux64.dat: New file (generated).
345 * regformats/s390x-te-linux64.dat: New file (generated).
346 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
347 (HWCAP_S390_TE): Likewise.
348 (S390_TDB_DWORD0_REGNUM): Likewise.
349 (S390_TDB_DWORD0_REGNUM): Likewise.
350 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
351 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
352 (S390_TDB_ATIA_REGNUM): Likewise.
353 (S390_TDB_R0_REGNUM): Likewise.
354 (S390_TDB_R1_REGNUM): Likewise.
355 (S390_TDB_R2_REGNUM): Likewise.
356 (S390_TDB_R3_REGNUM): Likewise.
357 (S390_TDB_R4_REGNUM): Likewise.
358 (S390_TDB_R5_REGNUM): Likewise.
359 (S390_TDB_R6_REGNUM): Likewise.
360 (S390_TDB_R7_REGNUM): Likewise.
361 (S390_TDB_R8_REGNUM): Likewise.
362 (S390_TDB_R9_REGNUM): Likewise.
363 (S390_TDB_R10_REGNUM): Likewise.
364 (S390_TDB_R11_REGNUM): Likewise.
365 (S390_TDB_R12_REGNUM): Likewise.
366 (S390_TDB_R13_REGNUM): Likewise.
367 (S390_TDB_R14_REGNUM): Likewise.
368 (S390_TDB_R15_REGNUM): Likewise.
369 (S390_NUM_REGS): Increase.
370 (S390_IS_TDBREGSET_REGNUM): New macro.
371 (s390_regmap_tdb): Declare.
372 (s390_sizeof_tdbregset): Define.
373 (tdesc_s390_te_linux64): Declare.
374 (tdesc_s390x_te_linux64): Likewise.
375 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
376 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
377 (s390_regmap_tdb): New regmap.
378 (s390_supply_tdb_regset): New function.
379 (s390_tdb_regset): New regset.
380 (s390_linux64v2_regset_sections): Add TDB regset to list.
381 (s390x_linux64v2_regset_sections): Likewise.
382 (s390_regset_from_core_section): Recognize TDB core note section.
383 (s390_core_read_description): If HWCAP indicates TE support,
384 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
385 (s390_gdbarch_init): Handle TDB regset.
386 (_initialize_s390_tdep): Initialize new tdescs.
387 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
388 (have_regset_tdb): New variable.
389 (s390_native_supply): Support register invalidation.
390 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
391 (check_regset): Treat ENODATA as "regset exists".
392 (s390_linux_fetch_inferior_registers): Add TDB.
393 (s390_read_description): Check for TDB existence and select
395 * gdbserver/Makefile.in (clean): Add removal of new makefile
397 (s390-te-linux64.c): New makefile target.
398 (s390x-te-linux64.c): Likewise.
399 * gdbserver/configure.srv (srv_regobj): Append new objects
400 s390-te-linux64.o and s390x-te-linux64.o.
401 (srv_xmlfiles): Append new files s390-te-linux64.xml,
402 s390x-te-linux64.xml, and s390-tdb.xml.
403 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
405 (tdesc_s390_te_linux64): Likewise.
406 (init_registers_s390x_te_linux64): Likewise.
407 (tdesc_s390x_te_linux64): Likewise.
408 (s390_check_regset): Treat ENODATA as "regset exists".
409 (s390_arch_setup): Add TDB regset support.
410 (initialize_low_arch): Initialize registers for new tdescs.
412 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
414 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
415 (S390_IS_FPREGSET_REGNUM): New macro.
416 * s390-tdep.c (s390_dwarf_regmap): Make const.
417 (regnum_is_gpr_full): New function for replacing repeated code.
418 (s390_pseudo_register_name): Use it.
419 (s390_pseudo_register_type): Likewise.
420 (s390_pseudo_register_read): Likewise.
421 (s390_pseudo_register_write): Likewise.
422 (s390_unwind_pseudo_register): Likewise.
423 (s390_regmap_gregset): New format for regmap.
424 (s390x_regmap_gregset): Likewise.
425 (s390_regmap_fpregset): Likewise.
426 (s390_regmap_upper): Likewise.
427 (s390_regmap_last_break): Likewise.
428 (s390_regmap_system_call): Likewise.
429 (s390_supply_regset): Adjust to new regmap format.
430 (s390_collect_regset): Likewise.
431 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
432 (s390_native_collect): Likewise.
433 (supply_gregset): Likewise.
434 (fill_gregset): Likewise.
435 (supply_fpregset): Likewise.
436 (fill_fpregset): Likewise.
437 (fetch_regset): Likewise.
438 (store_regset): Likewise.
439 (s390_linux_fetch_inferior_registers): Likewise.
440 (s390_linux_fetch_inferior_registers): Likewise.
442 2013-09-12 Andrew Pinski <apinski@cavium.com>
444 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
446 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
448 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
450 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
452 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
454 2013-09-06 Pedro Alves <palves@redhat.com>
456 * remote-sim.c (dump_mem, gdbsim_fetch_register)
457 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
458 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
459 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
460 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
463 2013-09-06 Pedro Alves <palves@redhat.com>
465 * remote-sim.c (dump_mem): Constify buf parameter.
466 gdbsim_xfer_inferior_memory): Rename to ...
467 (gdbsim_xfer_memory): ... this. Adjust interface as
468 target_xfer_partial helper.
469 (gdbsim_xfer_partial): New function.
470 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
471 Install a to_xfer_partial hook. Send output to gdb_stdlog.
473 2013-09-06 Pedro Alves <palves@redhat.com>
475 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
476 host_address_to_string, and send debug output to gdb_stdlog.
478 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
480 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
481 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
482 gdb_target_obs for cris target.
483 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
484 (cris_gdbarch_init): Move calls to
485 set_gdbarch_fetch_tls_load_module_address and
486 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
487 Add call to gdbarch_init_osabi.
488 * cris-linux-tdep.c: New file.
489 * cris-tdep.h: New file.
491 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
493 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
494 to deprecated_init_ui_hook.
496 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
498 * cli/cli-interp.c (_initialize_cli_interp): Add a
499 command_loop_proc to interp_procs.
500 * event-top.c (cli_command_loop): Change signature to match
501 interp_command_loop_ftype.
502 * event-top.h (cli_command_loop): Same.
503 * interps.c (interp_new): Require every interpreter to have a
505 (current_interp_command_loop): Just call the command_loop_proc on
506 the current interpreter.
507 * tui/tui-interp.c (_initialize_tui_interp): Add a
508 command_loop_proc to interp_procs.
510 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
512 * cris-tdep.c (cris_gdbarch_init): Add call to
513 get_gdbarch_fetch_tls_load_module_address.
515 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
517 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
518 (cris_elf_gregset_t): Rename from elf_gregset_t.
519 (crisv32_elf_gregset_t): Adjust.
520 (cris_supply_gregset, fetch_core_registers): Adjust.
522 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
524 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
526 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
528 * defs.h (deprecated_command_loop_hook): Remove, including
529 references in comments.
530 * interps.c (current_interp_command_loop): No longer use
531 deprecated_command_loop_hook.
532 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
534 * top.c (deprecated_command_loop_hook): Remove.
536 2013-09-05 Pedro Alves <palves@redhat.com>
538 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
539 local is now int instead of ULONGEST. Print it with %d
542 2013-09-05 Tristan Gingold <gingold@adacore.com>
544 * MAINTAINERS: Remove avr maintainership.
546 2013-09-05 Pedro Alves <palves@redhat.com>
548 * findvar.c (value_of_register): Rework in terms of
549 value_of_register_lazy.
551 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
553 * symfile.c (add_symbol_file_command): Remove trailing
554 whitespaces and blank line after comment.
556 2013-09-05 Pedro Alves <palves@redhat.com>
558 * tui/tui-regs.c (tui_register_format): Don't look at the
559 register's name here. Return string representing register
560 value instead of storing it in the data element.
561 (tui_get_register): Compare register string representations
562 instead of register value states and contents.
564 2013-09-05 Pedro Alves <palves@redhat.com>
567 * tui/tui-regs.c (tui_show_registers): Show registers of the
568 selected frame, not the current frame.
570 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
572 * MAINTAINERS (Write After Approval): Add myself to the list.
574 2013-09-04 Doug Evans <dje@google.com>
576 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
577 (queue_and_load_dwo_tu): New function.
578 (lookup_dwo_signatured_type): Set per_cu.tu_read.
579 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
580 Make dependent_cu optional.
581 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
582 and an older .gdb_index is in use, queue and load all its TUs too.
584 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
586 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
587 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
588 variable search_flags.
589 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
590 (OPF_RETURN_REALPATH): ... here.
591 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
592 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
594 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
596 * solib.c (solib_find): Likewise. Four times.
597 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
598 in the function comment and for the realpath_fptr variable.
599 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
600 (find_and_open_source): Likewise. Twice.
601 * symfile.c (symfile_bfd_open): Likewise, also twice.
603 2013-09-04 Doug Evans <dje@google.com>
605 * progspace.c (save_current_space_and_thread): Remove unnecessary
606 call to save_current_inferior.
608 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
610 * sh64-tdep.c (sh64_do_register): Return after printing message
611 about unavailable register contents.
613 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
614 Pedro Alves <palves@redhat.com>
616 * symfile.c (add_symbol_file_command): Error out on unknown
617 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
618 options and collapse into single conditional branch.
620 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
622 * inf-child.c (inf_child_follow_fork): New parameter
624 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
625 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
626 * inferior.h (detach_fork): Remove.
627 * infrun.c (detach_fork): Adjust comment and make it
629 (follow_fork): Pass detach_fork parameter to
631 * linux-nat.c (linux_child_follow_fork): New parameter
633 * target.c (target_follow_fork): New parameter detach_fork.
634 Pass detach_fork as parameter and print its value.
635 * target.h (struct target_ops) <to_follow_fork>: New int
637 (target_follow_fork): New parameter detach_fork.
639 2013-09-03 Joel Brobecker <brobecker@adacore.com>
641 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
642 Replace sec->bfd by sec->the_bfd_section->owner.
644 2013-09-03 Yao Qi <yao@codesourcery.com>
646 * linux-tdep.c (linux_is_uclinux): New function. Code moved
647 from linux_has_shared_address_space.
648 (linux_has_shared_address_space): Call linux_is_uclinux.
649 * linux-tdep.h (linux_is_uclinux): Declare.
650 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
653 2013-09-03 Yao Qi <yao@codesourcery.com>
655 * config/djgpp/fnchange.lst: Remove entry of
656 i386-interix-nat.c and i386-interix-tdep.c.
657 * configure.ac: Remove '*-*-interix*'.
658 * configure: Re-generated.
659 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
660 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
662 * osabi.c (gdb_osabi_names): Remove "Interix".
664 2013-09-03 Yao Qi <yao@codesourcery.com>
666 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
668 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
670 * record.h (record_print_flag) <record_print_src_line,
671 record_print_insn_range>: Rename into ...
672 (record_print_flag) <record_print_src_line,
673 record_print_insn_range>: ... this. Update all users.
675 2013-09-02 Pierre Muller <muller@sourceware.org>
677 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
680 2013-09-02 Pierre Muller <muller@sourceware.org>
682 * windows-nat.c (windows_xfer_memory): Fix compilation failure
683 by use of plongest function.
685 2013-09-02 Tristan Gingold <gingold@adacore.com>
687 * NEWS: Add entry mentioning support for native Windows x64
690 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
691 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
692 (struct amd64_windows_frame_cache): New struct.
693 (amd64_windows_w2gdb_regnum): New global.
694 (pc_in_range, amd64_windows_frame_decode_epilogue)
695 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
696 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
697 (amd64_windows_frame_this_id): New functions.
698 (amd64_windows_frame_unwind): New static global.
699 (amd64_windows_skip_prologue): New function.
700 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
701 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
702 with amd64_windows_skip_prologue.
704 2013-08-30 Joel Brobecker <brobecker@adacore.com>
708 2013-08-30 Pedro Alves <palves@redhat.com>
710 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
713 2013-08-30 Pedro Alves <palves@redhat.com>
715 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
718 2013-08-30 Pedro Alves <palves@redhat.com>
720 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
721 Adjust arguments to print_stack_frame.
723 2013-08-30 Pedro Alves <palves@redhat.com>
725 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
727 2013-08-30 Pedro Alves <palves@redhat.com>
729 * frame.h (show_and_print_stack_frame): Delete declaration.
731 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
735 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
736 (archpy_name): Check for valid architecture.
737 (archpy_disassemble): Ditto.
739 2013-08-29 Joel Brobecker <brobecker@adacore.com>
741 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
742 instead of "long long" in call to ptrace64.
744 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
746 * mi/mi-interp.c (mi_command_loop): Change signature to match
747 interp_command_loop_ftype.
748 (mi1_command_loop): Remove.
749 (mi2_command_loop): Remove.
750 (mi3_command_loop): Remove.
751 (mi_interpreter_resume): Remove setting of
752 deprecated_command_loop_hook.
753 (_initialize_mi_interp): Set mi_command_loop as the command loop
756 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
758 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
761 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
763 * value.c (allocate_value_contents): Make static.
764 * value.h (allocate_value_contents): Remove prototype.
766 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
768 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
769 of assembling value via allocate_value_lazy and attribute setter.
770 * findvar.c (default_read_var_value): Use value_at_lazy instead of
771 assembling value via allocate_value_lazy and attribute setter.
772 * valops.c (do_search_struct_field): Use value_at_lazy instead of
773 assembling value via allocate_value_lazy and attribute setter.
775 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
777 * value.c (value_from_contents_and_address): Replace allocate_value and
778 memcpy with value_from_contents.
780 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
782 * python/py-framefilter.c (py_print_frame): Remove usage of
783 PyString_AsString. Use python_string_to_host_string instead.
784 Refactor function to work with a string as a new allocation
785 instead of a pointer.
786 (py_print_frame): Ditto.
787 * python/lib/gdb/frames.py (return_list): Cain iterators together
788 instead of adding them as a list.
789 (_sort_list): Call return_list, and remove duplicate code.
790 (execute_frame_filters): Convert iterator to a list with list().
791 * python/lib/gdb/command/frame_filters.py
792 (SetFrameFilterPriority._set_filter_priority): Convert priority
793 attribute to an integer.
794 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
795 wrapper function __next__.
796 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
799 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
802 * python/py-framefilter.c (apply_frame_filter): Check
803 gdb_python_initialized. Exit if the Python frame-filter code
804 cannot be initialized.
806 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
809 * top.c (print_gdb_version): Remove erroneous newline after help
812 2013-08-29 Yao Qi <yao@codesourcery.com>
814 * varobj.c (install_dynamic_child): Remove trailing space.
815 Add one blank line after variable declaration.
817 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
820 * corefile.c (get_exec_file): Use exec_filename.
821 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
822 * exec.c (exec_close): Free EXEC_FILENAME.
823 (exec_file_attach): New variable canonical_pathname. Use
824 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
826 * exec.h (exec_filename): New.
827 * inferior.c (print_inferior, inferior_command): Use
828 PSPACE_EXEC_FILENAME.
829 * mi/mi-main.c (print_one_inferior): Likewise.
830 * progspace.c (clone_program_space, print_program_space): Likewise.
831 * progspace.h (struct program_space): New field pspace_exec_filename.
832 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
833 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
835 2013-08-28 Will Newton <will.newton@linaro.org>
837 * common/linux-ptrace.c: Include stdint.h unconditionally.
839 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
842 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
844 2013-08-28 Yao Qi <yao@codesourcery.com>
845 Pedro Alves <palves@redhat.com>
847 * event-top.c (gdb_setup_readline): Call stderr_fileopen
848 instead of stdio_fileopen.
849 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
850 .Call stderr_fileopen instead of stdio_fileopen.
851 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
852 [__MINGW32__] (stderr_file_fputs): New function.
853 (stderr_fileopen): New function.
854 * ui-file.h (stderr_fileopen): Declare.
856 2013-08-27 Doug Evans <dje@google.com>
858 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
859 (struct dwarf2_per_cu_data): Ditto.
860 (maybe_queue_comp_unit): Delete forward decl. Add comment.
861 (process_imported_unit_die): Ditto.
862 (follow_die_sig_1): Simplify assert.
864 2013-08-27 Pedro Alves <palves@redhat.com>
866 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
867 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
868 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
869 windows_xfer_memory directly.
870 (init_windows_ops): Don't install a deprecated_xfer_memory method.
872 2013-08-27 Pedro Alves <palves@redhat.com>
874 * darwin-nat.c (darwin_xfer_memory): Delete.
875 (_initialize_darwin_inferior): Don't install a
876 deprecated_xfer_memory method.
878 2013-08-27 Pedro Alves <pedro@codesourcery.com>
879 Yao Qi <yao@codesourcery.com>
881 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
882 (parse_no_frames_option): Remove.
883 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
884 (mi_cmd_stack_list_args): Adjust.
885 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
886 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
887 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
889 (list_args_or_locals): New parameter 'skip_unavailable'.
891 * valprint.c (scalar_type_p): Rename to ...
892 (val_print_scalar_type_p): ... this. Make extern.
893 (val_print, value_check_printable): Adjust.
894 * valprint.h (val_print_scalar_type_p): Declare.
895 * value.c (value_entirely_unavailable): New function.
896 * value.h (value_entirely_unavailable): Declare.
898 * NEWS: Mention the new option "--skip-unavailable" to MI
899 commands '-stack-list-locals', '-stack-list-arguments' and
900 '-stack-list-variables'.
902 2013-08-27 Yao Qi <yao@codesourcery.com>
904 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
905 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
907 * mi/mi-getopt.c (mi_getopt): Remove.
908 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
910 (mi_getopt): Call mi_getopt_1.
911 (mi_getopt_silent): New.
912 * mi/mi-getopt.h (mi_getopt_silent): Declare.
914 2013-08-26 Doug Evans <dje@google.com>
917 * dwarf2read.c (dw2_dump): Print some minimal information indicating
918 .gdb_index is in use.
919 * symfile.c (reread_symbols): Reset objfile->sf.
921 * NEWS: Document "mt print objfiles" now takes optional regexp.
922 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
923 regexp of objfiles to print.
924 (_initialize_symmisc): Update doc string for "mt print objfiles".
926 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
927 missing debug info checks.
929 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
930 Ulrich Weigand <uweigand@de.ibm.com>
932 * xcoffread.c (arrange_linetable): Add fix to correctly handle
933 line tables generated by XLC compiled binaries.
935 2013-08-23 Doug Evans <dje@google.com>
937 * symmisc.c (dump_symtab): Delete prototype.
938 (dump_msymbols, dump_objfile): Ditto.
939 (maintenance_info_symtabs): Mark as dont_repeat.
940 (_initialize_symmisc): Improve doc string for "mt info symtabs".
942 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
943 debugging printf to better location.
945 2013-08-23 Pedro Alves <palves@redhat.com>
947 * target.c (target_read_live_memory): Change type of 'ret' local
950 2013-08-23 Pedro Alves <palves@redhat.com>
952 * remote.c (remote_write_bytes_aux, remote_write_bytes)
953 (remote_read_bytes): Change return type to LONGEST, and adjust to
954 return a target_xfer_error on error.
955 (remote_xfer_memory): Delete.
956 (remote_flash_write): Change type of 'ret' local to LONGEST.
957 (remote_xfer_partial, remote_xfer_partial): Adjust.
958 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
960 2013-08-23 Pierre Muller <muller@sourceware.org>
962 ARI fix: Push # directives to start of line.
963 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
965 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
968 * breakpoint.c (enable_command, disable_command): Iterate over
969 all specified breakpoint locations.
971 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
973 * common/linux-ptrace.c (linux_fork_to_function): Push #
974 directives to the start of the line.
975 (linux_check_ptrace_features): Fix warning message to use
978 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
980 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
982 (linux-waitpid.o): New object file rule.
983 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
984 (current_ptrace_options): Moved from linux-nat.c.
985 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
987 (linux_fork_to_function): New function.
988 (linux_grandchild_function): Likewise.
989 (linux_child_function): Likewise.
990 (linux_check_ptrace_features): New function, heavily
991 based on linux-nat.c:linux_test_for_tracefork.
992 (linux_enable_event_reporting): New function.
993 (ptrace_supports_feature): Likewise.
994 (linux_supports_tracefork): Likewise.
995 (linux_supports_traceclone): Likewise.
996 (linux_supports_tracevforkdone): Likewise.
997 (linux_supports_tracesysgood): Likewise.
998 * common/linux-ptrace.h (HAS_NOMMU): Moved from
999 gdbserver/linux-low.c.
1000 (linux_enable_event_reporting): New declaration.
1001 (linux_supports_tracefork): Likewise.
1002 (linux_supports_traceclone): Likewise.
1003 (linux_supports_tracevforkdone): Likewise.
1004 (linux_supports_tracesysgood): Likewise.
1005 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1006 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1007 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1008 * config/arm/linux.mh (NATDEPFILES): Likewise.
1009 * config/i386/linux.mh (NATDEPFILES): Likewise.
1010 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1011 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1012 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1013 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1014 * config/mips/linux.mh (NATDEPFILES): Likewise.
1015 * config/pa/linux.mh (NATDEPFILES): Likewise..
1016 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1017 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1018 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1019 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1020 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1021 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1022 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1023 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1024 ptrace's 4th argument's types.
1025 Check the type of PTRACE_TYPE_ARG4.
1026 * configure: Regenerate.
1027 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1028 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1029 (linux_supports_tracefork_flag): Remove.
1030 (linux_supports_tracesysgood_flag): Likewise.
1031 (linux_supports_tracevforkdone_flag): Likewise.
1032 (current_ptrace_options): Moved to
1033 common/linux-ptrace.c.
1034 (linux_tracefork_child): Remove.
1035 (my_waitpid): Remove.
1036 (linux_test_for_tracefork): Renamed to
1037 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1038 (linux_test_for_tracesysgood): Remove.
1039 (linux_supports_tracesysgood): Remove.
1040 (linux_supports_tracefork): Remove.
1041 (linux_supports_tracevforkdone): Remove.
1042 (linux_enable_tracesysgood): Remove.
1043 (linux_enable_event_reporting): Remove.
1044 (linux_init_ptrace): New function.
1045 (linux_child_post_attach): Call linux_init_ptrace.
1046 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1047 (linux_child_follow_fork): Call linux_supports_tracefork
1048 and linux_supports_tracevforkdone.
1049 (linux_child_insert_fork_catchpoint): Call
1050 linux_supports_tracefork.
1051 (linux_child_insert_vfork_catchpoint): Likewise.
1052 (linux_child_set_syscall_catchpoint): Call
1053 linux_supports_tracesysgood.
1054 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1055 * nat/linux-nat.h: New file.
1056 * nat/linux-waitpid.c: New file.
1057 * nat/linux-waitpid.h: New file.
1059 2013-08-22 Samuel Bronson <naesten@gmail.com>
1061 ARM Linux support for `catch syscall'.
1062 * syscalls/arm-linux.py: New file.
1063 * syscalls/arm-linux.xml: Likewise.
1064 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1065 (arm_linux_init_abi): Register the new function and syscall xml file.
1066 * data-directory/Makefile.in: Install the new syscall xml file.
1067 * NEWS: Brag about this.
1069 2013-08-22 Pedro Alves <palves@redhat.com>
1072 * corefile.c (target_xfer_memory_error): New function.
1073 (memory_error): Defer EIO to target_memory_error.
1074 (read_memory): Use target_xfer_partial, and handle finer-grained
1076 * target.c (target_xfer_error_to_string): New function.
1077 (memory_xfer_partial_1): If memory is known to be
1078 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1079 (target_xfer_partial): Make extern.
1080 * target.h (enum target_xfer_error): New enum.
1081 (target_xfer_error_to_string): Declare function.
1082 (target_xfer_partial): Declare function.
1083 (struct target_ops) <xfer_partial>: Adjust describing comment.
1085 2013-08-22 Alan Modra <amodra@gmail.com>
1087 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1088 * configure.tgt: Likewise as targets.
1090 2013-08-20 Doug Evans <dje@google.com>
1092 * buildsym.c (subfile_stack): Move here from buildsym.h.
1093 (pending_macros): Ditto.
1094 (get_macro_table): New function.
1095 (buildsym_init): Initialize subfile_stack.
1096 * coffread.c (type_vector,type_vector_length): Moved here from
1098 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1099 (coff_symtab_read): Use it.
1100 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1101 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1102 with call to get_macro_table.
1103 * stabsread.c (type_vector,type_vector_length): Moved here from
1105 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1106 * buildsym.h (get_macro_table): Declare.
1108 2013-08-20 Tom Tromey <tromey@redhat.com>
1110 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1112 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1114 2013-08-20 Doug Evans <dje@google.com>
1116 * blockframe.c: Remove #include "psymtab.h".
1117 * cp-support.c: Ditto.
1121 2013-08-20 Tom Tromey <tromey@redhat.com>
1124 * exceptions.h (return_mask): Now an enum.
1125 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
1128 2013-08-20 Tom Tromey <tromey@redhat.com>
1130 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1132 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1133 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
1134 * jit.c (jit_object_close_impl): Update.
1135 * jv-lang.c (get_dynamics_objfile): Update.
1136 * linespec.c (add_minsym): Use get_dynamics_objfile.
1137 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
1138 (allocate_objfile): Don't initialize 'gdbarch' field.
1139 (get_objfile_arch): Update.
1140 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
1142 (struct objfile) <gdbarch>: ... here. Remove.
1143 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
1145 * symfile.c (init_entry_point_info): Use get_objfile_arch.
1147 2013-08-20 Alan Modra <amodra@gmail.com>
1149 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
1150 for IBM long double nan and inf.
1151 (floatformat_is_negative, floatformat_classify,
1152 floatformat_mantissa): Similarly.
1153 (floatformat_ieee_single, floatformat_ieee_double,
1154 floatformat_ieee_quad, floatformat_arm_ext,
1155 floatformat_ia64_spill): Delete unused vars.
1156 (_initialize_doublest): Delete unused function.
1157 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
1158 little-endian variants of floatformat_ibm_long_double.
1160 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
1162 * Makefile.in (SFILES): Remove common/target-common.c and
1163 add target/waitstatus.c.
1164 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
1165 target/resume.h, target/wait.h and target/waitstatus.h.
1166 (COMMON_OBS): Remove target-common.o and add
1168 (target-common.o): Remove.
1169 (waitstatus.o): New target object file.
1170 * common/target-common.c: Move contents to
1171 target/waitstatus.c and remove.
1172 * common/target-common.h: Move contents to other files and
1174 (enum resume_kind: Move to target/resume.h.
1175 (TARGET_WNOHANG): Move to target/wait.h.
1176 (enum target_waitkind): Move to target/waitstatus.h.
1177 (struct target_waitstatus): Likewise.
1178 * target.h: Do not include target-common.h and
1179 include target/resume.h, target/wait.h and
1180 target/waitstatus.h.
1181 * target/resume.h: New file.
1182 * target/wait.h: New file.
1183 * target/waitstatus.h: New file.
1184 * target/waitstatus.c: New file.
1186 2013-08-19 Pedro Alves <palves@redhat.com>
1188 * linux-nat.c (linux_test_for_tracefork)
1189 (linux_test_for_tracesysgood, linux_child_follow_fork)
1190 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
1191 (linux_nat_wait_1): Extend comment.
1192 (linux_async_pipe): Add comment.
1194 2013-08-15 Kevin Buettner <kevinb@redhat.com>
1196 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
1197 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
1198 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
1199 Update to account for fact that PC is now a pseudo-register.
1200 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
1201 cases for RL78_PC_REGNUM.
1203 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
1206 * top.c (quit_force): Skip writing history file
1207 if input is not from terminal.
1209 2013-08-14 Tom Tromey <tromey@redhat.com>
1211 * remote.c (struct remote_state) <echo_nextthread, nextthread,
1212 resultthreadlist>: New fields.
1213 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
1214 (remote_get_threadlist, remote_threadlist_iterator): Use
1215 new fields. Remove static variables.
1217 2013-08-14 Tom Tromey <tromey@redhat.com>
1219 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
1220 remote_watch_data_address>: New fields.
1221 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
1222 (process_stop_reply, remote_wait_as)
1223 (remote_check_watch_resources, remote_stopped_data_address): Update.
1225 2013-08-14 Tom Tromey <tromey@redhat.com>
1227 * remote.c (struct remote_state) <async_client_callback,
1228 async_client_context>: New fields.
1229 (async_client_callback, async_client_context): Remove.
1230 (remote_async_serial_handler, remote_async): Update.
1232 2013-08-14 Tom Tromey <tromey@redhat.com>
1234 * remote.c (sizeof_pkt): Remove.
1235 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
1237 2013-08-14 Tom Tromey <tromey@redhat.com>
1239 * remote.c (struct remote_state) <use_threadinfo_query,
1240 use_threadextra_query>: New fields.
1241 (remote_threads_info, remote_threads_extra_info)
1242 (remote_open_1): Update.
1244 2013-08-14 Tom Tromey <tromey@redhat.com>
1246 * remote.c (struct remote_state) <finished_object,
1247 finished_annex, finished_offset>: New fields.
1248 (remote_read_qxfer): Use remote_state fields; remove static
1251 2013-08-14 Tom Tromey <tromey@redhat.com>
1253 * remote.c (struct remote_state) <last_sent_step>:
1255 (last_sent_step): Remove.
1256 (remote_resume, remote_wait_as): Update.
1258 2013-08-14 Tom Tromey <tromey@redhat.com>
1260 * remote.c (struct remote_state) <last_sent_signal>:
1262 (last_sent_signal): Remove.
1263 (new_remote_state, remote_resume, remote_wait_as): Update.
1265 2013-08-14 Tom Tromey <tromey@redhat.com>
1267 * remote.c (struct remote_state) <last_program_signals_packet>:
1269 (last_program_signals_packet): Remove.
1270 (remote_program_signals, remote_open_1): Update.
1272 2013-08-14 Tom Tromey <tromey@redhat.com>
1274 * remote.c (struct remote_state) <last_pass_packet>:
1276 (last_pass_packet): Remove.
1277 (remote_pass_signals, remote_open_1): Update.
1279 2013-08-14 Tom Tromey <tromey@redhat.com>
1281 * remote.c (struct remote_state) <remote_traceframe_number>:
1283 (remote_traceframe_number): Remove.
1284 (new_remote_state, remote_open_1, set_remote_traceframe)
1285 (remote_trace_find): Update.
1287 2013-08-14 Tom Tromey <tromey@redhat.com>
1289 * remote.c (struct remote_state) <general_thread, continue_thread>:
1291 (general_thread, continue_thread): Remove.
1292 (record_currthread, set_thread, set_general_process)
1293 (remote_open_1, extended_remote_attach_1, remote_wait_as)
1294 (extended_remote_mourn_1): Update.
1296 2013-08-14 Tom Tromey <tromey@redhat.com>
1298 * remote.c (struct remote_state) <remote_desc>: New field.
1299 (remote_desc): Remove.
1300 (remote_threads_info, remote_threads_extra_info, remote_close)
1301 (send_interrupt_sequence, remote_start_remote, remote_open_1)
1302 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
1303 (remote_hostio_send_command, remote_file_put, remote_file_get)
1304 (remote_file_delete, remote_can_async_p, remote_is_async_p)
1305 (remote_async, remote_new_objfile, set_range_stepping): Update.
1307 2013-08-14 Tom Tromey <tromey@redhat.com>
1309 * remote.c (remote_state): Now a pointer.
1310 (get_remote_state_raw): Update.
1311 (new_remote_state): New function.
1312 (_initialize_remote): Use new_remote_state.
1314 2013-08-14 Tom Tromey <tromey@redhat.com>
1316 * remote.c (remote_protocol_features): Now const.
1318 2013-08-14 Tom Tromey <tromey@redhat.com>
1320 * remote.c (crc32_table, crc32): Remove.
1321 (remote_verify_memory): Use xcrc32.
1323 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
1325 * value.h (create_internalvar_type_lazy): Adjust prototype
1328 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
1330 * common/format.c (parse_format_string): Don't allow '#' flag for
1331 pointer arguments in format string.
1333 2013-08-13 Pierre Muller <muller@sourceware.org>
1335 * utils.c (init_page_info): Only call tgetnum function
1336 if rl_get_screen_size did not return useful values.
1338 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
1340 PR breakpoints/15117
1341 * linespec.c (linespec_parse_basic): Check for convenience
1342 variable or history value while parsing.
1344 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
1346 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
1348 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
1349 different signals between the generic Linux kernel implementation
1351 (avr_linux_gdb_signal_from_target): Delete.
1352 (avr_linux_gdb_signal_to_target): Delete.
1353 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
1355 2013-08-09 Doug Evans <dje@google.com>
1357 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
1360 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
1362 * linux-tdep.c: Define enum with generic signal numbers.
1363 (linux_gdb_signal_from_target): New function.
1364 (linux_gdb_signal_to_target): Likewise.
1365 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1366 methods to the functions above.
1367 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
1368 (linux_gdb_signal_to_target): Likewise.
1369 * alpha-linux-tdep.c: Define new enum with signals different
1370 from generic Linux kernel.
1371 (alpha_linux_gdb_signal_from_target): New function.
1372 (alpha_linux_gdb_signal_to_target): Likewise.
1373 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1374 with the functions mentioned above.
1375 * avr-tdep.c: Define enum with differences between Linux kernel
1377 (avr_linux_gdb_signal_from_target): New function.
1378 (avr_linux_gdb_signal_to_target): Likewise.
1379 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
1380 the functions mentioned above.
1381 * sparc-linux-tdep.c: Define enum with differences between SPARC
1382 and generic Linux kernel signal numbers.
1383 (sparc32_linux_gdb_signal_from_target): New function.
1384 (sparc32_linux_gdb_signal_to_target): Likewise.
1385 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1386 to the functions defined above.
1387 * xtensa-linux-tdep.c: Define enum with differences between
1388 Xtensa and Linux kernel generic signals.
1389 (xtensa_linux_gdb_signal_from_target): New function.
1390 (xtensa_linux_gdb_signal_to_target): Likewise.
1391 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
1392 to the functions defined above.
1393 * mips-linux-tdep.c: Define enum with differences between
1394 signals in MIPS and Linux kernel generic ones.
1395 (mips_gdb_signal_to_target): New function.
1396 (mips_gdb_signal_from_target): Redefine to use new enum, handle
1397 only different signals from the Linux kernel generic.
1398 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1399 the functions defined above.
1400 * mips-linux-tdep.h (enum mips_signals): Remove.
1402 2013-08-09 Pedro Alves <palves@redhat.com>
1404 * avr-tdep.c (XMALLOC): Delete macro.
1405 * cli/cli-dump.c (XMALLOC): Delete macro.
1407 2013-08-09 Pedro Alves <palves@redhat.com>
1409 * cli/cli-dump.c: Don't include cli/cli-dump.h.
1410 (scan_expression_with_cleanup, scan_filename_with_cleanup)
1411 (fopen_with_cleanup, add_dump_command): Make static.
1412 * cli/cli-dump.h: Delete file.
1413 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
1416 2013-08-09 Pedro Alves <palves@redhat.com>
1418 * tracepoint.c (tfile_start): Show tilde-expanded filename in
1421 2013-08-09 Pedro Alves <palves@redhat.com>
1423 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
1426 2013-08-09 Pedro Alves <palves@redhat.com>
1428 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
1429 (gcore_command): Use tilde_expand here, and when showing the
1430 filename to the user, show the expanded version.
1432 2013-08-09 Yao Qi <yao@codesourcery.com>
1434 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
1437 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
1439 * gcore.c (create_gcore_bfd): Use tilde_expand.
1441 2013-08-08 Yao Qi <yao@codesourcery.com>
1443 * frame.h (read_frame_local): Declare.
1444 * mi/mi-cmd-stack.c (list_args_or_locals): Call
1446 * stack.c (read_frame_local): New.
1448 2013-08-08 Yao Qi <yao@codesourcery.com>
1450 * mi/mi-cmd-stack.c: Update comments to function
1451 list_args_or_locals.
1453 2013-08-07 Tom Tromey <tromey@redhat.com>
1456 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
1457 (process_psymtab_comp_unit_reader): Use it.
1458 (process_psymtab_comp_unit): Update. Add "pretend_language"
1460 (dwarf2_build_psymtabs_hard): Update.
1461 (scan_partial_symbols): Pass CU's language to
1462 process_psymtab_comp_unit.
1464 2013-08-07 Tom Tromey <tromey@redhat.com>
1466 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
1467 (dwarf2_gdb_index_functions): Update.
1468 * psymtab.c (find_symbol_file_from_partial): Remove.
1469 (psym_functions): Update.
1470 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1473 2013-08-07 Tom Tromey <tromey@redhat.com>
1475 * symfile.c (set_initial_language): Look up "main" symbol
1476 and use its language.
1477 * symtab.c (find_main_filename): Remove.
1478 * symtab.h (find_main_filename): Remove.
1480 2013-08-07 Tom Tromey <tromey@redhat.com>
1482 * dwarf2read.c (recursively_compute_inclusions): Add
1483 "immediate_parent" argument. Set symtab's "user" field
1485 (compute_symtab_includes): Update.
1487 2013-08-07 Tom Tromey <tromey@redhat.com>
1489 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
1490 when adding label symbols.
1492 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1493 Ulrich Weigand <uweigand@de.ibm.com>
1495 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
1496 * configure.host (powerpc64-*-aix*): Likewise.
1498 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1499 Ulrich Weigand <uweigand@de.ibm.com>
1501 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
1503 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
1504 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
1505 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
1506 * configure.ac: Check for ptrace64.
1507 * configure, config.in: Regenerate.
1509 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1510 Ulrich Weigand <uweigand@de.ibm.com>
1512 * aixthread.c: Call ptrace64 instead of ptracex if defined.
1513 Call ptrace64 instead of ptrace if defined.
1514 Add macro addr_ptr to take care of ptrace address argument.
1515 (pdc_read_regs): Likewise.
1516 (pdc_write_regs): Likewise.
1517 (aix_thread_resume): Likewise.
1518 (fetch_regs_kernel_thread): Likewise.
1519 (store_regs_kernel_thread): Likewise.
1521 2013-08-07 Anton Blanchard <anton@samba.org>
1523 * MAINTAINERS: Add myself to Write After Approval.
1525 2013-08-05 Tom Tromey <tromey@redhat.com>
1527 * aix-thread.c (_initialize_aix_thread): Use
1528 complete_target_initialization.
1529 * bsd-uthread.c (_initialize_bsd_uthread): Use
1530 complete_target_initialization.
1531 * dec-thread.c (_initialize_dec_thread): Use
1532 complete_target_initialization.
1533 * ravenscar-thread.c (_initialize_ravenscar): Use
1534 complete_target_initialization.
1535 * sol-thread.c (_initialize_sol_thread): Use
1536 complete_target_initialization.
1537 * spu-multiarch.c (_initialize_spu_multiarch): Use
1538 complete_target_initialization.
1540 2013-08-05 Tom Tromey <tromey@redhat.com>
1542 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
1543 * ada-lang.c (ada_lookup_simple_minsym): Return
1544 bound_minimal_symbol.
1545 * ada-lang.h (ada_lookup_simple_minsym): Update.
1546 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
1547 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
1548 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
1549 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
1550 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
1551 * minsyms.c (msymbol_objfile): Remove.
1552 (lookup_minimal_symbol_internal): New function, from
1553 lookup_minimal_symbol.
1554 (lookup_minimal_symbol): Rewrite using
1555 lookup_minimal_symbol_internal.
1556 (lookup_bound_minimal_symbol): New function.
1557 * minsyms.h (msymbol_objfile): Remove.
1558 (lookup_bound_minimal_symbol): Declare.
1559 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
1560 * parse.c (write_exp_msymbol): Change parameter to a
1561 bound_minimal_symbol.
1562 (write_dollar_variable): Use lookup_bound_minimal_symbol.
1563 * parser-defs.h (write_exp_msymbol): Update.
1564 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
1565 * symfile.c (simple_read_overlay_table): Use
1566 lookup_bound_minimal_symbol.
1567 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
1568 (search_symbols): Likewise.
1569 (print_msymbol_info): Take a bound_minimal_symbol argument.
1570 (symtab_symbol_info, rbreak_command): Update.
1571 * symtab.h (struct symbol_search) <msymbol>: Change type
1572 to bound_minimal_symbol.
1573 * valops.c (find_function_in_inferior): Use
1574 lookup_bound_minimal_symbol.
1575 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
1577 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1580 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
1582 (async_cleanup_sigint_signal_handler): ... this.
1583 (initialize_sigint_signal_handler): Remove declaration.
1584 (handle_remote_sigint): Rename the declaration to ...
1585 (async_handle_remote_sigint): ... this.
1586 (handle_remote_sigint_twice): Rename the declaration to ...
1587 (async_handle_remote_sigint_twice): ... this.
1588 (async_remote_interrupt, async_remote_interrupt_twice)
1589 (remote_interrupt): Remove the declarations.
1590 (remote_interrupt_twice): Rename the declaration ...
1591 (sync_remote_interrupt_twice): ... this.
1592 (sigint_remote_twice_token): Rename the variable to ...
1593 (async_sigint_remote_twice_token): ... this.
1594 (sigint_remote_token): Rename the variable to ...
1595 (async_sigint_remote_token): ... this.
1596 (initialize_sigint_signal_handler): Rename the function to ...
1597 (async_initialize_sigint_signal_handler): ... this. Update the name
1599 (handle_remote_sigint): Rename the function to ...
1600 (async_handle_remote_sigint): ... this. Update the names inside.
1601 (handle_remote_sigint_twice): Rename the function to ...
1602 (async_handle_remote_sigint_twice): ... this. Update the names inside.
1603 (cleanup_sigint_signal_handler): Rename the function to ...
1604 (async_cleanup_sigint_signal_handler): ... this.
1605 (remote_interrupt): Rename the function to ...
1606 (sync_remote_interrupt): this. Update the names inside.
1607 (remote_interrupt_twice): Rename the function to ...
1608 (sync_remote_interrupt_twice): this. Update the names inside.
1609 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
1610 (_initialize_remote): Update the names inside.
1612 2013-08-02 Tom Tromey <tromey@redhat.com>
1615 * breakpoint.c (update_watchpoint, watchpoint_check)
1616 (watch_command_1): Update.
1617 * eval.c (fetch_subexp_value): Add "preserve_errors"
1619 * ppc-linux-nat.c (check_condition): Update.
1620 * value.h (fetch_subexp_value): Update.
1622 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
1624 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
1627 2013-08-01 Doug Evans <dje@google.com>
1630 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
1631 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
1632 Add assert of sig_entry->dwo_unit == NULL.
1633 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
1634 had already been read.
1635 (read_signatured_type): Set per_cu.tu_read.
1638 * valops.c (value_struct_elt): Add missing call to check_typedef.
1639 (value_find_oload_method_list): Ditto.
1641 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
1642 effectively, struct symbol_search **.
1643 (make_cleanup_free_search_symbols): Change arg to struct
1644 symbol_search **. All callers updated.
1645 (compare_search_syms): Compare symtab file name and block as well.
1646 (search_symbols_equal): New function.
1647 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
1648 New args new_head, new_tail. Result is now void. Remove dups after
1649 sorting the symbols.
1650 (search_symbols): Sort all found symbols once, after all have been
1651 found, and remove duplicates. Simplify cleanup tracking of result.
1652 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
1654 Further workarounds for binutils/15021.
1655 * dwarf2read.c (recursively_compute_inclusions): Change type of result
1656 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
1657 Watch for duplicate symtabs coming from type units.
1658 (compute_symtab_includes): Update call to
1659 recursively_compute_inclusions. Build vector of included symtabs
1661 * symtab.h (symtab_ptr): New typedef.
1662 (DEF_VEC_P (symtab_ptr)): New VEC type.
1663 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
1666 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
1668 * cli/cli-script.c (script_from_file): Remove use of
1670 * main.c (captured_main): Remove use of error_pre_print and
1672 * utils.c (error_pre_print, quit_pre_print): Remove.
1673 * utils.h (error_pre_print, quit_pre_print): Likewise.
1675 2013-08-01 Yao Qi <yao@codesourcery.com>
1677 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
1679 (mi_cmd_stack_list_variables): Likewise.
1681 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1683 * exceptions.c (deprecated_throw_reason): Remove.
1684 * exceptions.h (deprecated_throw_reason): Remove.
1686 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1688 * remote-mips.c (mips_error): Replace use of
1689 deprecated_throw_reason with throw_verror. Use the error message
1690 passed to mips_error as the error message for throw_verror.
1692 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1694 * monitor.c (monitor_interrupt_query): Replace use of
1695 deprecated_throw_reason with quit.
1696 * nto-procfs.c (interrupt_query): Likewise.
1697 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
1698 * remote-mips.c (mips_kill): Likewise.
1699 * remote.c (interrupt_query): Likewise.
1701 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1703 * utils.c (internal_verror): Replace use of deprecated_throw_reason
1706 2013-07-31 Pedro Alves <pedro@codesourcery.com>
1707 Yao Qi <yao@codesourcery.com>
1709 * tracepoint.c (trace_dump_command): Select the current frame.
1711 2013-07-30 Doug Evans <dje@google.com>
1713 * dwarf2read.c (process_queue): Add type signature to debug output.
1715 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
1717 * value.c (value_fetch_lazy): Mark optimized out values as such
1718 rather than raising an error.
1720 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
1722 * value.c (value_fetch_lazy): Ensure parent value is not lazy
1723 before checking which bits of the parent, not the child, value are
1726 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
1729 * top.c: Include "filenames.h".
1730 (set_history_filename): New function.
1731 (init_main): Install it as set hook of the "set history filename"
1734 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1736 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
1737 attribute parameter.
1738 (dwarf2_const_value_data): Constify struct attribute parameter.
1739 (dwarf2_const_value): Constify struct attribute parameter.
1740 (dwarf2_const_value_attr): Constify struct attribute parameter.
1741 (lookup_die_type): Constify struct attribute parameter.
1742 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
1743 (follow_die_ref_or_sig): Constify struct attribute parameter.
1744 (follow_die_ref): Constify struct attribute parameter.
1745 (follow_die_sig): Constify struct attribute parameter.
1746 (get_DW_AT_signature_type): Constify struct attribute parameter.
1747 (get_type_unit_group): Constify struct attribute parameter.
1748 (fill_in_loclist_baton): Constify struct attribute parameter.
1749 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
1750 (type_unit_group): Constify struct attribute parameter.
1752 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1754 * dwarf2read.c (attr_form_is_block): Make argument const.
1755 (attr_form_is_section_offset): Make argument const.
1756 (attr_form_is_constant): Make argument const.
1757 (attr_form_is_ref): Make argument const.
1759 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1761 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
1763 (attr_form_is_ref): Moved below attr_form_is_constant.
1765 2013-07-29 Doug Evans <dje@google.com>
1767 * main.c (captured_command_loop): Tweak comment.
1769 * target.c (target_async_permitted_1): Fix comment.
1771 * symtab.c (iterate_over_some_symtabs): Add comment.
1773 * symtab.c (iterate_over_some_symtabs): Fix indentation.
1775 2013-07-27 Yao Qi <yao@codesourcery.com>
1777 * NEWS: Mention that GDBserver now supports hardware
1778 watchpoints on the MIPS GNU/Linux target.
1780 2013-07-27 Yao Qi <yao@codesourcery.com>
1782 * Makefile.in (HFILES_NO_SRCDIR): Add
1783 common/mips-linux-watch.h.
1784 (mips-linux-watch.o): New rule.
1785 * common/mips-linux-watch.c: New.
1786 * common/mips-linux-watch.h: New.
1787 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
1788 * mips-linux-nat.c: Include mips-linux-watch.h.
1789 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
1790 to common/mips-linux-watch.h.
1791 (MAX_DEBUG_REGISTER): Likewise.
1792 (enum pt_watch_style): Likewise.
1793 (struct mips32_watch_regs): Likewise.
1794 (struct mips64_watch_regs): Likewise.
1795 (struct pt_watch_regs): Likewise.
1796 (struct mips_watchpoint): Likewise.
1797 (mips_linux_watch_get_irw_mask): Move to
1798 common/mips-linux-watch.c.
1799 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
1800 (mips_linux_watch_get_watchlo): Likewise.
1801 (mips_linux_watch_set_watchlo): Likewise.
1802 (mips_linux_watch_get_watchhi): Likewise.
1803 (mips_linux_watch_set_watchhi): Likewise.
1804 (mips_linux_read_watch_registers): Likewise.
1805 (mips_linux_watch_type_to_irw): Likewise.
1806 (mips_linux_stopped_data_address, fill_mask): Likewise.
1807 (mips_linux_watch_try_one_watch): Likewise.
1808 (mips_linux_watch_populate_regs): Likewise.
1810 2013-07-27 Yao Qi <yao@codesourcery.com>
1812 * mips-linux-nat.c (get_irw_mask): Rename to ...
1813 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
1814 'set' to 'n'. Update function comment. All callers changed.
1815 (get_reg_mask): Rename parameter 'set' to 'n'. Update
1816 function comment. All callers changed.
1817 (get_num_valid): Rename to ...
1818 (mips_linux_watch_get_num_valid): ... this. Rename parameter
1819 'set' to 'n'. Update function comment. All callers changed.
1820 (get_watchlo): Rename to ...
1821 (mips_linux_watch_get_watchlo): ... this. Rename parameter
1822 'set' to 'n'. Update function comment. All callers changed.
1823 (set_watchlo): Rename to ...
1824 (mips_linux_watch_set_watchlo): ... this. Rename parameter
1825 'set' to 'n'. Update function comment. All callers changed.
1826 (get_watchhi): Rename to ...
1827 (mips_linux_watch_get_watchhi): ... this. Update function
1828 comment. All callers changed.
1829 (set_watchhi): Rename to ...
1830 (mips_linux_watch_set_watchhi): ... this. Update function
1831 comment. All callers changed.
1832 (mips_linux_read_watch_registers): Update function comment.
1833 Add new parameters 'lwpid', 'watch_readback', and
1834 'watch_readback_valid'. Update.
1835 (type_to_irw): Rename to ...
1836 (mips_linux_watch_type_to_irw): ... this. Update function
1837 comment. All callers changed.
1838 (fill_mask): Update function comment.
1839 (try_one_watch): Rename to ...
1840 (mips_linux_watch_try_one_watch): ... this. Change the type
1841 of parameter 'irw' from 'unsigned' to 'uint32_t'.
1842 (populate_regs_from_watches): Rename to ...
1843 (mips_linux_watch_populate_regs): ... this. Add parameter
1844 'current_watches'. All callers changed.
1846 2013-07-27 Yao Qi <yao@codesourcery.com>
1848 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
1850 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
1851 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
1852 (struct pt_watch_regs): Likewise.
1853 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
1854 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
1855 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
1856 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
1857 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
1859 2013-07-27 Yao Qi <yao@codesourcery.com>
1861 * breakpoint.h: Include break-common.h.
1862 (enum target_hw_bp_type): Move to ...
1863 * common/break-common.h: ... here. New.
1865 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
1867 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
1868 process group regardless of having tty on stdin.
1870 2013-07-25 Doug Evans <dje@google.com>
1872 * linux-fork.h (detach_fork): Delete.
1874 2013-07-25 Tom Tromey <tromey@redhat.com>
1876 PR remote/15256, PR remote/15266:
1877 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
1878 * monitor.c (monitor_detach): Use unpush_target.
1879 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
1880 * remote-mips.c (mips_detach): Use unpush_target. Don't
1882 * remote-sim.c (gdbsim_detach): Use unpush_target.
1883 * target.c (pop_target): Remove.
1884 (pop_all_targets_above): Don't call target_close.
1885 (target_close): Assert that the target is unpushed.
1886 * target.h (pop_target): Don't declare.
1887 * tracepoint.c (tfile_open): Use unpush_target.
1889 2013-07-25 Tom Tromey <tromey@redhat.com>
1891 * linux-thread-db.c (init_thread_db_ops): Call
1892 complete_target_initialization.
1893 (_initialize_thread_db): Don't call add_target.
1894 * target.c (complete_target_initialization): New function.
1895 (add_target_with_completer): Call it.
1896 * target.h (complete_target_initialization): Declare.
1898 2013-07-25 Mark Kettenis <kettenis@gnu.org>
1900 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
1901 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
1902 (HPPANBSD_SIZEOF_GREGS): New define.
1903 (hppaobsd_supply_gregset): Handle additional registers.
1904 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
1905 we provide more registers now.
1906 (hppabsd_supply_gregset): Supply additional registers.
1907 (hppabsd_collect_gregset): Collect additional registers.
1909 2013-07-25 Mark Kettenis <kettenis@gnu.org>
1911 * hppabsd-tdep.c: Include "dwarf2-frame.h".
1912 (hppabsd_dwarf2_frame_init_reg): New function.
1913 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
1915 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
1917 * mi/mi-main.c (output_register): Make MI 'r' format use standard
1918 'z' format code. Remove error for optimized out values, standard
1919 code will handle these fine.
1921 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
1923 * NEWS: Mention new 'z' formatter.
1924 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
1925 (_initialize_printcmd): Mention 'z' formatter in help text of the
1928 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
1930 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
1933 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
1935 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
1936 interface can evaluate arguments. Fallback to the old mode if it
1938 (create_exception_master_breakpoint): Likewise.
1939 * elfread.c (elf_can_evaluate_probe_arguments): New function.
1940 (struct sym_probe_fns elf_probe_fns): Export function above to the
1942 * probe.c (can_evaluate_probe_arguments): New function.
1943 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
1945 (can_evaluate_probe_arguments): New function prototype.
1946 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
1947 probe interface can evaluate arguments. Fallback to the old mode
1949 * stap-probe.c (stap_get_probe_argument_count): Check if probe
1950 interface can evaluate arguments. Warning the user if it cannot.
1951 (stap_can_evaluate_probe_arguments): New function.
1952 (struct probe_ops stap_probe_ops): Export function above to the
1954 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
1955 New function pointer.
1957 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
1959 * Makefile.in (SFILES): Add common/target-common.c.
1960 Add common/target-common.h to headers.
1961 (COMMON_OBS): Add target-common.o.
1962 (target-common.o): New target.
1963 * linux-nat.h (resume_kind): Move to common/target-common.h.
1964 * target.c (target_waitstatus_to_string): Move to
1965 common/target-common.c.
1966 * target.h: Include target-common.h.
1967 (target_waitkind): Move to common/target-common.h.
1968 (target_waitstatus): Likewise.
1969 (TARGET_WNOHANG): Likewise.
1970 * common/target-common.c: New file.
1971 * common/target-common.h: New file.
1973 2013-07-24 Doug Evans <dje@google.com>
1975 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
1978 2013-07-23 Yao Qi <yao@codesourcery.com>
1980 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
1981 parameter 'gdbarch'.
1982 (i386_stack_tramp_frame_sniffer): Caller update.
1983 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
1984 parameter 'gdbarch' and 'target'.
1985 (i386_linux_core_read_description): Caller update.
1986 * amd64-linux-tdep.c (amd64_linux_core_read_description):
1988 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
1991 2013-07-23 Tom Tromey <tromey@redhat.com>
1993 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
1996 2013-07-22 Doug Evans <dje@google.com>
1998 * exec.h (remove_target_sections): Delete arg abfd.
1999 * exec.c (exec_close): Update call to remove_target_sections.
2000 (remove_target_sections): Delete arg abfd.
2001 * solib.c (update_solib_list): Ditto.
2002 (reload_shared_libraries_1): Ditto.
2003 (clear_solib): Ditto, and unconditionally call remove_target_sections.
2004 * target.h (struct target_section): Rename key to owner.
2007 2013-07-22 Tom Tromey <tromey@redhat.com>
2009 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2011 2013-07-22 Tom Tromey <tromey@redhat.com>
2013 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2014 Simplify cleanup handling.
2016 2013-07-22 Tom Tromey <tromey@redhat.com>
2018 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2019 on all return paths.
2021 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2023 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2024 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2025 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2027 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2029 * top.c (print_gdb_version): Add help, apropos description and
2030 url to online documentation.
2032 2013-07-19 Hui Zhu <hui@codesourcery.com>
2035 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2037 2013-07-19 Yao Qi <yao@codesourcery.com>
2039 * target.c (update_current_target): Change the default action
2040 of 'to_traceframe_info' from tcomplain to return_zero.
2041 * target.h (struct target_ops) <to_traceframe_info>: Add more
2043 * valops.c (read_value_memory): Call
2044 traceframe_available_memory unconditionally.
2046 2013-07-18 Yao Qi <yao@codesourcery.com>
2048 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2049 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2050 symbol without prefix. If found, set its type to
2051 'mst_solib_trampoline'.
2053 2013-07-17 Doug Evans <dje@google.com>
2055 * NEWS: Mention "set print raw frame-arguments".
2056 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2057 * stack.c (print_raw_frame_arguments): New static global.
2058 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2059 (_initialize_stack): New command "set/show print raw frame-arguments".
2060 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2061 (set_print_raw, show_print_raw): New functions.
2062 (_initialize_valprint): New prefix command "set/show print raw".
2063 * valprint.h (value_print_options): Improve comments.
2065 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2066 of all *list variables.
2068 * gdbcmd.h (togglelist): Delete.
2069 * cli/cli-cmds.c (togglelist): Delete.
2070 (init_cmd_lists): Update.
2071 * cli/cli-cmds.h (togglelist): Delete.
2073 2013-07-17 Tom Tromey <tromey@redhat.com>
2075 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2078 2013-07-16 Doug Evans <dje@google.com>
2080 * nto-tdep.c (nto_relocate_section_addresses): Update,
2081 target_section.bfd deleted.
2082 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2083 * s390-tdep.c (s390_load): Ditto.
2084 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2086 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
2088 * common/format.c (parse_format_string): Add checks for NULL
2089 character before calling strchr.
2091 2013-07-16 Doug Evans <dje@google.com>
2093 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2094 temp_pathname argument.
2095 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2096 when opening the file fails.
2098 * target.h (struct target_section): Delete member bfd.
2099 All users updated to use the_bfd_section->owner instead.
2100 * exec.c (add_to_section_table): Assert bfd is expected value.
2101 Remove initialization of target_section.bfd.
2102 (remove_target_sections): Update.
2103 (section_table_available_memory): Update.
2104 (section_table_xfer_memory_partial): Update.
2105 (print_section_info): Update.
2106 (exec_set_section_address): Update.
2107 * record-full.c (record_full_core_xfer_partial): Update.
2108 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2109 * solib-target.c (solib_target_relocate_section_addresses): Update.
2110 * symfile.c (build_section_addr_info_from_section_table): Update.
2111 * target.c (memory_xfer_live_readonly_partial): Update.
2112 (memory_xfer_partial_1): Update.
2114 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2116 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
2117 now available for embedded (BookE) and server (BookS) processors,
2118 correct mentions of 'booke' and adjust comments accordingly in order to
2119 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
2120 (have_ptrace_booke_interface): Rename function and variable
2121 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
2122 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
2123 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
2124 'hwdebug_point_cmp'. Update all uses.
2125 (booke_find_thread_points_by_tid): Rename function
2126 'booke_find_thread_points_by_tid' to
2127 'hwdebug_find_thread_points_by_tid'. Update all uses.
2128 (booke_insert_point): Rename function 'booke_insert_point' to
2129 'hwdebug_insert_point'. Update all uses.
2130 (booke_remove_point): Rename function 'booke_remove_point' to
2131 'hwdebug_remove_point'. Update all uses.
2133 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
2135 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
2136 numbers with enum values.
2138 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
2141 * thread.c (thread_apply_all_command): Check for valid threads
2143 (thread_array_cleanup): New struct.
2144 (set_thread_refcount): New function.
2146 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
2148 * infcmd.c (default_print_one_register_info): Reuse function
2151 2013-07-10 Tom Tromey <tromey@redhat.com>
2153 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
2154 (ada-exp.o): New target.
2156 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
2158 * mt-tdep.c (mt_registers_info): Call
2159 get_no_prettyformat_print_options instead of
2160 get_raw_print_options (regression by last patch from Doug
2163 2013-07-09 Pedro Alves <palves@redhat.com>
2165 Checked in by Joel Brobecker <brobecker@adacore.com>.
2166 * ada-lang.c (coerce_unspec_val_to_type): Use
2167 value_optimized_out_const.
2168 * value.c (value_optimized_out_const): New function.
2169 * value.h (value_optimized_out_const): New declaration.
2171 2013-07-09 Doug Evans <dje@google.com>
2173 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
2174 Enum values rename as well. All uses updated.
2175 * valprint.h (value_print_options): Rename member pretty to
2176 pretty format. Rename member prettyprint_arrays to
2177 prettyformat_arrays. Rename member prettyprint_structs to
2178 prettyformat_structs. All uses updated.
2179 (get_no_prettyformat_print_options): Renamed from
2180 get_raw_print_options.
2181 * valprint.c (get_no_prettyformat_print_options): Renamed from
2182 get_raw_print_options. All callers updated.
2183 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
2184 All callers updated.
2185 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
2186 All callers updated.
2187 (_initialize_valprint): Improve help text for "set print pretty" and
2190 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
2192 * value.c (value_bits_valid): Revert previous change, and change
2193 by Pedro on 2013-07-04, due to regressions in
2194 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
2196 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
2197 Pedro Alves <palves@redhat.com>
2199 * value.c (value_bits_valid): If the value is not lval_computed
2200 or has no check validity handler then the answer is the
2201 optimized_out flag, otherwise defer to the handler.
2203 2013-07-06 Eli Zaretskii <eliz@gnu.org>
2205 * top.c (print_gdb_configuration): Explain in output of
2206 --configuration what does "relocatable" mean.
2208 * main.c (print_gdb_help): Regroup options in the --help text.
2209 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
2210 the relevant discussions.
2212 2013-07-06 Yao Qi <yao@codesourcery.com>
2214 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
2215 Remove parameter 'lsal'.
2216 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
2217 to inner block. Caller update.
2218 (base_breakpoint_create_breakpoints_sal): Update.
2219 (bkpt_create_breakpoints_sal): Likewise.
2220 (tracepoint_create_breakpoints_sal): Likewise.
2221 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
2222 element 0 of vector 'canonical->sals'.
2224 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
2226 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
2227 register number instead of the pseudo register one.
2228 (rs6000_dwarf2_reg_to_regnum): Likewise.
2230 2013-07-04 Pedro Alves <palves@redhat.com>
2232 * findvar.c (value_of_register): Use allocate_optimized_out_value
2233 if the register has been optimized out, instead of
2234 set_value_optimized_out.
2235 * frame-unwind.c (frame_unwind_got_optimized): Use
2236 allocate_optimized_out_value.
2238 2013-07-04 Pedro Alves <palves@redhat.com>
2240 * value.c (value_bits_valid): If the value is not lval_computed,
2241 or doesn't have a check_validity hook, assume the value is entirely
2244 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
2246 * stack.c (read_frame_arg): No longer fetch lazy values.
2247 * value.c (value_optimized_out): If the value is not already
2248 marked optimized out, and is lazy then fetch it.
2249 (value_primitive_field): Move optimized out check to later in the
2250 function, after we have loaded any lazy values.
2251 (value_fetch_lazy): Use optimized out flag directly rather than
2252 calling optimized_out method.
2254 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
2256 * valops.c: Don't include "user-regs.h".
2257 (value_fetch_lazy): Moved to value.c.
2258 * value.c: Include "user-regs.h".
2259 (value_fetch_lazy): Moved from valops.c.
2261 2013-07-04 Yao Qi <yao@codesourcery.com>
2264 2013-06-27 Yao Qi <yao@codesourcery.com>
2266 * common/create-version.sh: Update comments. Handle the case
2267 that TARGET_ALIAS is empty.
2269 2013-07-03 Pedro Alves <palves@redhat.com>
2271 * Makefile.in (config.status): Depend on development.sh.
2272 (aclocal_m4_deps): Add libmcheck.m4.
2273 * acinclude.m4: Include libmcheck.m4.
2274 * configure.ac: Source development.sh instead of setting
2275 'development' here. --enable-libmcheck/--disable-libmcheck code
2276 factored out to GDB_AC_LIBMCHECK. Run it.
2277 * development.sh: New file.
2278 * libmcheck.m4: New file.
2279 * configure: Regenerate.
2281 2013-07-02 Tom Tromey <tromey@redhat.com>
2283 * contrib/ari/update-web-ari.sh: Update for version.in change.
2285 2013-07-02 Tom Tromey <tromey@redhat.com>
2287 * common/ptid.h: Comment fixes.
2289 2013-07-01 Tom Tromey <tromey@redhat.com>
2291 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
2292 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
2293 (dwarf2_read_index, create_all_comp_units): Update.
2295 2013-07-01 Tom Tromey <tromey@redhat.com>
2297 * configure.ac (build_warnings): Add -Wold-style-definition.
2298 * configure: Rebuild.
2299 * machoread.c (_initialize_machoread): Use "(void)".
2300 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
2303 2013-07-01 Tom Tromey <tromey@redhat.com>
2305 * configure.ac (build_warnings): Add -Wold-style-declaration.
2306 * configure: Rebuild.
2307 * dsrec.c (make_srec): Use "static const", not "const static".
2308 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
2310 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
2311 Use "static const", not "const static".
2312 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
2314 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
2316 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
2318 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
2320 (v850_dbtrap_breakpoint_from_pc): Likewise.
2321 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
2324 2013-07-01 Tom Tromey <tromey@redhat.com>
2326 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
2327 * configure: Rebuild.
2329 2013-07-01 Pedro Alves <palves@redhat.com>
2331 * defs.h: Include "pathmax.h".
2332 * utils.c: Don't include sys/param.h.
2333 (gdb_realpath): Remove code that checks for MAXPATHLEN.
2334 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
2335 instead of MAXPATHLEN.
2336 * solib-sunos.c: Don't include sys/param.h.
2337 * xcoffread.c: Don't include sys/param.h.
2338 * bsd-kvm.c: Don't include sys/param.h.
2339 * darwin-nat.c: Don't include sys/param.h.
2340 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2341 * darwin-nat-info.c: Don't include sys/param.h.
2342 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
2344 * i386obsd-nat.c: Don't include sys/param.h.
2345 * inf-child.c: Don't include sys/param.h.
2346 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
2347 * linux-fork.c: Don't include sys/param.h.
2348 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
2349 * linux-nat.c: Don't include sys/param.h.
2350 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
2351 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
2352 * m68klinux-nat.c: Don't include sys/param.h.
2353 * nbsd-nat.c: Don't include sys/param.h.
2354 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2355 * ppc-linux-nat.c: Don't include sys/param.h.
2356 * rs6000-nat.c: Don't include sys/param.h.
2357 * spu-linux-nat.c. Don't include sys/param.h.
2358 * windows-nat.c: Don't include sys/param.h.
2359 * xtensa-linux-nat.c: Don't include sys/param.h.
2360 * config/i386/nm-fbsd.h: Don't include sys/param.h.
2362 2013-07-01 Pedro Alves <palves@redhat.com>
2364 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
2365 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
2366 * gnulib/aclocal.m4: Regenerate.
2367 * gnulib/config.in: Regenerate.
2368 * gnulib/configure: Regenerate.
2369 * gnulib/import/pathmax.h: New file.
2370 * gnulib/import/Makefile.am: Regenerate.
2371 * gnulib/import/Makefile.in: Regenerate.
2372 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2373 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2374 * gnulib/import/m4/pathmax.m4: New file.
2376 2013-07-01 Pedro Alves <palves@redhat.com>
2378 * configure.ac (GDBINIT): Define, depending on host.
2379 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
2380 * top.c (PATH_MAX): Delete fallback definition.
2381 (GDBINIT_FILENAME): Delete.
2382 (gdbinit): Reimplement as const char array set to the GDBINIT
2384 * top.h (gdbinit): Make const.
2385 * configure, config.in: Regenerate.
2387 2013-07-01 Pedro Alves <palves@redhat.com>
2389 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
2390 * cli/cli-cmds.h (source_script): Likewise.
2391 * exceptions.c (catch_command_errors_const): New function.
2392 * exceptions.h (catch_command_errors_const): Declare.
2393 * main.c (get_init_files): Make parameters const, and adjust.
2394 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
2395 'local_gdbinit' locals const. Adjust to use
2396 catch_command_errors_const.
2397 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
2398 'local_gdbinit' locals const.
2400 2013-07-01 Pedro Alves <palves@redhat.com>
2402 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
2403 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
2404 * tracepoint.c: Don't check HAVE_UNISTD_H before including
2407 2013-07-01 Pedro Alves <palves@redhat.com>
2409 Import the "unistd" gnulib module.
2410 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
2411 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
2412 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
2413 import/m4/unistd_h.m4.
2414 * gnulib/aclocal.m4: Renenerate.
2415 * gnulib/config.in: Renenerate.
2416 * gnulib/configure: Renenerate.
2417 * gnulib/import/Makefile.am: Renenerate.
2418 * gnulib/import/Makefile.in: Renenerate.
2419 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
2420 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
2421 * gnulib/import/m4/off_t.m4: New file.
2422 * gnulib/import/m4/ssize_t.m4: New file.
2423 * gnulib/import/m4/sys_types_h.m4: New file.
2424 * gnulib/import/m4/unistd_h.m4: New file.
2425 * gnulib/import/sys_types.in.h: New file.
2426 * gnulib/import/unistd.c: New file.
2427 * gnulib/import/unistd.in.h: New file.
2429 2013-07-01 Pedro Alves <palves@redhat.com>
2431 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
2432 defined instead of checking HAVE_UNISTD_H.
2434 2013-07-01 Pedro Alves <palves@redhat.com>
2436 Reimport gnulib from scratch.
2437 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
2438 import/m4/onceonly.m4.
2439 * gnulib/aclocal.m4: Renegerate.
2440 * gnulib/config.in: Renegerate.
2441 * gnulib/configure: Renegerate.
2442 * gnulib/import/Makefile.in: Renegerate.
2443 * gnulib/import/extra/update-copyright: Renegerate.
2444 * gnulib/import/m4/onceonly.m4: Delete.
2446 2013-07-01 Pedro Alves <palves@redhat.com>
2448 * tui/tui-regs.c (pagination_enabled): Delete declaration.
2450 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2453 * remote.c (async_remote_interrupt_twice): Make it static.
2454 * remote.h (async_remote_interrupt_twice): Remove the declaration.
2456 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
2458 * ia64-linux-tdep.c: Include <ctype.h>.
2459 (ia64_linux_stap_is_single_operand): New function.
2460 (ia64_linux_init_abi): Initialize SystemTap related attributes.
2462 2013-06-28 Tom Tromey <tromey@redhat.com>
2464 * Makefile.in (version.c): Use version.in, not
2466 * common/create-version.sh: Likewise.
2467 * common/version.in: Move...
2468 * version.in: ...here.
2470 2013-06-28 Pedro Alves <palves@redhat.com>
2472 * infrun.c (set_observer_mode): Don't declare pagination_enabled
2474 * utils.h (pagination_enabled): Declare.
2476 2013-06-28 Pedro Alves <palves@redhat.com>
2478 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
2479 Move higher up in file.
2481 2013-06-28 Tom Tromey <tromey@redhat.com>
2483 * tracepoint.c (deprecated_readline_begin_hook)
2484 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
2487 2013-06-28 Pedro Alves <palves@redhat.com>
2490 * tui/tui-regs.c (tui_get_register): Fetch value contents before
2491 checking if they're available.
2492 * value.c (value_available_contents_eq): Change comment.
2493 * value.h (value_available_contents_eq): Expand comment.
2495 2013-06-27 Tom Tromey <tromey@redhat.com>
2497 * target.c (find_run_target): Remove.
2498 * target.h (find_run_target): Remove.
2500 2013-06-27 Tom Tromey <tromey@redhat.com>
2502 * corelow.c (core_gdbarch): Now static.
2504 2013-06-27 Tom Tromey <tromey@redhat.com>
2506 * target.c (target_struct_index): Remove.
2508 2013-06-27 Pedro Alves <palves@redhat.com>
2510 * infrun.c: Remove comment describing the 'stepping over runtime
2511 loader dynamic symbol resolution code' mechanism; moved to
2514 2013-06-27 Pedro Alves <palves@redhat.com>
2516 * exceptions.c (catch_command_errors): Remove spurious space.
2517 * exceptions.h (catch_command_errors): Second parameter is "arg",
2520 2013-06-27 Yao Qi <yao@codesourcery.com>
2522 * common/create-version.sh: Update comments. Handle the case
2523 that TARGET_ALIAS is empty.
2525 2013-06-26 Pedro Alves <palves@redhat.com>
2527 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
2530 2013-06-26 Pedro Alves <palves@redhat.com>
2532 * infrun.c: Update comments on stepping over runtime loader
2533 dynamic symbol resolution code.
2535 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
2537 * ax-gdb.h (union exp_element): Forward declare.
2538 * parser-defs.h: Include expression.h.
2540 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2542 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
2544 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2546 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
2548 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2550 Fix trace-status to output proper start-time and stop-time.
2551 * tracepoint.c (trace_status_command): Fix type of printf arg to
2552 prevent improper type conversion.
2553 (trace_status_mi): Likewise.
2555 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2557 * mips-tdep.c (mips_next_pc): Fix a typo.
2559 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2561 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
2563 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2564 Yao Qi <yao@codesourcery.com>
2566 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
2567 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
2568 * mi/mi-main.c (print_variable_or_computed): New function.
2569 (mi_cmd_trace_frame_collected): New function.
2570 * tracepoint.c (find_trace_state_variable_by_number): New.
2571 (struct traceframe_info): Move to tracepoint.h
2572 (struct collection_list): Likewise.
2573 (do_collect_symbol): Include locals and arguments in the
2574 collected variables list.
2575 (clear_collection_list): Clear wholly collected variables list
2576 and computed variables list.
2577 (append_exp): New function.
2578 (encode_actions_1): Include variables in the wholly
2579 collected variables list. Include memory ranges and
2580 full-fledged expressions in the computed expressions list.
2581 (encode_actions): Move some code to ...
2582 Return the cleanup chain.
2583 (encode_actions_rsp): ... here. New function.
2584 (get_traceframe_location, get_traceframe_info): Remove static.
2585 * tracepoint.h (struct memrange): Moved from tracepoint.c.
2586 (struct collection_list): Moved from tracepoint.c. Add two
2587 new fields 'wholly_collected' and 'computed'.
2588 (find_trace_state_variable_by_number): Declare.
2589 (encode_actions): Adjust declaration.
2590 (encode_actions_rsp): Declare.
2591 (get_traceframe_info, get_traceframe_location): Declare.
2593 * NEWS: Mention new MI command -trace-frame-collected.
2595 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2596 Yao Qi <yao@codesourcery.com>
2598 * ctf.c (ctf_traceframe_info): Push trace state variables
2599 present in the trace data into the traceframe info object.
2600 * breakpoint.c (DEF_VEC_I): Remove.
2601 * common/filestuff.c (DEF_VEC_I): Likewise.
2602 * dwarf2loc.c (DEF_VEC_I): Likewise.
2603 * mi/mi-main.c (DEF_VEC_I): Likewise.
2604 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
2605 * features/traceframe-info.dtd: Add tvar element and its
2607 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
2608 (build_traceframe_info): Push trace state variables present in
2609 the trace data into the traceframe info object.
2610 (traceframe_info_start_tvar): New function.
2611 (tvar_attributes): New.
2612 (traceframe_info_children): Add "tvar" element.
2613 * tracepoint.h (struct traceframe_info) <tvars>: New field.
2615 * NEWS: Mention the change in GDB and GDBserver.
2617 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2618 Yao Qi <yao@codesourcery.com>
2620 * tracepoint.c (trace_dump_command): Move code to ...
2621 (get_traceframe_location): ... here. New.
2623 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2624 Yao Qi <yao@codesourcery.com>
2626 * tracepoint.c (trace_dump_command): GDB emits an error
2627 instead of a warning when a traceframe is not selected.
2629 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2630 Yao Qi <yao@codesourcery.com>
2632 * tracepoint.c (tracepoint_list, stepping_list): Remove.
2633 (clear_collection_list): Free fields 'aexpre_list' and 'list'
2635 (do_clear_collection_list, init_collection_list): New.
2636 (encode_actions): Add local variables 'tracepoint_list' and
2637 'stepping_list'. Call init_collection_list and make cleanup
2638 which calls do_clear_collection_list. Don't call
2639 clear_collection_list.
2640 (_initialize_tracepoint): Delete references to
2641 'tracepoint_list' and 'stepping_list'.
2643 2013-06-25 Tom Tromey <tromey@redhat.com>
2645 * common/create-version.sh (date): Use "$", not "$$" in sed
2648 2013-06-25 Kevin Buettner <kevinb@redhat.com>
2650 * NEWS (New targets): Add entry for TI MSP430.
2652 2013-06-25 Yao Qi <yao@codesourcery.com>
2654 * remote.c (remote_start_remote): Move code to upload tsv
2657 2013-06-25 Yao Qi <yao@codesourcery.com>
2658 Hui Zhu <hui@codesourcery.com>
2659 Pedro Alves <palves@redhat.com>
2661 PR breakpoints/15075
2662 PR breakpoints/15434
2663 * breakpoint.c (bpstat_stop_status): Call
2664 b->ops->after_condition_true.
2665 (update_dprintf_command_list): Don't append "continue" command
2666 to the command list of dprintf breakpoint.
2667 (base_breakpoint_after_condition_true): New function.
2668 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
2669 (dprintf_after_condition_true): New function.
2670 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
2671 * breakpoint.h (breakpoint_ops): Add after_condition_true.
2673 2013-06-24 Kevin Buettner <kevinb@redhat.com>
2675 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
2676 (ALLDEPFILES): Add msp430-tdep.c.
2677 * configure.tgt (msp430*-*-elf): New target.
2678 * msp430-tdep.c: New file.
2680 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2682 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
2683 microMIPS synthetic symbols.
2685 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2687 * objfiles.h (pc_in_section): New prototype.
2688 (in_plt_section): Remove name argument, replace prototype with
2689 static inline function.
2690 * mips-tdep.h: Include "objfiles.h".
2691 (in_mips_stubs_section): New function.
2692 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
2693 in_solib_call_trampoline member.
2694 (hppa_in_solib_call_trampoline): Remove name argument.
2695 * objfiles.c (pc_in_section): New function.
2696 (in_plt_section): Remove function.
2697 * mips-linux-tdep.c: Include "objfiles.h".
2698 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
2699 name argument. Return 1 rather than the low 16-bit halfword of
2700 any instruction examined.
2701 (mips_linux_in_dynsym_resolve_code): Update
2702 mips_linux_in_dynsym_stub call accordingly.
2703 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
2704 rather than an equivalent hand-coded sequence.
2705 * hppa-hpux-tdep.c (in_opd_section): Remove function.
2706 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
2707 (hppa64_hpux_in_solib_call_trampoline): Likewise.
2708 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
2710 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
2711 on call to tdep->in_solib_call_trampoline.
2712 (hppa_in_solib_call_trampoline): Remove name argument, update
2713 according to in_plt_section change.
2714 (hppa_skip_trampoline_code): Update according to in_plt_section
2716 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
2717 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
2719 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
2720 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2721 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2722 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
2723 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
2724 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
2725 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
2726 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
2727 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
2728 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
2729 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
2730 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
2731 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
2733 2013-06-24 Joel Brobecker <brobecker@adacore.com>
2735 * common/create-version.sh: Fix expansion of $host_alias
2736 and $target_alias in generation of HOST_NAME and TARGET_NAME
2739 2013-06-24 Tom Tromey <tromey@redhat.com>
2741 * common/create-version.sh: New file.
2742 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
2744 (HFILES_NO_SRCDIR): Use common/version.h.
2745 * version.in: Move to ...
2746 * common/version.in: ... here. Replace date with "DATE".
2747 * version.h: Move to ...
2748 * common/version.h: ... here.
2750 2013-06-21 Joel Brobecker <brobecker@adacore.com>
2752 * gdb/gnulib/Makefile.in: Update date in copyright header.
2753 * gdb/gnulib/configure.ac: Ditto.
2754 * gdb/gnulib/update-gnulib.sh: Ditto.
2756 2013-06-21 Joel Brobecker <brobecker@adacore.com>
2758 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
2759 "gdb/gnulib/import".
2761 2013-06-21 Will Newton <will.newton@linaro.org>
2763 * doublest.c (ldfrexp): Remove function.
2764 (convert_doublest_to_floatformat): Call frexpl instead of
2767 2013-06-21 Will Newton <will.newton@linaro.org>
2769 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
2770 * gnulib/aclocal.m4: Regenerate.
2771 * gnulib/config.in: Regenerate.
2772 * gnulib/configure: Regenerate.
2773 * gnulib/import/Makefile.am: Update.
2774 * gnulib/import/Makefile.in: Update.
2775 * gnulib/import/m4/gnulib-cache.m4: Update.
2776 * gnulib/import/m4/gnulib-comp.m4: Update.
2777 * gnulib/import/float+.h: Import.
2778 * gnulib/import/float.c: Import.
2779 * gnulib/import/float.in.h: Import.
2780 * gnulib/import/fpucw.h: Import.
2781 * gnulib/import/frexp.c: Import.
2782 * gnulib/import/frexpl.c: Import.
2783 * gnulib/import/isnan.c: Import.
2784 * gnulib/import/isnand-nolibm.h: Import.
2785 * gnulib/import/isnand.c: Import.
2786 * gnulib/import/isnanl-nolibm.h: Import.
2787 * gnulib/import/isnanl.c: Import.
2788 * gnulib/import/itold.c: Import.
2789 * gnulib/import/m4/exponentd.m4: Import.
2790 * gnulib/import/m4/exponentl.m4: Import.
2791 * gnulib/import/m4/float_h.m4: Import.
2792 * gnulib/import/m4/fpieee.m4: Import.
2793 * gnulib/import/m4/frexp.m4: Import.
2794 * gnulib/import/m4/frexpl.m4: Import.
2795 * gnulib/import/m4/isnand.m4: Import.
2796 * gnulib/import/m4/isnanl.m4: Import.
2797 * gnulib/import/m4/math_h.m4: Import.
2798 * gnulib/import/math.c: Import.
2799 * gnulib/import/math.in.h: Import.
2801 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2803 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
2804 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
2805 signature_INTEL_edx comparisons.
2807 2013-06-20 Doug Evans <dje@google.com>
2810 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
2811 All callers updated.
2812 (open_dwp_file): If we can't find the dwp file, search the basename
2813 in debug-file-directory.
2815 * dwarf2read.c (struct dwp_file): Fix comment.
2816 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
2818 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
2821 2013-06-20 Yao Qi <yao@codesourcery.com>
2823 * breakpoint.c (create_breakpoint): Fix code indentation.
2825 2013-06-20 Yao Qi <yao@codesourcery.com>
2827 * breakpoint.c (create_breakpoints_sal_default): Remove
2828 parameter 'lsal'. Update declaration.
2829 (bkpt_create_breakpoints_sal): Caller update.
2830 (tracepoint_create_breakpoints_sal): Likewise.
2832 2013-06-20 Pedro Alves <pedro@codesourcery.com>
2833 Yao Qi <yao@codesourcery.com>
2835 * NEWS: Mention the new option '--skip-unavailable' of command
2836 -data-list-register-values.
2837 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
2838 --skip-unavailable option. Adjust to use output_register.
2839 (output_register): Add new 'skip_unavailable' parameter.
2842 2013-06-19 Mike Frysinger <vapier@gentoo.org>
2844 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
2845 common/i386-gcc-cpuid.h.
2846 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
2847 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
2848 Copy the latest version from upstream gcc.
2849 * common/linux-btrace.c: Include i386-cpuid.h.
2850 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
2852 (cpu_supports_btrace): Likewise.
2853 * go32-nat.c: Include i386-cpuid.h.
2854 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
2856 2013-06-19 Doug Evans <dje@google.com>
2858 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
2859 (get_section_index): Ditto.
2861 2013-06-19 Tom Tromey <tromey@redhat.com>
2863 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
2866 2013-06-18 Doug Evans <dje@google.com>
2868 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
2870 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
2871 Move test of cu_index closer to use. Print complaint if cu_index
2874 2013-06-18 Joel Brobecker <brobecker@adacore.com>
2876 * machoread.c (oso_vector): Delete this global.
2877 (macho_register_oso): Add new parameter "oso_vector_ptr".
2878 Use it instead of the "oso_vector" global.
2879 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
2880 (macho_symfile_read): Use a local oso_vector, to be free'ed
2881 at the end of this function, in place of the old "oso_vector"
2882 global. Update various function calls accordingly. Use one
2883 single cleanup chain for the entire function.
2885 2013-06-18 Joel Brobecker <brobecker@adacore.com>
2887 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
2888 DWARF2_PER_OBJFILE by uses of DATA instead.
2890 2013-06-18 Tom Tromey <tromey@redhat.com>
2892 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
2894 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
2895 Special case signals other than GDB_SIGNAL_TRAP.
2896 (explains_signal_watchpoint): New function.
2897 (base_breakpoint_explains_signal): Add 'sig' argument.
2898 (initialize_breakpoint_ops): Set 'explains_signal' method for
2900 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
2902 (bpstat_explains_signal): Likewise.
2903 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
2905 2013-06-18 Tom Tromey <tromey@redhat.com>
2907 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
2909 2013-06-18 Tom Tromey <tromey@redhat.com>
2911 * python/python.c (finish_python_initialization): Decref
2912 'pythondir' on failure path as well.
2914 2013-06-18 Tom Tromey <tromey@redhat.com>
2917 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
2918 after taking bits_to_skip into account. Sign extend byte_offset.
2919 * utils.h (gdb_sign_extend): Declare.
2920 * utils.c (gdb_sign_extend): New function.
2922 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2924 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
2926 2013-06-17 Pierre Muller <muller@sourceware.org>
2928 * corelow.c (core_open): Print GDB signal name instead of target
2931 2013-06-17 Mike Frysinger <vapier@gentoo.org>
2933 * .gitignore: Add /gcore.
2935 2013-06-13 Doug Evans <dje@google.com>
2937 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
2938 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
2940 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
2942 * stack.c (backtrace_command_1): Fix indentation.
2944 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2946 * window-nat.c (thread_rec): Add missing empty line after
2947 local variable declaration.
2949 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2951 * windows-nat.c (thread_rec): Revert format used to print
2952 error code returned by SuspendThread from %d back to %u.
2954 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2956 * windows-nat.c (windows_continue): Add "0x" prefix for thread
2958 (get_windows_debug_event): Likewise, for all debug traces.
2960 2013-06-11 Joel Brobecker <brobecker@adacore.com>
2962 * window-nat.c (thread_rec): Add thread ID in SuspendThread
2965 2013-06-08 Pedro Alves <pedro@codesourcery.com>
2966 Yao Qi <yao@codesourcery.com>
2968 * mi/mi-main.c (get_register): Remove declaration.
2969 (output_register): Declare.
2970 (mi_cmd_data_list_register_values): Remove local variable
2971 'tuple_cleanup'. Move some code into output_register.
2972 (get_register): Renamed to ...
2973 (output_register): ... this. Output the register's
2974 "number" ui_out tuple here.
2976 2013-06-07 Pedro Alves <palves@redhat.com>
2978 * darwin-nat.c: Fix formating in copyright header.
2979 * darwin-nat.h: Likewise.
2980 * gnu-nat.c: Likewise.
2981 * machoread.c: Likewise.
2983 2013-06-07 Pedro Alves <palves@redhat.com>
2986 * regformats/regdat.sh: Output #include tdesc.h. Make globals
2987 static. Output a global target description pointer.
2988 (init_registers_${name}): Adjust to initialize a
2989 target description structure.
2991 2013-06-07 Will Newton <will.newton@linaro.org>
2993 * printcmd.c (build_address_symbolic): Call
2994 gdbarch_addr_bits_remove for text minimal symbols.
2996 2013-06-07 Will Newton <will.newton@linaro.org>
2998 * MAINTAINERS: Add myself to Write After Approval.
3000 2013-06-07 Yao Qi <yao@codesourcery.com>
3002 * tracepoint.c (start_tracing): Move code to ...
3003 (trace_reset_local_state): ... here. New.
3004 (disconnect_tracing): Don't call set_current_traceframe,
3005 set_tracepoint_num, and set_traceframe_context. Call
3006 trace_reset_local_state instead.
3007 (tfile_close): Call trace_reset_local_state.
3008 * ctf.c (ctf_close): Likewise.
3009 * remote.c (remote_close): Likewise.
3010 * tracepoint.h (trace_reset_local_state): Declare.
3012 2013-06-06 Doug Evans <dje@google.com>
3014 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3015 and fix header docs.
3017 2013-06-05 Doug Evans <dje@google.com>
3018 Keith Seitz <keiths@redhat.com>
3021 * cp-namespace.c (find_symbol_in_baseclass): Call
3022 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3023 Check result of call to lookup_symbol_static.
3024 Call lookup_static_symbol_aux unconditionally.
3025 Call check_typedef on base types before accessing them.
3026 (cp_lookup_nested_symbol): Fix comment.
3028 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
3030 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3031 minimal symbols pointing to function descriptors.
3033 2013-06-05 Tom Tromey <tromey@redhat.com>
3035 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3037 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3038 Pedro Alves <palves@redhat.com>
3040 * remote.c (remote_wait_as): Restore signal handler before returning
3041 when GDB gets a notification.
3043 2013-06-04 Gary Benson <gbenson@redhat.com>
3046 * breakpoint.h (handle_solib_event): Moved function declaration
3048 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3049 (bpstat_stop_status): Pass new argument to handle_solib_event.
3050 * solib.h (update_solib_breakpoints): New function declaration.
3051 (handle_solib_event): Moved function declaration from
3053 * solib.c (update_solib_breakpoints): New function.
3054 (handle_solib_event): Moved function from breakpoint.c.
3055 Updated to call solib_ops->handle_event if not NULL.
3056 * solist.h (target_so_ops): New fields "update_breakpoints" and
3058 * infrun.c (set_stop_on_solib_events): New function.
3059 (_initialize_infrun): Use the above for "set
3060 stop-on-solib-events".
3061 (handle_inferior_event): Pass new argument to handle_solib_event.
3062 * solib-svr4.c (probe.h): New include.
3063 (svr4_free_library_list): New forward declaration.
3064 (probe_action): New enum.
3065 (probe_info): New struct.
3066 (probe_info): New static variable.
3067 (NUM_PROBES): New definition.
3068 (svr4_info): New fields "using_xfer", "probes_table" and
3070 (free_probes_table): New function.
3071 (free_solib_list): New function.
3072 (svr4_pspace_data_cleanup): Free probes table and solib list.
3073 (svr4_copy_library_list): New function.
3074 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3075 (svr4_read_so_list): New parameter "prev_lm".
3076 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3077 (svr4_current_sos): New function.
3078 (probe_and_action): New struct.
3079 (hash_probe_and_action): New function.
3080 (equal_probe_and_action): Likewise.
3081 (register_solib_event_probe): Likewise.
3082 (solib_event_probe_at): Likewise.
3083 (solib_event_probe_action): Likewise.
3084 (solist_update_full): Likewise.
3085 (solist_update_incremental): Likewise.
3086 (disable_probes_interface_cleanup): Likewise.
3087 (svr4_handle_solib_event): Likewise.
3088 (svr4_update_solib_event_breakpoint): Likewise.
3089 (svr4_update_solib_event_breakpoints): Likewise.
3090 (svr4_create_solib_event_breakpoints): Likewise.
3091 (enable_break): Free probes table before creating breakpoints.
3092 Use svr4_create_solib_event_breakpoints to create breakpoints.
3093 (svr4_solib_create_inferior_hook): Free the solib list.
3094 (_initialize_svr4_solib): Initialise
3095 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3097 2013-06-04 Gary Benson <gbenson@redhat.com>
3099 * target.h (target_ops): New field
3100 "to_augmented_libraries_svr4_read".
3101 (target_augmented_libraries_svr4_read): New macro.
3102 * target.c (update_current_target): Handle
3103 to_augmented_libraries_svr4_read.
3104 * remote.c (remote_state): New field
3105 "augmented_libraries_svr4_read".
3106 (remote_augmented_libraries_svr4_read_feature): New function.
3107 (remote_protocol_features): Add entry for
3108 "augmented-libraries-svr4-read".
3109 (remote_augmented_libraries_svr4_read): New function.
3110 (init_remote_ops): Initialize
3111 remote_ops.to_augmented_libraries_svr4_read.
3113 2013-06-04 Gary Benson <gbenson@redhat.com>
3117 2013-06-04 Gary Benson <gbenson@redhat.com>
3119 * objfiles.h (inhibit_section_map_updates): New function
3121 (resume_section_map_updates): Likewise.
3122 (resume_section_map_updates_cleanup): Likewise.
3123 * objfiles.c (objfile_pspace_info): Removed field
3124 "objfiles_changed_p". New fields "new_objfiles_available",
3125 "section_map_dirty" and "inhibit_updates".
3126 (allocate_objfile): Set new_objfiles_available.
3127 (free_objfile): Set section_map_dirty.
3128 (objfile_relocate1): Likewise.
3129 (in_plt_section): Likewise.
3130 (find_pc_section): Update the conditions under which the
3131 section map will be updated.
3132 (inhibit_section_map_updates): New function.
3133 (resume_section_map_updates): Likewise.
3134 (resume_section_map_updates_cleanup): Likewise.
3136 2013-06-04 Gary Benson <gbenson@redhat.com>
3138 * probe.h (get_probe_argument_count): New declaration.
3139 (evaluate_probe_argument): Likewise.
3140 * probe.c (get_probe_argument_count): New function.
3141 (evaluate_probe_argument): Likewise.
3142 (probe_safe_evaluate_at_pc): Use the above new functions.
3144 2013-06-04 Alan Modra <amodra@gmail.com>
3146 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3147 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
3148 (ppc_insns_match_pattern): Add frame param. Avoid multiple
3149 target mem reads on optional insns.
3150 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
3151 ppc_insns_match_pattern calls.
3152 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
3153 Add match for power7 thread safety insns, and new order of
3154 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
3155 invocation in comment, and update rest of comment.
3156 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
3157 PPC64_STANDARD_LINKAGE3_LEN): Delete.
3158 (ppc64_standard_linkage2_target): Update insn offsets.
3159 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
3160 stubs first. Update calls.
3162 2013-06-04 Yao Qi <yao@codesourcery.com>
3164 * solib.c (solib_find): Don't need dir separator if path has
3167 2013-06-03 Joel Brobecker <brobecker@adacore.com>
3169 Revert (indirectly causes a SIGSEGV):
3170 * machoread.c (macho_symfile_read): Assign first cleanup to
3173 2013-06-03 Yao Qi <yao@codesourcery.com>
3175 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
3176 mi-parse.c. Make them static.
3177 (mi_all_values): Likewise.
3178 (mi_parse_values_option): Move to mi-parse.c. Rename it to
3179 mi_parse_print_values. Make it external.
3180 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
3181 Remove the declarations.
3182 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
3183 * mi/mi-parse.h (mi_parse_print_values): Declare.
3184 * mi/mi-cmd-stack.c: Include mi-parse.h.
3185 (parse_print_values): Remove
3186 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
3187 of parse_print_values.
3188 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
3190 2013-05-31 Pedro Alves <pedro@codesourcery.com>
3191 Yao Qi <yao@codesourcery.com>
3193 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
3194 (encode_actions): Move code to ...
3195 (all_tracepoint_actions_and_cleanup): ... here. New.
3196 (trace_dump_command): Likewise.
3198 2013-05-30 Tom Tromey <tromey@redhat.com>
3200 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
3202 2013-05-30 Tom Tromey <tromey@redhat.com>
3204 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
3205 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
3206 'old_chain' argument. Add 'parser_result' argument.
3207 (gdb_xml_create_parser_and_cleanup): Remove old version.
3208 (gdb_xml_parse_quick): Update.
3209 (xml_process_xincludes): Update.
3210 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
3213 2013-05-30 Tom Tromey <tromey@redhat.com>
3215 * probe.c (collect_probes): Check arguments for NULL before
3216 calling compile_rx_or_error.
3217 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
3220 2013-05-30 Tom Tromey <tromey@redhat.com>
3222 * infrun.c (adjust_pc_after_break): Introduce an outer null
3225 2013-05-30 Tom Tromey <tromey@redhat.com>
3227 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
3229 2013-05-30 Tom Tromey <tromey@redhat.com>
3231 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
3232 for 'old_chain'. Do not check 'head' before processing
3235 2013-05-30 Tom Tromey <tromey@redhat.com>
3237 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
3240 2013-05-30 Tom Tromey <tromey@redhat.com>
3242 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
3243 inner scope. Unconditionally call do_cleanups.
3245 2013-05-30 Tom Tromey <tromey@redhat.com>
3247 * source.c (find_and_open_source): Call do_cleanups.
3249 2013-05-30 Tom Tromey <tromey@redhat.com>
3251 * linux-thread-db.c (thread_db_load_search): Unconditionally
3254 2013-05-30 Tom Tromey <tromey@redhat.com>
3256 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
3257 for 'cleanup'; instead use a later one.
3259 2013-05-30 Tom Tromey <tromey@redhat.com>
3261 * python/py-breakpoint.c (bppy_get_commands): Use
3262 explicit, unconditional return.
3263 * python/py-frame.c (frapy_read_var): Likewise.
3264 * python/python.c (gdbpy_decode_line): Likewise.
3266 2013-05-30 Tom Tromey <tromey@redhat.com>
3268 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
3269 do_cleanups on all return paths.
3271 2013-05-30 Tom Tromey <tromey@redhat.com>
3273 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
3275 2013-05-30 Tom Tromey <tromey@redhat.com>
3277 * stabsread.c (read_struct_type): Call do_cleanups along
3280 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
3282 * mips-linux-tdep.c: Adjust formatting throughout.
3284 2013-05-30 Tom Tromey <tromey@redhat.com>
3286 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
3287 along all return paths.
3289 2013-05-30 Tom Tromey <tromey@redhat.com>
3291 * symfile.c (find_separate_debug_file): Call do_cleanups
3292 along all return paths.
3294 2013-05-30 Tom Tromey <tromey@redhat.com>
3296 * symtab.c (search_symbols): Introduce a null cleanup for
3299 2013-05-30 Tom Tromey <tromey@redhat.com>
3301 * python/py-value.c (valpy_binop): Call do_cleanups before
3304 2013-05-30 Tom Tromey <tromey@redhat.com>
3306 * python/py-prettyprint.c (print_children): Remove extra
3309 2013-05-30 Tom Tromey <tromey@redhat.com>
3311 * python/py-frame.c (frapy_read_var): Call do_cleanups along
3314 2013-05-30 Tom Tromey <tromey@redhat.com>
3316 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
3317 along all return paths.
3319 2013-05-30 Tom Tromey <tromey@redhat.com>
3321 * cli/cli-logging.c (set_logging_redirect): Unconditionally
3324 2013-05-30 Tom Tromey <tromey@redhat.com>
3326 * varobj.c (c_value_of_root): Call do_cleanups along all
3329 2013-05-30 Tom Tromey <tromey@redhat.com>
3331 * tracepoint.c (trace_dump_command): Unconditionally call
3334 2013-05-30 Tom Tromey <tromey@redhat.com>
3336 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
3337 do_cleanups earlier.
3339 2013-05-30 Tom Tromey <tromey@redhat.com>
3341 * machoread.c (macho_symfile_read): Assign first cleanup to
3344 2013-05-30 Tom Tromey <tromey@redhat.com>
3346 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
3348 2013-05-30 Tom Tromey <tromey@redhat.com>
3350 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
3352 2013-05-30 Tom Tromey <tromey@redhat.com>
3354 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
3355 call discard_cleanups.
3356 (inf_ptrace_attach): Likewise.
3358 2013-05-30 Tom Tromey <tromey@redhat.com>
3360 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
3362 (mips_initialize): Likewise.
3363 (common_open): Call do_cleanups.
3365 2013-05-30 Tom Tromey <tromey@redhat.com>
3367 * utils.c (internal_vproblem): Call do_cleanups.
3369 2013-05-30 Tom Tromey <tromey@redhat.com>
3371 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
3373 2013-05-30 Tom Tromey <tromey@redhat.com>
3375 * cli/cli-script.c (setup_user_args): Don't return after error.
3377 2013-05-30 Tom Tromey <tromey@redhat.com>
3379 * somread.c (som_symtab_read): Call do_cleanups.
3381 2013-05-30 Tom Tromey <tromey@redhat.com>
3383 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
3385 2013-05-30 Tom Tromey <tromey@redhat.com>
3387 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
3388 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
3389 * interps.c (interpreter_exec_cmd): Call do_cleanups.
3390 * source.c (show_substitute_path_command): Call do_cleanups.
3391 (unset_substitute_path_command, set_substitute_path_command):
3393 * symfile.c (load_command): Call do_cleanups.
3395 2013-05-30 Tom Tromey <tromey@redhat.com>
3397 * contrib/cleanup_check.py: New file.
3398 * contrib/gcc-with-excheck: Add option parsing.
3400 2013-05-30 Joel Brobecker <brobecker@adacore.com>
3402 * windows-nat.c (windows_delete_thread): Add missing space
3405 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3407 * inferior.c (top level): Include tilde.h.
3408 (add_inferior_command): Call tilde_expand on the value of 'exec'
3411 2013-05-30 Pedro Alves <pedro@codesourcery.com>
3412 Yao Qi <yao@codesourcery.com>
3414 * tracepoint.c (encode_actions_1): Remove parameter 't'.
3416 (encode_actions): Likewise.
3417 * remote.c (remote_download_tracepoint): Caller update.
3418 * tracepoint.h (encode_actions): Update declaration.
3420 2013-05-30 Pedro Alves <palves@redhat.com>
3422 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
3425 2013-05-30 Yao Qi <yao@codesourcery.com>
3427 * remote.c (remote_check_symbols): Remove unused parameter
3430 (remote_start_remote, remote_new_objfile): Caller update.
3432 2013-05-30 Yao Qi <yao@codesourcery.com>
3434 * mi/mi-cmds.c (mi_cmds): Define MI command
3435 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
3438 2013-05-29 Pedro Alves <palves@redhat.com>
3440 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
3441 (remote_insert_watchpoint, remote_remove_watchpoint)
3442 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
3443 (remote_verify_memory, compare_sections_command)
3444 (remote_search_memory): Set the general process/thread on the
3447 2013-05-29 Pedro Alves <palves@redhat.com>
3449 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
3450 (_initialize_aarch64_tdep): Don't call
3451 initialize_tdesc_aarch64_without_fpu.
3452 * features/Makefile (WHICH): Remove reference to
3453 aarch64-without-fpu.
3454 * features/aarch64-without-fpu.c: Delete file.
3455 * regformats/aarch64-without-fpu.dat: Delete file.
3457 2013-05-28 Yao Qi <yao@codesourcery.com>
3459 * tracepoint.c (stringify_collection_list): Remove parameter
3461 (encode_actions): Caller update. Remove local variables.
3463 2013-05-24 Yao Qi <yao@codesourcery.com>
3465 * tracepoint.c (TFILE_PID): Remove.
3466 (tfile_open): Don't add thread and inferior.
3467 (tfile_close): Don't set 'inferior_ptid'. Don't call
3468 exit_inferior_silent.
3469 (tfile_thread_alive): Remove.
3470 (init_tfile_ops): Don't set field 'to_thread_alive' of
3473 2013-05-23 Doug Evans <dje@google.com>
3475 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
3477 2013-05-23 Pedro Alves <palves@redhat.com>
3479 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
3480 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
3481 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
3482 Only define if HAVE_SOCKETS is defined.
3483 * configure.ac: Check for sys/socket.h.
3484 * config.in, configure: Regenerate.
3486 2013-05-23 Pedro Alves <palves@redhat.com>
3488 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
3489 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
3490 printing uint32_t variables.
3492 2013-05-23 Pedro Alves <palves@redhat.com>
3494 * NEWS: Mention GDBserver range stepping support.
3496 2013-05-23 Yao Qi <yao@codesourcery.com>
3497 Pedro Alves <palves@redhat.com>
3499 * gdbthread.h (struct thread_control_state) <may_range_step>: New
3501 * infcmd.c (step_once, until_next_command): Enable range stepping.
3502 * infrun.c (displaced_step_prepare): Disable range stepping.
3503 (resume): Disable range stepping if stepping over a breakpoint or
3504 we have software watchpoints. If range stepping is enabled,
3505 assert the thread is in the stepping range.
3506 (clear_proceed_status_thread): Clear may_range_step.
3507 (handle_inferior_event): Disable range stepping as soon as we know
3508 the thread that hit the event. Re-enable it whenever we're going
3509 to step with a step range.
3510 * remote.c (struct vCont_action_support) <r>: New field.
3511 (use_range_stepping): New global.
3512 (remote_vcont_probe): Handle 'r' action.
3513 (append_resumption): Append an 'r' action if the thread may range
3515 (show_range_stepping): New function.
3516 (set_range_stepping): New function.
3517 (_initialize_remote): Call add_setshow_boolean_cmd to register the
3518 'set range-stepping' and 'show range-stepping' commands.
3519 * NEWS: Mention range stepping, the new vCont;r action, and the
3520 new "set/show range-stepping" commands.
3522 2013-05-23 Yao Qi <yao@codesourcery.com>
3523 Pedro Alves <palves@redhat.com>
3525 * remote.c (struct vCont_action_support): New struct.
3526 (struct remote_state) <support_vCont_t>: Remove field.
3527 <vCont_actions_support>: New field.
3528 (remote_vcont_probe, remote_stop_ns): Update.
3530 2013-05-23 Yao Qi <yao@codesourcery.com>
3531 Pedro Alves <palves@redhat.com>
3533 * gdbthread.h (pc_in_thread_step_range): New declaration.
3534 * thread.c (pc_in_thread_step_range): New function.
3535 * infrun.c (handle_inferior_event): Use it.
3537 2013-05-23 Joel Brobecker <brobecker@adacore.com>
3539 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
3542 2013-05-22 Keith Seitz <keiths@redhat.com>
3544 * ada-lang.c (is_known_support_routine): Add explicit free of
3545 'func_name' from find_frame_funname.
3546 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
3547 for func_name from find_frame_funname.
3548 * python/py-frame.c (frapy_name): Add explicit free of
3549 'name' from find_frame_funname.
3550 * stack.c (find_frame_funname): Add comment explaining that
3551 funcp must be freed by the caller.
3552 Return copy of symbol names instead of pointers.
3553 (print_frame): Add a cleanup for 'funname' from
3555 * stack.h (find_frame_funname): Remove "const" from
3556 'funname' parameter.
3558 2013-05-22 Tom Tromey <tromey@redhat.com>
3561 * c-valprint.c (c_value_print): Use value_addr for
3562 references. Convert back to reference type with value_ref.
3564 2013-05-22 Eli Zaretskii <eliz@gnu.org>
3566 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
3567 unloaded DLL, it will be done by handle_solib_event. See
3568 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
3571 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
3573 * ui-out.c: Create typedef ui_out_level_p and define vector
3574 operations for that type.
3575 (struct ui_out): Use a vector instead of an array.
3576 (current_level): Return level from a vector.
3577 (push_level): Create a level in a vector.
3578 (pop_level): Delete a level in a vector.
3579 (ui_out_new): Create initial level zero level, and store in a
3581 (ui_out_destroy): Add vector cleanup.
3583 2013-05-22 Pedro Alves <palves@redhat.com>
3585 * python/python-internal.h (gdb_Py_DECREF): Tag with
3586 "ARI: editCase function".
3588 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3590 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
3592 2013-05-21 Pedro Alves <palves@redhat.com>
3594 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3595 whether PRINTER is NULL before installing a Py_DECREF cleanup.
3596 * python/py-utils.c (py_decref): Don't check for NULL before
3599 2013-05-21 Pedro Alves <palves@redhat.com>
3601 * python/py-utils.c (py_decref): Remove extra braces.
3602 (gdb_pymodule_addobject): Remove extra braces.
3603 * python-internal.h (gdb_Py_DECREF): New static inline function.
3604 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
3606 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3608 * breakpoints.c (detach_breakpoints): Do not
3609 detach breakpoints locations with loc_type bp_loc_other.
3611 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3613 Workaround Python 2.6.
3614 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
3617 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3619 Code cleanup: constification.
3620 * solib.c (solib_ops): Make return type and ops variable type const.
3621 (set_solib_ops): Make the new_ops parameter and ops variable const.
3622 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
3623 (solib_add, solib_keep_data_in_core, clear_solib)
3624 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3625 (reload_shared_libraries, solib_global_lookup): Make the ops variable
3627 * solib.h (set_solib_ops): Make the new_ops parameter const.
3629 2013-05-21 Joel Brobecker <brobecker@adacore.com>
3631 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
3633 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
3634 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
3635 (SYSTEM_GDBINIT_FILES): New variables.
3636 (all): Add stamp-system-gdbinit.
3637 (stamp-system-gdbinit): New rule.
3638 (clean-system-gdbinit, install-system-gdbinit)
3639 (uninstall-system-gdbinit): New rules. Make them .PHONY.
3640 (install-only): Add dependency on install-system-gdbinit.
3641 (uninstall): Add dependency on uninstall-system-gdbinit.
3642 (clean): Add dependency on clean-system-gdbinit.
3643 * system-gdbinit/elinos.py: New file.
3644 * system-gdbinit/wrs-linux.py: New file.
3646 2013-05-21 Joel Brobecker <brobecker@adacore.com>
3648 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
3650 2013-05-21 Hui Zhu <hui@codesourcery.com>
3652 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
3653 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
3654 * mi/mi-cmd-break.c (ctype.h): New include.
3655 (gdb_obstack.h): New include.
3656 (mi_argv_to_format, mi_cmd_break_insert_1): New.
3657 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
3658 (mi_cmd_dprintf_insert): New.
3659 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
3660 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
3662 2013-05-20 Tom Tromey <tromey@redhat.com>
3664 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
3666 2013-05-20 Tom Tromey <tromey@redhat.com>
3668 * python/py-value.c (valpy_get_dynamic_type): Simplify
3669 dynamic_type assignment. Use Py_XINCREF.
3671 2013-05-20 Tom Tromey <tromey@redhat.com>
3673 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
3675 2013-05-20 Tom Tromey <tromey@redhat.com>
3677 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
3678 (gdbpy_selected_frame): Move object-construction code
3681 2013-05-20 Tom Tromey <tromey@redhat.com>
3683 * python/py-arch.c (gdbpy_initialize_arch): Use
3684 gdb_pymodule_addobject.
3685 * python/py-block.c (gdbpy_initialize_blocks): Use
3686 gdb_pymodule_addobject.
3687 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
3688 gdb_pymodule_addobject.
3689 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
3690 gdb_pymodule_addobject.
3691 * python/py-event.c (gdbpy_initialize_event_generic): Use
3692 gdb_pymodule_addobject.
3693 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
3694 gdb_pymodule_addobject.
3695 * python/py-evts.c (add_new_registry): Use
3696 gdb_pymodule_addobject.
3697 (gdbpy_initialize_py_events): Likewise.
3698 * python/py-finishbreakpoint.c
3699 (gdbpy_initialize_finishbreakpoints): Use
3700 gdb_pymodule_addobject.
3701 * python/py-frame.c (gdbpy_initialize_frames): Use
3702 gdb_pymodule_addobject.
3703 * python/py-function.c (gdbpy_initialize_functions): Use
3704 gdb_pymodule_addobject.
3705 * python/py-inferior.c (gdbpy_initialize_inferior): Use
3706 gdb_pymodule_addobject.
3707 * python/py-infthread.c (gdbpy_initialize_thread): Use
3708 gdb_pymodule_addobject.
3709 * python/py-objfile.c (gdbpy_initialize_objfile): Use
3710 gdb_pymodule_addobject.
3711 * python/py-param.c (gdbpy_initialize_parameters): Use
3712 gdb_pymodule_addobject.
3713 * python/py-progspace.c (gdbpy_initialize_pspace): Use
3714 gdb_pymodule_addobject.
3715 * python/py-symbol.c (gdbpy_initialize_symbols): Use
3716 gdb_pymodule_addobject.
3717 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
3718 gdb_pymodule_addobject.
3719 * python/py-type.c (gdbpy_initialize_types): Use
3720 gdb_pymodule_addobject.
3721 * python/py-utils.c (gdb_pymodule_addobject): New function.
3722 * python/py-value.c (gdbpy_initialize_values): Use
3723 gdb_pymodule_addobject.
3724 * python/python-internal.h (gdb_pymodule_addobject): Declare.
3725 * python/python.c (_initialize_python): Use
3726 gdb_pymodule_addobject.
3728 2013-05-20 Tom Tromey <tromey@redhat.com>
3730 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
3731 * python/py-param.c (get_set_value, get_show_value): Use
3733 * python/python.c (start_type_printers, apply_type_printers):
3734 Use explicit decrefs.
3736 2013-05-20 Tom Tromey <tromey@redhat.com>
3738 * python/py-evts.c (gdbpy_initialize_py_events): Don't
3741 2013-05-20 Tom Tromey <tromey@redhat.com>
3743 * python/python.c (gdbpy_run_events): Decref the result
3744 of PyObject_CallObject.
3746 2013-05-20 Tom Tromey <tromey@redhat.com>
3748 * python/py-symtab.c (set_sal): Use
3749 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
3750 (symtab_and_line_to_sal_object): Update.
3752 2013-05-20 Tom Tromey <tromey@redhat.com>
3754 * python/py-param.c (compute_enum_values): Decref 'item'.
3756 2013-05-20 Tom Tromey <tromey@redhat.com>
3758 * mi/mi-main.c: Include python-internal.h.
3759 (mi_cmd_list_features): Check gdb_python_initialized.
3760 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
3761 (python_inferior_exit, python_new_objfile, add_thread_object)
3762 (delete_thread_object, py_free_inferior): Check
3763 gdb_python_initialized.
3764 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3765 gdb_python_initialized.
3766 * python/py-type.c (save_objfile_types): Check
3767 gdb_python_initialized.
3768 * python/python-internal.h (gdb_python_initialized): Declare.
3769 * python/python.c (ensure_python_env): Throw exception if
3770 Python not initialized.
3771 (before_prompt_hook, source_python_script_for_objfile)
3772 (start_type_printers, apply_type_printers,
3773 free_type_printers): Check gdb_python_initialized.
3774 * varobj.c (varobj_get_display_hint)
3775 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
3776 (install_new_value_visualizer, varobj_set_visualizer)
3777 (value_get_print_value): Check gdb_python_initialized.
3779 2013-05-20 Tom Tromey <tromey@redhat.com>
3781 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
3783 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
3784 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
3786 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
3788 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
3790 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
3792 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
3793 init function to return 'int'.
3794 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
3795 Return 'int'. Check errors.
3796 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
3798 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
3799 Return 'int'. Check errors.
3800 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
3802 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
3804 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
3806 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
3808 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
3810 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
3812 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
3814 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
3816 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
3818 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
3820 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
3822 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
3824 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
3826 * python/python-internal.h (gdbpy_initialize_auto_load,
3827 gdbpy_initialize_values, gdbpy_initialize_frames,
3828 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
3829 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
3830 gdbpy_initialize_blocks, gdbpy_initialize_types,
3831 gdbpy_initialize_functions, gdbpy_initialize_pspace,
3832 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
3833 gdbpy_initialize_finishbreakpoints,
3834 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
3835 gdbpy_initialize_thread, gdbpy_initialize_inferior,
3836 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
3837 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
3838 gdbpy_initialize_signal_event,
3839 gdbpy_initialize_breakpoint_event,
3840 gdbpy_initialize_continue_event,
3841 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
3842 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
3843 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3844 * python/python.c (gdb_python_initialized): New global.
3845 (gdbpy_initialize_events): Return 'int'. Check errors.
3846 (_initialize_python): Check errors. Set
3847 gdb_python_initialized.
3849 2013-05-20 Tom Tromey <tromey@redhat.com>
3851 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
3852 Decref the reslut of PyObject_CallMethod.
3854 2013-05-20 Tom Tromey <tromey@redhat.com>
3856 * python/py-event.c (gdbpy_initialize_event_generic): Return
3857 early if PyType_Ready fails.
3859 2013-05-20 Tom Tromey <tromey@redhat.com>
3861 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
3862 as 'default' in the switch.
3864 2013-05-20 Tom Tromey <tromey@redhat.com>
3866 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
3867 get_addr_from_python calls out of TRY_CATCH.
3868 (infpy_write_memory, infpy_search_memory): Likewise.
3869 * python/py-utils.c (get_addr_from_python): Return negative
3870 value on error. Use TRY_CATCH.
3871 * python/python-internal.h (get_addr_from_python): Use
3872 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3874 2013-05-20 Tom Tromey <tromey@redhat.com>
3876 * python/py-event.c (evpy_emit_event): Decref the
3877 result of PyObject_CallFunctionObjArgs.
3879 2013-05-20 Tom Tromey <tromey@redhat.com>
3881 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
3884 2013-05-20 Tom Tromey <tromey@redhat.com>
3886 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
3888 2013-05-20 Tom Tromey <tromey@redhat.com>
3890 * python/py-event.h (gdbpy_initialize_event_generic): Use
3891 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3892 * python/py-evts.c (add_new_registry): Use
3893 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3894 * python/python-internal.h
3895 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
3897 2013-05-20 Tom Tromey <tromey@redhat.com>
3899 * python/py-arch.c (archpy_disassemble): Update.
3900 * python/py-type.c (typy_get_composite, typy_lookup_typename)
3901 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
3902 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
3903 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
3905 (GDB_PY_HANDLE_EXCEPTION): Update.
3906 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
3908 2013-05-20 Tom Tromey <tromey@redhat.com>
3910 * python/python-internal.h (events_object_type): Remove.
3912 2013-05-20 Tom Tromey <tromey@redhat.com>
3914 * python/py-event.h (evpy_emit_event): Use
3915 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
3916 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
3919 2013-05-20 Tom Tromey <tromey@redhat.com>
3921 * py-evtregistry.c (create_event_object): Decref
3922 eventregistry_object if PyList_New fails.
3924 2013-05-20 Tom Tromey <tromey@redhat.com>
3926 * py-cmd.c (gdbpy_string_to_argv): Check result of
3929 2013-05-20 Tom Tromey <tromey@redhat.com>
3931 * python/python.c (before_prompt_hook): Add cleanup to
3934 2013-05-20 Tom Tromey <tromey@redhat.com>
3936 * python/py-function.c (fnpy_init): Decref result of
3937 PyObject_GetAttrString.
3939 2013-05-20 Tom Tromey <tromey@redhat.com>
3941 * python/py-threadevent.c (get_event_thread): Use
3942 CPYCHECKER_RETURNS_BORROWED_REF.
3943 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
3945 (pspace_to_pspace_object, objfile_to_objfile_object)
3946 (find_thread_object): Use it.
3948 2013-05-20 Tom Tromey <tromey@redhat.com>
3950 * python/py-arch.c (arch_object_type): Use
3951 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3952 * python/py-block.c (block_syms_iterator_object_type):
3953 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3954 * python/py-bpevent.c (breakpoint_event_object_type):
3955 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3956 * python/py-cmd.c (cmdpy_object_type): Use
3957 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3958 * python/py-continueevent.c (continue_event_object_type):
3959 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3960 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
3961 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3962 * python/py-events.h (thread_event_object_type):
3963 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3964 * python/py-evtregistry.c (eventregistry_object_type): Use
3965 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3966 * python/py-exitedevent.c (exited_event_object_type):
3967 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3968 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
3969 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3970 * python/py-function.c (fnpy_object_type): Use
3971 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3972 * python/py-inferior.c (inferior_object_type, membuf_object_type):
3973 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3974 * python/py-infthread.c (thread_object_type): Use
3975 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3976 * python/py-lazy-string.c (lazy_string_object_type):
3977 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3978 * python/py-newobjfileevent.c (new_objfile_event_object_type):
3979 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3980 * python/py-objfile.c (objfile_object_type): Use
3981 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3982 * python/py-param.c (parmpy_object_type):
3983 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3984 * python/py-progspace.c (pspace_object_type):
3985 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3986 * python/py-signalevent.c (signal_event_object_type):
3987 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3988 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
3989 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3990 * python/py-type.c (type_object_type, field_object_type)
3991 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3992 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
3994 (value_object_type, block_object_type, symbol_object_type)
3995 (event_object_type, stop_event_object_type, breakpoint_object_type)
3996 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
3998 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
4000 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4001 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4003 2013-05-20 Doug Evans <dje@google.com>
4005 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4007 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4008 reading_dwo_directly.
4009 (struct signatured_type): New member dwo_unit.
4010 (struct die_reader_specs): New member comp_dir.
4011 (create_signatured_type_table_from_index): Use malloc for
4012 all_type_units instead of objfile's obstack.
4013 (create_all_type_units): Ditto.
4014 (fill_in_sig_entry_from_dwo_entry): New function.
4015 (add_type_unit): New function.
4016 (lookup_dwo_signatured_type): New function.
4017 (lookup_dwp_signatured_type): New function.
4018 (lookup_signatured_type): New arg cu. All callers updated.
4019 (init_cu_die_reader): Initialize comp_dir.
4020 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4021 Change assert of matching type signatures to call error on mismatch.
4022 (lookup_dwo_unit): Add assert.
4023 (init_tu_and_read_dwo_dies): New function.
4024 (init_cutu_and_read_dies): Call it.
4025 (build_type_unit_groups): Handle case of no type unit groups created.
4026 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4027 (lookup_dwo_cutu): Tweak complaint.
4028 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4029 (dwarf2_per_objfile_free): Free all_type_units.
4031 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4033 * windows-nat.c (handle_unload_dll): Add missing empty line.
4035 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4037 * dwarf2read.c (prototyped_function_p): New function.
4038 (read_subroutine_type): Use it.
4040 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4042 * rs6000-aix-tdep.c: De-indent some example code provided
4045 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4047 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4048 region is ok for a hardware watchpoint using the new ptrace interface
4051 2013-05-17 Doug Evans <dje@google.com>
4053 * NEWS: Mention new maintenance commands check-symtabs, and
4054 expand-symtabs, and renamed check-psymtabs.
4055 * psymtab.c (maintenance_check_psymtabs): Renamed from
4056 maintenance_check_symtabs. Only process already-expanded symbol
4058 (_initialize_psymtab): Update.
4059 * symmisc.c (maintenance_check_symtabs): New function.
4060 (maintenance_expand_name_matcher): New function
4061 (maintenance_expand_file_matcher): New function
4062 (maintenance_expand_symtabs): New function.
4063 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4066 2013-05-17 Tom Tromey <tromey@redhat.com>
4068 * python/py-inferior.c (infpy_read_memory): Don't call
4069 PyErr_SetString if PyObject_New fails.
4070 * python/py-frame.c (frame_info_to_frame_object): Don't call
4071 PyErr_SetString if PyObject_New fails.
4073 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
4075 * acinclude.m4: Add check for dlopen in libdl.
4076 * configure.ac: Ditto.
4077 * configure: Regenerate.
4079 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
4081 * frame.c (frame_stash): Convert to htab.
4082 (frame_addr_hash): New function.
4083 (frame_addr_hash_eq): New function.
4084 (frame_stash_create): Convert function to create
4086 (frame_stash_add): Convert function to add an entry to a hash
4088 (frame_stash_find): Convert function to search the hash table.
4089 (frame_stash_invalidate): Convert function to empty the hash
4091 (get_frame_id): Only add to stash if a frame_id is created.
4092 (_initialize_frame): Call frame_stash_create.
4094 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
4096 * configure.ac: Ensure MIG is available when building for GNU Hurd
4098 * configure: Regenerate.
4100 2013-05-16 Joel Brobecker <brobecker@adacore.com>
4102 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4104 2013-05-16 Joel Brobecker <brobecker@adacore.com>
4106 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4107 all cleanups are done before returning from this function.
4109 2013-05-15 Joel Brobecker <brobecker@adacore.com>
4111 * utils.h: #include "exceptions.h".
4112 (enum errors): Remove partial declaration.
4114 2013-05-15 Joel Brobecker <brobecker@adacore.com>
4116 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
4117 * gdbarch.h, gdbarch.c: Regenerate.
4118 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
4121 * rs6000-aix-tdep.h: New file.
4122 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
4123 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
4125 (struct field_info, struct ld_info_desc): New types.
4126 (ld_info32_desc, ld_info64_desc): New static constants.
4127 (struct ld_info): New type.
4128 (rs6000_aix_extract_ld_info): New function.
4129 (rs6000_aix_shared_library_to_xml): Likewise.
4130 (rs6000_aix_ld_info_to_xml): Likewise.
4131 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4132 (rs6000_aix_init_osabi): Add call to
4133 set_gdbarch_core_xfer_shared_libraries_aix.
4134 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
4135 Remove "xml-utils.h" include.
4136 (LdInfo): Delete typedef.
4137 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
4139 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
4140 Adjust code accordingly.
4141 (rs6000_core_ldinfo): Delete, folded into
4142 rs6000_aix_core_xfer_shared_libraries_aix.
4143 (rs6000_xfer_shared_library): Delete.
4144 (rs6000_xfer_shared_libraries): Reimplement.
4146 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
4148 * record.c (record_goto_cmdlist): New.
4149 (cmd_record_goto): Split into this ...
4150 (cmd_record_goto_begin): ... this
4151 (cmd_record_goto_end): ... and this.
4152 (_initialize_record): Change "record goto" to prefix command.
4153 Add commands for "record goto begin" and "record goto end".
4154 Add an alias for "record goto start" to "record goto begin".
4156 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4158 * linespec.c (convert_linespec_to_sals): New comment for
4159 SOURCE_FILENAME assignment.
4161 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4163 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
4166 2013-05-14 Tom Tromey <tromey@redhat.com>
4168 * eval.c (parse_and_eval_long): Make 'exp' const.
4169 * value.h (parse_and_eval_long): Update.
4171 2013-05-14 Tom Tromey <tromey@redhat.com>
4173 * ui-file.c (gdb_fopen): Make arguments const.
4174 * ui-file.h (gdb_fopen): Make arguments const.
4176 2013-05-14 Tom Tromey <tromey@redhat.com>
4178 * remote.c (remote_set_trace_notes): Make arguments const.
4179 * target.c (update_current_target): Update cast.
4180 * target.h (to_set_trace_notes): Make arguments const.
4182 2013-05-14 Tom Tromey <tromey@redhat.com>
4184 * go32-nat.c (go32_terminal_info): Make 'args' const.
4185 * inferior.h (child_terminal_info): Update.
4186 * inflow.c (child_terminal_info): Make 'args' const.
4187 * target.c (default_terminal_info): Make 'args' const.
4188 (debug_to_terminal_save_ours): Likewise.
4189 * target.h (struct target_ops) <to_terminal_info>: Make argument
4192 2013-05-13 Tom Tromey <tromey@redhat.com>
4194 * gcore.c (create_gcore_bfd): Make 'filename' const.
4195 * gcore.h (create_gcore_bfd): Make 'filename' const.
4196 * record-full.c (record_full_save): Make 'recfilename' const.
4197 * target.c (target_save_record): Make 'filename' const.
4198 * target.h (struct target_ops) <to_save_record>: Make 'filename'
4200 (target_save_record): Likewise.
4202 2013-05-13 Tom Tromey <tromey@redhat.com>
4205 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
4206 ranges section has been read.
4208 2013-05-13 Tom Tromey <tromey@redhat.com>
4211 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4212 STRUCTOP_PTR>: Return a not_lval value for
4213 EVAL_AVOID_SIDE_EFFECTS.
4214 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
4215 for EVAL_AVOID_SIDE_EFFECTS.
4217 2013-05-13 Joel Brobecker <brobecker@adacore.com>
4219 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
4220 floating point registers to register type before storing
4222 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
4225 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4226 Tom Tromey <tromey@redhat.com>
4228 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4230 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4232 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
4233 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
4234 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
4235 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
4237 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
4238 Tom Tromey <tromey@redhat.com>
4241 * configure: Rebuild.
4242 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
4245 2013-05-10 Pedro Alves <palves@redhat.com>
4247 * remote.c (_initialize_remote): Fix spelling of
4248 qXfer:traceframe-info:read packet in packet config command.
4250 2013-05-10 David Taylor <dtaylor@emc.com>
4254 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
4255 "QTro" at start of packet.
4257 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4259 * solib-aix.c (solib_aix_relocate_section_addresses):
4260 For the .bss section action, apply the same offset as
4263 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4265 * solib-aix.c (solib_aix_relocate_section_addresses):
4266 Remove FIXME comment.
4268 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4271 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
4272 New functions, directly copied from sparc-sol-thread.c.
4273 * sparc-sol-thread.c: Delete.
4274 * configure.ac: Remove code handling sparc-solaris-thread.c.
4275 * configure: Regenerate.
4277 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
4279 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
4281 (backtrace_command): Add "no-filters" option parsing.
4282 (_initialize_stack): Alter help to reflect "no-filters" option.
4283 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
4284 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
4285 (py-frame.o): Add target
4286 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
4288 * python/python.h: Add new frame filter constants, and flag enum.
4289 (apply_frame_filter): Add definition.
4290 * python/python.c (apply_frame_filter): New non-Python
4292 * python/py-utils.c (py_xdecref): New function.
4293 (make_cleanup_py_xdecref): Ditto.
4294 * python/py-objfile.c: Declare frame_filters dictionary.
4295 (objfpy_dealloc): Add frame_filters dealloc.
4296 (objfpy_new): Initialize frame_filters attribute.
4297 (objfile_to_objfile_object): Ditto.
4298 (objfpy_get_frame_filters): New function.
4299 (objfpy_set_frame_filters): New function.
4300 * python/py-progspace.c: Declare frame_filters dictionary.
4301 (pspy_dealloc): Add frame_filters dealloc.
4302 (pspy_new): Initialize frame_filters attribute.
4303 (pspacee_to_pspace_object): Ditto.
4304 (pspy_get_frame_filters): New function.
4305 (pspy_set_frame_filters): New function.
4306 * python/py-framefilter.c: New file.
4307 * python/lib/gdb/command/frame_filters.py: New file.
4308 * python/lib/gdb/frames.py: New file.
4309 * python/lib/gdb/__init__.py: Initialize global frame_filters
4311 * python/lib/gdb/FrameDecorator.py: New file.
4312 * python/lib/gdb/FrameIterator.py: New file.
4313 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
4314 * mi/mi-cmds.h: Declare.
4315 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
4316 --no-frame-filter logic, and Python frame filter logic.
4317 (stack_enable_frame_filters): New function.
4318 (parse_no_frame_option): Ditto.
4319 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
4321 (mi_cmd_stack_list_locals): Ditto.
4322 (mi_cmd_stack_list_args): Ditto.
4323 (mi_cmd_stack_list_variables): Ditto.
4324 * NEWS: Add frame filter note.
4326 2013-05-09 Doug Evans <dje@google.com>
4328 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
4329 All callers updated.
4330 (syms_from_objfile): Ditto. Make static.
4331 (symbol_file_add_with_addrs): Renamed from
4332 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
4333 num_offsets. All callers updated.
4334 * symfile.h (syms_from_objfile): Delete.
4336 * symfile.c (decrement_reading_symtab): Add assert.
4337 (increment_reading_symtab): Ditto.
4339 2013-05-09 Joel Brobecker <brobecker@adacore.com>
4341 * source.c (forward_search_command): Replace call to getc
4343 (reverse_search_command): Likewise.
4345 2013-05-08 Doug Evans <dje@google.com>
4347 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
4350 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4352 * sol-thread.c (info_cb): Factorize the code a little.
4354 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4356 * sol-thread.c (info_cb): Rework the output of the "maintenance
4357 info sol-threads" command a bit.
4359 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4361 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
4362 Replace ti.ti_startfunc by ti.ti_pc.
4364 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4366 * solib-aix.c (solib_aix_free_library_list): New function
4367 for the case where HAVE_LIBEXPAT is not defined.
4369 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4371 PR breakpoints/15413:
4372 * breakpoint.c (condition_completer): Simplify the code to
4373 disconsider multiple locations of breakpoints when completing the
4374 "condition" command.
4376 2013-05-07 Pierre Muller <muller@sourceware.org>
4378 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
4379 instead of <sys/wait.h>.
4381 2013-05-07 Pierre Muller <muller@sourceware.org>
4383 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
4384 trailing new line from warning message.
4386 2013-05-07 Pierre Muller <muller@sourceware.org>
4388 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
4389 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
4391 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4393 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
4394 error message (ARI fix).
4396 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4398 * features/library-list-aix.dtd: Replace library-list by
4400 * rs6000-nat.c: Replace library-list by library-list-aix
4402 * solib-aix.c: Likewise.
4404 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4406 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
4407 Renames TARGET_OBJECT_AIX_LIBRARIES.
4408 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
4409 TARGET_OBJECT_LIBRARIES_AIX throughout.
4410 * solib-aix.c: Likwise.
4412 2013-05-07 Yao Qi <yao@codesourcery.com>
4414 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
4415 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
4417 2013-05-07 Yao Qi <yao@codesourcery.com>
4419 * solib-dsbt.c (enable_break): Declare.
4420 (dsbt_current_sos): Remove call to enable_break2.
4421 (enable_break2): Rename to enable_break. Set solib breakpoint
4422 on '_dl_debug_state'.
4423 (enable_break): Remove.
4425 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
4427 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
4428 debug state prior to replicating existing hardware watchpoints or
4431 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4433 * gcore.c (gcore_create_callback): Ignore sections with
4434 separate_debug_objfile_backlink != NULL.
4436 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
4437 Andrew Jenner <andrew@codesourcery.com>
4438 Chung-Lin Tang <cltang@codesourcery.com>
4439 Julian Brown <julian@codesourcery.com>
4441 Based on the nios2-elf port from Altera Corporation.
4443 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
4445 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
4446 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
4447 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
4448 * nios2-tdep.h: New.
4449 * nios2-tdep.c: New.
4450 * nios2-linux-tdep.c: New.
4451 * features/Makefile (WHICH): Add nios2-linux.
4452 (nios2-linux-expedite): Set.
4453 * features/nios2-cpu.xml: New.
4454 * features/nios2.xml: New.
4455 * features/nios2-linux.xml: New.
4456 * features/nios2.c: New (autogenerated).
4457 * features/nios2-linux.c: New (autogenerated).
4458 * regformats/nios2-linux.dat: New (autogenerated).
4459 * NEWS (Changes since GDB 7.6): Add new Nios II targets
4462 2013-05-06 Doug Evans <dje@google.com>
4464 * symfile.c: Whitespace cleanup.
4466 * solist.h (struct target_so_ops): New member clear_so.
4467 * solib-svr4.c (svr4_clear_so): New function.
4468 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
4469 * solib.c (clear_so): Renamed from free_so_symbols.
4470 All callers updated. Call target clear_so if it exists.
4472 2013-05-06 Tom Tromey <tromey@redhat.com>
4474 * ada-lang.c (ada_value_primitive_packed_val): Don't
4476 * value.c (set_value_parent): Incref the new parent and decref
4478 (value_copy, value_primitive_field): Use set_value_parent.
4480 2013-05-06 Tom Tromey <tromey@redhat.com>
4482 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
4483 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
4485 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
4486 * dwarf2read.c (write_constant_as_bytes)
4487 (dwarf2_fetch_constant_bytes): New functions.
4489 2013-05-06 Tom Tromey <tromey@redhat.com>
4491 * dwarf2read.c (dwarf2_const_value_data): Remove unused
4493 (dwarf2_const_value_attr): Update.
4495 2013-05-06 Tom Tromey <tromey@redhat.com>
4497 * somread.c (som_symfile_offsets): Add 'const' to addrs.
4498 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
4499 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
4502 2013-05-06 Tom Tromey <tromey@redhat.com>
4504 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
4507 2013-05-06 Doug Evans <dje@google.com>
4509 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
4510 * stabsread.h (process_one_symbol): Update declaration.
4511 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
4512 * elfread.c (elf_symfile_relocate_probe): Ditto.
4513 * psymtab.c (relocate_psymtabs): Ditto.
4514 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
4515 (objfile_relocate): Ditto.
4516 * objfiles.h (objfile_relocate): Update declaration.
4517 * symfile.c (relative_addr_info_to_section_offsets): Constify
4519 (default_symfile_offsets): Ditto.
4520 (syms_from_objfile_1): Constify offsets parameter.
4521 (syms_from_objfile): Ditto.
4522 (symbol_file_add_with_addrs_or_offsets): Ditto.
4523 (symfile_map_offsets_to_segments): Constify data parameter.
4524 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
4525 delta parameters of member relocate.
4526 (struct sym_probe_fns): Constify new_offsets,
4527 delta parameters of member sym_relocate_probe.
4528 (struct sym_fns): Constify section_addr_info parameter of member
4530 (relative_addr_info_to_section_offsets): Update declaration.
4531 (default_symfile_offsets): Ditto.
4532 (syms_from_objfile): Ditto.
4533 (symfile_map_offsets_to_segments): Ditto.
4535 * symfile.c (syms_from_objfile_1): Use correct section count when
4536 objfile->sf == NULL.
4538 2013-05-06 Mike Frysinger <vapier@gentoo.org>
4540 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
4542 2013-05-06 Doug Evans <dje@google.com>
4544 * psympriv.h (struct partial_symtab): Augment comment for member
4547 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4549 Reimplement shared library support on ppc-aix...
4550 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
4551 * features/library-list-aix.dtd: New file.
4552 * solib-aix.h, solib-aix.c: New file.
4553 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
4554 (rs6000_find_toc_address_hook): Delete.
4555 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
4556 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
4557 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
4559 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
4560 (vmap_symtab, fixup_breakpoints): Delete.
4561 (rs6000_xfer_shared_libraries): New function.
4562 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
4563 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
4564 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
4565 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
4566 (rs6000_xfer_shared_library): New function.
4567 (find_toc_address): Delete.
4568 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
4569 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
4570 * xcoffread.c (record_minimal_symbol): Reloate symbol address
4571 before creating minimal symbol. Adjust function description
4573 (scan_xcoff_symtab): Replace call to
4574 prim_record_minimal_symbol_and_info by call to
4575 record_minimal_symbol.
4576 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
4577 around default_symfile_offsets.
4578 * configure.tgt: Add solib-aix.o to gdb_target_obs for
4579 powerpc-aix targets.
4580 * config/rs6000/nm-rs6000.h: Delete.
4581 * config/powerpc/aix.mh (NAT_FILE): Delete.
4582 (NATDEPFILES): Remove xcoffsolib.o.
4583 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
4584 (ALL_TARGET_OBS): Add solib-aix.o.
4585 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
4586 config/rs6000/nm-rs6000.h. Add solib-aix.h.
4587 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
4588 * xcoffsolib.h, xcoffsolib.c: Delete.
4590 * solib.c (reload_shared_libraries): Remove reference to
4591 SOLIB_CREATE_INFERIOR_HOOK.
4592 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
4593 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
4594 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
4596 * corelow.c (deprecated_core_resize_section_table): Delete.
4597 * exec.c: Remove include of xcoffsolib.h".
4598 (map_vmap, vmap): Delete.
4599 (exec_close_1): Remove references to vmap.
4600 (exec_file_attach): Remove vmap handling code, and reference
4601 to DEPRECATED_IBM6000_TARGET.
4602 (bfdsec_to_vmap): Delete.
4603 (exec_files_info): Remove block of code handling VMAP.
4604 * infcmd.c (post_create_inferior): Remove reference to
4605 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
4606 * infrun.c (follow_exec): Remove reference to
4607 SOLIB_CREATE_INFERIOR_HOOK.
4608 * stack.c (print_frame): Remove reference to PC_SOLIB.
4609 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
4610 (dsbt_relocate_main_executable): Likewise.
4611 * solib-frv.c (frv_current_sos): Likewise.
4613 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4615 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
4616 to target_write_memory and target_read_memory.
4618 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4620 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
4621 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
4623 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4625 * darwin-nat.c: Replace all "%x" instances in format strings
4626 into "0x%x" throughout.
4628 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4630 * darwin-nat.c (darwin_mourn_inferior): Replace call to
4631 gdb_assert by call to MACH_CHECK_ERROR.
4632 (darwin_attach_pid): Raise an error rather than a failed
4633 assertion when various system calls failed. Report a warning
4634 instead of raising a failed assertion when PREV_NOT is not NULL
4635 after call to mach_port_request_notification.
4636 (darwin_ptrace_me): Raise an error rather than a failed
4637 assertion when read returns nonzero.
4639 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4641 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
4643 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4645 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
4647 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4649 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
4650 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
4651 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
4652 a stale cleanup. Fix double free of NAME.
4654 2013-05-04 Eli Zaretskii <eliz@gnu.org>
4656 * windows-nat.c (windows_delete_thread): Accept an additional
4657 argument, the thread's exit code, and announce thread death when
4658 print_thread_events is non-zero and we are deleting a thread that
4659 is not the main thread.
4660 (get_windows_debug_event): Pass thread exit code to
4661 windows_delete_thread.
4663 2013-05-03 Kevin Buettner <kevinb@redhat.com>
4665 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
4666 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
4667 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
4668 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
4669 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
4670 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
4671 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
4672 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
4673 (gdbarch_tdep): New struct.
4674 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
4676 (v850e3v5_register_name): New function.
4677 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
4678 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
4679 code handling the struct return conventions for the RH850 ABI.
4681 (v850_eight_byte_align_p): New function.
4682 (v850_push_call_dummy): Push structs by value, not by reference
4683 for the RH850 ABI. Add support for eight byte alignment.
4684 (v850_dbtrap_breakpoint_from_pc): New function.
4685 (v850_gdbarch_init): Add ABI detection code. Register
4686 v850e3v5_register_name for the v850e3v5 architecture. Set the
4687 number of registers for v850e3v5. Register
4688 v850_dbtrap_breakpoint_from_pc as appropriate.
4689 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
4691 2013-05-03 Doug Evans <dje@google.com>
4693 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
4694 of bfd_count_sections.
4695 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
4696 * symfile.c (default_symfile_offsets): Ditto.
4697 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
4698 one entry, not bfd_count_sections entries.
4700 2013-05-03 Kevin Buettner <kevinb@redhat.com>
4702 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
4703 `save' and `restore' register groups. Don't include SPL
4704 or SPH in these groups.
4705 (rl78_dwarf_reg_to_regnum): Adjust mapping for
4706 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
4707 RL78_ES_REGNUM, and RL78_CS_REGNUM.
4708 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
4709 dwarf2_append_unwinders().
4711 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4713 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
4714 ignore SIGINT and SIGTRAP in case these internal signals are
4717 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4719 * darwin-nat.c (darwin_read_write_inferior): Change types
4720 of parameters rdaddr and wraddr to "gdb_byte *". Change type
4721 of copy_count to "mach_msg_type_number_t".
4722 (darwin_read_dyld_info): Change type of parameter
4723 rdaddr to "gdb_byte *".
4725 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4727 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
4728 of &info->load_map from "char *" to "gdb_byte *".
4730 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4732 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
4733 from "char *" to "gdb_byte *".
4734 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
4736 2013-04-30 Doug Evans <dje@google.com>
4738 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
4739 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
4740 DWO stub. If DWO isn't found, just use stub.
4741 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
4743 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
4744 calling init_cutu_and_read_dies.
4746 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4748 * target-descriptions.c (maint_print_c_tdesc_cmd):
4749 Add case to parse structures as register types and
4752 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
4754 * MAINTAINERS (Write After Approval): Add myself to the list.
4756 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4758 * sol-thread.c (rw_common): Change type of parameter "buf"
4760 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
4761 rw_common to "gdb_byte *" instead of "char *".
4763 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4765 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
4766 of local variable msym to const struct bound_minimal_symbol.
4767 Adjust use accordingly.
4768 [ti.ti_state == TD_THR_SLEEP]: Likewise.
4770 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
4772 * i386gnu-nat.c (CREG_OFFSET): New macro.
4773 (creg_offset): New array.
4774 (CREG_ADDR): Use creg_offset instead of reg_offset.
4776 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4778 * mep-tdep.c (mep_write_pc): Delete.
4779 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
4780 Add call to set_gdbarch_pc_regnum.
4782 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4784 * common/filestuff.c: Replace #include <dirent.h> by
4785 #include "gdb_dirent.h".
4787 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4789 * common/filestuff.c: Replace #include <sys/stat.h> by
4790 #include "gdb_stat.h".
4792 2013-04-29 Pierre Muller <muller@sourceware.org>
4794 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
4795 editCase function rule.
4796 (get_DW_AT_signature_type): Likewise.
4798 2013-04-29 Joel Brobecker <brobecker@adacore.com>
4800 * m32r-tdep.c (m32r_write_pc): Delete.
4801 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
4802 Add call to set_gdbarch_pc_regnum.
4804 2013-04-29 Pierre Muller <muller@sourceware.org>
4806 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
4808 2013-04-29 Joel Brobecker <brobecker@adacore.com>
4810 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
4812 2013-04-28 Yao Qi <yao@codesourcery.com>
4814 * solib-dsbt.c (fetch_loadmap): Re-indent.
4815 (displacement_from_map, enable_break2): Likewise.
4816 (dsbt_relocate_section_addresses): Likewise.
4818 2013-04-26 Joel Brobecker <brobecker@adacore.com>
4822 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
4825 * dwarf2read.c (process_full_comp_unit): Always create a static
4828 2013-04-25 Hui Zhu <hui@codesourcery.com>
4830 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
4831 to loc->cmd_bytecode.
4833 2013-04-24 Doug Evans <dje@google.com>
4835 * dwarf2read.c (setup_type_unit_groups): Fix comment.
4837 2013-04-22 Keith Seitz <keiths@redhat.com>
4839 * tracepoint.c (trace_save): Call the writer's start method.
4841 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
4844 * cli/cli-decode.c (lookup_command): Show an error if there is no space
4847 2013-04-23 Tom Tromey <tromey@redhat.com>
4849 * common/filestuff.c: Check USE_WIN32API before including
4851 (HAVE_F_GETFD): New define.
4852 (mark_cloexec): Check HAVE_F_GETFD.
4853 (gdb_open_cloexec): Change 'mode' to unsigned long.
4854 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
4855 (gdb_pipe_cloexec): Check HAVE_PIPE.
4856 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
4859 2013-04-23 Hui Zhu <hui@codesourcery.com>
4862 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
4864 2013-04-23 Hui Zhu <hui@codesourcery.com>
4867 * breakpoint.c (dprintf_print_recreate): New.
4868 (save_breakpoints): Let it not save dprintf commands.
4869 (initialize_breakpoint_ops): Set dprintf_print_recreate.
4871 2013-04-22 Tom Tromey <tromey@redhat.com>
4874 * Makefile.in (SFILES): Add filestuff.c
4875 (COMMON_OBS): Add filestuff.o.
4876 (filestuff.o): New target.
4877 * auto-load.c (auto_load_objfile_script_1): Use
4879 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
4880 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
4881 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
4882 * common/agent.c (gdb_connect_sync_socket): Use
4884 * common/filestuff.c: New file.
4885 * common/filestuff.h: New file.
4886 * common/linux-osdata.c (linux_common_core_of_thread)
4887 (command_from_pid, commandline_from_pid, print_source_lines)
4888 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
4889 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
4891 * common/linux-procfs.c (linux_proc_get_int)
4892 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
4893 * config.in, configure: Rebuild.
4894 * configure.ac: Don't check for sys/socket.h. Check for
4896 * corelow.c (core_open): Use gdb_open_cloexec.
4897 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
4898 * fork-child.c (fork_inferior): Call close_most_fds.
4899 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
4900 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
4901 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
4902 Use gdb_fopen_cloexec.
4903 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
4905 (linux_async_pipe): Use gdb_pipe_cloexec.
4906 * remote-fileio.c (remote_fileio_func_open): Use
4908 * remote.c (remote_file_put, remote_file_get): Use
4910 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
4912 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
4913 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
4914 * solib.c (solib_find): Use gdb_open_cloexec.
4915 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
4916 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
4917 (tfile_open): Use gdb_open_cloexec.
4918 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
4919 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
4920 * xml-support.c (xml_fetch_content_from_file): Use
4922 * main.c (captured_main): Call notice_open_fds.
4924 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
4926 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
4927 'char *' to 'gdb_byte *'.
4928 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
4931 2013-04-22 Yao Qi <yao@codesourcery.com>
4933 * infrun.c: Fix typo in comment.
4935 2013-04-22 Andrew Haley <aph@redhat.com>
4937 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
4940 2013-04-20 Yao Qi <yao@codesourcery.com>
4942 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
4943 'char *' to 'gdb_byte *'. Cast the return value of
4944 'bt_ctf_get_char_array' to 'gdb_byte *'.
4946 2013-04-19 Pedro Alves <palves@redhat.com>
4948 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
4950 * configure: Regenerate.
4952 2013-04-19 Pedro Alves <palves@redhat.com>
4954 * ser-tcp.c (net_read_prim): Cast second argument to recv to
4957 2013-04-19 Pedro Alves <palves@redhat.com>
4959 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
4960 Change type of 'myaddr' parameter to gdb_byte pointer.
4961 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
4962 to 'long long' pointer instead of to 'unsigned long long'.
4963 (monitor_write_memory_block, monitor_read_memory_single)
4964 (monitor_read_memory): Change type of 'myaddr' parameter to
4967 2013-04-19 Pedro Alves <palves@redhat.com>
4969 * record.c (validate_history_size): Make parameter 'setting'
4972 2013-04-19 Pedro Alves <palves@redhat.com>
4974 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
4977 2013-04-19 Pedro Alves <palves@redhat.com>
4979 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
4982 2013-04-19 Pedro Alves <palves@redhat.com>
4984 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
4985 * ada-tasks.c (read_fat_string_value): Likewise.
4987 2013-04-19 Pedro Alves <palves@redhat.com>
4989 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
4990 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
4991 'offset', and adjust.
4993 2013-04-19 Pedro Alves <palves@redhat.com>
4995 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
4996 (read_index_from_section): Add cast to 'char *'.
4998 2013-04-19 Pedro Alves <palves@redhat.com>
5000 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5002 2013-04-19 Pedro Alves <palves@redhat.com>
5004 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5006 2013-04-19 Pedro Alves <palves@redhat.com>
5008 * record-full.c (record_full_get_bookmark): Change local 'ret'
5009 type to char * and add cast to gdb_byte *.
5010 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5012 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5014 2013-04-19 Pedro Alves <palves@redhat.com>
5016 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5017 * python/py-prettyprint.c (print_string_repr): Change type of
5018 'output' local to char *. Add cast to gdb_byte * in
5019 LA_PRINT_STRING call.
5020 (print_children): Change type of 'output' local to char *.
5021 * python/py-value.c (valpy_string): Add cast to const char * in
5022 PyUnicode_Decode call.
5024 2013-04-19 Pedro Alves <palves@redhat.com>
5026 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5027 and change its type to 'const char *'. Adjust.
5028 (mips_send_packet): Add cast to 'char *', and remove cast to
5030 (mips_receive_packet): Remove cast to 'unsigned char *'.
5031 (mips_load_srec): Use bfd_byte.
5032 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5033 (pmon_checkset): Make 'value' parameter unsigned.
5035 2013-04-19 Pedro Alves <palves@redhat.com>
5037 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5039 2013-04-19 Pedro Alves <palves@redhat.com>
5041 * remote.c (remote_write_bytes_aux, compare_sections_command)
5043 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5044 (remote_hostio_readlink, remote_bfd_iovec_pread)
5045 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5046 binary buffer, and char when buffer is used as string.
5047 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5048 (trace_save, tfile_open, traceframe_walk_blocks)
5049 (tfile_fetch_registers): Likewise.
5051 2013-04-19 Pedro Alves <palves@redhat.com>
5053 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5054 buffer and size_t size. Adjust.
5055 * ser-base.h (ser_base_write): Adjust.
5056 * ser-go32.c (cnts): Change type to size_t.
5057 (dos_write): Change prototype -- take 'void *'
5058 buffer and size_t size. Adjust.
5059 (dos_info): Print elements of 'cnts' as unsigned long.
5060 * serial.c (serial_write): Likewise.
5061 * serial.h (serial_write): Adjust.
5062 (struct serial_ops) <write>: Change prototype -- take 'void *'
5063 buffer and size_t size. Adjust.
5065 2013-04-19 Pedro Alves <palves@redhat.com>
5067 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5069 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5071 2013-04-19 Pedro Alves <palves@redhat.com>
5073 * alpha-tdep.c (alpha_extract_return_value): Use
5074 regcache_cooked_read_unsigned to read 'v0'.
5076 2013-04-19 Pedro Alves <palves@redhat.com>
5078 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5079 parameters 'at', 'as' and 'offset' to uint32_t.
5081 2013-04-19 Pedro Alves <palves@redhat.com>
5083 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5084 'is64' to signed 'int'.
5086 2013-04-19 Pedro Alves <palves@redhat.com>
5088 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5091 2013-04-19 Pedro Alves <palves@redhat.com>
5093 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5094 'insnbuf' buffer type to unsigned int[].
5096 2013-04-19 Pedro Alves <palves@redhat.com>
5098 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5100 2013-04-19 Pedro Alves <palves@redhat.com>
5102 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5105 2013-04-19 Pedro Alves <palves@redhat.com>
5107 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5108 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5110 * mips-tdep.c (heuristic_fence_post): Change type to int.
5111 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5113 2013-04-19 Pedro Alves <palves@redhat.com>
5115 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
5116 (struct gdbarch_tdep) <cris_version>: Make unsigned.
5117 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
5119 2013-04-19 Pedro Alves <palves@redhat.com>
5121 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
5122 it to get a string view of the byte buffer.
5123 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
5124 type to gdb_byte *. Adjust.
5125 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
5126 Change local to char *.
5127 * solib-darwin.c (find_program_interpreter): Change return type to
5129 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
5130 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
5131 * solib-frv.c (enable_break2): Change local 'buf' to char *.
5132 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
5133 * solib-svr4.c (find_program_interpreter): Change return type to
5135 (enable_break): Change local 'interp_name' to char *.
5136 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5137 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
5138 (spu_pseudo_register_write_spu): Use char for string buffer.
5140 (info_spu_event_command, info_spu_signal_command): Add casts to
5143 2013-04-19 Pedro Alves <palves@redhat.com>
5145 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
5147 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
5148 * ada-lang.c (ada_value_assign): Use gdb_byte.
5149 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
5150 (alphanbsd_sigtramp_offset): Use gdb_byte.
5151 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
5152 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
5153 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
5154 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
5155 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
5156 * arm-tdep.c (arm_stub_unwind_sniffer)
5157 (arm_displaced_init_closure): Use gdb_byte.
5158 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
5159 (arm_default_thumb_le_breakpoint)
5160 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
5161 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
5162 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
5163 * arm-wince-tdep.c (arm_wince_le_breakpoint)
5164 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
5165 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
5166 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
5167 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
5168 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
5169 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
5170 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
5171 (cris_store_return_value, cris_extract_return_value): Use
5173 (constraint): Change type of parameter to char * from signed
5174 char*. Use gdb_byte.
5175 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
5176 of local buffer to gdb_byte *.
5177 * dwarf2read.c (read_index_from_section): Use gdb_byte.
5178 (create_dwp_hash_table): Change type of locals to gdb_byte *.
5179 (add_address_entry): Change type of local buffer to gdb_byte[].
5180 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
5181 (frv_push_dummy_call): Use gdb_byte.
5182 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
5183 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
5184 (hppa_hpux_supply_save_state): Use gdb_byte.
5185 * hppa-tdep.c (hppa32_push_dummy_call)
5186 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
5187 * ia64-tdep.c (extract_bit_field, replace_bit_field)
5188 (slotN_contents, replace_slotN_contents): Change type of parameter
5190 (fetch_instruction, ia64_pseudo_register_write)
5191 (ia64_register_to_value, ia64_value_to_register)
5192 (ia64_extract_return_value, ia64_store_return_value)
5193 (ia64_push_dummy_call): Use gdb_byte.
5194 * m32c-tdep.c (m32c_return_value): Remove cast.
5195 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
5196 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
5198 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
5199 * mn10300-tdep.c (mn10300_store_return_value)
5200 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
5202 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
5203 (moxie_process_record): Remove casts.
5204 * ppc-ravenscar-thread.c (supply_register_at_address)
5205 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
5206 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
5207 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
5208 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
5209 * remote.c (compare_sections_command): Use gdb_byte.
5210 * score-tdep.c (score7_free_memblock): Change type of parameter to
5212 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
5213 gdb_byte *. Use gdb_byte.
5214 (sh_push_dummy_call_fpu): Use gdb_byte.
5215 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
5216 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
5217 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
5218 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5219 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
5220 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
5221 (sh64_store_return_value, sh64_register_convert_to_virtual):
5222 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5223 (sh64_pseudo_register_write): Use gdb_byte.
5224 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
5225 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
5227 (irix_current_sos): Use gdb_byte.
5228 * solib-som.c (som_current_sos): Use gdb_byte.
5229 * sparc-ravenscar-thread.c (supply_register_at_address)
5230 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
5231 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5232 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
5233 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
5235 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
5237 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
5238 * xstormy16-tdep.c (xstormy16_extract_return_value)
5239 (xstormy16_store_return_value): Change parameter type to
5240 'gdb_byte *'. Adjust.
5241 (xstormy16_push_dummy_call): Use gdb_byte.
5242 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
5243 (call0_analyze_prologue, execute_code): Use gdb_byte.
5245 2013-04-19 Vladimir Kargov <kargov@gmail.com>
5246 Pedro Alves <palves@redhat.com>
5248 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
5251 2013-04-17 Doug Evans <dje@google.com>
5253 * dwarf2read.c (struct signatured_type): New member type.
5254 (struct attribute): Replace member signatured_type with signature.
5255 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
5256 (read_call_site_scope): Call follow_die_ref instead of
5257 follow_die_ref_or_sig.
5258 (read_structure_type): Rewrite handling of signatured types.
5259 (read_enumeration_type): Ditto.
5260 (read_attribute_value): Update.
5261 (build_error_marker_type): New function.
5262 (lookup_die_type): Add assert. Rewrite handling of signatured types.
5263 Don't call error for bad types, just build an error marker type.
5264 (dump_die_shallow): Update.
5265 (follow_die_sig_1): Renamed from follow_die_sig.
5266 Don't call error for bad types, instead return NULL.
5267 (follow_die_sig): New function.
5268 (get_signatured_type, get_DW_AT_signature_type): New functions.
5270 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
5272 * aarch64-tdep.c (aarch64_write_pc): Removed.
5273 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
5276 2013-04-17 Yao Qi <yao@codesourcery.com>
5278 * top.c (print_gdb_configuration): Print configure-time
5279 parameter on using libbabeltrace or not.
5281 2013-04-16 Pedro Alves <palves@redhat.com>
5283 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
5285 2013-04-16 Pedro Alves <palves@redhat.com>
5287 * common/glibc_thread_db.h: Update from upstream glibc
5288 (git 568035b7874a099087b77f7bba3e36a1173787b0).
5290 2013-04-16 Pedro Alves <palves@redhat.com>
5292 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
5293 * common/glibc_thread_db.h: ... this new file ...
5294 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
5296 2013-04-16 Will Newton <will.newton@gmail.com>
5297 Pedro Alves <palves@redhat.com>
5301 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
5302 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
5305 2013-04-16 Pedro Alves <palves@redhat.com>
5306 Eli Zaretskii <eliz@gnu.org>
5308 * NEWS: Mention "set foo unlimited".
5310 2013-04-15 Doug Evans <dje@google.com>
5312 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
5313 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
5314 (create_dwo_cu_reader): Renamed from
5315 create_dwo_debug_info_hash_table_reader.
5316 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
5317 Remove support for multiple CUs in a DWO file.
5318 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
5320 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
5322 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
5323 (create_dwo_in_dwp): Ditto.
5325 2013-04-15 Tom Tromey <tromey@redhat.com>
5327 * NEWS: Move recent entries into "since 7.6" section.
5329 2013-04-15 Tom Tromey <tromey@redhat.com>
5333 * break-catch-throw.c (struct exception_catchpoint)
5334 <exception_rx, pattern>: New fields.
5335 (fetch_probe_arguments, dtor_exception_catchpoint)
5336 (check_status_exception_catchpoint)
5337 (print_one_detail_exception_catchpoint): New functions.
5338 (handle_gnu_v3_exceptions): Add "except_rx" argument.
5339 Compile regular expression if needed.
5340 (extract_exception_regexp): New function.
5341 (catch_exception_command_1): Use extract_exception_regexp.
5342 (compute_exception): Use fetch_probe_arguments.
5343 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
5344 and check_status fields.
5345 * cp-abi.c (cplus_typename_from_type_info): New function.
5346 * cp-abi.h (cplus_typename_from_type_info): Declare.
5347 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
5348 * gdb_regex.h (compile_rx_or_error): Declare.
5349 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
5351 (init_gnuv3_ops): Set get_type_from_type_info field.
5352 * probe.c (compile_rx_or_error): Move...
5353 * utils.c (compile_rx_or_error): ... here.
5355 2013-04-15 Tom Tromey <tromey@redhat.com>
5359 * break-catch-throw.c (compute_exception): New function.
5360 (exception_funcs): New global.
5361 (_initialize_break_catch_throw): Create $_exception.
5362 * cp-abi.c (cplus_type_from_type_info): New function.
5363 * cp-abi.h (cplus_type_from_type_info): Declare.
5364 (struct cp_abi_ops) <get_type_from_type_info>: New field.
5365 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
5366 (gnuv3_get_type_from_type_info): New functions.
5367 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
5369 2013-04-15 Tom Tromey <tromey@redhat.com>
5371 * break-catch-throw.c (struct exception_names): New.
5372 (exception_functions): Change type.
5373 (re_set_exception_catchpoint): Look for SDT probes.
5375 2013-04-15 Tom Tromey <tromey@redhat.com>
5378 * break-catch-throw.c (exception_functions): New global.
5379 (gnu_v3_exception_catchpoint_ops): Move earlier.
5380 (struct exception_catchpoint): New.
5381 (classify_exception_breakpoint): Rewrite.
5382 (re_set_exception_catchpoint): New function.
5383 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
5384 Allocate a struct exception_catchpoint.
5385 (catch_exception_command_1): Update.
5386 (initialize_throw_catchpoint_ops): Set 're_set' method.
5388 2013-04-15 Tom Tromey <tromey@redhat.com>
5390 * Makefile.in (SFILES): Add break-catch-throw.c
5391 (COMMON_OBS): Add break-catch-throw.o.
5392 * break-catch-throw.c: New file.
5393 * breakpoint.c: Move exception-catching code to new file.
5394 (ep_parse_optional_if_clause): No longer static.
5395 * breakpoint.h (ep_parse_optional_if_clause): Declare.
5397 2013-04-15 Tom Tromey <tromey@redhat.com>
5401 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
5402 * c-exp.y (TYPEID): New token.
5403 (exp): Add new TYPEID productions.
5404 (ident_tokens): Add "typeid".
5405 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
5406 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
5407 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
5408 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
5409 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
5411 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
5412 (build_std_type_info_type, gnuv3_get_typeid_type)
5413 (gnuv3_get_typeid): New functions.
5414 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
5415 new fields on ABI object.
5416 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
5417 * std-operator.def (OP_TYPEID): New.
5419 2013-04-15 Tom Tromey <tromey@redhat.com>
5421 * elfread.c (elf_symtab_read): Install versioned symbol under
5422 unversioned name as well.
5424 2013-04-15 Tom Tromey <tromey@redhat.com>
5427 * c-lang.c (cplus_language_defn): Use gdb_demangle.
5428 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
5429 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
5430 (gdb_demangle): New function.
5431 * cp-support.h (gdb_demangle): Declare.
5432 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
5433 (dwarf2_name): Use gdb_demangle.
5434 * gdbtypes.c (check_stub_method): Use gdb_demangle.
5435 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
5437 (gnuv3_print_method_ptr): Use gdb_demangle.
5438 * jv-lang.c (java_demangle): Use gdb_demangle.
5439 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
5440 * language.c (unk_lang_demangle): Use gdb_demangle.
5441 * symtab.c (symbol_find_demangled_name)
5442 (demangle_for_lookup): Use gdb_demangle.
5444 2013-04-15 Tom Tromey <tromey@redhat.com>
5448 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
5450 (classify_exception_breakpoint): New function.
5451 (print_it_exception_catchpoint, print_one_exception_catchpoint)
5452 (print_mention_exception_catchpoint)
5453 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
5454 (catch_exception_command_1): Handle "rethrow" catchpoint.
5455 (catch_rethrow_command): New function.
5456 (_initialize_breakpoint): Add "catch rethrow" command.
5458 2013-04-15 Pierre Muller <muller@sourceware.org>
5460 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
5461 set_gdbarch_write_pc as deprecated anymore.
5463 2013-04-15 Joel Brobecker <brobecker@adacore.com>
5465 * spu-tdep.c (spu_write_pc): Add empty line after local variable
5468 2013-04-13 Yao Qi <yao@codesourcery.com>
5470 * ctf.c (_initialize_ctf): Include "completer.h".
5471 Call add_target_with_completer instead of add_target.
5473 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5475 Fix GDB regression related to PR binutils/14813.
5476 * jit.c (mem_bfd_iovec_close): Return 0 for success.
5477 * minidebug.c (lzma_close): Add return value comment.
5478 * remote.c (remote_bfd_iovec_close): Return 0 for success.
5479 * solib-spu.c (spu_bfd_iovec_close): Likewise.
5480 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
5482 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5484 * config.in: Regenerate.
5486 2013-04-12 Tom Tromey <tromey@redhat.com>
5488 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
5490 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
5491 (struct die_reader_specs) <buffer>: Likewise.
5492 (die_reader_func_ftype): Make 'info_ptr' const.
5493 (struct line_header) <include_dirs, statement_program_start,
5494 statement_program_end>: Now const.
5495 (struct file_entry) <name>: Likewise.
5496 (struct partial_die_info) <sibling>: Likewise.
5497 (struct dwarf_block) <data>: Likewise.
5498 (dwarf2_read_section): Remove cast.
5499 (dwarf2_get_section_info): Make 'bufp' const.
5500 (read_index_from_section): Constify.
5501 (dw2_get_file_names_reader): Make 'info_ptr' const.
5502 (dw2_get_primary_filename_reader): Likewise.
5503 (read_comp_unit_head): Make 'info_ptr' and return type const.
5504 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
5506 (read_abbrev_offset): Constify.
5507 (dwarf2_create_include_psymtab): Make 'name' const.
5508 (create_debug_types_hash_table): Update.
5509 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
5510 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
5512 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
5513 (load_partial_comp_unit_reader): Make 'info_ptr' const.
5514 (read_comp_units_from_section): Constify.
5515 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
5516 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
5518 (dwarf2_compute_name, setup_type_unit_groups): Constify.
5519 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
5520 (create_dwp_hash_table, dwarf2_ranges_read)
5521 (dwarf2_record_block_ranges): Constify.
5522 (read_die_and_children, read_die_and_siblings_1)
5523 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
5525 (read_full_die_1, read_full_die): Make 'info_ptr' const.
5526 (abbrev_table_read_table): Constify.
5527 (load_partial_dies): Make 'info_ptr' const.
5528 (read_partial_die, read_attribute_value, read_attribute): Make
5529 'info_ptr' and return type const.
5530 (read_address, read_initial_length)
5531 (read_checked_initial_length_and_offset, read_offset)
5532 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
5534 (read_direct_string): Make 'buf' and return type const.
5535 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
5536 (read_indirect_string): Make return type const.
5537 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
5538 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
5540 (read_str_index): Make return type const.
5541 (add_include_dir): Make 'include_dir' const.
5542 (add_file_name): Make 'name' const.
5543 (dwarf_decode_line_header): Constify.
5544 (psymtab_include_file_name): Make return type const.
5545 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
5546 (dwarf2_start_subfile): Make 'filename' const.
5547 (dwarf2_const_value_attr): Make 'bytes' const.
5548 (read_signatured_type_reader): Make 'info_ptr' const.
5549 (decode_locdesc): Constify.
5550 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
5552 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
5553 'mac_end', and return type const.
5554 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
5555 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
5557 (per_cu_header_read_in): Constify.
5558 * symfile.h (dwarf2_get_section_info): Update.
5560 2013-04-12 Tom Tromey <tromey@redhat.com>
5562 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
5564 2013-04-12 Eli Zaretskii <eliz@gnu.org>
5566 * NEWS: Mention "show configuration", --configuration.
5567 * top.c (print_gdb_configuration): New function, displays the
5568 details about GDB configure-time parameters.
5569 (print_gdb_version): Mention "show configuration".
5570 * cli/cli-cmds.c (show_configuration): New function.
5571 (_initialize_cli_cmds): Add the "show configuration" command.
5572 * main.c (captured_main) <print_configuration>: New static var.
5573 <long_options>: Use it.
5574 If --configuration was given, call print_gdb_configuration.
5576 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5577 Pedro Alves <palves@redhat.com>
5579 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
5580 (generated_files): Add gcore.
5581 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
5582 HAVE_NATIVE_GCORE_HOST.
5584 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
5585 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
5586 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
5587 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
5588 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
5589 Add HAVE_NATIVE_GCORE_HOST.
5590 * configure: Regenerate.
5591 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
5592 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
5593 AC_CONFIG_FILES for gcore.
5594 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
5596 * gdb_gcore.sh: Rename to ...
5597 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
5598 and GCORE_TRANSFORM_NAME substitutions.
5600 Fix parsing tabs in ${gdb_target_obs}.
5601 * configure.tgt (gdb_have_gcore): Replace case with for and if.
5603 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5605 * remote.c (unpush_and_perror): Add output message final dot.
5607 2013-04-11 Yao Qi <yao@codesourcery.com>
5609 * tracepoint.c (tfile_interp_line): Fit parameters line and
5612 2013-04-10 Joel Brobecker <brobecker@adacore.com>
5614 * solib.c (solib_map_sections): Remove code overwriting
5615 SO->SO_NAME with the bfd's filename.
5617 2013-04-10 Pedro Alves <palves@redhat.com>
5619 * cli/cli-decode.c (integer_unlimited_completer): New function.
5620 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
5621 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
5623 * cli/cli-setshow.c: Include "cli/cli-utils.h".
5624 (is_unlimited_literal): New function.
5625 (do_set_command): Handle literal "unlimited" arguments.
5626 * frame.c (_initialize_frame) <set backtrace limit>: Document
5628 * printcmd.c (_initialize_printcmd) <set print
5629 max-symbolic-offset>: Add help text.
5630 * record-full.c (_initialize_record_full) <set record full
5631 insn-number-max>: Likewise.
5632 * record.c (_initialize_record) <set record
5633 instruction-history-size, set record function-call-history-size>:
5635 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
5637 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
5639 * source.c (_initialize_source) <set listsize>: Add help text.
5640 * utils.c (initialize_utils) <set height, set width>: Likewise.
5641 <set pagination>: Mention "set height unlimited".
5642 * valprint.c (_initialize_valprint) <set print elements, set print
5643 repeats>: Document "unlimited".
5645 2013-04-10 Pedro Alves <palves@redhat.com>
5647 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
5648 instead of disconnect_tracing.
5649 * infcmd.c (detach_command, disconnect_command): Call
5650 query_if_trace_running. Adjust.
5651 * top.c: Include "tracepoint.h".
5652 (quit_target): Delete. Contents moved ...
5653 (quit_force): ... here. Wrap each stage of teardown in
5654 TRY_CATCH. Call disconnect_tracing before detaching.
5656 2013-04-10 Hui Zhu <hui@codesourcery.com>
5657 Yao Qi <yao@codesourcery.com>
5659 * configure.ac: Check libbabeltrace is installed.
5660 * config.in: Regenerate.
5661 * configure: Regenerate.
5662 * Makefile.in (LIBBABELTRACE): New.
5663 (CLIBS): Add LIBBABELTRACE.
5664 * ctf.c: Include "exec.h".
5665 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
5666 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
5667 (ctf_save_metadata_header): Define new type aliases in
5669 (ctf_write_header): Define event type "tsv_def" and "tp_def"
5670 in metadata. Start a new faked packet for trace status.
5671 (ctf_write_status): Write trace status to CTF.
5672 (ctf_write_uploaded_tsv): Write TSV to CTF.
5673 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
5674 (ctf_write_definition_end): End the faked packet.
5676 (ctx, ctf_iter, trace_dirname): New.
5677 (start_pos): New variable.
5678 (ctf_destroy, ctf_open_dir, ctf_open): New.
5679 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
5681 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
5682 (ctf_fetch_registers, ctf_xfer_partial): New.
5683 (ctf_get_trace_state_variable_value): New.
5684 (ctf_get_tpnum_from_frame_event): New.
5685 (ctf_get_traceframe_address): New.
5686 (ctf_trace_find, ctf_has_stack): New.
5687 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
5688 (ctf_get_trace_status, ctf_read_status): New.
5689 (_initialize_ctf): New.
5690 * tracepoint.c (get_tracepoint_number): New
5691 (get_uploaded_tsv): Remove 'static'.
5692 (struct traceframe_info, trace_regblock_size): Move it to ...
5693 * tracepoint.h: ... here.
5694 (get_tracepoint_number): Declare it.
5695 (get_uploaded_tsv): Declare it.
5697 * NEWS: Mention new configure option.
5699 2013-04-10 Pedro Alves <palves@redhat.com>
5700 Hui Zhu <hui@codesourcery.com>
5702 * breakpoint.c (dprintf_re_set): New.
5703 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
5706 2013-04-09 Joel Brobecker <brobecker@adacore.com>
5708 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
5709 Remove solib-svr4.o from the list.
5711 2013-04-09 Joel Brobecker <brobecker@adacore.com>
5713 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
5714 Use gdb_assert_not_reached instead of invalid boolean expression.
5716 2013-04-09 Pedro Alves <palves@redhat.com>
5718 * remote.c (unpush_and_perror): New function.
5719 (readchar, remote_serial_write): Use it.
5721 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
5723 * NEWS: Mention new btrace RSP packets.
5725 2013-04-08 Tom Tromey <tromey@redhat.com>
5727 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
5730 2013-04-08 Tom Tromey <tromey@redhat.com>
5732 * maint.c (print_bfd_section_info): Print the section index.
5733 * symmisc.c (dump_msymbols): Print the section index.
5735 2013-04-08 Tom Tromey <tromey@redhat.com>
5738 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
5739 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
5740 * breakpoint.c (resolve_sal_pc): Update.
5741 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5742 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
5743 (minsym_lookup_iterator_cb): Use it.
5744 (default_read_var_value): Update.
5745 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
5747 * infcmd.c (jump_command): Update.
5748 * linespec.c (minsym_found): Update.
5749 * maint.c (maintenance_translate_address): Update.
5750 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
5751 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
5752 * parse.c (write_exp_msymbol): Update.
5753 * printcmd.c (address_info): Update.
5754 * psymtab.c (find_pc_sect_psymbol): Update.
5755 (fixup_psymbol_section): Check SYMBOL_SECTION, not
5757 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
5758 Don't initialize SYMBOL_OBJ_SECTION.
5759 * spu-tdep.c (spu_catch_start): Update.
5760 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
5761 * symmisc.c (dump_msymbols, print_symbol): Update.
5762 * symtab.c (fixup_section): Don't set 'obj_section'. Change
5763 how fallback section is computed.
5764 (fixup_symbol_section): Update.
5765 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
5767 (allocate_symbol, initialize_symbol, allocate_template_symbol):
5768 Initialize SYMBOL_SECTION.
5769 * symtab.h (struct general_symbol_info) <section>: Update comment.
5770 <obj_section>: Remove.
5771 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
5772 (SYMBOL_OBJFILE): New macro.
5774 2013-04-08 Tom Tromey <tromey@redhat.com>
5776 * coffread.c (record_minimal_symbol): Update.
5777 * dbxread.c (record_minimal_symbol): Update.
5778 * elfread.c (record_minimal_symbol): Update.
5779 * machoread.c (macho_symtab_add_minsym): Update.
5780 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
5782 * minsyms.c (prim_record_minimal_symbol): Update.
5783 (prim_record_minimal_symbol_full): Remove 'bfd_section'
5785 (prim_record_minimal_symbol_and_info): Likewise.
5786 * minsyms.h (prim_record_minimal_symbol_full)
5787 (prim_record_minimal_symbol_and_info): Update.
5788 * symtab.c (allocate_symbol, initialize_symbol)
5789 (allocate_template_symbol): Initialize SYMBOL_SECTION.
5790 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
5793 2013-04-08 Tom Tromey <tromey@redhat.com>
5796 * solib-som.c (som_solib_section_offsets): Use BFD section
5797 indices. Set offsets for all sections.
5798 * somread.c (som_symtab_read): Compute BFD section for
5799 symbol. Use prim_record_minimal_symbol_and_info.
5800 (som_symfile_read): Fix comment.
5801 (struct find_section_offset_arg): New.
5802 (find_section_offset, set_section_index): New functions.
5803 (som_symfile_offsets): Use set_section_index to compute
5806 2013-04-08 Tom Tromey <tromey@redhat.com>
5808 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
5809 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
5810 gdb_bfd_section_index.
5811 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
5813 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
5815 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
5817 * objfiles.c (add_to_objfile_sections_full): New function.
5818 (add_to_objfile_sections): Use it.
5819 (build_section_table): Rewrite.
5820 (objfile_relocate1): Use gdb_bfd_section_index. Update.
5821 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
5822 (struct objfile) <sections>: Update comment.
5823 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
5825 (ALL_OBJSECTIONS): Use it.
5826 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5827 * solib-frv.c (frv_relocate_main_executable): Update.
5828 * solib-target.c (solib_target_relocate_section_addresses):
5829 Use gdb_bfd_section_index.
5830 * symfile.c (build_section_addr_info_from_section_table):
5831 Use gdb_bfd_section_index.
5832 (build_section_addr_info_from_bfd, place_section): Likewise.
5833 * symtab.c (fixup_section): Update.
5834 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
5836 2013-04-08 Tom Tromey <tromey@redhat.com>
5838 * minsyms.h (struct bound_minimal_symbol): New.
5839 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5840 Remove objfile argument.
5841 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5842 Return bound_minimal_symbol.
5843 * minsyms.c (lookup_minimal_symbol_by_pc_1)
5844 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5845 Return bound_minimal_symbol.
5846 (in_gnu_ifunc_stub): Update.
5847 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5848 Remove 'objfile_p' argument.
5849 (lookup_solib_trampoline_symbol_by_pc): Update.
5850 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
5851 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
5852 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
5853 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
5854 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
5855 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
5856 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
5857 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
5858 stack.c, symtab.c, tui/tui-disasm.c: Update.
5860 2013-04-08 Tom Tromey <tromey@redhat.com>
5862 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
5863 Use symbol's obstack, not an objfile.
5864 * coffread.c (process_coff_symbol): Update.
5865 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
5866 * jv-lang.c (add_class_symbol): Update.
5867 * mdebugread.c (new_symbol): Update.
5868 * minsyms.c (prim_record_minimal_symbol_full)
5869 (terminate_minimal_symbol_table): Update.
5870 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
5871 * stabsread.c (define_symbol, read_enum_type): Update.
5872 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
5873 Handle Ada specially.
5874 (symbol_set_language): Add 'obstack' argument.
5875 (symbol_set_names): Update.
5876 (symbol_natural_name, symbol_demangled_name): Always use
5878 * symtab.h (struct general_symbol_info)
5879 <language_specific::obstack>: New field.
5880 <ada_mangled>: New field.
5881 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
5882 (symbol_set_language): Update.
5884 2013-04-08 Tom Tromey <tromey@redhat.com>
5886 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
5887 Take an obstack, not an objfile.
5888 (symbol_set_names): Update.
5889 * symtab.h (symbol_set_demangled_name): Update.
5891 2013-04-08 Tom Tromey <tromey@redhat.com>
5893 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
5895 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
5896 (read_func_scope): Call allocate_template_symbol.
5897 (new_symbol_full): Call allocate_symbol.
5898 * jit.c (finalize_symtab): Call allocate_symbol.
5899 * jv-lang.c (add_class_symbol): Call allocate_symbol.
5900 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
5901 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5902 (common_block_end): Call allocate_symbol.
5903 * symtab.c (allocate_symbol, initialize_symbol)
5904 (allocate_template_symbol): New functions.
5905 * symtab.c (allocate_symbol, initialize_symbol)
5906 (allocate_template_symbol): Declare.
5907 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
5909 2013-04-08 Pedro Alves <palves@redhat.com>
5910 Keith Seitz <keiths@redhat.com>
5912 * breakpoint.c (create_breakpoint): Rename
5913 "parse_condition_and_thread" parameter to "parse_arg". Update
5914 describing comment. If !PARSE_ARG, then error out if ARG is not
5915 the empty string after extracting the location.
5916 * breakpoint.h (create_breakpoint): Rename
5917 "parse_condition_and_thread" parameter to "parse_arg".
5919 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
5921 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
5923 2013-04-07 Yao Qi <yao@codesourcery.com>
5925 * remote.c (remote_trace_find): Change type of parameters 'addr1'
5926 and 'addr2' to CORE_ADDR.
5927 * target.c (update_current_target): Update.
5928 * target.h (struct target_ops) <to_trace_find>: Change parameter
5930 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
5931 'addr2' to CORE_ADDR.
5932 (tfile_trace_find): Likewise.
5933 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
5934 Change local variable 'addr' to type CORE_ADDR.
5935 * tracepoint.h (tfind_1): Update declaration.
5937 2013-04-06 Eli Zaretskii <eliz@gnu.org>
5939 * windows-nat.c (windows_get_absolute_argv0): Move from here...
5940 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
5943 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
5945 * main.h (windows_get_absolute_argv0): ...to here.
5947 2013-04-05 Doug Evans <dje@google.com>
5949 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
5950 (read_cutu_die_from_dwo): Add comments.
5951 (read_structure_type): Update comment.
5952 (read_enumeration_type, read_namespace_type): Update comment.
5953 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
5955 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5957 Convert man pages to texinfo, new gdbinit.5 texinfo page.
5958 * Makefile.in (gdb.z): Remove.
5959 (install-only): Remove $(man1dir) and gdb.1 installation.
5962 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5964 Fix compatibility with Linux kernel 3.8.3.
5965 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
5966 to more inner block. Remove parsing of NUMBER from outer block.
5967 Parse NUMBER only if KEYWORD has been identified.
5969 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5971 Fix variable name shadowing.
5972 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
5973 filename to mapsfilename and update its uses.
5975 2013-04-05 Eli Zaretskii <eliz@gnu.org>
5977 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
5978 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
5979 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
5980 details of the problem.
5982 2013-04-04 Pedro Alves <palves@redhat.com>
5983 Hui Zhu <hui@codesourcery.com>
5985 * breakpoint.c (validate_commands_for_breakpoint): If validating a
5986 tracepoint, reset its STEP_COUNT and call validate_actionline.
5988 2013-04-03 Doug Evans <dje@google.com>
5990 * dwarf2read.c (read_die_and_siblings_1): Renamed from
5991 read_die_and_siblings.
5992 (read_die_and_siblings): New function.
5993 (read_cutu_die_from_dwo): Dump die if requested.
5994 (read_die_and_children): Call read_full_die_1 and
5995 read_die_and_siblings_1.
5996 (read_full_die): Dump die if requested.
5998 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6000 * dwarf2read.c (struct dwo_file): New member comp_dir.
6001 Rename member name to dwo_name. All uses updated.
6002 (hash_dwo_file): Include comp_dir in computation.
6003 (eq_dwo_file): Ditto.
6004 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6005 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6007 * psymtab.c (read_psymtabs_with_fullname): Don't call
6008 psymtab_to_fullname if the basenames are different.
6010 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6012 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6013 New entry about "fullname" presence.
6015 2013-04-03 Pedro Alves <palves@redhat.com>
6017 * NEWS: Mention x86_64/Cygwin as new native configuration.
6019 2013-04-02 Doug Evans <dje@google.com>
6021 * dwarf2read.c (read_structure_type): Fix typo in comment.
6023 2013-04-02 Pedro Alves <palves@redhat.com>
6025 * NEWS: Mention "set/show debug aarch64", "set/show debug
6026 coff-pe-read" and "set/show debug mach-o".
6028 2013-04-02 Pedro Alves <palves@redhat.com>
6030 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6032 2013-04-02 Eli Zaretskii <eliz@gnu.org>
6034 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6035 gdb_string.h is now in common/.
6037 2013-04-02 Pedro Alves <palves@redhat.com>
6039 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6040 under "New options".
6042 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6046 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6048 2013-04-02 Pedro Alves <palves@redhat.com>
6052 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6053 (remote_serial_write): New function.
6054 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6056 2013-04-01 Jiong Wang <jiwang@tilera.com>
6058 * NEWS: Mention TILE-Gx in "New native configurations" and
6059 "New targets" sections.
6061 2013-04-01 Doug Evans <dje@google.com>
6063 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6064 (process_enumeration_scope): Simplify.
6066 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6068 (struct signatured_type): ... to here.
6069 (sig_type_ptr): New typedef.
6070 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6071 out of union 't'. All uses updated.
6072 (dw2_get_file_names_reader): Assert not called for a type unit.
6073 (dw2_get_file_names): Assert not called for a type unit or type
6075 (build_type_psymtabs_reader): Assert called for a type unit.
6076 (build_type_psymtab_dependencies): Assert called for a type unit group.
6078 * dwarf2read.c (free_dwo_file): Add comment.
6079 (dwarf2_per_objfile_free): Unref dwp bfd.
6081 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6083 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6084 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6085 (read_pe_exported_syms): Remove unused 'exportix'.
6086 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6087 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6088 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6090 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6092 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6093 (print_it_watchpoint): Remove unused 'bl'.
6094 (say_where): Remove unused 'uiout'.
6095 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6096 (bkpt_breakpoint_hit): Remove unused 'b'.
6097 (internal_bkpt_print_it): Remove unused 'uiout'.
6098 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6100 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6102 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6103 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6105 2013-03-29 Doug Evans <dje@google.com>
6107 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6108 Delete arg is_dwp. All callers updated.
6109 (open_dwp_file): New function.
6110 (open_and_init_dwp_file): Call it.
6111 (get_dwp_file): New function.
6112 (lookup_dwo_cutu): Call it.
6114 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
6115 unnecessary, cleanup.
6117 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
6119 * dwarf2read.c (read_cutu_die_from_dwo): New function.
6120 (lookup_dwo_unit): New function.
6121 (init_cutu_and_read_dies): Move DWO handling to new functions.
6123 * dwarf2read.c (struct signatured_type): Tweak comment.
6124 (struct dwo_unit): Tweak comment.
6125 (create_debug_types_hash_table): Tweak comment. Reformat long line.
6126 (create_dwo_debug_info_hash_table): Tweak comment.
6127 (dwarf2_per_cu_offset_and_type): Tweak comment.
6129 * dwarf2read.c (lookup_signatured_type): Remove complaint about
6130 missing .debug_types section.
6132 2013-03-29 Yao Qi <yao@codesourcery.com>
6134 * corelow.c: Include "completer.h".
6135 (_initialize_corelow): Call add_target_with_completer with
6136 argument 'filename_completer'.
6137 * tracepoint.c: Likewise.
6138 * exec.c (_initialize_exec): Likewise.
6139 * target.c (add_target): Rename to ...
6140 (add_target_with_completer): ... this. Call set_cmd_completer
6141 if parameter completer is not NULL.
6143 * target.h: Include "command.h".
6144 (add_target_with_completer): Declare it.
6146 2013-03-28 Joel Brobecker <brobecker@adacore.com>
6148 * coffread.c (is_import_fixup_symbol): New function.
6149 (record_minimal_symbol): Use is_import_fixup_symbol to
6150 detect import fixup symbols, and discard them.
6152 2013-03-28 Doug Evans <dje@google.com>
6154 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
6155 types hash table until we know we need it.
6157 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
6160 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
6161 All callers updated.
6162 (dw2_print_stats): Print #read CUs too.
6163 (dump_die_shallow): Print signatured types better.
6165 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
6166 info_or_types_section to section. All uses updated.
6167 (struct dwo_unit): Ditto.
6169 2013-03-28 Pedro Alves <palves@redhat.com>
6171 * NEWS (New options): New section.
6172 (New options): Mention set/show remote trace-status-packet.
6173 * remote.c (PACKET_qTStatus): New enumeration value.
6174 (remote_get_trace_status): Skip sending qTStatus if the packet is
6175 disabled. Use packet_ok.
6176 (_initialize_remote): Register a configuration command for
6179 2013-03-28 Doug Evans <dje@google.com>
6181 * symfile.c (find_separate_debug_file): Add comment.
6182 (terminate_after_last_dir_separator): Tweak comment.
6184 * dwarf2read.c (create_partial_symtab): Add forward decl.
6185 (create_partial_symtab): Move to be closer to other psymtab functions.
6186 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
6188 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
6189 (compute_symtab_includes): Remove unnecessary forward declaration.
6190 (die_needs_namespace): Add comment marking group of functions for
6191 dwarf2 name computation.
6193 * typeprint.c (_initialize_typeprint): Improve type help text.
6195 * python/python.c (finish_python_initialization): Provide suggestion
6196 for how to tell gdb to find its python files.
6198 2013-03-28 Pedro Alves <palves@redhat.com>
6202 * source.c (_initialize_source): Change back "set listsize" to an
6205 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
6208 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6210 2013-03-27 Pedro Alves <palves@redhat.com>
6212 * top.c (history_size): Rename to ...
6213 (history_size_setshow_var): ... this. Add comment.
6214 (show_commands): Use readline's 'history_length' instead of
6215 computing the history length by calling history_get in a loop.
6216 (set_history_size_command): Error out for sizes over INT_MAX.
6217 Restore previous history size on invalid size.
6218 (init_history): If HISTSIZE is negative, leave the history size as
6220 (init_main): Adjust.
6222 2013-03-27 Pedro Alves <palves@redhat.com>
6224 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
6225 coff_pe_read" command to "set debug coff-pe-read".
6227 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
6229 * record.c (command_size_to_target_size): Fix size comparison.
6230 Change parameter type from pointer to integer to integer.
6233 2013-03-27 Pierre Muller <muller@sourceware.org>
6235 * windows-nat.c (handle_output_debug_string): Avoid typecast
6236 from integer of different size warning.
6238 2013-03-26 Joel Brobecker <brobecker@adacore.com>
6240 * windows-nat.c (handle_output_debug_string): Add empty line
6241 after local block variable definition.
6243 2013-03-26 Pedro Alves <palves@redhat.com>
6245 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
6246 (net_open): Make 'polls' local unsigned.
6248 2013-03-26 Pedro Alves <palves@redhat.com>
6250 * remote.c (_initialize_remote): Make "set remoteaddresssize"
6251 a zuinteger command instead of uinteger.
6253 2013-03-26 Pedro Alves <palves@redhat.com>
6255 * record-full.c (record_full_insn_num): Make it unsigned.
6256 (record_full_check_insn_num, record_full_message)
6257 (record_full_registers_change, record_full_xfer_partial): Remove
6258 record_full_insn_max_num check (it's always != 0).
6259 (record_full_info, record_full_restore): Use %u as format string.
6260 (): Use %u as format string.
6261 (set_record_full_insn_max_num): Remove record_full_insn_max_num
6262 check (it's always != 0).
6264 2013-03-26 Pedro Alves <palves@redhat.com>
6266 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
6267 and "set dcache size" commands zuinteger instead of uinteger.
6269 2013-03-26 Pedro Alves <palves@redhat.com>
6271 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
6272 command zuinteger instead of uinteger.
6274 2013-03-26 Pedro Alves <palves@redhat.com>
6276 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
6277 zuinteger instead of uinteger.
6279 2013-03-26 Pedro Alves <palves@redhat.com>
6281 * record.c (record_insn_history_size_setshow_var)
6282 (record_call_history_size_setshow_var): New globals.
6283 (command_size_to_target_size): New function.
6284 (cmd_record_insn_history, cmd_record_call_history): Use
6285 command_size_to_target_size instead of cast.
6286 (validate_history_size, set_record_insn_history_size)
6287 (set_record_call_history_size): New functions.
6288 (_initialize_record): Install set_record_insn_history_size and
6289 set_record_call_history_size as "set" hooks of "set record
6290 instruction-history-size" and "set record
6291 function-call-history-size".
6293 2013-03-26 Pedro Alves <palves@redhat.com>
6295 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
6296 use with history_max_entries use. Remove FIXME note.
6298 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
6300 * record-btrace.c (record_btrace_close): Call
6301 record_btrace_auto_disable.
6303 2013-03-25 Joel Brobecker <brobecker@adacore.com>
6305 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
6307 2013-03-25 Doug Evans <dje@google.com>
6309 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
6311 2013-03-25 Tom Tromey <tromey@redhat.com>
6314 * c-exp.y (exp): Add new productions for destructors after '.' and
6316 (write_destructor_name): New function.
6318 2013-03-25 Tom Tromey <tromey@redhat.com>
6321 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
6322 value_struct_elt, not lookup_struct_elt_type.
6323 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6324 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
6325 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
6327 2013-03-25 Yao Qi <yao@codesourcery.com>
6329 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
6330 instead of '_mkdir'.
6332 2013-03-23 Eli Zaretskii <eliz@gnu.org>
6334 * windows-nat.c (windows_get_absolute_argv0): New function.
6335 * windows-nat.h: Add its prototype.
6337 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
6338 Use IS_DIR_SEPARATOR instead of looking for a character inside
6339 SLASH_STRING. Include filenames.h.
6340 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
6341 relocate_gdb_directory works when passed gdb_program_name.
6342 Include windows-nat.h.
6344 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6346 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
6347 * remote.c (trace_error): Remove the special handling of '2'.
6348 (readchar) <SERIAL_EOF>
6349 (readchar) <SERIAL_ERROR>
6350 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
6351 (remote_get_trace_status): Call throw_exception if EX is
6353 * utils.c (perror_with_name): Rename to ...
6354 (throw_perror_with_name): ... here. New parameter errcode, describe it
6355 in the function comment.
6356 (perror_with_name): New function wrapper.
6357 * utils.h (enum errors): New stub declaration.
6358 (throw_perror_with_name): New declaration.
6360 2013-03-22 Pedro Alves <palves@redhat.com>
6361 Yao Qi <yao@codesourcery.com>
6362 Mark Kettenis <kettenis@gnu.org>
6364 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
6365 Don't let the user set the value to UINT_MAX directly.
6366 <var_integer>: Don't let the user set the value to INT_MAX
6369 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6371 * remote.c (remote_unpush_target): New function.
6372 (remote_open_1): Remove two pop_target calls, update one comment, add
6373 comment to target_preopen call. Replace pop_target call by
6374 remote_unpush_target call.
6375 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
6376 pop_target calls by remote_unpush_target calls.
6378 2013-03-22 Pedro Alves <palves@redhat.com>
6380 * linux-nat.c (linux_child_follow_fork): Don't call
6381 linux_enable_event_reporting.
6382 (linux_handle_extended_wait): Don't call
6383 linux_enable_event_reporting.
6385 2013-03-22 Pedro Alves <palves@redhat.com>
6387 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
6388 use it to rewrite the trampoline buffers with type gdb_byte[], and
6389 undefine the macro. Remove char* cast.
6391 2013-03-21 Doug Evans <dje@google.com>
6393 New commands "mt set per-command {space,time,symtab} {on,off}".
6395 * event-top.c: #include "maint.h".
6396 * main.c: #include "maint.h".
6397 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
6398 timeval-utils.h, maint.h, cli/cli-setshow.h.
6399 (per_command_time, per_command_space): New static globals.
6400 (per_command_symtab): New static global.
6401 (per_command_setlist, per_command_showlist): New static globals.
6402 (struct cmd_stats): Move here from utils.c.
6403 (set_per_command_time): Renamed from set_display_time in utils.c
6404 and moved here. All callers updated.
6405 (set_per_command_space): Renamed from set_display_space in utils.c
6406 and moved here. All callers updated.
6407 (count_symtabs_and_blocks): New function.
6408 (report_command_stats): Moved here from utils.c. Add support for
6409 printing symtab stats. Only print data if enabled before command
6411 (make_command_stats_cleanup): Ditto.
6412 (sert_per_command_cmd, show_per_command_cmd): New functions.
6413 (_initialize_maint_cmds): Add new commands
6414 mt set per-command {space,time,symtab} {on,off}.
6415 * maint.h: New file.
6416 * top.c: #include "maint.h".
6417 * utils.c (reset_prompt_for_continue_wait_time): New function.
6418 (get_prompt_for_continue_wait_time): New function.
6419 * utils.h (reset_prompt_for_continue_wait_time): Declare
6420 (get_prompt_for_continue_wait_time): Declare.
6421 (make_command_stats_cleanup): Moved to maint.h.
6422 (set_display_time, set_display_space): Moved to maint.h and renamed
6423 to set_per_command_time, set_per_command_space.
6424 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
6425 parse_binary_operation and made non-static. Don't call error,
6426 just return an error marker. All callers updated.
6427 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
6429 2013-03-21 Tom Tromey <tromey@redhat.com>
6431 * symfile.c (alloc_section_addr_info): Update header. Don't set
6432 'num_sections' field.
6433 (build_section_addr_info_from_section_table): Set 'num_sections'.
6434 (build_section_addr_info_from_bfd): Likewise.
6435 (build_section_addr_info_from_objfile): Remove dead loop
6437 (free_section_addr_info): Unconditionally call xfree.
6438 (relative_addr_info_to_section_offsets, addrs_section_sort)
6439 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
6441 (syms_from_objfile_1): Remove dead 'if' condition. Check
6443 (add_symbol_file_command): Set 'num_sections'.
6444 * symfile-mem.c (symbol_file_add_from_memory): Set
6446 * somread.c (som_symfile_offsets): Remove dead loop condition.
6447 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
6448 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
6450 2013-03-21 Tom Tromey <tromey@redhat.com>
6452 * tracepoint.h (decode_agent_options): Add 'trace_string'
6454 * tracepoint.c (decode_agent_options): Add 'trace_string'
6456 (validate_actionline): Update.
6457 (collect_symbol): Add 'trace_string' argument.
6458 (struct add_local_symbols_data) <trace_string>: New field.
6459 (do_collect_symbol): Update.
6460 (add_local_symbols): Add 'trace_string' argument.
6461 (encode_actions_1): Update.
6462 (trace_dump_actions): Update.
6463 * dwarf2loc.c (access_memory): Update.
6464 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
6465 * ax-general.c (new_agent_expr): Update.
6466 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
6467 (gen_trace_for_return_address): Add argument.
6468 (trace_kludge, trace_string_kludge): Remove.
6469 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
6470 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
6471 (gen_trace_for_var): Add 'trace_string' argument.
6472 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
6473 (gen_printf, agent_eval_command_one): Update.
6475 2013-03-21 Tom Tromey <tromey@redhat.com>
6478 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
6479 Handle FILENAME token.
6481 2013-03-21 Tom Tromey <tromey@redhat.com>
6483 * c-exp.y (YYPRINT): Define.
6484 (c_print_token): New function.
6486 2013-03-21 Tom Tromey <tromey@redhat.com>
6488 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
6490 2013-03-21 Yao Qi <yao@codesourcery.com>
6492 * ctf.c: Include "gdb_stat.h".
6493 [USE_WIN32API]: New macro 'mkdir'.
6494 (ctf_start): Use permission bits macros if they are defined.
6496 2013-03-20 Keith Seitz <keiths@redhat.com>
6498 * breakpoint.h (struct breakpoint): Add comment to
6499 extra_string indicating that this member is mallod'd.
6500 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
6502 2013-03-20 Pedro Alves <palves@redhat.com>
6506 * cli/cli-setshow.c (do_set_command)
6507 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
6508 the result of parsing the command argument. Throw error if the
6509 value is greater than UINT_MAX. Print the invalid value with
6511 <var_integer, var_zinteger>: Use LONGEST for variable holding the
6512 result of parsing the command argument. Throw error if the value
6513 is greater than INT_MAX, not greater or equal. Also throw error
6514 if the value is less than INT_MIN. Print the invalid value with
6516 <var_zuinteger_unlimited>: Throw error if the value is greater
6517 than INT_MAX, not greater or equal.
6518 (do_show_command) <var_integer, var_zinteger,
6519 var_zuinteger_unlimited>: Use %d for printing int, not %u.
6521 2013-03-20 Tom Tromey <tromey@redhat.com>
6523 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
6525 * dwarf2read.c (read_func_scope): Remove old FIXME.
6526 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
6528 * findvar.c (symbol_read_needs_frame, default_read_var_value):
6529 Unconditionally call via computed ops, if possible.
6530 * printcmd.c (address_info): Unconditionally call via computed ops,
6532 * stack.c (read_frame_arg): Unconditionally call via computed ops,
6534 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
6535 * tracepoint.c (scope_info): Unconditionally call via computed ops,
6538 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6539 Tom Tromey <tromey@redhat.com>
6542 * coffread.c (coff_register_index): New global.
6543 (process_coff_symbol, coff_read_enum_type): Set
6544 SYMBOL_ACLASS_INDEX.
6545 (_initialize_coffread): Initialize new global.
6546 * dwarf2loc.c (locexpr_find_frame_base_location)
6547 (dwarf2_block_frame_base_locexpr_funcs)
6548 (loclist_find_frame_base_location)
6549 (dwarf2_block_frame_base_loclist_funcs): New.
6550 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
6551 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
6552 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
6553 (dwarf2_block_frame_base_loclist_funcs): New.
6554 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
6555 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
6557 (read_func_scope): Update.
6558 (fixup_go_packaging, mark_common_block_symbol_computed)
6559 (var_decode_location, new_symbol_full, dwarf2_const_value):
6560 Set SYMBOL_ACLASS_INDEX.
6561 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
6562 (_initialize_dwarf2_read): Initialize new globals.
6563 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
6564 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
6565 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
6567 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
6568 (_initialize_mdebugread): Initialize new globals.
6569 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
6570 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
6571 (stab_register_index, stab_regparm_index): New globals.
6572 (define_symbol, read_enum_type, common_block_end): Set
6573 SYMBOL_ACLASS_INDEX.
6574 (_initialize_stabsread): Initialize new globals.
6575 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
6577 (MAX_SYMBOL_IMPLS): New define.
6578 (register_symbol_computed_impl, register_symbol_block_impl)
6579 (register_symbol_register_impl)
6580 (initialize_ordinary_address_classes): New functions.
6581 (_initialize_symtab): Call initialize_ordinary_address_classes.
6582 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
6583 (struct symbol_impl): New.
6584 (SYMBOL_ACLASS_BITS): New define.
6585 (struct symbol) <aclass, ops>: Remove fields.
6586 <aclass_index>: New field.
6587 (symbol_impls): Declare.
6588 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
6589 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
6590 (register_symbol_computed_impl, register_symbol_block_impl)
6591 (register_symbol_register_impl): Declare.
6592 (struct symbol_computed_ops): Add location_has_loclist.
6593 (struct symbol_block_ops): New.
6594 (SYMBOL_BLOCK_OPS): New.
6595 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
6597 2013-03-20 Tom Tromey <tromey@redhat.com>
6599 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
6600 (print_partial_symbols, recursively_search_psymtabs): Use
6603 2013-03-20 Pierre Muller <muller@sourceware.org>
6605 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
6606 addtion, subtraction, multiplication and division binary operator.
6608 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6611 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
6612 * bsd-kvm.c (bsd_kvm_close): Likewise.
6613 * bsd-uthread.c (bsd_uthread_close): Likewise.
6614 * corelow.c (core_close): Likewise.
6615 (core_close_cleanup): Remove parameter quitting from a caller.
6616 * event-top.c (async_disconnect): Likewise.
6617 * exec.c (exec_close_1): Remove parameter quitting.
6618 * go32-nat.c (go32_close): Likewise.
6619 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
6620 parameter quitting from a caller.
6621 * mips-linux-nat.c (super_close): Remove parameter quitting from the
6623 (mips_linux_close): Remove parameter quitting. Remove parameter
6624 quitting from a caller.
6625 * monitor.c (monitor_close): Remove parameter quitting.
6626 * monitor.h (monitor_close): Likewise.
6627 * record-btrace.c (record_btrace_close): Likewise.
6628 * record-full.c (record_full_close): Likewise.
6629 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
6630 it also from fprintf_unfiltered.
6631 * remote-mips.c (mips_close): Remove parameter quitting.
6632 (mips_detach): Remove parameter quitting from a caller.
6633 * remote-sim.c (gdbsim_close): Remove parameter quitting.
6634 (gdbsim_close): Remove duplicate function comment. Remove parameter
6635 quitting and remove it also from printf_filtered.
6636 * remote.c (remote_close): Remove parameter quitting.
6637 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
6638 * target.c (update_current_target): Remove parameter int from to_close
6640 (push_target, unpush_target, pop_target): Remove parameter quitting from
6642 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
6643 Remove parameter quitting from a caller.
6644 (target_preopen): Remove parameter quitting from a caller.
6645 (target_close): Remove parameter quitting. Remove parameter quitting
6646 from a caller two times. Remove parameter quitting also from
6648 * target.h (struct target_ops): Remove parameter quitting and as int
6649 from fields to_xclose and to_close.
6650 (extern struct target_ops current_target):
6651 (target_close, pop_all_targets): Remove parameter quitting. Update the
6653 (pop_all_targets_above): Remove parameter quitting.
6654 * top.c (quit_target): Remove parameter quitting from a caller.
6655 * tracepoint.c (tfile_close): Remove parameter quitting.
6656 * windows-nat.c (windows_close): Remove parameter quitting.
6658 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
6660 * windows-nat.c (handle_output_debug_string): Replace call
6661 to string_to_core_addr with call to strtoull.
6663 2013-03-20 Yao Qi <yao@codesourcery.com>
6665 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
6666 and write it to CTF metadata.
6668 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
6670 * windows-nat.c (handle_output_debug_string): Change type of n to
6671 SIZE_T to avoid crash on 64 bit systems.
6673 2013-03-17 Eli Zaretskii <eliz@gnu.org>
6675 * python/python-internal.h (HAVE_SNPRINTF)
6676 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
6677 about redefinition of snprintf by pyerrors.h.
6679 2013-03-15 Steve Ellcey <sellcey@mips.com>
6681 * remote-sim.c (sim_command_completer): Make char arguments const.
6683 2013-03-15 Tom Tromey <tromey@redhat.com>
6686 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
6688 2013-03-14 Tom Tromey <tromey@redhat.com>
6690 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
6692 (get_file_crc): Move from symfile.c.
6693 (gdb_bfd_crc): New function.
6694 * gdb_bfd.h (gdb_bfd_crc): Declare.
6695 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
6696 * symfile.c (get_file_crc): Move to gdb_bfd.c.
6697 (separate_debug_file_exists): Use gdb_bfd_crc.
6699 2013-03-14 Tom Tromey <tromey@redhat.com>
6701 * symfile.c (get_debug_link_info): Remove.
6702 (find_separate_debug_file_by_debuglink): Use
6703 bfd_get_debug_link_info.
6705 2013-03-14 Tom Tromey <tromey@redhat.com>
6707 * symtab.c (error_in_psymtab_expansion): New function.
6708 (lookup_symbol_aux_quick)
6709 (basic_lookup_transparent_type_quick): Remove "last resort"
6710 code. Use error_in_psymtab_expansion.
6712 2013-03-14 Doug Evans <dje@google.com>
6713 Jan Kratochvil <jan.kratochvil@redhat.com>
6715 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
6716 any successful compare_filenames_for_search or FILENAME_CMP.
6717 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6718 * symtab.c (iterate_over_some_symtabs): Likewise.
6720 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6722 * source.c (print_source_lines_base): Make a local copy of
6725 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
6726 Jan Kratochvil <jan.kratochvil@redhat.com>
6728 * source.c (print_source_lines_base): Suppress "file" for TUI.
6730 2013-03-14 Keith Seitz <keiths@redhat.com>
6731 Alan Matsuoka <alanm@redhat.com>
6735 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
6737 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
6740 2013-03-14 Yao Qi <yao@codesourcery.com>
6742 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
6743 status to tfile if trace is stopped by command 'tstop'.
6745 2013-03-14 Yao Qi <yao@codesourcery.com>
6747 * tracepoint.c (tfile_write_status): Write trace notes and user
6748 name into tfile if they are not NULL.
6750 2013-03-14 Hui Zhu <hui@codesourcery.com>
6751 Yao Qi <yao@codesourcery.com>
6753 * Makefile.in (REMOTE_OBS): Add ctf.o.
6754 (SFILES): Add ctf.c.
6755 (HFILES_NO_SRCDIR): Add ctf.h.
6756 * ctf.c, ctf.h: New files.
6757 * tracepoint.c: Include 'ctf.h'.
6758 (collect_pseudocommand): Remove static.
6759 (trace_save_command): Parse option "-ctf".
6760 Produce different trace file writers per option.
6761 Adjust output message.
6762 (trace_save_tfile, trace_save_ctf): New.
6763 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
6764 * mi/mi-main.c: Include 'ctf.h'.
6765 (mi_cmd_trace_save): Handle option '-ctf'. Call either
6766 trace_save_tfile or trace_save_ctf.
6767 * NEWS: Mention these changes.
6769 2013-03-14 Yao Qi <yao@codesourcery.com>
6771 * tracepoint.c (trace_file_writer_xfree): New.
6772 (struct tfile_writer_data): New.
6773 (tfile_dtor, tfile_can_target_save, tfile_start): New.
6774 (tfile_write_header, tfile_write_regblock_type): New.
6775 (tfile_write_status, tfile_write_uploaded_tsv): New.
6776 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
6777 (tfile_write_raw_data, (tfile_end): New.
6778 (tfile_write_ops): New global variable.
6779 (TRACE_WRITE_R_BLOCK): New macro.
6780 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
6781 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
6782 (TRACE_WRITE_V_BLOCK): New macro.
6783 (trace_save): Add extra one parameter WRITER. Make it static.
6784 Use WRITER to writer trace.
6785 (tfile_trace_file_writer_new): New.
6786 (trace_save_command): Caller update.
6787 (trace_save_tfile): Write trace data in TFILE format.
6788 * tracepoint.h (struct trace_frame_write_ops): New.
6789 (struct trace_file_write_ops): New.
6790 (struct trace_file_writer): New.
6791 (trace_save): Remove its declaration.
6792 (trace_save_tfile): Declare it.
6793 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
6794 instead of trace_save.
6796 2013-03-13 Pedro Alves <palves@redhat.com>
6798 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
6800 2013-03-13 Pedro Alves <palves@redhat.com>
6802 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
6804 * demangle.c (current_demangling_style_string): Make it const.
6805 (set_demangling_command): Assert the demangling style is known.
6806 Remove all handling of unknown styles. Set
6807 'current_demangling_style_string' to an element of the
6808 demangling_style_names array.
6809 (set_demangling_style): Delete.
6810 (_initialize_demangler): Set current_demangling_style_string to the
6811 element of the demangling_style_names array that corresponds to
6812 the default demangling style. Remove FIXME note. Don't call
6813 set_demangling_style.
6814 * gdb-demangle.h (set_demangling_style): Remove declaration.
6816 2013-03-13 Pedro Alves <palves@redhat.com>
6818 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
6820 (ada_make_symbol_completion_list): Make "text0" parameter const.
6821 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
6822 * breakpoint.c (condition_completer): Make "text" and "word"
6823 parameters const. Adjust.
6824 (check_tracepoint_command): Adjust to validate_actionline
6826 (catch_syscall_completer): Make "text" and "word" parameters
6828 * cli/cli-cmds.c (show_user): Make "comname" local const.
6829 (valid_command_p): Make "command" parameter const.
6830 (alias_command): Make "alias_prefix" and "command_prefix" locals
6832 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
6833 (add_alias_cmd): Make "name" and "oldname" parameters const.
6834 Adjust. No longer make copy of OLDNAME.
6835 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
6836 (add_setshow_cmd_full, add_setshow_enum_cmd)
6837 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6838 (add_setshow_filename_cmd, add_setshow_string_cmd)
6839 (add_setshow_string_noescape_cmd)
6840 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6841 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6842 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
6843 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
6844 Make "name" parameter const.
6845 (help_cmd): Rename "command" parameter to "arg". New const local
6847 (find_cmd): Make "command" parameter const.
6848 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
6849 deprecated_cmd_warning prototype change.
6850 (undef_cmd_error): Make "cmdtype" parameter const.
6851 (lookup_cmd): Make "line" parameter const.
6852 (deprecated_cmd_warning): Change type of "text" parameter to
6853 pointer to const char, from pointer to pointer to char. Adjust.
6854 (lookup_cmd_composition): Make "text" parameter const.
6855 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
6857 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
6859 * cli/cli-script.c (validate_comname): Make "tem" local const.
6860 (define_command): New const local "tem_c". Use it in calls to
6862 (document_command): Make "tem" and "comfull" locals const.
6863 (show_user_1): Make "prefix" and "name" parameters const.
6864 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
6866 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
6867 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
6868 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
6869 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
6870 (complete_on_enum, add_setshow_enum_cmd)
6871 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6872 (add_setshow_filename_cmd, add_setshow_string_cmd)
6873 (add_setshow_string_noescape_cmd)
6874 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6875 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6876 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
6877 Change prototypes, constifying strings.
6878 * completer.c (noop_completer, filename_completer): Make "text"
6879 and "prefix" parameters const.
6880 (location_completer, expression_completer)
6881 (complete_line_internal): Make "text" and "prefix" parameters
6883 (command_completer, signal_completer): Make "text" and "prefix"
6885 * completer.h (noop_completer, filename_completer)
6886 (expression_completer, location_completer, command_completer)
6887 (signal_completer): Change prototypes.
6888 * corefile.c (complete_set_gnutarget): Make "text" and "word"
6890 * cp-abi.c (cp_abi_completer): Likewise.
6891 * expression.h (parse_expression_for_completion): Change
6893 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
6895 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
6896 * infrun.c (handle_completer): Make "text" and "word" parameters
6898 * interps.c (interpreter_completer): Make "text" and "word"
6900 * language.h (struct language_defn)
6901 <la_make_symbol_completion_list>: Make "text" and "word"
6903 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
6904 (parse_exp_in_context): Rename to ...
6905 (parse_exp_in_context_1): ... this.
6906 (parse_exp_in_context): Reimplement, with const hack from
6908 (parse_expression_for_completion): Make "string" parameter const.
6909 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
6910 to pointer to const char. Adjust.
6911 (print_command_1): Make "exp" parameter const.
6912 (output_command): Rename to ...
6913 (output_command_const): ... this. Make "exp" parameter const.
6914 (output_command): Reimplement.
6915 (x_command): Adjust.
6916 (display_command): Rename "exp" parameter to "arg". New "exp"
6917 local, const version of "arg".
6918 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
6919 "cmd_name" local const.
6920 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
6922 (cmdpy_completer): Make "text" and "word" parameters const.
6923 (gdbpy_parse_command_name): Make "prefix_text2" local const.
6924 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
6926 * remote.c (_initialize_remote): Make "cmd_name" local const.
6927 * symtab.c (language_search_unquoted_string): Make "text" and "p"
6928 parameters const. Adjust.
6929 (completion_list_add_fields): Make "sym_text", "text" and "word"
6931 (struct add_name_data) <sym_text, text, word>: Make fields const.
6932 (default_make_symbol_completion_list_break_on): Make "text" and
6933 "word" parameters const. Adjust locals.
6934 (default_make_symbol_completion_list)
6935 (make_symbol_completion_list, make_symbol_completion_type)
6936 (make_symbol_completion_list_fn): Make "text" and "word"
6938 (make_file_symbol_completion_list): Make "text", "word" and
6939 "srcfile" parameters const. Adjust locals.
6940 (add_filename_to_list): Make "text" and "word" parameters const.
6941 (struct add_partial_filename_data) <text, word>: Make fields
6943 (make_source_files_completion_list): Make "text" and "word"
6945 * symtab.h (default_make_symbol_completion_list_break_on)
6946 (default_make_symbol_completion_list, make_symbol_completion_list)
6947 (make_symbol_completion_type enum type_code)
6948 (make_symbol_completion_list_fn make_file_symbol_completion_list)
6949 (make_source_files_completion_list): Change prototype.
6950 * top.c (execute_command): Adjust to pass pointer to pointer to
6951 const char to lookup_cmd, and to deprecated_cmd_warning prototype
6953 (set_verbose): Make "cmdname" local const.
6954 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
6956 (validate_actionline): Make "line" parameter a pointer to const
6958 (encode_actions_1): Make "action_exp" local const, and adjust.
6959 (encode_actions): Adjust.
6960 (replace_comma): Delete.
6961 (trace_dump_actions): Make "action_exp" and "next_comma" locals
6962 const, and adjust. Don't frob the action string while splitting
6963 it at commas. Instead, make a copy of each split substring in
6965 (trace_dump_command): Adjust to validate_actionline prototype
6967 * tracepoint.h (decode_agent_options, decode_agent_options)
6968 (encode_actions, validate_actionline): Change prototypes.
6969 * valprint.h (output_command): Delete declaration.
6970 (output_command_const): Declare.
6971 * value.c (function_destroyer): Cast const away in xfree call.
6973 2013-03-13 Pedro Alves <palves@redhat.com>
6975 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
6976 rather than casting 'const char * const *' to 'const char **'.
6977 * ada-lex.l (processInt): Make "trailer" local const. Remove
6978 'const char **' cast.
6979 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
6980 locals, and use those as strtol output pointer, instead than doing
6981 invalid casts to from 'const char **' to 'char **'.
6982 (_initialize_demangle): Remove cast.
6983 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
6984 locals, and use those as strtol output pointer, instead than doing
6985 invalid casts to from 'const char **' to 'char **'.
6986 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
6988 * stap-probe.c (stap_parse_register_operand)
6989 (stap_parse_single_operand): Likewise.
6991 2013-03-13 Yao Qi <yao@codesourcery.com>
6993 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
6994 the last matched 'V' blcok in trace frame.
6996 2013-03-12 Joel Brobecker <brobecker@adacore.com>
6998 * NEWS: Create a new section for the next release branch.
6999 Rename the section of the current branch, now that it has
7002 2013-03-12 Joel Brobecker <brobecker@adacore.com>
7004 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7005 * version.in: Bump version to 7.6.50.20130312-cvs.
7007 2013-03-12 Keith Seitz <keiths@redhat.com>
7009 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7010 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7011 Remove temporary copy of input string.
7012 (mi_execute_command_wrapper): Make "cmd" const.
7013 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7014 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7016 (mi_parse): Make "cmd" const.
7018 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7020 2013-03-12 Keith Seitz <keiths@redhat.com>
7022 * ada-lang.c (ada_read_renaming_var_value): Pass const
7023 pointer to expression string to parse_exp_1.
7024 (create_excep_cond_exprs): Likewise.
7025 * ax-gdb.c (agent_eval_command_one): Likewise.
7026 (maint_agent_printf_command): Likewise.
7027 Constify much of the string handling/parsing.
7028 * breakpoint.c (set_breakpoint_condition): Pass const
7029 pointer to expression string to parse_exp_1.
7030 (update_watchpoint): Likewise.
7031 (parse_cmd_to_aexpr): Constify string handling.
7032 Pass const pointer to parse_exp_1.
7033 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7034 (find_condition_and_thread): Likewise.
7036 (watch_command_1): Make "arg" const.
7037 Constify string handling.
7038 Copy the expression string instead of changing the input
7040 (update_breakpoint_location): Pass const pointer to
7042 * eval.c (parse_and_eval_address): Make "exp" const.
7043 (parse_to_comma_and_eval): Make "expp" const.
7044 (parse_and_eval): Make "exp" const.
7045 * expression.h (parse_expression): Make argument const.
7046 (parse_exp_1): Make first argument const.
7047 * findcmd.c (parse_find_args): Treat "args" as const.
7048 * linespec.c (parse_linespec): Pass const pointer to
7049 linespec_expression_to_pc.
7050 (linespec_expression_to_pc): Make "exp_ptr" const.
7051 * parse.c (parse_exp_1): Make "stringptr" const.
7052 Make a copy of the expression to pass to parse_exp_in_context until
7053 this whole interface can be constified.
7054 (parse_expression): Make "string" const.
7055 * printcmd.c (ui_printf): Treat "arg" as const.
7056 Handle const strings.
7057 * tracepoint.c (validate_actionline): Pass const pointer to
7058 all calls to parse_exp_1.
7059 (encode_actions_1): Likewise.
7060 * value.h (parse_to_comma_and_eval): Make argument const.
7061 (parse_and_eval_address): Likewise.
7062 (parse_and_eval): Likewise.
7063 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7064 (varobj_set_value): Likewise.
7065 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7066 constify string handling.
7067 Pass const pointers to parse_and_eval_address and
7068 parse_to_comman_and_eval.
7069 * cli/cli-utils.c (skip_to_space): Rename to ...
7070 (skip_to_space_const): ... this. Handle const strings.
7071 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7072 skip_to_space_const.
7073 (skip_to_space_const): Declare.
7074 * common/format.c (parse_format_string): Make "arg" const.
7075 Handle const strings.
7076 * common/format.h (parse_format_string): Make "arg" const.
7077 * gdbserver/ax.c (ax_printf): Make "format" const.
7078 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7079 of the expression string.
7081 2013-03-12 Hui Zhu <hui@codesourcery.com>
7083 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7085 2013-03-12 Yao Qi <yao@codesourcery.com>
7086 Hui Zhu <hui@codesourcery.com>
7088 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7089 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7092 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
7094 * ada-lex.l (rules): Only recognize 'thread' as a
7095 delimiter when followed by numerals, as for c-exp.y.
7096 Use new rewind_to_char function to rewind the input for
7097 expression-delimiting tokens.
7098 (rewind_to_char): New function.
7100 2013-03-11 Pedro Alves <palves@redhat.com>
7101 Jan Kratochvil <jan.kratochvil@redhat.com>
7103 * configure: Regenerate.
7104 * configure.ac (check dynamic export flag): Link python test with
7107 2013-03-11 Doug Evans <dje@google.com>
7108 Keith Seitz <keiths@redhat.com>
7110 * linespec.c (find_linespec_symbols): Call find_function_symbols
7111 first, and then call lookup_prefix_sym/find_method.
7113 2013-03-11 Pedro Alves <palves@redhat.com>
7115 * charset.c (convert_between_encodings): Don't cast between
7116 different pointer to pointer types. Instead, make the 'inp' local
7117 be of the type iconv expects.
7118 (wchar_iterate): Don't cast between different pointer to pointer
7119 types. Instead, use new pointer local of the type iconv expects.
7120 * target.c (target_read_stralloc, target_fileio_read_stralloc):
7121 Add new local of type char pointer, and use it to get a
7122 char/string view of the byte buffer, instead of casting between
7123 pointer to pointer types.
7125 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
7127 * remote.c (remote_set_trace_buffer_size): Move != operator
7128 to the start of next line to fix an ARI warning.
7130 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7132 * NEWS: Add record changes.
7134 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7136 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
7137 the instruction history disassembly.
7138 * disasm.c (dump_insns): Omit the pc prefix, if requested.
7139 * disasm.h (DISASSEMBLY_OMIT_PC): New.
7141 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7143 * Makefile.in (SFILES): Add record-btrace.c
7144 (COMMON_OBS): Add record-btrace.o
7145 * record-btrace.c: New.
7146 * objfiles.c: Include btrace.h.
7147 (free_objfile): call btrace_free_objfile.
7149 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7151 * target.c (target_call_history, target_call_history_from,
7152 target_call_history_range): New.
7153 * target.h (target_ops) <to_call_history, to_call_history_from,
7154 to_call_history_range>: New fields.
7155 (target_call_history, target_call_history_from,
7156 target_call_history_range): New declaration.
7157 * record.c (get_call_history_modifiers, cmd_record_call_history,
7158 record_call_history_size): New.
7159 (_initialize_record): Add the "record function-call-history" command.
7160 Add "set/show record function-call-history-size" commands.
7161 * record.h (record_print_flag): New.
7163 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7165 * target.h (target_ops) <to_insn_history, to_insn_history_from,
7166 to_insn_history_range>: New fields.
7167 (target_insn_history): New.
7168 (target_insn_history_from): New.
7169 (target_insn_history_range): New.
7170 * target.c (target_insn_history): New.
7171 (target_insn_history_from): New.
7172 (target_insn_history_range): New.
7173 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
7174 (record_insn_history_size): New.
7175 (get_insn_number): New.
7176 (get_context_size): New.
7178 (get_insn_history_modifiers): New.
7179 (cmd_record_insn_history): New.
7180 (_initialize_record): Add "set/show record instruction-history-size"
7181 command. Add "record instruction-history" command.
7183 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7185 * record.h (record_disconnect): New.
7186 (record_detach): New.
7187 (record_mourn_inferior): New.
7189 * record-full.c (record_disconnect, record_detach,
7190 record_mourn_inferior, record_kill): Move to...
7191 * record.c: ...here.
7194 (record_unpush): New.
7195 (cmd_record_stop): Call record_stop. Replace unpush_target
7196 call with record_unpush call.
7197 (record_disconnect, record_detach): Assert that the target
7198 is of record stratum. Call record_unpush, record_stop, and
7200 (record_mourn_inferior, record_kill): Assert that the target
7201 is of record stratum. Call record_unpush and DEBUG.
7203 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7205 * record-full.h, record-full.c (record_memory_query): Rename
7207 (record_full_memory_query): ...this. Update all users.
7208 (record_arch_list_add_reg): Rename to ...
7209 (record_full_arch_list_add_reg): ...this. Update all users.
7210 (record_arch_list_add_mem): Rename to ...
7211 (record_full_arch_list_add_mem): ...this. Update all users.
7212 (record_arch_list_add_end): Rename to ...
7213 (record_full_arch_list_add_end): ...this. Update all users.
7214 (record_gdb_operation_disable_set): Rename to ...
7215 (record_full_gdb_operation_disable_set): ...this.
7218 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7220 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
7221 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
7222 (RECORD_IS_REPLAY): Renamed to ...
7223 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
7224 (RECORD_FILE_MAGIC): Renamed to ...
7225 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
7226 (record_mem_entry): Renamed to ...
7227 (record_full_mem_entry): ... this. Updated all users.
7228 (record_reg_entry): Renamed to ...
7229 (record_full_reg_entry): ... this. Updated all users.
7230 (record_end_entry): Renamed to ...
7231 (record_full_end_entry): ... this. Updated all users.
7232 (record_type) <record_end, record_reg, record_mem>: Renamed
7234 (record_full_type) <record_full_end, record_full_reg,
7235 record_full_mem>: ... this. Updated all users.
7236 (record_entry): Renamed to ...
7237 (record_full_entry): ... this. Updated all users.
7238 (record_core_buf_entry): Renamed to ...
7239 (record_full_core_buf_entry): ... this. Updated all users.
7240 (record_core_regbuf): Renamed to ...
7241 (record_full_core_regbuf): ... this. Updated all users.
7242 (record_core_start): Renamed to ...
7243 (record_full_core_start): ... this. Updated all users.
7244 (record_core_end): Renamed to ...
7245 (record_full_core_end): ... this. Updated all users.
7246 (record_core_buf_list): Renamed to ...
7247 (record_full_core_buf_list): ... this. Updated all users.
7248 (record_first): Renamed to ...
7249 (record_full_first): ... this. Updated all users.
7250 (record_list): Renamed to ...
7251 (record_full_list): ... this. Updated all users.
7252 (record_arch_list_head): Renamed to ...
7253 (record_full_arch_list_head): ... this. Updated all users.
7254 (record_arch_list_tail): Renamed to ...
7255 (record_full_arch_list_tail): ... this. Updated all users.
7256 (record_stop_at_limit): Renamed to ...
7257 (record_full_stop_at_limit): ... this. Updated all users.
7258 (record_insn_max_num): Renamed to ...
7259 (record_full_insn_max_num): ... this. Updated all users.
7260 (record_insn_num): Renamed to ...
7261 (record_full_insn_num): ... this. Updated all users.
7262 (record_insn_count): Renamed to ...
7263 (record_full_insn_count): ... this. Updated all users.
7264 (record_ops): Renamed to ...
7265 (record_full_ops): ... this. Updated all users.
7266 (record_core_ops): Renamed to ...
7267 (record_full_core_ops): ... this. Updated all users.
7268 (set_record_cmdlist): Renamed to ...
7269 (set_record_full_cmdlist): ... this. Updated all users.
7270 (show_record_cmdlist): Renamed to ...
7271 (show_record_full_cmdlist): ... this. Updated all users.
7272 (record_cmdlist): Renamed to ...
7273 (record_full_cmdlist): ... this. Updated all users.
7274 (record_beneath_to_resume_ops): Renamed to ...
7275 (record_full_beneath_to_resume_ops): ... this. Updated all users.
7276 (record_beneath_to_resume): Renamed to ...
7277 (record_full_beneath_to_resume): ... this. Updated all users.
7278 (record_beneath_to_wait_ops): Renamed to ...
7279 (record_full_beneath_to_wait_ops): ... this. Updated all users.
7280 (record_beneath_to_wait): Renamed to ...
7281 (record_full_beneath_to_wait): ... this. Updated all users.
7282 (record_beneath_to_store_registers_ops): Renamed to ...
7283 (record_full_beneath_to_store_registers_ops): ... this.
7285 (record_beneath_to_store_registers): Renamed to ...
7286 (record_full_beneath_to_store_registers): ... this.
7288 (record_beneath_to_xfer_partial_ops): Renamed to ...
7289 (record_full_beneath_to_xfer_partial_ops): ... this.
7291 (record_beneath_to_xfer_partial): Renamed to ...
7292 (record_full_beneath_to_xfer_partial): ... this.
7294 (record_beneath_to_insert_breakpoint): Renamed to ...
7295 (record_full_beneath_to_insert_breakpoint): ... this.
7297 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
7298 (record_full_beneath_to_stopped_by_watchpoint): ... this.
7300 (record_beneath_to_stopped_data_address): Renamed to ...
7301 (record_full_beneath_to_stopped_data_address): ... this.
7303 (record_beneath_to_async): Renamed to ...
7304 (record_full_beneath_to_async): ... this. Updated all users.
7305 (record_goto_insn): Renamed to ...
7306 (record_full_goto_insn): ... this. Updated all users.
7307 (record_save): Renamed to ...
7308 (record_full_save): ... this. Updated all users.
7309 (record_reg_alloc): Renamed to ...
7310 (record_full_reg_alloc): ... this. Updated all users.
7311 (record_reg_release): Renamed to ...
7312 (record_full_reg_release): ... this. Updated all users.
7313 (record_mem_alloc): Renamed to ...
7314 (record_full_mem_alloc): ... this. Updated all users.
7315 (record_mem_release): Renamed to ...
7316 (record_full_mem_release): ... this. Updated all users.
7317 (record_end_alloc): Renamed to ...
7318 (record_full_end_alloc): ... this. Updated all users.
7319 (record_end_release): Renamed to ...
7320 (record_full_end_release): ... this. Updated all users.
7321 (record_entry_release): Renamed to ...
7322 (record_full_entry_release): ... this. Updated all users.
7323 (record_list_release): Renamed to ...
7324 (record_full_list_release): ... this. Updated all users.
7325 (record_list_release_following): Renamed to ...
7326 (record_full_list_release_following): ... this.
7328 (record_list_release_first): Renamed to ...
7329 (record_full_list_release_first): ... this. Updated all users.
7330 (record_arch_list_add): Renamed to ...
7331 (record_full_arch_list_add): ... this. Updated all users.
7332 (record_get_loc): Renamed to ...
7333 (record_full_get_loc): ... this. Updated all users.
7334 (record_check_insn_num): Renamed to ...
7335 (record_full_check_insn_num): ... this. Updated all users.
7336 (record_arch_list_cleanups): Renamed to ...
7337 (record_full_arch_list_cleanups): ... this. Updated all users.
7338 (record_message): Renamed to ...
7339 (record_full_message): ... this. Updated all users.
7340 (record_message_wrapper): Renamed to ...
7341 (record_full_message_wrapper): ... this. Updated all users.
7342 (record_message_wrapper_safe): Renamed to ...
7343 (record_full_message_wrapper_safe): ... this. Updated all users.
7344 (record_gdb_operation_disable): Renamed to ...
7345 (record_full_gdb_operation_disable): ... this. Updated all users.
7346 (record_hw_watchpoint): Renamed to ...
7347 (record_full_hw_watchpoint): ... this. Updated all users.
7348 (record_exec_insn): Renamed to ...
7349 (record_full_exec_insn): ... this. Updated all users.
7350 (record_restore): Renamed to ...
7351 (record_full_restore): ... this. Updated all users.
7352 (record_async_inferior_event_token): Renamed to ...
7353 (record_full_async_inferior_event_token): ... this.
7355 (record_async_inferior_event_handler): Renamed to ...
7356 (record_full_async_inferior_event_handler): ... this.
7358 (record_core_open_1): Renamed to ...
7359 (record_full_core_open_1): ... this. Updated all users.
7360 (record_open_1): Renamed to ...
7361 (record_full_open_1): ... this. Updated all users.
7362 (record_open): Renamed to ...
7363 (record_full_open): ... this. Updated all users.
7364 (record_close): Renamed to ...
7365 (record_full_close): ... this. Updated all users.
7366 (record_resume_step): Renamed to ...
7367 (record_full_resume_step): ... this. Updated all users.
7368 (record_resumed): Renamed to ...
7369 (record_full_resumed): ... this. Updated all users.
7370 (record_execution_dir): Renamed to ...
7371 (record_full_execution_dir): ... this. Updated all users.
7372 (record_resume): Renamed to ...
7373 (record_full_resume): ... this. Updated all users.
7374 (record_get_sig): Renamed to ...
7375 (record_full_get_sig): ... this. Updated all users.
7376 (record_sig_handler): Renamed to ...
7377 (record_full_sig_handler): ... this. Updated all users.
7378 (record_wait_cleanups): Renamed to ...
7379 (record_full_wait_cleanups): ... this. Updated all users.
7380 (record_wait_1): Renamed to ...
7381 (record_full_wait_1): ... this. Updated all users.
7382 (record_wait): Renamed to ...
7383 (record_full_wait): ... this. Updated all users.
7384 (record_stopped_by_watchpoint): Renamed to ...
7385 (record_full_stopped_by_watchpoint): ... this. Updated all users.
7386 (record_disconnect): Renamed to ...
7387 (record_full_disconnect): ... this. Updated all users.
7388 (record_detach): Renamed to ...
7389 (record_full_detach): ... this. Updated all users.
7390 (record_mourn_inferior): Renamed to ...
7391 (record_full_mourn_inferior): ... this. Updated all users.
7392 (record_kill): Renamed to ...
7393 (record_full_kill): ... this. Updated all users.
7394 (record_stopped_data_address): Renamed to ...
7395 (record_full_stopped_data_address): ... this. Updated all users.
7396 (record_registers_change): Renamed to ...
7397 (record_full_registers_change): ... this. Updated all users.
7398 (record_store_registers): Renamed to ...
7399 (record_full_store_registers): ... this. Updated all users.
7400 (record_xfer_partial): Renamed to ...
7401 (record_full_xfer_partial): ... this. Updated all users.
7402 (record_breakpoint): Renamed to ...
7403 (record_full_breakpoint): ... this. Updated all users.
7404 (record_breakpoint_p): Renamed to ...
7405 (record_full_breakpoint_p): ... this. Updated all users.
7406 (record_breakpoints): Renamed to ...
7407 (record_full_breakpoints): ... this. Updated all users.
7408 (record_sync_record_breakpoints): Renamed to ...
7409 (record_full_sync_record_breakpoints): ... this.
7411 (record_init_record_breakpoints): Renamed to ...
7412 (record_full_init_record_breakpoints): ... this.
7414 (record_insert_breakpoint): Renamed to ...
7415 (record_full_insert_breakpoint): ... this. Updated all users.
7416 (record_remove_breakpoint): Renamed to ...
7417 (record_full_remove_breakpoint): ... this. Updated all users.
7418 (record_can_execute_reverse): Renamed to ...
7419 (record_full_can_execute_reverse): ... this. Updated all users.
7420 (record_get_bookmark): Renamed to ...
7421 (record_full_get_bookmark): ... this. Updated all users.
7422 (record_goto_bookmark): Renamed to ...
7423 (record_full_goto_bookmark): ... this. Updated all users.
7424 (record_async): Renamed to ...
7425 (record_full_async): ... this. Updated all users.
7426 (record_can_async_p): Renamed to ...
7427 (record_full_can_async_p): ... this. Updated all users.
7428 (record_is_async_p): Renamed to ...
7429 (record_full_is_async_p): ... this. Updated all users.
7430 (record_execution_direction): Renamed to ...
7431 (record_full_execution_direction): ... this. Updated all users.
7432 (record_info): Renamed to ...
7433 (record_full_info): ... this. Updated all users.
7434 (record_delete): Renamed to ...
7435 (record_full_delete): ... this. Updated all users.
7436 (record_is_replaying): Renamed to ...
7437 (record_full_is_replaying): ... this. Updated all users.
7438 (record_goto_entry): Renamed to ...
7439 (record_full_goto_entry): ... this. Updated all users.
7440 (record_goto_begin): Renamed to ...
7441 (record_full_goto_begin): ... this. Updated all users.
7442 (record_goto_end): Renamed to ...
7443 (record_full_goto_end): ... this. Updated all users.
7444 (record_goto): Renamed to ...
7445 (record_full_goto): ... this. Updated all users.
7446 (init_record_ops): Renamed to ...
7447 (init_record_full_ops): ... this. Updated all users.
7448 (record_core_resume): Renamed to ...
7449 (record_full_core_resume): ... this. Updated all users.
7450 (record_core_kill): Renamed to ...
7451 (record_full_core_kill): ... this. Updated all users.
7452 (record_core_fetch_registers): Renamed to ...
7453 (record_full_core_fetch_registers): ... this. Updated all users.
7454 (record_core_prepare_to_store): Renamed to ...
7455 (record_full_core_prepare_to_store): ... this. Updated all users.
7456 (record_core_store_registers): Renamed to ...
7457 (record_full_core_store_registers): ... this. Updated all users.
7458 (record_core_xfer_partial): Renamed to ...
7459 (record_full_core_xfer_partial): ... this. Updated all users.
7460 (record_core_insert_breakpoint): Renamed to ...
7461 (record_full_core_insert_breakpoint): ... this. Updated all users.
7462 (record_core_remove_breakpoint): Renamed to ...
7463 (record_full_core_remove_breakpoint): ... this. Updated all users.
7464 (record_core_has_execution): Renamed to ...
7465 (record_full_core_has_execution): ... this. Updated all users.
7466 (init_record_core_ops): Renamed to ...
7467 (init_record_full_core_ops): ... this. Updated all users.
7468 (cmd_record_restore): Renamed to ...
7469 (cmd_record_full_restore): ... this. Updated all users.
7470 (record_save_cleanups): Renamed to ...
7471 (record_full_save_cleanups): ... this. Updated all users.
7472 (cmd_record_start): Renamed to ...
7473 (cmd_record_full_start): ... this. Updated all users.
7474 (set_record_insn_max_num): Renamed to ...
7475 (set_record_full_insn_max_num): ... this. Updated all users.
7476 (set_record_command): Renamed to ...
7477 (set_record_full_command): ... this. Updated all users.
7478 (show_record_command): Renamed to ...
7479 (show_record_full_command): ... this. Updated all users.
7480 (_initialize_record): Renamed to ...
7481 (_initialize_record_full): ... this. Updated all users.
7483 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7485 * record.h: Split into this and ...
7486 * record-full.h: ... this.
7487 * record.c: Split into this and ...
7488 * record-full.c: ... this.
7489 * target.h (target_ops): Add new fields to_info_record,
7490 to_save_record, to_delete_record, to_record_is_replaying,
7491 to_goto_record_begin, to_goto_record_end, to_goto_record.
7492 (target_info_record): New.
7493 (target_save_record): New.
7494 (target_supports_delete_record): New.
7495 (target_delete_record): New.
7496 (target_record_is_replaying): New.
7497 (target_goto_record_begin): New.
7498 (target_goto_record_end): New.
7499 (target_goto_record): New.
7500 * target.c (target_info_record): New.
7501 (target_save_record): New.
7502 (target_supports_delete_record): New.
7503 (target_delete_record): New.
7504 (target_record_is_replaying): New.
7505 (target_goto_record_begin): New.
7506 (target_goto_record_end): New.
7507 (target_goto_record): New.
7508 * record.h: Declare struct cmd_list_element.
7509 (record_cmdlist): New declaration.
7510 (set_record_cmdlist): New declaration.
7511 (show_record_cmdlist): New declaration.
7512 (info_record_cmdlist): New declaration.
7513 (cmd_record_goto): New declaration.
7514 * record.c: Remove unnecessary includes.
7516 (cmd_record_goto): Remove declaration.
7517 (record_cmdlist): Now extern. Initialize.
7518 (set_record_cmdlist): Now extern. Initialize.
7519 (show_record_cmdlist): Now extern. Initialize.
7520 (info_record_cmdlist): Now extern. Initialize.
7521 (find_record_target): New.
7522 (require_record_target): New.
7523 (cmd_record_start): Update.
7524 (cmd_record_delete): Remove target-specific code.
7525 Call target_delete_record.
7526 (cmd_record_stop): Unpush any record target.
7527 (set_record_insn_max_num): Move to record-full.c
7528 (set_record_command): Add comment.
7529 (show_record_command): Add comment.
7530 (info_record_command): Update comment.
7531 Remove target-specific code.
7532 Call the record target's to_info_record.
7533 (cmd_record_start): New.
7534 (cmd_record_goto): Now extern.
7535 Remove target-specific code.
7536 Call target_goto_begin, target_goto_end, or target_goto.
7537 (_initialize_record): Move record target ops initialization to
7539 Change "record" command help text.
7540 Move "record restore", "record set", and "record show" commands to
7542 * Makefile.in (SFILES): Add record-full.c.
7543 (HFILES_NO_SRCDIR): Add record-full.h.
7544 (COMMON_OBS): Add record-full.o.
7545 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
7546 * arm-tdep.c: Include record-full.h.
7547 * i386-linux-tdep.c: Include record-full.h instead of record.h.
7548 * i386-tdep.c: Include record-full.h.
7549 * infrun.c: Include record-full.h.
7550 * linux-record.c: Include record-full.h.
7551 * moxie-tdep.c: Include record-full.h.
7552 * record-full.c: Include record-full.h.
7553 Change module comment.
7554 (set_record_full_cmdlist): New.
7555 (show_record_full_cmdlist): New.
7556 (record_full_cmdlist): New.
7557 (record_goto_insn): New declaration.
7558 (record_save): New declaration.
7559 (record_check_insn_num): Change query string.
7561 (record_delete): New.
7562 (record_is_replaying): New.
7563 (record_goto_entry): New.
7564 (record_goto_begin): New.
7565 (record_goto_end): New.
7567 (init_record_ops): Update.
7568 (init_record_core_ops): Update.
7569 (cmd_record_save): Rename to record_save. Remove target and arg checks.
7570 (cmd_record_start): New.
7571 (set_record_insn_max_num): Moved from record.c
7572 (set_record_full_command): New.
7573 (show_record_full_command): New.
7574 (_initialize_record_full): New.
7576 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7578 * target.h (add_deprecated_target_alias): New.
7579 * target.c (add_deprecated_target_alias): New.
7581 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7583 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
7585 (linux_supports_btrace): Add kernel and
7587 (kernel_supports_btrace): New function.
7588 (cpu_supports_btrace): New function.
7589 (intel_supports_btrace): New function.
7591 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7593 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
7594 * remote.c: Include btrace.h.
7595 (struct btrace_target_info): New struct.
7596 (remote_supports_btrace): New function.
7597 (send_Qbtrace): New function.
7598 (remote_enable_btrace): New function.
7599 (remote_disable_btrace): New function.
7600 (remote_teardown_btrace): New function.
7601 (remote_read_btrace): New function.
7602 (init_remote_ops): Add btrace ops.
7603 (enum <unnamed>): Add btrace packets.
7604 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
7605 (_initialize_remote): Add packet configuration for branch tracing.
7607 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7609 * features/btrace.dtd: New file.
7610 * Makefile.in (XMLFILES): Add btrace.dtd.
7611 * btrace.h (parse_xml_btrace): New declaration.
7612 * btrace.c: Include xml-support.h.
7613 (parse_xml_btrace): New function.
7614 (parse_xml_btrace_block): New function.
7615 (block_attributes): New struct.
7616 (btrace_attributes): New struct.
7617 (btrace_children): New struct.
7618 (btrace_elements): New struct.
7620 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7622 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
7623 (amd64_linux_enable_btrace): New.
7624 (amd64_linux_disable_btrace): New.
7625 (amd64_linux_teardown_btrace): New.
7626 (_initialize_amd64_linux_nat): Initialize btrace ops.
7627 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
7628 (i386_linux_enable_btrace): New.
7629 (i386_linux_disable_btrace): New.
7630 (i386_linux_teardown_btrace): New.
7631 (_initialize_i386_linux_nat): Initialize btrace ops.
7632 * config/i386/linux.mh: Add linux-btrace.o.
7633 * config/i386/linux64.mh: Add linux-btrace.o.
7635 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7637 * common/linux_btrace.h: New file.
7638 * common/linux_btrace.c: New file.
7639 * Makefile.in (SFILES): Add btrace.c.
7640 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
7641 (COMMON_OBS): Add btrace.o.
7642 (linux-btrace.o): New rule.
7644 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7646 * target.h: Include btrace.h.
7647 (struct target_ops) <to_supports_btrace, to_enable_btrace,
7648 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
7649 * target.c (target_supports_btrace): New function.
7650 (target_enable_btrace): New function.
7651 (target_disable_btrace): New function.
7652 (target_teardown_btrace): New function.
7653 (target_read_btrace): New function.
7654 * btrace.h: New file.
7655 * btrace.c: New file.
7656 * Makefile.in: Add btrace.c.
7657 * gdbthread.h: Include btrace.h.
7658 (struct thread_info): Add btrace field.
7659 * thread.c: Include btrace.h.
7660 (clear_thread_inferior_resources): Call target_teardown_btrace.
7661 * common/btrace-common.h: New file.
7663 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7665 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
7666 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
7667 kill_status to outer block.
7669 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7671 Fix entry-values if the callee called a noreturn function.
7672 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7673 get_frame_address_in_block. Add new comment.
7675 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7677 Fix entry-values in C++ across CUs.
7678 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
7679 lookup_minimal_symbol. Add a comment.
7681 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
7684 2013-03-08 Yao Qi <yao@codesourcery.com>
7686 * tracepoint.c (_initialize_tracepoint): Indent the code.
7688 2013-03-08 Pedro Alves <palves@redhat.com>
7690 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
7691 (parse_find_args, find_command): Change type of pattern buffer
7692 locals to 'gdb_byte *'.
7694 2013-03-08 Stan Shebs <stan@codesourcery.com>
7695 Hafiz Abid Qadeer <abidh@codesourcery.com>
7697 * NEWS: Mention set and show trace-buffer-size commands.
7699 * target.h (struct target_ops): New method
7700 to_set_trace_buffer_size.
7701 (target_set_trace_buffer_size): New macro.
7702 * target.c (update_current_target): Set up new method.
7703 * tracepoint.c (trace_buffer_size): New global.
7704 (start_tracing): Send it to the target.
7705 (set_trace_buffer_size): New function.
7706 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
7707 * remote.c (remote_set_trace_buffer_size): New function.
7708 (_initialize_remote): Use it.
7709 (QTBuffer:size) New remote command.
7710 (PACKET_QTBuffer_size): New enum.
7711 (remote_protocol_features): Add an entry for
7712 PACKET_QTBuffer_size.
7714 2013-03-08 Tom Tromey <tromey@redhat.com>
7716 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
7719 2013-03-07 Pedro Alves <palves@redhat.com>
7721 * target.c (target_read_stralloc, target_fileio_read_alloc):
7722 *Cast pointer to 'gdb_byte *' in target call.
7724 2013-03-07 Pedro Alves <palves@redhat.com>
7726 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
7729 2013-03-07 Keith Seitz <keiths@redhat.com>
7731 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
7732 (trace_pass_command): Likewise.
7733 * cli/cli-cmds.c: Include cli/cli-utils.h.
7734 (source_command): Use skip-spaces.
7735 (disassemble_command): Likewise.
7736 * findcmd.c: Include cli/cli-utils.h.
7737 (parse_find_args): Use skip_spaces.
7738 * go32-nat.c: Include cli/cli-utils.h.
7739 (go32_sldt): Use skip_spaces.
7740 (go32_sgdt): Likewise.
7741 (go32_sidt): Likewise.
7742 (go32_pde): Likewise.
7743 (go32_pte): Likewise.
7744 (go32_pte_for_address): Likewise.
7745 * infcmd.c: Include cli/cli-utils.h.
7746 (registers_info): Use skip_spaces.
7747 * linux-tdep.c (read_mapping): Use skip_spaces_const.
7748 (linux_info_proc): Likewise.
7749 * linux-thread-db.c: Include cli/cli-utils.h.
7750 (info_auto_load_libthread_db): Use skip_spaces_const.
7751 * m32r-rom.c: Include cli/cli-utils.h.
7752 (m32r_upload_command): Use skip_spaces.
7753 * maint.c: Include cli/cli-utils.h.
7754 (maintenance_translate_address): Use skip_spaces.
7755 * mi/mi-parse.c: Include cli/cli-utils.h.
7756 (mi_parse_argv): Use skip_spaces.
7757 (mi_parse): Likewise.
7758 * minsyms.c: Include cli/cli-utils.h.
7759 (msymbol_hash_iw): Use skip_spaces_const.
7760 * objc-lang.c: Include cli/cli-utils.h.
7761 (parse_selector): Use skip_spaces.
7762 (parse_method): Likewise.
7763 * python/python.c: Include cli/cli-utils.h.
7764 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
7765 (python_command)[HAVE_PYTHON]: Likewise.
7766 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
7767 * remote-m32r-sdi.c: Include cli/cli-utils.h.
7768 (m32r_load): Use skip_spaces.
7769 * serial.c: Include cli/cli-utils.h.
7770 (serial_open): Use skip_spaces_const.
7771 * stack.c: Include cli/cli-utils.h.
7772 (parse_frame_specification_1): Use skip_spaces_const.
7773 * symfile.c: Include cli/cli-utils.h.
7774 (set_ext_lang_command): Use skip_spaces.
7775 * symtab.c: Include cli/cli-utils.h.
7776 (rbreak_command): Use skip_spaces.
7777 * thread.c (thread_name_command): Use skip_spaces.
7778 * tracepoint.c (validate_actionline): Use skip_spaces.
7779 (encode_actions_1): Likewise.
7780 (trace_find_range_command): Likewise.
7781 (trace_find_outside_command): Likewise.
7782 (trace_dump_actions): Likewise.
7784 2013-03-07 Pedro Alves <palves@redhat.com>
7786 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
7787 * expprint.c (print_subexp_standard): Likewise.
7788 * utils.c (host_char_to_target): Likewise.
7789 * valprint.c (generic_emit_char, generic_printstr): Likewise.
7790 * varobj.c (value_get_print_value): Change type of local to char*.
7791 Cast it gdb_byte * in call to language printer.
7793 2013-03-07 Pedro Alves <palves@redhat.com>
7795 * charset.c (struct wchar_iterator) <input>: Change type to 'const
7797 (make_wchar_iterator): Remove cast to char*.
7798 (wchar_iterate): Change type of local.
7800 2013-03-07 Pedro Alves <palves@redhat.com>
7802 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
7803 for 'regcache->register_status'.
7805 2013-03-07 Pedro Alves <palves@redhat.com>
7807 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
7810 2013-03-07 Pedro Alves <palves@redhat.com>
7812 * stap-probe.c (handle_stap_probe): Add cast to char*.
7814 2013-03-07 Pedro Alves <palves@redhat.com>
7816 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
7817 RECORD_MSGRCV>: Pass a signed variable to
7818 regcache_raw_read_signed, instead of an unsigned one.
7820 2013-03-07 Pedro Alves <palves@redhat.com>
7822 * remote-notif.c (notif_debug): Change type to int.
7823 * remote-notif.h (notif_debug): Likewise.
7825 2013-03-07 Pedro Alves <palves@redhat.com>
7827 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
7829 2013-03-07 Pedro Alves <palves@redhat.com>
7831 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
7832 * remote.h (hex2bin, bin2hex): ... here.
7833 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
7835 2013-03-07 Eli Zaretskii <eliz@gnu.org>
7837 * utils.c (initialize_utils): Improve doc strings of "set/show
7838 width", "set/show height", and "set/show pagination".
7840 2013-03-06 Keith Seitz <keiths@redhat.com>
7842 * ax-gdb.c (gen_printf): Make FORMAT const.
7843 * ax-gdb.h (gen_printf): Likewise.
7844 * ax-general.c (ax_string): Make STR const.
7845 * ax.h (ax_string): Likewise.
7847 2013-03-06 Doug Evans <dje@google.com>
7849 * elfread.c (elf_symfile_read): Move debugging printf to more
7852 2013-03-06 Pedro Alves <palves@redhat.com>
7854 * python/py-utils.c (target_string_to_unicode): Delete function.
7855 * python/python-internal.h (target_string_to_unicode): Delete
7858 2013-03-06 Pierre Muller <muller@sourceware.org>
7860 * linespec.c (get_current_search_block): ARI fix, use (void)
7861 for empty parameter list.
7863 2013-03-05 Doug Evans <dje@google.com>
7865 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
7866 of old ada_lookup_symbol_list. In !full_search case, don't
7868 (ada_lookup_symbol_list): Delete arg full_search, all callers
7869 updated. Call ada_lookup_symbol_list_worker.
7870 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
7871 * ada-lang.h (ada_lookup_symbol_list): Update.
7872 * language.h (language_defn): Update comment for
7873 la_iterate_over_symbols.
7874 * linespec.c (iterate_over_file_blocks): New function.
7875 (iterate_over_all_matching_symtabs): Call it.
7876 (lookup_prefix_sym): Ditto.
7877 (get_current_search_block): New function.
7878 (get_search_block): Delete.
7879 (find_label_symbols): Call get_current_search_block.
7880 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
7881 * symtab.c (iterate_over_symbols): Don't search superblocks.
7883 2013-03-05 Yao Qi <yao@codesourcery.com>
7885 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
7886 parameter VAR's type from "unsigned int" to "int".
7887 * command.h (var_zuinteger_unlimited): Update its comments.
7888 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
7890 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
7892 * NEWS: Mention new target x86_64-*-cygwin*.
7894 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
7896 * configure.host: Add x86_64-*-cygwin* as host.
7897 * configure.tgt: Add x86_64-*-cygwin* as target.
7898 * config/i386/cygwin64.mh: New file.
7900 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7902 * linespec.c (decode_line_2): Fix duplicate request off by two message.
7904 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7906 * linespec.c (struct linespec_canonical_name): New.
7907 (struct linespec_state): Change canonical_names type to it.
7908 (add_sal_to_sals): Change variable canonical_name to canonical. Change
7909 xrealloc element size. Initialize the different CANONICAL fields.
7910 (canonical_to_fullform): New.
7911 (filter_results): Use it. Add variables canonical, fullform and
7913 (struct decode_line_2_item, decode_line_2_compare_items): New.
7914 (decode_line_2): Remove variables iter and item_names, add variables
7915 items and items_count. Modify the code for these new variables.
7917 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
7919 * coff-pe-read.c (read_pe_exported_syms): Don't return without
7922 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
7924 * tracepoint.c (build_traceframe_info): Add code for byte order.
7926 2013-03-02 Kevin Buettner <kevinb@redhat.com>
7928 * v850-tdep.c: (v850e2_register_name): Revise system register
7929 names to match current V850E2M architecture specifications.
7930 Update register number enum comments too.
7932 2013-03-01 Jiong Wang <jiwang@tilera.com>
7933 Pedro Alves <palves@redhat.com>
7935 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
7937 (tilegx_skip_prologue): Limit prologue analysis to section end.
7939 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7941 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
7944 2013-03-01 Pedro Alves <palves@redhat.com>
7946 Use gdb_byte for bytes from the program being debugged.
7948 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
7949 Change type of local 'buf' to gdb_byte.
7950 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
7951 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
7952 * cris-tdep.c (cris_sigcontext_addr)
7953 (cris_sigtramp_frame_unwind_cache): Likewise.
7954 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
7955 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
7957 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
7958 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
7959 (hppa32_hpux_search_dummy_call_sequence)
7960 (hppa_hpux_supply_save_state): Likewise.
7961 * hppa-linux-tdep.c (insns_match_pattern)
7962 (hppa_linux_find_global_pointer): Likewise.
7963 * hppa-tdep.c (hppa_in_function_epilogue_p)
7964 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
7965 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
7966 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
7967 (i386fbsd_collect_uthread): Likewise.
7968 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
7969 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
7970 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
7971 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
7972 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
7973 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
7974 (ia64_libunwind_frame_prev_register)
7975 (ia64_libunwind_sigtramp_frame_this_id)
7976 (ia64_find_global_pointer_from_dynamic_section)
7977 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
7978 (ia64_unwind_pc): Likewise.
7979 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
7980 * m68hc11-tdep.c (m68hc11_push_dummy_call)
7981 (m68hc11_extract_return_value): Likewise.
7982 * m68klinux-nat.c (fetch_register, store_register): Likewise.
7983 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
7984 (mep_get_insn, mep_push_dummy_call): Likewise.
7985 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
7986 (mips_linux_in_dynsym_stub): Likewise.
7987 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
7988 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
7989 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
7991 * remote-mips.c (mips_set_register): Likewise.
7992 * remote-sim.c (gdbsim_fetch_register): Likewise.
7993 * score-tdep.c (score7_fetch_inst): Change type of parameter
7994 'memblock' and local 'buf' to gdb_byte.
7995 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
7996 Change type of local 'buf' to gdb_byte. Adjust.
7997 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
7999 (score7_analyze_prologue): Change type of 'memblock' and
8000 'memblock_ptr' locals to gdb_byte*.
8001 * sh64-tdep.c (sh64_extract_return_value)
8002 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8003 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8004 * solib-pa64.c (pa64_solib_create_inferior_hook)
8005 (pa64_open_symbol_file_object): Remove local 'buf'.
8006 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8007 (som_open_symbol_file_object): Likewise.
8008 * solib-spu.c (spu_current_sos): Likewise.
8009 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8010 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8011 (spu_store_registers): Likewise.
8012 * target.c (debug_print_register): Likewise.
8013 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8014 * xstormy16-tdep.c (xstormy16_store_return_value)
8015 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8016 (xstormy16_find_jmp_table_entry): Likewise.
8018 2013-03-01 Jiong Wang <jiwang@tilera.com>
8020 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8021 (tilegx_gdbarch_init): Install it.
8023 2013-02-28 Tom Tromey <tromey@redhat.com>
8025 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8028 2013-02-28 Doug Evans <dje@google.com>
8030 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8031 * python/python.c (gdbpy_find_pc_line): Ditto.
8033 2013-02-28 Tom Tromey <tromey@redhat.com>
8035 * contrib/excheck.py: New file.
8036 * contrib/exsummary.py: New file.
8037 * contrib/gcc-with-excheck: New file.
8039 2013-02-28 Tom Tromey <tromey@redhat.com>
8041 * python/python.c (gdbpy_print_stack): Call begin_line and
8042 fprintf_filtered inside TRY_CATCH.
8044 2013-02-28 Tom Tromey <tromey@redhat.com>
8046 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8049 2013-02-28 Tom Tromey <tromey@redhat.com>
8051 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8052 frame_object_to_frame_info inside TRY_CATCH.
8054 2013-02-28 Tom Tromey <tromey@redhat.com>
8056 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8059 2013-02-28 Tom Tromey <tromey@redhat.com>
8061 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8063 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
8065 * windows-nat.c: Throughout, fix format strings and casts of
8066 printf-like functions to avoid type related warnings on all
8068 (handle_output_debug_string): Fetch context information address
8069 from debug string using string_to_core_addr.
8071 2013-02-27 Jiong Wang <jiwang@tilera.com>
8073 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8074 * regformats/reg-tilegx32.dat: New.
8076 2013-02-27 Jiong Wang <jiwang@tilera.com>
8078 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8080 2013-02-27 Jiong Wang <jiwang@tilera.com>
8082 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8084 2013-02-27 Yao Qi <yao@codesourcery.com>
8085 Pedro Alves <palves@redhat.com>
8087 * tracepoint.c (tfile_trace_find): For tfind
8088 pc/tp/range/outside, look for the next trace frame instead of
8089 always starting from frame 0.
8091 2013-02-26 Anthony Green <green@moxielogic.com>
8093 * configure.tgt: Add support for moxie-*-rtems* target.
8095 2013-02-25 Pedro Alves <palves@redhat.com>
8097 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8100 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8102 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8103 if $fp is used as the virtual frame pointer.
8105 2013-02-23 Alan Modra <amodra@gmail.com>
8107 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8109 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8110 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8111 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8112 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8114 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8117 * elfread.c (build_id_bfd_get): Make the return type const.
8118 (build_id_verify): Make the check parameter const.
8119 (build_id_to_debug_filename): Make the build_id parameter and variable
8121 (find_separate_debug_file_by_buildid): Make the variable build_id const.
8123 2013-02-21 Alan Modra <amodra@gmail.com>
8125 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
8127 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
8129 Add a new method 'disassemble' to gdb.Architecture class.
8130 * python/py-arch.c (archpy_disassmble): Implementation of the
8131 new method gdb.Architecture.disassemble.
8132 (arch_object_methods): Add entry for the new method.
8134 2013-02-20 Jiong Wang <jiwang@tilera.com>
8136 * MAINTAINERS (Write After Approval): Add myself to the list.
8138 2013-02-19 Pedro Alves <palves@redhat.com>
8140 Garbage collect 'struct monitor_ops'::load_routine.
8142 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
8143 * monitor.c (monitor_load): No longer call
8144 current_monitor->load_routine.
8145 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
8146 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
8147 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
8149 2013-02-19 Pedro Alves <palves@redhat.com>
8153 Harmonize with generic_load.
8155 * monitor.c: Include "readline/readline.h".
8156 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
8157 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
8158 long/strtol for the 'load_offset' local. Error out if no argument
8159 is given or if too many arguments are given. Tilde expand the
8160 passed in file name.
8162 2013-02-19 Kai Tietz <ktietz@redhat.com>
8165 * symfile.c (load_section_data): Change type of load_offset
8167 (generic_load): User strtoulst instead of strtoul for conversion
8170 2013-02-19 Jiong Wang <jiwang@tilera.com>
8172 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
8173 for return address, "lr" register, saved on stack.
8174 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
8175 after we invoke tilegx_analyze_prologue.
8177 2013-02-19 Jiong Wang <jiwang@tilera.com>
8179 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
8181 2013-02-19 Jiong Wang <jiwang@tilera.com>
8183 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
8185 2013-02-19 Jiong Wang <jiwang@tilera.com>
8187 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
8188 (tilegx_write_pc): New function.
8189 (tilegx_cannot_reference_register): Return zero if REGNO
8190 is TILEGX_FAULTNUM_REGNUM.
8191 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
8192 (tilegx_register_name): Add handling of "faultnum" register.
8193 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
8194 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
8195 handling of TILEGX_FAULTNUM_REGNUM.
8196 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
8198 2013-02-19 Jiong Wang <jiwang@tilera.com>
8200 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
8201 should be aligned to 64bit.
8203 2013-02-19 Kai Tietz <ktietz@redhat.com>
8205 * windows-nat.c (windows_xfer_memory): Fix debug-output
8208 2013-02-19 Lei Liu <lei.liu2@windriver.com>
8210 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
8211 Don't check DSP register number if HAVE_DSP is not set.
8213 2013-02-19 Alan Modra <amodra@gmail.com>
8215 * elfread.c (struct build_id): Delete. Use struct elf_build_id
8216 throughout file instead.
8217 (build_id_bfd_get): Update to use new elf_tdata build_id field.
8218 Don't xmalloc return value.
8219 (build_id_verify): Similarly. Don't xfree.
8220 (build_id_to_debug_filename): Update.
8221 (find_separate_debug_file_by_buildid): Update, don't xfree.
8223 2013-02-18 Tom Tromey <tromey@redhat.com>
8226 * dwarf2read.c (read_subrange_type): Use result of
8229 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
8231 * frame.c: Remove one extra white space after #include
8234 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8236 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
8238 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8240 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
8241 and dir commands into an if block.
8243 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
8245 * python/py-breakpoint (struct pybp_code): Use int instead of
8248 2013-02-15 Pedro Alves <pedro@codesourcery.com>
8249 Hafiz Abid Qadeer <abidh@codesourcery.com>
8251 * NEWS: Mention new field "trace-file".
8252 * tracepoint.c (trace_status_mi): Output "trace-file" field.
8253 (tfile_open): Record the trace file's filename in the trace
8255 (tfile_files_info): Mention the name of the trace file.
8256 Check the "filename" field explicitely.
8257 (trace_status_command): Explicitely check "filename" field.
8258 (trace_find_command): Ditto.
8259 (trace_find_pc_command): Ditto.
8260 (trace_find_tracepoint_command): Ditto.
8261 (trace_find_line_command): Ditto.
8262 (trace_find_range_command): Ditto.
8263 (trace_find_outside_command): Ditto.
8264 * tracepoint.h (struct trace_status) <from_file>: Rename it
8265 to "filename" and make it hold the trace file's filename
8266 instead of a boolean.
8267 * remote.c (remote_get_trace_status): Initialize "filename"
8268 field with NULL instead of 0.
8270 2013-02-15 Yao Qi <yao@codesourcery.com>
8272 * remote.c: Fix a typo.
8274 2013-02-14 Pierre Muller <muller@sourceware.org>
8276 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
8278 2013-02-14 Pedro Alves <palves@redhat.com>
8280 * utils.c (savestring): Don't #undef it. Move function to
8281 common/common-utils.c.
8282 * common/common-utils.c: Include gdb_string.h.
8283 (savestring): Move here from utils.c.
8284 * common/common-utils.h (savestring): Declare.
8286 2013-02-14 Pedro Alves <palves@redhat.com>
8288 * utils.c (savestring): Rename parameter 'size' to 'len'.
8290 2013-02-14 Pedro Alves <palves@redhat.com>
8291 Yufeng Zhang <yufeng.zhang@arm.com>
8293 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
8294 (aarch64_inferior_data, struct aarch64_inferior_data):
8296 (struct aarch64_process_info): New.
8297 (aarch64_process_list): New global.
8298 (aarch64_find_process_pid, aarch64_add_process)
8299 (aarch64_process_info_get): New functions.
8300 (aarch64_inferior_data_get): Delete.
8301 (aarch64_process_info_get): New function.
8302 (aarch64_forget_process): New function.
8303 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
8304 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
8305 aarch64_get_debug_reg_state.
8306 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
8307 instead of linux_nat_iterate_watchpoint_lwps.
8308 (aarch64_linux_new_fork): New function.
8309 (aarch64_linux_child_post_startup_inferior): Use
8310 aarch64_forget_process instead of aarch64_init_debug_reg_state.
8311 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
8312 (aarch64_linux_remove_hw_breakpoint)
8313 (aarch64_handle_aligned_watchpoint)
8314 (aarch64_handle_unaligned_watchpoint)
8315 (aarch64_linux_insert_watchpoint)
8316 (aarch64_linux_remove_watchpoint)
8317 (aarch64_linux_stopped_data_address): Adjust to pass the current
8318 process id to aarch64_debug_reg_state.
8319 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
8320 linux_nat_new_fork hook, and aarch64_forget_process as
8321 linux_nat_forget_process hook; remove the call to
8322 register_inferior_data_with_cleanup.
8324 2013-02-14 Pedro Alves <palves@redhat.com>
8326 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
8327 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
8330 2013-02-14 Pedro Alves <pedro@codesourcery.com>
8331 Hafiz Abid Qadeer <abidh@codesourcery.com>
8333 * tracepoint.h (validate_trace_state_variable_name): Declare.
8334 * tracepoint.c (validate_trace_state_variable_name): New.
8335 (trace_variable_command): Parse the trace state variable's name
8336 without using parse_expression. Do several validations.
8337 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
8338 trace state variable's name with parse_expression. Validate it.
8340 2013-02-14 Yao Qi <yao@codesourcery.com>
8342 * infcmd.c (breakpoint_proceeded): Remove it.
8344 2013-02-14 Yao Qi <yao@codesourcery.com>
8346 * tracepoint.c (end_actions_pseudocommand): Make it static.
8347 (while_stepping_pseudocommand): Likewise.
8348 * tracepoint.h (end_actions_pseudocommand): Remove the
8350 (while_stepping_pseudocommand): Likewise.
8352 2013-02-14 Yao Qi <yao@codesourcery.com>
8354 * cli/cli-decode.c (help_cmd): Remove the declaration of
8356 (help_all): Likewise.
8358 2013-02-13 Pedro Alves <palves@redhat.com>
8360 * amd64-linux-nat.c (update_debug_registers_callback):
8362 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8364 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
8365 i386_debug_reg_state.
8366 (amd64_linux_new_fork): New function.
8367 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
8368 linux_nat_new_fork hook, and i386_forget_process as
8369 linux_nat_forget_process hook.
8370 * i386-linux-nat.c (update_debug_registers_callback):
8372 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8374 (i386_linux_prepare_to_resume): Pass the lwp's pid to
8375 i386_debug_reg_state.
8376 (i386_linux_new_fork): New function.
8377 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
8378 linux_nat_new_fork hook, and i386_forget_process as
8379 linux_nat_forget_process hook.
8380 * i386-nat.c (i386_init_dregs): Delete.
8381 (i386_inferior_data, struct i386_inferior_data):
8383 (struct i386_process_info): New.
8384 (i386_process_list): New global.
8385 (i386_find_process_pid, i386_add_process, i386_process_info_get):
8387 (i386_inferior_data_get): Delete.
8388 (i386_process_info_get): New function.
8389 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
8390 (i386_forget_process): New function.
8391 (i386_cleanup_dregs): Rewrite.
8392 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
8393 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
8394 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8395 (i386_remove_hw_breakpoint): Adjust to pass the current process id
8396 to i386_debug_reg_state.
8397 (i386_use_watchpoints): Don't register inferior data.
8398 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
8400 (i386_forget_process): Declare.
8401 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
8402 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
8404 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
8405 (add_initial_lwp): New, factored out from ...
8406 (add_lwp): ... this. Don't check the number of lwps before
8407 calling linux_nat_new_thread.
8408 (linux_nat_iterate_watchpoint_lwps): Delete.
8409 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
8410 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
8412 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
8414 (linux_nat_kill, linux_nat_mourn_inferior): Call
8415 linux_nat_forget_process.
8416 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8417 (linux_nat_forget_process): New functions.
8418 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
8420 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
8421 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
8423 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8424 (linux_nat_forget_process): New declarations.
8426 * amd64fbsd-nat.c (super_mourn_inferior): New global.
8427 (amd64fbsd_mourn_inferior): New function.
8428 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
8429 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
8431 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8433 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
8436 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8438 * aarch64-linux-nat.c (debug_reg_change_callback)
8439 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
8442 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8444 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
8447 2013-02-13 Pedro Alves <palves@redhat.com>
8448 Hafiz Abid Qadeer <abidh@codesourcery.com>
8450 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
8452 2013-02-12 Tom Tromey <tromey@redhat.com>
8455 * c-exp.y (lex_one_token): Initialize other fields of yylval on
8457 (classify_inner_name): Remove 'first_name' argument, add
8458 'context'. Remove unused variable.
8459 (yylex): Explicitly maintain the context type. Exit loop earlier
8460 if NAME result is seen.
8462 2013-02-12 Pedro Alves <palves@redhat.com>
8464 * amd64-darwin-tdep.c: Add (C) after Copyright.
8465 * cli/cli-cmds.h: Ditto.
8466 * cli/cli-decode.c: Ditto.
8467 * cli/cli-decode.h: Ditto.
8468 * cli/cli-dump.c: Ditto.
8469 * cli/cli-dump.h: Ditto.
8470 * cli/cli-interp.c: Ditto.
8471 * cli/cli-logging.c: Ditto.
8472 * cli/cli-script.c: Ditto.
8473 * cli/cli-script.h: Ditto.
8474 * cli/cli-setshow.c: Ditto.
8475 * cli/cli-setshow.h: Ditto.
8476 * cli/cli-utils.c: Ditto.
8477 * cli/cli-utils.h: Ditto.
8478 * config/alpha/nm-osf3.h: Ditto.
8479 * config/djgpp/djconfig.sh: Ditto.
8480 * config/i386/nm-fbsd.h: Ditto.
8481 * config/i386/nm-i386gnu.h: Ditto.
8482 * config/nm-linux.h: Ditto.
8483 * config/nm-nto.h: Ditto.
8484 * config/rs6000/nm-rs6000.h: Ditto.
8485 * config/sparc/nm-sol2.h: Ditto.
8486 * darwin-nat-info.c: Ditto.
8489 * gdb-demangle.h: Ditto.
8490 * i386-darwin-nat.c: Ditto.
8491 * i386-darwin-tdep.c: Ditto.
8492 * linux-fork.h: Ditto.
8493 * m32c-tdep.c: Ditto.
8494 * microblaze-linux-tdep.c: Ditto.
8495 * microblaze-rom.c: Ditto.
8496 * microblaze-tdep.c: Ditto.
8497 * microblaze-tdep.h: Ditto.
8498 * mips-linux-tdep.h: Ditto.
8499 * ppc-ravenscar-thread.c: Ditto.
8500 * ppc-ravenscar-thread.h: Ditto.
8501 * prologue-value.c: Ditto.
8502 * prologue-value.h: Ditto.
8503 * ravenscar-thread.c: Ditto.
8504 * ravenscar-thread.h: Ditto.
8505 * sparc-ravenscar-thread.c: Ditto.
8506 * sparc-ravenscar-thread.h: Ditto.
8507 * tilegx-linux-tdep.c: Ditto.
8508 * unwind_stop_reasons.def: Ditto.
8509 * windows-nat.h: Ditto.
8510 * xtensa-linux-tdep.c: Ditto.
8511 * xtensa-xtregs.c: Ditto.
8512 * regformats/regdat.sh: Ditto.
8513 * regformats/regdef.h: Ditto.
8515 2013-02-12 Pedro Alves <palves@redhat.com>
8517 * break-catch-sig.c: Update copyright years.
8519 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
8521 Add support for a destructor for ui_out data and use it to
8522 provide a ui_out destructor.
8523 * ui-out.h: Declare the new ui_out destructor.
8524 (ui_out_impl): Add a field for data destructor in ui_out_impl.
8525 * ui-out.c (default_data_destroy): Add a default data destructor
8527 (default_ui_out_impl): Set the new data_destroy field to
8528 default_data_destroy
8529 (uo_data_destroy): Local function which invokes the data
8530 destructor if present.
8531 (clear_table): Local function which clears the table data of a
8533 (ui_out_destroy): Public function which frees a ui_out object.
8534 (ui_out_table_end): Use the new clear_table function.
8535 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
8537 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
8540 2013-02-11 Doug Evans <dje@google.com>
8542 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
8543 (printf_decfloat): New function. Broken out from ui_printf.
8544 Remove unnecessary code to shift the entire format string down.
8545 (printf_pointer): New function.
8546 (ui_printf): Code to print C strings, wide C strings, decfloats,
8547 and pointers moved to separate functions.
8549 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
8551 * valops.c (value_assign): Handling bitfield offset in
8552 `lval_internalvar_component' case.
8554 2013-02-08 Doug Evans <dje@google.com>
8556 * common/format.c (parse_format_string): Fix whitespace.
8558 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8560 * stack.c (return_command): Work around uninitialized variable
8563 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
8565 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
8566 number of the registers from 36 to 34.
8568 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8570 * NEWS: Mention new AArch64 native and target support.
8572 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8574 * MAINTAINERS (Write After Approval): Add myself.
8576 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
8577 Marcus Shawcroft <marcus.shawcroft@arm.com>
8578 Nigel Stephens <nigel.stephens@arm.com>
8579 Yufeng Zhang <yufeng.zhang@arm.com>
8581 * aarch64-linux-nat.c: New file.
8582 * config/aarch64/linux.mh: New file.
8583 * configure.host: Add AArch64.
8584 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
8586 2013-02-07 Doug Evans <dje@google.com>
8588 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
8589 disassemble command.
8591 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
8593 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
8594 set_gdbarch_fetch_tls_load_module_address.
8596 2013-02-06 David S. Miller <davem@davemloft.net>
8598 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
8599 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8600 * value.c (struct_return_convention): New function.
8601 (using_struct_return): Implement in terms of struct_return_convention.
8602 * value.h (struct_return_convention): Declare.
8603 * stack.c (return_command): Allow successful overriding of the return
8604 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8606 2013-02-06 Tom Tromey <tromey@redhat.com>
8608 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
8609 outside of TRY_CATCH.
8611 2013-02-06 Yao Qi <yao@codesourcery.com>
8613 * mi/mi-interp.c: Include "tracepoint.h".
8614 (mi_tsv_modified): Declare.
8615 (mi_tsv_created, mi_tsv_deleted): Update declaration.
8616 (mi_interpreter_init): Call observer_attach_tsv_modified.
8617 (mi_tsv_modified): New.
8618 (mi_tsv_created, mi_tsv_deleted): Update.
8619 * tracepoint.c (trace_variable_command): Call
8620 observer_notify_tsv_modified if the initial value of tsv is
8622 (delete_trace_state_variable): Call
8623 observer_notify_tsv_deleted earlier.
8624 (trace_variable_command): Caller update.
8625 (create_tsv_from_upload): Likewise.
8626 * observer.sh: Declare "struct trace_state_variable".
8628 * NEWS: Mention the new MI notification "=tsv-modified".
8630 2013-02-05 Doug Evans <dje@google.com>
8632 * completer.c (location_completer): Fix typo in comment.
8634 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8636 * breakpoint.c (add_location_to_breakpoint): Insert the location with
8639 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8641 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
8642 Refactor if statement to avoid trailing || operator.
8644 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
8646 * NEWS: Add PowerPC FreeBSD as a new native configuration.
8648 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
8650 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
8651 * configure.host: Add powerpc*-*-freebsd* target.
8652 * configure.tgt: Add target info for powerpc*-*-freebsd*.
8653 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
8654 * config/powerpc/fbsd.mh: New file.
8656 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
8657 Denys Vlasenko <dvlasenk@redhat.com>
8658 Pedro Alves <palves@redhat.com>
8660 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
8661 (struct elf_internal_linux_prpsinfo): Forward declare.
8662 * gdbarch.h, gdbarch.c: Regenerate.
8663 * linux-tdep.c: Include `cli/cli-utils.h'.
8664 (linux_fill_prpsinfo): New function.
8665 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
8666 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
8667 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
8668 depending on gdbarch pointer bitness.
8669 * ppc-linux-tdep.c: Include elf-bfd.h.
8670 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
8673 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8674 Marcus Shawcroft <marcus.shawcroft@arm.com>
8675 Nigel Stephens <nigel.stephens@arm.com>
8676 Yufeng Zhang <yufeng.zhang@arm.com>
8678 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
8680 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8681 Marcus Shawcroft <marcus.shawcroft@arm.com>
8682 Nigel Stephens <nigel.stephens@arm.com>
8683 Yufeng Zhang <yufeng.zhang@arm.com>
8685 * aarch64-newlib-tdep.c: New file.
8686 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
8688 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
8689 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
8690 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
8691 * osabi.c (gdb_osabi_names): Add "Newlib".
8693 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8694 Marcus Shawcroft <marcus.shawcroft@arm.com>
8695 Nigel Stephens <nigel.stephens@arm.com>
8696 Yufeng Zhang <yufeng.zhang@arm.com>
8698 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
8699 (ALLDEPFILES): Add aarch64-linux-tdep.c.
8700 * aarch64-linux-tdep.c: New file.
8701 * aarch64-linux-tdep.h: New file.
8702 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
8703 * configure.tgt: Add aarch64-none-linux-gnu.
8705 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8706 Marcus Shawcroft <marcus.shawcroft@arm.com>
8707 Nigel Stephens <nigel.stephens@arm.com>
8708 Yufeng Zhang <yufeng.zhang@arm.com>
8710 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
8711 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
8712 (ALLDEPFILES): Add aarch64-tdep.c.
8713 * aarch64-tdep.c: New file.
8714 * aarch64-tdep.h: New file.
8715 * configure.tgt: Add AArch64.
8716 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
8717 (aarch64-expedite): New definition.
8718 * features/aarch64-core.xml: New file.
8719 * features/aarch64-fpu.xml: New file.
8720 * features/aarch64-without-fpu.c: New file (generated).
8721 * features/aarch64-without-fpu.xml: New file.
8722 * features/aarch64.c: New file (generated).
8723 * features/aarch64.xml: New file.
8724 * regformats/aarch64-without-fpu.dat: New file (generated).
8725 * regformats/aarch64.dat: New file (generated).
8727 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8729 * contrib/expect-read1.c: New file.
8730 * contrib/expect-read1.sh: New file.
8732 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8734 * dwarf2read.c (file_file_name): New function with code from
8736 (file_full_name): Move most of the code to file_file_name.
8737 (macro_start_file): Rename variable full_name to file_name and use
8738 file_file_name for it. Add comp_dir parameter to new_macro_table.
8739 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
8740 macro_source_file->filename access by macro_source_fullname call.
8741 * macroscope.c (_initialize_macroscope): Update the new_macro_table
8743 * macrotab.c (struct macro_table): New field comp_dir.
8744 (macro_include): New variables link_fullname and source_fullname.
8745 Replace any macro_source_file->filename access by macro_source_fullname
8747 (macro_lookup_inclusion): Remove the partial filenames checking code.
8748 (check_for_redefinition): New variables source_fullname and
8749 found_key_fullname. Replace any macro_source_file->filename access by
8750 macro_source_fullname call.
8751 (macro_undef): New variables source_fullname and key_fullname. Replace
8752 any macro_source_file->filename access by macro_source_fullname call.
8753 (macro_lookup_definition): New variables retval and source_fullname.
8754 Replace any macro_source_file->filename access by macro_source_fullname
8756 (foreach_macro): New variable key_fullname. Replace any
8757 macro_source_file->filename access by macro_source_fullname call.
8758 (foreach_macro_in_scope): New variable datum_fullname. Replace any
8759 macro_source_file->filename access by macro_source_fullname call.
8760 (new_macro_table): Add parameter comp_dir. Initialize T with it.
8761 (macro_source_fullname): New function.
8762 * macrotab.h (struct macro_source_file): Extent the filename field
8764 (new_macro_table): New parameter comp_dir, add a comment for it.
8765 (macro_source_fullname): new declaration.
8767 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8769 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
8770 this_real_name to outer block. Use it also for
8771 compare_filenames_for_search.
8772 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
8773 with dw2_get_real_path for file_matcher, considering also
8774 BASENAMES_MAY_DIFFER.
8775 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
8777 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8779 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
8780 to the file_matcher parameter. Pass 0 to it.
8781 (dwarf2_create_include_psymtab): Copy also DIRNAME.
8782 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
8783 NULL psymtab_to_fullname result.
8784 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
8785 an expected filename instead.
8786 (expand_symtabs_matching_via_partial): Add basenames parameter to the
8787 file_matcher parameter. Call also psymtab_to_fullname, after newly
8788 considering BASENAMES_MAY_DIFFER.
8789 * source.c (rewrite_source_path): Remove static.
8790 * source.h (rewrite_source_path): New declaration.
8791 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
8792 the expand_symtabs_matching field. Comment it.
8793 * symtab.c (file_matches): New function comment. Add parameter
8794 basenames, implement it.
8795 (search_symbols_file_matches): Add basenames parameter. Update the
8796 file_matches caller.
8797 (search_symbols): Match FILES also against symtab_to_fullname.
8798 Optimize it for BASENAMES_MAY_DIFFER.
8800 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8802 * source.c (print_source_lines_base): Print for TUI also "fullname".
8803 * tui/tui-data.c (init_content_element): Change tui_locator_element
8805 * tui/tui-data.h (struct tui_locator_element): Likewise.
8806 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
8807 tui_update_locator_filename calls to tui_update_locator_fullname.
8808 Replace symtab->filename refererence by symtab_to_fullname call.
8809 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
8810 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
8811 field to full_name. Replace symtab->filename refererence by
8812 symtab_to_fullname call.
8813 (tui_show_symtab_source): Rename parameter to fullname. Change
8814 tui_locator_element field to full_name.
8815 * tui/tui-stack.c: Include source.h.
8816 (tui_set_locator_filename): Rename the declaration to ...
8817 (tui_set_locator_fullname): ... here. Rename its parameter to
8818 fullname, updates its comment.
8819 (tui_set_locator_info): Rename its parameter to fullname.
8820 (tui_set_locator_filename): Rename the definition to ...
8821 (tui_set_locator_fullname): ... here. Rename its parameter to
8822 fullname, updates its comment. Change tui_locator_element field to
8824 (tui_set_locator_info): Rename its parameter to fullname.
8825 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
8826 (tui_update_locator_filename): Rename to ...
8827 (tui_update_locator_fullname): ... here. Rename callee to
8828 tui_set_locator_fullname.
8829 (tui_show_frame_info): Replace symtab->filename refererence by
8830 symtab_to_fullname call.
8831 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
8832 (tui_update_locator_fullname): ... here.
8833 * tui/tui-winsource.c (tui_display_main): Rename the callee to
8834 tui_update_locator_fullname. Replace symtab->filename refererence by
8835 symtab_to_fullname call.
8836 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
8837 Rename the callee to tui_update_locator_fullname.
8838 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
8840 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8842 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
8843 by symtab_to_filename_for_display calls.
8844 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
8845 (clear_command): New variable sal_fullname, initialize it. Replace
8846 compare_filenames_for_search by filename_cmp with sal_fullname.
8847 (say_where, update_static_tracepoint): Replace symtab->filename
8848 refererences by symtab_to_filename_for_display calls.
8849 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
8851 * dwarf2read.c: Include source.h.
8852 (fixup_go_packaging): Replace symtab->filename refererences by
8853 symtab_to_filename_for_display calls.
8854 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
8855 Replace symtab->filename refererences by symtab_to_filename_for_display
8857 (create_sals_line_offset, convert_linespec_to_sals): New variable
8858 fullname, initialize it, replace symtab->filename reference by the
8860 * linux-fork.c: Include source.h.
8861 (info_checkpoints_command): Replace symtab->filename refererences by
8862 symtab_to_filename_for_display calls.
8863 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
8864 by symtab_to_filename_for_display calls.
8865 * mdebugread.c: Include source.h.
8866 (psymtab_to_symtab_1): Replace symtab->filename refererences by
8867 symtab_to_filename_for_display calls.
8868 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
8869 (mi_cmd_file_list_exec_source_files): Likewise.
8870 * printcmd.c: Include source.h.
8871 (build_address_symbolic): Replace symtab->filename refererences by
8872 symtab_to_filename_for_display calls.
8873 * psymtab.c (partial_map_symtabs_matching_filename)
8874 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
8875 with psymtab_to_fullname.
8876 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
8877 by symtab_to_filename_for_display calls.
8878 (stpy_get_filename): New variable filename, initialize it, use instead
8879 of symtab->filename refererences.
8880 (salpy_str): Make variable filename const char *. Replace
8881 symtab->filename refererences by symtab_to_filename_for_display calls.
8882 * skip.c: Include source.h and filenames.h.
8883 (skip_file_command): Remove const from the symtab variable. Replace
8884 symtab->filename refererences by symtab_to_fullname call.
8885 (function_name_is_marked_for_skip): New variables searched_for_fullname
8886 and fullname. Use them to search also with symtab's fullname.
8887 * source.c (find_source_lines): Replace symtab->filename refererences
8888 by symtab_to_filename_for_display calls.
8889 (print_source_lines_base): New variable filename, use it instead of
8890 symtab->filename. Replace symtab->filename refererences by
8891 symtab_to_filename_for_display calls.
8892 (line_info, forward_search_command): Replace symtab->filename
8893 refererences by symtab_to_filename_for_display calls.
8894 (reverse_search_command): Replace symtab->filename refererences by
8895 symtab_to_filename_for_display calls. New variable filename for it.
8896 * stack.c (frame_info): Likewise.
8897 * symmisc.c: Include source.h.
8898 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
8899 (maintenance_info_symtabs): Replace symtab->filename refererences by
8900 symtab_to_filename_for_display calls.
8901 * symtab.c (iterate_over_some_symtabs): Call
8902 compare_filenames_for_search also with symtab_to_fullname.
8903 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
8904 symtab->filename refererences by symtab_to_filename_for_display calls.
8905 (find_line_symtab): Replace symtab->filename refererences by
8906 symtab_to_filename_for_display calls.
8907 (file_matches): Replace filename_cmp by compare_filenames_for_search.
8908 (print_symbol_info): Make the last parameter const char *. New
8909 variable s_filename. Use it in the function.
8910 (symtab_symbol_info): Make the last_filename variable const char *.
8911 Replace symtab->filename refererences by symtab_to_filename_for_display
8913 (rbreak_command): New variable fullname. Use it. Replace
8914 symtab->filename refererence by symtab_to_filename_for_display call.
8915 * tracepoint.c (set_traceframe_context, trace_find_line_command)
8916 (print_one_static_tracepoint_marker): Replace symtab->filename
8917 refererences by symtab_to_filename_for_display calls.
8918 * tui/tui-source.c (tui_set_source_content): New variables filename and
8919 s_filename. Replace symtab->filename refererences by this variable.
8920 Replace other symtab->filename refererences by
8921 symtab_to_filename_for_display calls.
8923 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
8924 Jan Kratochvil <jan.kratochvil@redhat.com>
8926 Add a new variable that controls a way in which filenames are
8928 * NEWS (set filename-display): New entry.
8929 * source.c (filename_display_basename, filename_display_relative)
8930 (filename_display_absolute, filename_display_kind_names)
8931 (filename_display_string, show_filename_display_string)
8932 (symtab_to_filename_for_display): New.
8933 (_initialize_source): Added initialization of 'filename-display'
8935 * source.h (symtab_to_filename_for_display): Added declaration.
8936 * stack.c (print_frame): Added new variable and calling of a new
8937 function and condition with this variable. Changed third argument of
8938 calling of a function.
8940 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8942 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
8943 Rename field reference filename to fullname.
8944 * tui/tui-data.h (struct tui_source_info): Rename field filename to
8945 fullname. New comment for it.
8946 * tui/tui-source.c (tui_set_source_content): Rename field reference
8947 filename to fullname. Initialize field by symtab_to_fullname now.
8948 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
8949 reference filename to fullname. Use symtab_to_fullname during
8952 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8955 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
8956 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
8957 filename to fullname. Rename variable this_name to this_fullname.
8958 Lowercase FILENAME_CMP call.
8959 (dw2_find_symbol_file): New comment for the returned string.
8960 (dwarf2_gdb_index_functions): Rename the function to
8961 dw2_expand_symtabs_with_fullname.
8962 * psymtab.c (read_psymtabs_with_filename): Rename to ...
8963 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
8965 (psym_functions): Rename the function to read_psymtabs_with_fullname.
8966 * symfile.h (struct quick_symbol_functions): Rename field
8967 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
8968 parameter filename to fullname. Document returned string meaning for
8970 * symtab.c (find_line_symtab): Rename the called function to
8971 expand_symtabs_with_fullname.
8973 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8976 * breakpoint.c (clear_command): Remove variable is_abs, unify the
8977 call of filename_cmp with compare_filenames_for_search.
8978 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
8979 is_abs, unify the call of FILENAME_CMP with
8980 compare_filenames_for_search. New gdb_asserts for real_path and name.
8981 Unify the call of compare_filenames_for_search with FILENAME_CMP.
8982 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8983 * symfile.h (struct quick_symbol_functions): Extend the comment for
8984 map_symtabs_matching_filename.
8985 * symtab.c (compare_filenames_for_search): Remove the function comment
8986 relative path requirement. Handle absolute filenames, with a comment.
8987 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
8988 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
8989 real_path and name. Unify the call of compare_filenames_for_search
8991 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
8993 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8996 * breakpoint.c (print_breakpoint_location): Replace bp_location field
8997 source_file references by symtab field references. Remove variables
8999 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9000 (clear_command, say_where): Replace bp_location field source_file
9001 references by symtab field references.
9002 (bp_location_dtor): Remove the source_file reference.
9003 (update_static_tracepoint): Replace bp_location field source_file
9004 references by symtab field references.
9005 (breakpoint_free_objfile): New function.
9006 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9007 Replace the field source_file by field symtab, extend its comment.
9008 (breakpoint_free_objfile): New declaration.
9009 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9010 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9011 field source_file references by symtab field references.
9013 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9015 Replace xfullpath calls by gdb_realpath calls.
9016 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9018 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9019 Remove it from the iterate_over_some_symtabs call.
9020 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9021 Remove it from the dw2_map_expand_apply calls, remove a block handling
9023 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9024 Remove it from the iterate_over_some_symtabs call.
9025 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9026 Remove it from the partial_map_expand_apply calls, remove a block
9027 handling it. Drop gdb_realpath call and cleanups from the real_path
9029 * source.c (openp): Drop the comment part about xfullpath. Replace
9030 xfullpath calls by gdb_realpath calls.
9031 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9032 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9033 from method map_symtabs_matching_filename and its comment.
9034 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9036 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9037 remove it also from the function comment, remove a block handling it.
9038 Drop gdb_realpath call and cleanups from the real_path handling.
9039 (iterate_over_symtabs): Drop variable full_path and its use.
9040 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9041 * utils.c (xfullpath): Remove.
9042 * utils.h (xfullpath): Remove.
9044 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
9046 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9047 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9048 (ALLDEPFILES): Add ppc64-tdep.c.
9049 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9050 ppc64-tdep.o to gdb_target_obs.
9051 * ppc64-tdep.h: New file.
9052 * ppc64-tdep.c: New file.
9053 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9054 ppc-linux-tdep.c to here.
9055 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9056 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9057 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9058 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9059 from ppc-linux-tdep.c to here.
9060 (ppc64_convert_from_func_ptr_addr): Rename from
9061 ppc64_linux_convert_from_func_ptr_addr to
9062 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9065 (read_insn): Move from ppc-linux-tdep.c to here.
9066 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9067 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9068 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9069 Removed above functions.
9070 (ppc_linux_init_abi): Adjust.
9072 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9074 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9076 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9078 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9080 2013-02-01 Pedro Alves <palves@redhat.com>
9082 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9083 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9085 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9087 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9088 files with no separate debug info.
9089 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9090 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9091 only for files with no separate debug info.
9093 2013-01-31 Tom Tromey <tromey@redhat.com>
9095 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9097 (struct jit_program_space_data): Rename from jit_inferior_data.
9099 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9100 Change return type. Attach data to program space.
9101 (jit_program_space_data_cleanup): Rename from
9102 jit_inferior_data_cleanup; change argument type.
9103 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9105 (jit_register_code): Update.
9106 (jit_update_inferior_cache): Remove.
9107 (jit_breakpoint_deleted): Get jit data from the location's program
9109 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9110 'ps_data', change type.
9111 (jit_inferior_init, jit_breakpoint_re_set_internal)
9112 (jit_event_handler): Update.
9113 (free_objfile_data): Get data from objfile's program space.
9114 (_initialize_jit): Update.
9116 2013-01-31 Tom Tromey <tromey@redhat.com>
9119 * jit.c (struct jit_inferior_data) <cached_code_address,
9120 jit_breakpoint>: New fields.
9121 (jit_breakpoint_re_set_internal): Fix logging. Only create
9122 breakpoint if cached address has changed.
9123 (jit_update_inferior_cache, jit_breakpoint_deleted): New
9125 (_initialize_jit): Register breakpoint deleted observer.
9127 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9129 * infrun.c (handle_syscall_event): Remove unused gdbarch.
9130 (save_infcall_suspend_state): Ifdef out unused inf.
9131 (restore_infcall_suspend_state): Ifdef out unused inf.
9132 * jit.c (jit_register_code): Remove unused i, b, inf_data.
9133 (jit_frame_sniffer): Remove unused inf_data.
9135 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9137 * c-exp.y (classify_inner_name): Remove unused type.
9138 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
9139 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
9141 (c_get_string): Remove unused kind.
9142 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9144 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9146 * charset.c (intermediate_encoding): Remove unused i.
9147 * completer.c (signal_completer): Remove unused i.
9148 * continuations.c (discard_my_continuations_1): Remove unused
9150 * corelow.c (core_close): Remove unuseD name.
9151 (get_core_siginfo): Remove unused pid.
9152 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
9154 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
9155 (loclist_describe_location): Remove unused first.
9156 * event-top.c (command_line_handler): Remove unused got_eof.
9157 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
9158 (resize_section_table): Remove unused old_value.
9159 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
9160 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
9161 * i386-tdep.c (i386_process_record): Remove unused rex.
9162 * infcmd.c (get_return_value): Remove unused uiout.
9163 * jv-lang.c (type_from_class): Remove unused is_array.
9164 * jv-valprint.c (java_val_print): Remove unused i.
9165 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
9166 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
9167 * m2-typeprint.c (m2_print_type): Remove unused code.
9168 * macroexp.c (get_character_constant): Remove unused body_start.
9169 (macro_stringify): Remove unused result.
9170 * objc-lang.c (find_methods): Remove unused gdbarch.
9171 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
9172 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
9173 * stack.c (print_frame_args): Remove unused summary.
9174 * thread.c (thread_apply_command): Remove unused p.
9175 * valarith.c (value_x_unop): Remove unused mangle_ptr.
9176 * valops.c (search_struct_method): Remove unused skip.
9177 * valprint.c (generic_val_print): Remove unused byte_order.
9178 * varobj.c (varobj_update): Remove unused changed.
9179 * cli/cli-cmds.c (complete_command): Remove unused next_item.
9180 (alias_command): Remove unused c.
9181 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
9182 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
9184 (mi_cmd_data_write_memory): Remove unused word_format.
9185 (mi_cmd_data_write_memory_bytes): Remove unused r.
9186 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
9188 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
9189 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
9192 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9194 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
9195 * symtab.c (iterate_over_symtabs): Remove unused s.
9196 (find_pc_sect_symtab): Remove unused pspAce.
9197 (find_pc_sect_line): Remove unused alt_symtab.
9198 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
9199 (completion_list_add_name): Remove unused newsize.
9201 2013-01-31 Tom Tromey <tromey@redhat.com>
9204 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
9207 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9209 * target.c (target_read_string): Remove unused origlen.
9211 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9213 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
9214 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
9215 * ax-general.c (ax_print): Remove unused is_float.
9216 * blockframe.c (block_innermost_frame): Remove unused start, end.
9217 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
9219 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9221 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
9222 (svr4_read_so_list): Remove unused lmo.
9223 * solib-target.c (solib_target_relocate_section_addresses): Remove
9226 2013-01-30 Tom Tromey <tromey@redhat.com>
9228 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
9230 2013-01-30 Tom Tromey <tromey@redhat.com>
9232 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
9233 * utils.c (gnu_debuglink_crc32): Remove.
9234 * utils.h (gnu_debuglink_crc32): Don't declare.
9236 2013-01-30 Tom Tromey <tromey@redhat.com>
9238 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
9239 (read_structure_type, read_enumeration_type): Remove cast.
9241 2013-01-30 Tom Tromey <tromey@redhat.com>
9243 * dwarf2read.c (read_namespace_type): Remove cast.
9244 (read_typedef): Likewise.
9246 2013-01-29 Tom Tromey <tromey@redhat.com>
9248 * dwarf2read.c (free_dwo_file): Remove assert.
9250 2013-01-29 Tom Tromey <tromey@redhat.com>
9252 * value.c (deprecated_set_value_modifiable): Remove.
9253 * value.h (deprecated_set_value_modifiable): Remove.
9255 2013-01-28 Doug Evans <dje@google.com>
9257 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
9258 to addresses from dwo files.
9260 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
9262 * valops.c (find_overload_match): Remove unused argument 'lax'.
9263 * value.h: Remove unused argument 'lax' from the declaration of
9264 find_overload_match.
9265 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
9266 to find_overload_match.
9267 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
9268 argument to find_overload_match.
9270 2013-01-25 Tom Tromey <tromey@redhat.com>
9272 * dwarf2read.c (processing_has_namespace_info): Remove.
9273 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
9274 (process_die, read_func_scope, dwarf2_start_symtab)
9275 (new_symbol_full): Update.
9277 2013-01-25 Tom Tromey <tromey@redhat.com>
9279 * cp-namespace.c (cp_set_block_scope): Remove.
9280 * cp-support.h (cp_set_block_scope): Remove.
9281 * dbxread.c: Include block.h.
9282 (cp_set_block_scope): New function.
9283 (process_one_symbol): Update.
9284 * dwarf2read.c (read_func_scope): Use block_set_scope.
9286 2013-01-25 Pedro Alves <palves@redhat.com>
9288 * remote.c (add_current_inferior_and_thread): Tweak comment.
9290 2013-01-25 Tom Tromey <tromey@redhat.com>
9292 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
9293 (cp_add_using_directive): Add 'copy_names' argument.
9294 * cp-support.h (cp_add_using_directive): Update.
9295 (struct using_direct) <import_src, import_dest, alias,
9296 declaration>: Now const.
9297 * dwarf2read.c (read_import_statement): Use obconcat.
9298 Don't copy names passed to cp_add_using_directive.
9300 2013-01-25 Tom Tromey <tromey@redhat.com>
9302 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
9304 2013-01-25 Pedro Alves <palves@redhat.com>
9306 * remote.c (stop_reply_extract_thread): New.
9307 (add_current_inferior_and_thread): New parameter 'wait_status'.
9309 (remote_start_remote): Pass wait status to
9310 add_current_inferior_and_thread.
9311 (extended_remote_run): Update comment.
9312 (extended_remote_create_inferior_1): Pass wait status to
9313 add_current_inferior_and_thread.
9315 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
9316 Ulrich Weigand <uweigand@de.ibm.com>
9318 * valarith.c (value_vector_widen): New function for replicating a
9319 scalar into a vector.
9320 (value_binop): Use value_vector_widen to widen scalar to vector
9321 rather than casting, this better matches gcc C behaviour.
9322 * valops.c (value_casst): Update logic for casting between vector
9323 types, and for casting from scalar to vector, try to match gcc C
9325 * value.h (value_vector_widen): Declare.
9326 * opencl-lang.c (opencl_value_cast): New opencl specific casting
9327 function, handle special case for casting scalar to vector.
9328 (opencl_relop): Use opencl_value_cast.
9329 (evaluate_subexp_opencl): Use opencl_value_cast instead of
9330 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
9331 in order to use opencl_value_cast.
9333 2013-01-25 Yao Qi <yao@codesourcery.com>
9335 * event-loop.c: Include "queue.h".
9336 (gdb_event_p): New typedef.
9337 (DECLARE_QUEUE_P): Use.
9338 (DEFINE_QUEUE_P): Use.
9339 (async_queue_event): Remove.
9340 (gdb_event_xfree): New.
9341 (initialize_event_loop): New.
9342 (process_event): Use QUEUE macros.
9343 (event_queue): Remove.
9344 (gdb_wait_for_event): Caller update.
9345 (check_async_event_handlers): Likewise.
9346 (poll_timers): Likewise.
9347 * event-loop.h (initialize_event_loop): Declare.
9348 * event-loop.c (gdb_event_xfree): New.
9349 * top.c (gdb_init): Call initialize_event_loop.
9351 2013-01-25 Yao Qi <yao@codesourcery.com>
9353 * event-loop.c (async_queue_event): Remove one parameter
9354 'position'. Remove code handling 'position' == TAIL.
9355 (gdb_wait_for_event): Caller update.
9356 (check_async_event_handlers): Caller update.
9357 (poll_timers): Caller update.
9358 * event-loop.h (enum queue_position): Remove.
9360 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
9362 * MAINTAINERS: Update my email.
9364 2013-01-25 Yao Qi <yao@codesourcery.com>
9366 * main.c (print_gdb_help): Remove "--epoch" from the help
9369 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
9371 * symtab.c (skip_prologue_using_sal): Consider a file
9372 change the same as an increased line number
9374 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9376 * MAINTAINERS (Write After Approval): Add myself to the list.
9378 2013-01-24 Tom Tromey <tromey@redhat.com>
9380 * ada-lang.h (ada_decode_symbol): Make return type const.
9381 * ada-lang.c (ada_decode_symbol): Likewise.
9383 2013-01-23 Doug Evans <dje@google.com>
9385 * linespec.c (find_linespec_symbols): Make static.
9387 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9389 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
9390 type on float conversion for complex type.
9392 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
9394 Add a new class gdb.Architecture which exposes GDB's
9395 internal representation of architecture via GDB Python API.
9396 * Makefile.in: Add entries corresponding to the new file
9398 * NEWS (Python Scripting): Add entries for the new class
9399 gdb.Architecture and the new method gdb.Frame.architecture.
9400 * python/py-arch.c: Implement gdb.Architecture class.
9401 * python/py-frame.c (frapy_arch): Implement the method
9402 gdb.Frame.architecture().
9403 (frame_object_methods): Add 'architecture' to the method table.
9404 * python/python-internal.h: Add declarations of new utility
9406 * python/python.c (_initialize_python): Initialize
9407 gdb.Architecture class.
9409 2013-01-23 Doug Evans <dje@google.com>
9411 Work around binutils/15021.
9412 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
9413 type_unit_group out of union s. All uses updated.
9414 (read_index_from_section): Watch for index version 8.
9415 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
9417 (write_psymtabs_to_index): Increment version number to 8.
9419 2013-01-22 Pedro Alves <palves@redhat.com>
9421 * annotate.c (breakpoint_changed): Skip if breakpoint is not
9424 2013-01-22 Pedro Alves <palves@redhat.com>
9426 * annotate.c (annotate_breakpoints_changed): Rename to ...
9427 (annotate_breakpoints_invalid): ... this. Make static.
9428 (breakpoint_changed): Adjust.
9429 (_initialize_annotate): Always install the observers. Install a
9430 "breakpoint_created" observer.
9431 * annotate.h (annotate_breakpoints_changed): Delete declaration.
9432 * breakpoint.c (set_breakpoint_condition)
9433 (breakpoint_set_commands, do_map_commands_command)
9434 (init_raw_breakpoint, clear_command, set_ignore_count)
9435 (enable_breakpoint_disp): No longer call
9436 annotate_breakpoints_changed.
9438 2013-01-22 Pedro Alves <palves@redhat.com>
9440 * annotate.c: Include "inferior.h".
9441 (frames_invalid_emitted)
9442 (breakpoints_invalid_emitted): New globals.
9443 (async_background_execution_p): New function.
9444 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
9445 emitting the annotation if it has already been emitted.
9446 (annotate_display_prompt): New function.
9447 * annotate.h (annotate_display_prompt): New declaration.
9448 * event-top.c: Include annotate.h.
9449 (display_gdb_prompt): Call annotate_display_prompt.
9451 2013-01-22 Pedro Alves <palves@redhat.com>
9453 * annotate.c (ignore_count_changed): Delete.
9454 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
9455 (annotate_ignore_count_change): Delete.
9456 (annotate_stopped): Don't emit a delayed breakpoints-changed
9458 * annotate.h (annotate_ignore_count_change): Delete.
9459 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
9460 annotate_ignore_count_change.
9462 2013-01-22 Tom Tromey <tromey@redhat.com>
9464 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
9465 require_rvalue for a register location.
9467 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
9469 * breakpoint.c (print_one_breakpoint_location): Add MI
9470 field 'thread-groups' when printing a breakpoint.
9471 (output_thread_groups): New function.
9473 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
9475 * python/lib/gdb/commands/explore.py
9476 (CompoundExplorer.explore_expr): Correct the name of a method
9478 (ExploreTypeCommand.invoke): Add a missing 'return'.
9480 2013-01-21 Tom Tromey <tromey@redhat.com>
9482 * gdb_obstack.h (obconcat): Move declaration here, from...
9483 * symfile.h (obconcat): ... here.
9484 * gdb_obstack.c: New file.
9485 (obconcat): Move from...
9486 * symfile.c (obconcat): ... here.
9487 * Makefile.in (SFILES): Add gdb_obstack.c.
9488 (COMMON_OBS): Add gdb_obstack.o.
9490 2013-01-21 Tom Tromey <tromey@redhat.com>
9492 * symfile.h (obsavestring): Don't declare.
9493 * symfile.c (obsavestring): Remove.
9494 * ada-exp.y: Use obstack_copy0, not obsavestring.
9495 * ada-lang.c: Use obstack_copy0, not obsavestring.
9496 * coffread.c: Use obstack_copy0, not obsavestring.
9497 * cp-namespace.c: Use obstack_copy0, not obsavestring.
9498 * dbxread.c: Use obstack_copy0, not obsavestring.
9499 * dwarf2read.c: Use obstack_copy0, not obsavestring.
9500 * jit.c: Use obstack_copy0, not obsavestring.
9501 * mdebugread.c: Use obstack_copy0, not obsavestring.
9502 * psymtab.c: Use obstack_copy0, not obsavestring.
9503 * stabsread.c: Use obstack_copy0, not obsavestring.
9504 * xcoffread.c: Use obstack_copy0, not obsavestring.
9506 2013-01-21 Tom Tromey <tromey@redhat.com>
9508 * dwarf2read.c (fixup_go_packaging): Save package name
9510 * gdbtypes.c (init_type): Don't copy name.
9512 2013-01-21 Tom Tromey <tromey@redhat.com>
9514 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
9516 (struct attribute) <u.str>: Now const.
9517 (struct fnfieldlist) <name>: Now const.
9518 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
9519 (partial_die_parent_scope): Make return type const.
9520 (partial_die_full_name, add_partial_symbol): Update.
9521 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
9523 (find_file_and_directory): Make 'name' and 'comp_dir' const.
9524 (read_file_scope, read_func_scope, dwarf2_add_field)
9525 (dwarf2_add_member_fn, read_structure_type)
9526 (process_enumeration_scope, read_array_type, read_module_type)
9527 (read_base_type, read_subrange_type): Update.
9528 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
9529 (new_symbol_full, guess_full_die_structure_name): Update.
9530 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
9531 (dwarf2_name): Return const type.
9532 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
9535 2013-01-21 Tom Tromey <tromey@redhat.com>
9537 * gdbtypes.c (init_type): Make 'name' const.
9538 * gdbtypes.h (init_type): Update.
9540 2013-01-21 Tom Tromey <tromey@redhat.com>
9542 * buildsym.c (patch_subfile_names): Use set_last_source_file.
9543 (start_symtab): Make 'name' and 'dirname' const. Use
9544 set_last_source_file.
9545 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
9546 (last_source_file): Define. Now static.
9547 (set_last_source_file, get_last_source_file): New functions.
9548 * buildsym.h (last_source_file): Don't declare.
9549 (start_symtab): Update.
9550 (set_last_source_file, get_last_source_file): Declare.
9551 * coffread.c (complete_symtab): Use set_last_source_file.
9552 (coff_end_symtab): Likewise.
9553 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
9554 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
9555 set_last_source_file.
9556 (process_one_symbol): Use get_last_source_file.
9557 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
9558 (psymtab_to_symtab_1): Use get_last_source_file.
9559 * xcoffread.c (process_linenos): Use get_last_source_file.
9560 (complete_symtab): Use set_last_source_file.
9561 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
9562 (scan_xcoff_symtab): Use set_last_source_file.
9564 2013-01-21 Tom Tromey <tromey@redhat.com>
9566 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
9567 (symbol_set_names): Remove casts. Handle field const-ness.
9569 2013-01-21 Tom Tromey <tromey@redhat.com>
9571 * dwarf2read.c (new_symbol_full): Remove cast.
9572 * symtab.c (symbol_set_demangled_name): Make 'name' const.
9573 * symtab.h (symbol_set_demangled_name): Update.
9575 2013-01-21 Tom Tromey <tromey@redhat.com>
9577 * main.c (captured_main): Call bfd_init.
9579 2013-01-21 Tom Tromey <tromey@redhat.com>
9581 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
9582 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
9583 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
9586 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9588 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
9590 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9592 Fix gdb.fortran/common-block.exp crash in PIE mode.
9593 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
9595 * f-valprint.c (info_common_command_for_block): Expect
9596 LOC_COMMON_BLOCK in gdb_assert.
9597 * symtab.h (struct general_symbol_info): Update comment for the
9598 common_block member.
9599 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
9600 (enum address_class): New member LOC_COMMON_BLOCK.
9602 2013-01-18 David Blaikie <dblaikie@gmail.com>
9604 * MAINTAINERS (Write After Approval): Add "David Blaikie".
9606 2013-01-18 Tom Tromey <tromey@redhat.com>
9609 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
9610 Call require_rvalue.
9612 2013-01-18 Yao Qi <yao@codesourcery.com>
9614 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
9615 (dbx_read_symtab): New declaration.
9616 (dbx_psymtab_to_symtab): Delete.
9617 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
9618 Rename parameter PST to SELF. Exchanged two parameters.
9619 (start_psymtab): Caller update.
9620 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
9621 (dwarf2_read_symtab): New declaration.
9622 (dwarf2_psymtab_to_symtab): Delete.
9623 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
9624 Rename parameter PST to SELF. Exchanged two parameters.
9625 (create_partial_symtab): Caller update.
9626 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
9627 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
9628 Rename parameter PST to SELF. Exchanged two parameters.
9629 (parse_partial_symbols, new_psymtab): Caller update.
9630 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
9632 * psymtab.c (psymtab_to_symtab): Caller update.
9633 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
9634 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
9635 Rename parameter PST to SELF. Exchanged two parameters.
9636 (xcoff_start_psymtab): Caller update.
9638 2013-01-18 Yao Qi <yao@codesourcery.com>
9640 * infrun.c (proceed): Rename local variable 'oneproc' to
9643 2013-01-17 Doug Evans <dje@google.com>
9645 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
9646 (dw2_build_type_unit_groups): Delete. All uses updated.
9648 * symtab.h (struct symbol_search): Add comment.
9650 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9652 * symtab.c (compare_filenames_for_search): New comment for
9655 2013-01-17 Tom Tromey <tromey@redhat.com>
9657 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
9659 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9661 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
9662 initialize it by existing make_cleanup. Call new do_cleanups.
9664 2013-01-17 Tom Tromey <tromey@redhat.com>
9666 * cp-abi.c (cp_abi_completer): New function.
9667 (_initialize_cp_abi): Set completer for "set cp-abi".
9669 2013-01-17 Tom Tromey <tromey@redhat.com>
9671 * mem-break.c: Remove obsolete comment.
9672 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
9674 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9676 * jit.c (jit_reader_load_command): Interpret the jit reader name
9677 as an absolute path if it begins with a forward slash.
9679 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9683 * jit.c (finalize_symtab): Ensure that only the global block has a
9686 2013-01-17 Pedro Alves <palves@redhat.com>
9688 * acinclude.m4: Include ../config/plugins.m4,
9689 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
9690 * Makefile.in (aclocal_m4_deps): Update.
9691 * aclocal.m4: Renegerate.
9693 2013-01-16 Doug Evans <dje@google.com>
9695 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
9697 2013-01-16 Pedro Alves <palves@redhat.com>
9698 Tom Tromey <tromey@redhat.com>
9701 * NEWS: Add "catch signal".
9702 * breakpoint.c (base_breakpoint_ops): No longer static.
9703 (bpstat_explains_signal): New function.
9704 (init_catchpoint): No longer static.
9705 (base_breakpoint_explains_signal): New function.
9706 (base_breakpoint_ops): Initialize new field.
9707 * breakpoint.h (enum bpstat_signal_value): New.
9708 (struct breakpoint_ops) <explains_signal>: New field.
9709 (bpstat_explains_signal): Remove macro, declare as function.
9710 (base_breakpoint_ops, init_catchpoint): Declare.
9711 * break-catch-sig.c: New file.
9712 * inferior.h (signal_catch_update): Declare.
9713 * infrun.c (signal_catch): New global.
9714 (handle_syscall_event): Update for change to
9715 bpstat_explains_signal.
9716 (handle_inferior_event): Likewise. Always handle random signals
9718 (signal_cache_update): Check signal_catch.
9719 (signal_catch_update): New function.
9720 (_initialize_infrun): Initialize signal_catch.
9721 * Makefile.in (SFILES): Add break-catch-sig.c.
9722 (COMMON_OBS): Add break-catch-sig.o.
9724 2013-01-16 Tom Tromey <tromey@redhat.com>
9726 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
9727 (print_one_catch_solib, print_one_catch_syscall)
9728 (print_one_catch_exec, print_one_exception_catchpoint): Emit
9731 2013-01-16 Yao Qi <yao@codesourcery.com>
9733 * printcmd.c (current_display_number): Make it static.
9735 2013-01-16 Yao Qi <yao@codesourcery.com>
9737 * infcmd.c (step_once): Don't check '!single_inst' as it was
9740 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9742 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
9744 2013-01-14 Tom Tromey <tromey@redhat.com>
9746 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
9748 * command.h (add_setshow_string_noescape_cmd): Update.
9749 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
9750 (complete_set_gnutarget): New function.
9751 (_initialize_core): Set the "set gnutarget" completer.
9753 2013-01-14 Tom Tromey <tromey@redhat.com>
9756 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
9757 (c_type_print_modifier): Likewise.
9758 * dwarf2read.c (read_tag_restrict_type): New function.
9759 (read_type_die_1): Handle DW_TAG_restrict_type.
9760 * gdbtypes.c (make_restrict_type): New function.
9761 (recursive_dump_type): Handle TYPE_RESTRICT.
9762 * gdbtypes.h (enum type_flag_values): Renumber.
9763 (enum type_instance_flag_value): Add
9764 TYPE_INSTANCE_FLAG_RESTRICT.
9765 (TYPE_RESTRICT): New macro.
9766 (make_restrict_type): Declare.
9768 2013-01-14 Tom Tromey <tromey@redhat.com>
9771 * psymtab.c (struct psymtab_state): New.
9772 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
9774 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
9775 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
9777 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
9778 Pedro Alves <palves@redhat.com>
9782 * remote.c (remote_threads_info): Make a copy of the reply from
9783 qfThreadInfo and use that instead of rs->buf.
9785 2013-01-14 Yao Qi <yao@codesourcery.com>
9787 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
9788 (dbx_psymtab_to_symtab): Likewise.
9789 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
9790 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
9791 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
9793 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9795 * parse.c (parse_exp_in_context): New variable inner_chain. Call
9796 make_cleanup_restore_current_language. Call set_language. Move
9797 OLD_CHAIN and INNER_CHAIN cleanups.
9798 * utils.c (do_restore_current_language)
9799 (make_cleanup_restore_current_language): New functions.
9800 * utils.h (make_cleanup_restore_current_language): New declaration.
9802 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9804 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
9807 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
9808 non-existing files if FILENAME is already absolute.
9810 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9812 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
9813 fputs_filtered. Append trailing newline.
9815 2013-01-11 Yao Qi <yao@codesourcery.com>
9816 Stan Shebs <stan@codesourcery.com>
9818 * psymtab.c (init_psymbol_list): Clarify the comment.
9820 2013-01-11 Yao Qi <yao@codesourcery.com>
9822 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
9823 (update_dprintf_command_list): Assert that 'printf_line' is
9824 non-null. Remove condition check.
9826 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9829 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
9831 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
9833 * tui/tui-source.h (tui_source_is_displayed): Likewise.
9835 2013-01-09 Anthony Green <green@moxielogic.com>
9837 * cp-abi.c (cplus_print_vtable): Don't return value from void
9839 * ada-lang.c (re_set_catch_assert): Ditto.
9841 2013-01-09 Doug Evans <dje@google.com>
9843 * symfile.h (quick_symbol_functions): Delete member
9844 pre_expand_symtabs_matching. All uses removed.
9845 * dwarf2read.c (dw2_lookup_symbol): Implement.
9846 (dw2_do_expand_symtabs_matching): Delete.
9847 (dw2_pre_expand_symtabs_matching): Delete.
9848 (struct dw2_symtab_iterator): New type.
9849 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
9850 (dw2_expand_symtabs_for_function): Rewrite.
9851 (dwarf2_gdb_index_functions): Update.
9852 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
9853 (psym_functions): Update.
9855 2013-01-09 Tom Tromey <tromey@redhat.com>
9857 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
9858 * configure: Rebuild.
9859 * configure.ac: Add somread.o to the build if BFD has SOM
9861 * somread.c: Include som/aout.h, not syms.h.
9862 (som_symtab_read): Use som_external_symbol_dictionary_record.
9863 Unpack records manually.
9864 (_initialize_somread): Declare.
9866 2012-01-08 Mike Frysinger <vapier@gentoo.org>
9868 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
9869 Cast return_address to 64bits.
9871 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
9873 * printcmd.c: Remove define of function output_command.
9874 * tracepoint.c: Remove extern of function output_command.
9875 * valprint.h: (output_command): New extern.
9877 2013-01-07 Tom Tromey <tromey@redhat.com>
9879 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
9881 (objc_language_defn): Use c_printchar, c_printstr,
9884 2013-01-07 Tom Tromey <tromey@redhat.com>
9888 * ada-valprint.c (printstr, print_field_values): Remove
9890 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
9892 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
9894 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
9895 * main.c (captured_main): Remove "epoch" argument.
9896 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
9897 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
9898 * p-valprint.c (pascal_object_print_value_fields): Remove
9900 * printcmd.c (print_command_1): Remove 'inspect' argument.
9901 (print_command, call_command): Update.
9902 (inspect_command): Remove.
9903 (_initialize_printcmd): Make "inspect" an alias for "print".
9904 * top.c (epoch_interface): Remove.
9905 * top.h (epoch_interface): Remove.
9906 * valprint.c (user_print_options): Update.
9907 (print_converted_chars_to_obstack): Remove "inspect_it" code.
9908 * valprint.h (struct value_print_options) <inspect_it>: Remove
9911 2013-01-04 Tom Tromey <tromey@redhat.com>
9913 * valprint.h (read_string): Add 'extern'.
9915 2013-01-07 Joel Brobecker <brobecker@adacore.com>
9917 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
9918 used to decide whether to define darwin_read_dyld_info or not.
9920 2013-01-03 Pierre Muller <muller@sourceware.org>
9922 * main.c (relocate_gdb_directory): Avoid calling stat function
9925 2013-01-03 Yao Qi <yao@codesourcery.com>
9927 * psymtab.c (fixup_psymbol_section): Update declaration.
9928 (fixup_psymbol_section): Remove code returning value.
9930 2013-01-03 Yao Qi <yao@codesourcery.com>
9932 * symtab.h: Remove some out of date comments.
9933 (enum exception_event_kind): Move it ...
9934 * breakpoint.c: ... here.
9936 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
9939 * darwin-nat.c (darwin_read_dyld_info): Only build if
9940 TASK_DYLD_INFO_COUNT is defined.
9941 (darwin_xfer_partial): Call darwin_read_dyld_info only if
9942 TASK_DYLD_INFO_COUNT is defined.
9944 2013-01-02 Tom Tromey <tromey@redhat.com>
9946 * symfile.h (struct ecoff_debug_hack): Remove.
9947 * objfiles.c: Don't include mdebugread.h.
9949 2013-01-02 Tom Tromey <tromey@redhat.com>
9951 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
9952 * configure.ac: Check for Mach-O support in BFD. Update
9954 * configure: Rebuild.
9956 2013-01-02 Tom Tromey <tromey@redhat.com>
9958 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
9959 * configure.ac: Use GDB_AC_CHECK_BFD.
9960 * configure: Rebuild.
9962 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
9964 * MAINTAINERS: Update my email.
9966 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9968 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
9970 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9972 * rs6000-nat.c (bss_data_overlap): New function.
9973 (vmap_symtab): Use it to adjust the .bss section's offset.
9975 2013-01-01 Joel Brobecker <brobecker@adacore.com>
9977 Update year range in copyright notice of all files.
9979 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
9981 * top.c (print_gdb_version): Update copyright year.
9983 For older changes see ChangeLog-2012.
9989 version-control: never