1 2013-09-27 Pedro Alves <palves@redhat.com>
3 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
4 (remote_filename_p): Add comment.
5 * remote.c (remote_filename_p): Adjust to use
7 * solib.c (solib_find): When deciding whether we need to add a
8 directory separator, check whether the sysroot is "remote:"
9 instead of checking whether the patch has a drive spec. Add
12 2013-09-27 Pedro Alves <palves@redhat.com>
14 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
16 (remote_parse_stop_reply): Adjust, setting event->ws.kind
19 2013-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
21 Fix set debug frame output.
22 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
23 SENTINEL_FRAME entry lower to match enum frame_type order.
25 2013-09-26 Pierre Muller <muller@sourceware.org>
27 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
28 AMD64_R15_REGNUM when a register index is expected.
29 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
31 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
32 (amd64_push_arguments): Substitute in integer_regnum array.
34 2013-09-25 Doug Evans <dje@google.com>
36 * objfiles.c (allocate_objfile): Move comment to better place.
38 New option "set debug symfile on".
39 * NEWS: Mention "set debug symfile".
40 * Makefile.in (SFILES): Add symfile-debug.c.
41 (COMMON_OBS): Add symfile-debug.o.
42 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
43 objfile's symbol functions.
44 * objfiles.h (objfile_set_sym_fns): Declare.
45 * symfile-debug.c: New file.
46 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
47 objfile's symbol functions.
48 (reread_symbols): Ditto.
50 * symfile.h (struct sym_fns): Delete member "sym_flavour".
52 (add_symtab_fns): Update prototype.
53 * symfile.c (sym_fns_ptr): Delete. Replace with ...
54 (registered_sym_fns): ... this.
56 (add_symtab_fns): New arg "flavour". All callers updated.
57 (find_sym_fns): Rewrite to use new sym_fns registry.
59 * symfile.h (struct sym_fns): Add "objfile" argument to
60 sym_read_linetable. All uses updated.
62 * symtab.c (domain_name, search_domain_name): New functions.
63 * symtab.h (domain_name, search_domain_name): Declare.
65 * symfile.h (struct quick_symbol_functions): Reorg arg list of
66 map_matching_symbols so objfile is first. All uses updated.
67 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
68 * psymtab.c (map_matching_symbols_psymtab): Update signature.
70 2013-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
73 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
76 2013-09-24 Doug Evans <dje@google.com>
78 * objfiles.c (free_objfile): Move comment.
80 2013-09-24 Joel Brobecker <brobecker@adacore.com>
82 * ada-exp.y (string_to_operator): Delete.
83 (dummy_string_to_ada_operator): Delete.
85 2013-09-24 Joel Brobecker <brobecker@adacore.com>
88 * i386-tdep.h (enum amd64_reg_class): New, moved here from
90 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
91 call_dummy_integer_regs, and classify.
92 * amd64-tdep.h (amd64_classify): Add declaration.
93 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
94 (amd64_reg_class): Delete, moved to i386-tdep.h.
95 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
96 Replace call to amd64_classify by call to tdep->classify.
97 (amd64_push_arguments): Get the list of registers to use for
98 passing integer parameters from the gdbarch tdep structure,
99 rather than using a hardcoded one. Replace calls to amd64_classify
100 by calls to tdep->classify.
101 (amd64_push_dummy_call): Get the register number used for
102 the "hidden" argument from tdep->call_dummy_integer_regs.
103 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
104 and tdep->call_dummy_integer_regs. Set tdep->classify.
106 2013-09-24 Joel Brobecker <brobecker@adacore.com>
109 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
110 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
111 where tdep->memory_args_by_pointer is non-zero.
113 2013-09-24 Joel Brobecker <brobecker@adacore.com>
116 * i386-tdep.h (struct gdbarch_tdep): Add new field
117 integer_param_regs_saved_in_caller_frame.
118 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
119 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
121 2013-09-24 Joel Brobecker <brobecker@adacore.com>
123 * amd64-windows-tdep.c: #include "value.h"
124 (amd64_windows_classify): Delete.
125 (amd64_windows_passed_by_integer_register)
126 (amd64_windows_passed_by_xmm_register)
127 (amd64_windows_passed_by_pointer)
128 (amd64_windows_adjust_args_passed_by_pointer)
129 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
130 (amd64_windows_push_dummy_call): New functions.
131 (amd64_windows_init_abi): Remove setting of
132 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
133 tdep->classify, tdep->memory_args_by_pointer and
134 tdep->integer_param_regs_saved_in_caller_frame.
135 Add call to set_gdbarch_push_dummy_call.
137 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
139 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
140 objfile->original_name.
142 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
144 Pass down original filename for objfile.
145 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
146 * elfread.c (elf_symfile_read): Likewise.
147 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
148 longer set ORIGINAL_NAME.
149 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
150 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
151 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
152 symbol_file_add_from_bfd call.
153 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
154 (macho_check_dsym): Add parameter filenamep. Change function comment.
156 (macho_symfile_read): New variable dsym_filename. Update
157 macho_check_dsym call. Use it for symbol_file_add_separate.
158 * objfiles.c (allocate_objfile): Add parameter name. New comment for
159 it. Use it for objfile->original_name.
160 (objfile_name): Return OBFD's filename, if available.
161 * objfiles.h (allocate_objfile): Add new parameter name.
162 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
163 * symfile-mem.c (symbol_file_add_from_memory): Update
164 symbol_file_add_from_bfd call.
165 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
167 (symbol_file_add_with_addrs): New parameter name, add function comment
168 for it. Remove variable name. Update allocate_objfile call.
169 (symbol_file_add_separate): New parameter name, add function comment
170 for it. Update symbol_file_add_with_addrs call.
171 (symbol_file_add_from_bfd): New parameter name. Update
172 symbol_file_add_with_addrs call.
173 (symbol_file_add): Update symbol_file_add_from_bfd call.
174 (reread_symbols): New variable original_name. Save
175 objfile->original_name by it.
176 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
179 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
181 Code cleanup: Add objfile_name accessor function.
182 * ada-lang.c (is_known_support_routine): Use objfile_name.
183 * auto-load.c (source_gdb_script_for_objfile)
184 (auto_load_objfile_script): Likewise.
185 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
186 * dbxread.c (dbx_symfile_read): Likewise.
187 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
188 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
189 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
190 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
191 (lookup_dwp_signatured_type, lookup_dwo_unit)
192 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
193 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
194 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
195 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
196 (dwarf2_record_block_ranges, read_common_block, read_typedef)
197 (read_subrange_type, load_partial_dies, read_partial_die)
198 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
199 (die_containing_type, build_error_marker_type, lookup_die_type)
200 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
201 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
202 (get_DW_AT_signature_type, write_psymtabs_to_index)
203 (save_gdb_index_command): Likewise.
204 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
206 * expprint.c (dump_subexp_body_standard): Likewise.
207 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
208 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
210 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
211 obj_name, use objfile_name for it, use the variable.
212 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
214 * machoread.c (macho_symtab_read, macho_check_dsym)
215 (macho_symfile_relocate): Likewise.
216 * maint.c (maintenance_translate_address): Likewise.
217 * minidebug.c (find_separate_debug_file_in_section): Likewise.
218 * minsyms.c (install_minimal_symbols): Likewise.
219 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
221 (filter_overlapping_sections): Use objfile_name.
222 (objfile_name): New function.
223 * objfiles.h (struct objfile): Rename field name to original_name.
224 (objfile_name): New prototype.
225 * printcmd.c (sym_info, address_info): Use objfile_name.
226 * probe.c (parse_probes, collect_probes, compare_probes)
227 (info_probes_for_ops): Likewise.
228 * progspace.c (clone_program_space): Likewise.
229 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
230 (maintenance_info_psymtabs): Likewise.
231 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
232 (source_section_scripts): Likewise.
233 * python/py-objfile.c (objfpy_get_filename): Likewise.
234 * python/py-progspace.c (pspy_get_filename): Likewise.
235 * solib-aix.c (solib_aix_get_toc_value): Likewise.
236 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
237 * solib.c (solib_read_symbols): Likewise.
238 * stabsread.c (scan_file_globals): Likewise.
239 * stap-probe.c (handle_stap_probe): Likewise.
240 * symfile.c (symbol_file_clear, separate_debug_file_exists)
241 (find_separate_debug_file_by_debuglink): Likewise.
242 (reread_symbols): Likewise. Use the objfile field name renamed to
244 (allocate_symtab): Use objfile_name.
245 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
246 (dump_objfile, dump_msymbols, dump_symtab_1)
247 (maintenance_print_msymbols, maintenance_print_objfiles)
248 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
249 * target.c (target_translate_tls_address, target_info): Likewise.
250 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
253 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
256 * probe.c (parse_probes): Rename variable objfile_name to
259 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
261 Remove solib-sunos.c.
262 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
263 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
264 * objfiles.c (rt_common_objfile): Remove.
265 (free_objfile): Remove rt_common_objfile comparison.
266 * objfiles.h (rt_common_objfile): Remove.
267 * solib-sunos.c: Remove.
268 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
270 2013-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
272 Remove a.out NetBSD and OpenBSD hosts.
273 * NEWS (Removed native configurations): New.
274 * config/arm/nbsdaout.mh: Remove.
275 * config/i386/nbsdaout.mh: Remove.
276 * config/i386/obsdaout.mh: Remove.
277 * config/m68k/nbsdaout.mh: Remove.
278 * config/sparc/nbsdaout.mh: Remove.
279 * config/vax/nbsdaout.mh: Remove.
280 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
281 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
282 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
284 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
285 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
286 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
288 2013-09-23 Tom Tromey <tromey@redhat.com>
290 * linespec.c (struct minsym_and_objfile): Remove.
291 (minsym_and_objfile_d): Remove.
292 (struct linespec, struct collect_info, linespec_parse_basic)
293 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
294 (compare_msymbols, find_method, find_function_symbols)
295 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
296 (add_minsym, search_minsyms_for_name): Update.
298 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
300 * regcache.c: Add include of valprint.h.
301 (dump_endian_bytes): Delete.
302 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
304 2013-09-23 Andrew Burgess <aburgess@broadcom.com>
306 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
308 2013-09-19 Pedro Alves <palves@redhat.com>
310 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
313 2013-09-19 Pedro Alves <palves@redhat.com>
314 Thomas Schwinge <thomas@codesourcery.com>
315 Yue Lu <hacklu.newborn@gmail.com>
317 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
318 Take a gdb_byte pointer instead of a char pointer.
320 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
321 gnu_xfer_partial helper.
322 (gnu_xfer_partial): New function.
323 (gnu_target): Don't install a deprecated_xfer_memory hook.
324 Install a to_xfer_partial hook.
326 2013-09-19 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * main.c (captured_main): Replace catch_command_errors by
330 catch_command_errors_const. Twice.
331 * symfile.c (symbol_file_add_main_1): Make args parameter const.
332 (symbol_file_add): Make name parameter const.
333 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
334 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
335 variable name. Change their usage accordingly.
336 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
338 (symbol_file_add_main): Make args parameter const.
340 2013-09-18 Raunaq Bathija <raunaq12@in.ibm.com>
341 Ulrich Weigand <uweigand@de.ibm.com>
343 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
345 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
347 2013-09-18 Pedro Alves <palves@redhat.com>
348 Yue Lu <hacklu.newborn@gmail.com>
350 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
351 (gnu_create_inferior)
352 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
353 (set_sig_thread_cmd): Use the lwpid field of ptids to
354 store/extract thread ids instead of the tid field.
355 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
357 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
359 * infcmd.c (default_print_one_register_info): Add detection of
360 optimized out values.
361 (default_print_registers_info): Switch to using
362 get_frame_register_value.
364 2013-09-18 Markus Metzger <markus.t.metzger@intel.com>
366 * infrun.c (handle_inferior_event): Check if we know the
367 function start address before setting a resume breakpoint.
369 2013-09-18 Pedro Alves <palves@redhat.com>
371 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
372 minus_one_ptid instead of looking at the ptid's tid field and
373 comparing that to -1.
375 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
377 * main.h (get_gdb_program_name): Remove extra whitespace.
379 2013-09-18 Andrew Burgess <aburgess@broadcom.com>
381 * main.h (get_gdb_program_name): Add declaration.
382 * main.c (get_gdb_program_name): Add definition.
384 2013-09-17 Doug Evans <dje@google.com>
386 * dwarf2read.c: Move definitions of complaint functions to after
387 forward declarations of local functions.
389 2013-09-17 Muhammad Waqas <mwaqas@codesourcery.com>
390 Pedro Alves <palves@redhat.com>
393 * breakpoint.c (remove_threaded_breakpoints): New function.
394 (_initialize_breakpoint): Attach remove_threaded_breakpoints
395 as thread_exit observer.
397 2013-09-17 Pedro Alves <palves@redhat.com>
400 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
401 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
402 * corelow.c (core_open):
403 * frame.h (print_stack_frame, print_frame_info): New
404 'set_current_sal' parameter.
405 * infcmd.c (finish_command, kill_command): Adjust call to
407 * inferior.c (inferior_command): Likewise.
408 * infrun.c (normal_stop): Likewise.
409 * linux-fork.c (linux_fork_context): Likewise.
410 * record-full.c (record_full_goto_entry, record_full_restore):
412 * remote-mips.c (common_open): Likewise.
413 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
415 (print_frame_info): New 'set_current_sal' parameter. Set the last
416 displayed sal depending on the new paremeter instead of looking at
418 (backtrace_command_1, select_and_print_frame, frame_command)
419 (current_frame_command, up_command, down_command): Adjust call to
421 * thread.c (print_thread_info, restore_selected_frame)
422 (do_captured_thread_select): Adjust call to print_stack_frame.
423 * tracepoint.c (tfind_1): Likewise.
424 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
425 (mi_cmd_stack_info_frame): Likewise.
426 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
427 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
429 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
431 * value.c (isvoid_internal_fn): Replace "parameter" with
434 2013-09-16 Stan Shebs <stan@codesourcery.com>
436 * README: Update references to writing code for GDB.
437 * configure.ac (build_warnings): Remove obsolete comment.
438 * configure: Regenerate.
439 * gdbarch.sh: Remove references to gdbint.texinfo.
440 * gdbarch.h: Regenerate.
441 * gdbtypes.c (objfile_type): Remove comments referencing internals
444 2013-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
446 * NEWS: Mention new convenience function $_isvoid.
447 * value.c (isvoid_internal_fn): New function.
448 (_initialize_values): Add new convenience function $_isvoid.
450 2013-09-16 Pierre Muller <muller@sourceware.org>
452 * arm-linux-tdep.c: Add "elf/common.h" header.
453 Remove AT_HWCAP macro definintion as it is provided in
455 * s390-tdep.c: Remove system header <elf.h>
456 Add "elf/common.h" header for AT_HWCAP definition.
457 (s390_core_read_description): Use correct CORE_ADDR
458 for hwcap local variable used as third parameter
459 of function target_auxv_search.
461 2013-09-14 Pierre Muller <muller@sourceware.org>
462 Tom Tromey <tromey@redhat.com>
463 Pedro Alves <palves@redhat.com>
465 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
466 mode if operating system doesn't know O_CLOEXEC.
468 2013-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
471 * symfile.c (reread_symbols): Move variable obfd_filename to a more
474 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
476 * NEWS: Mention TDB support.
477 * features/s390-tdb.xml: New file.
478 * features/s390-te-linux64.xml: New file.
479 * features/s390x-te-linux64.xml: New file.
480 * features/Makefile (WHICH): Add new tdescs above.
481 (s390-te-linux64-expedite): Set.
482 (s390x-te-linux64-expedite): Set.
483 * features/s390-te-linux64.c: New file (generated).
484 * features/s390x-te-linux64.c: New file (generated).
485 * regformats/s390-te-linux64.dat: New file (generated).
486 * regformats/s390x-te-linux64.dat: New file (generated).
487 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
488 (HWCAP_S390_TE): Likewise.
489 (S390_TDB_DWORD0_REGNUM): Likewise.
490 (S390_TDB_DWORD0_REGNUM): Likewise.
491 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
492 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
493 (S390_TDB_ATIA_REGNUM): Likewise.
494 (S390_TDB_R0_REGNUM): Likewise.
495 (S390_TDB_R1_REGNUM): Likewise.
496 (S390_TDB_R2_REGNUM): Likewise.
497 (S390_TDB_R3_REGNUM): Likewise.
498 (S390_TDB_R4_REGNUM): Likewise.
499 (S390_TDB_R5_REGNUM): Likewise.
500 (S390_TDB_R6_REGNUM): Likewise.
501 (S390_TDB_R7_REGNUM): Likewise.
502 (S390_TDB_R8_REGNUM): Likewise.
503 (S390_TDB_R9_REGNUM): Likewise.
504 (S390_TDB_R10_REGNUM): Likewise.
505 (S390_TDB_R11_REGNUM): Likewise.
506 (S390_TDB_R12_REGNUM): Likewise.
507 (S390_TDB_R13_REGNUM): Likewise.
508 (S390_TDB_R14_REGNUM): Likewise.
509 (S390_TDB_R15_REGNUM): Likewise.
510 (S390_NUM_REGS): Increase.
511 (S390_IS_TDBREGSET_REGNUM): New macro.
512 (s390_regmap_tdb): Declare.
513 (s390_sizeof_tdbregset): Define.
514 (tdesc_s390_te_linux64): Declare.
515 (tdesc_s390x_te_linux64): Likewise.
516 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
517 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
518 (s390_regmap_tdb): New regmap.
519 (s390_supply_tdb_regset): New function.
520 (s390_tdb_regset): New regset.
521 (s390_linux64v2_regset_sections): Add TDB regset to list.
522 (s390x_linux64v2_regset_sections): Likewise.
523 (s390_regset_from_core_section): Recognize TDB core note section.
524 (s390_core_read_description): If HWCAP indicates TE support,
525 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
526 (s390_gdbarch_init): Handle TDB regset.
527 (_initialize_s390_tdep): Initialize new tdescs.
528 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
529 (have_regset_tdb): New variable.
530 (s390_native_supply): Support register invalidation.
531 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
532 (check_regset): Treat ENODATA as "regset exists".
533 (s390_linux_fetch_inferior_registers): Add TDB.
534 (s390_read_description): Check for TDB existence and select
536 * gdbserver/Makefile.in (clean): Add removal of new makefile
538 (s390-te-linux64.c): New makefile target.
539 (s390x-te-linux64.c): Likewise.
540 * gdbserver/configure.srv (srv_regobj): Append new objects
541 s390-te-linux64.o and s390x-te-linux64.o.
542 (srv_xmlfiles): Append new files s390-te-linux64.xml,
543 s390x-te-linux64.xml, and s390-tdb.xml.
544 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
546 (tdesc_s390_te_linux64): Likewise.
547 (init_registers_s390x_te_linux64): Likewise.
548 (tdesc_s390x_te_linux64): Likewise.
549 (s390_check_regset): Treat ENODATA as "regset exists".
550 (s390_arch_setup): Add TDB regset support.
551 (initialize_low_arch): Initialize registers for new tdescs.
553 2013-09-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
555 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
556 (S390_IS_FPREGSET_REGNUM): New macro.
557 * s390-tdep.c (s390_dwarf_regmap): Make const.
558 (regnum_is_gpr_full): New function for replacing repeated code.
559 (s390_pseudo_register_name): Use it.
560 (s390_pseudo_register_type): Likewise.
561 (s390_pseudo_register_read): Likewise.
562 (s390_pseudo_register_write): Likewise.
563 (s390_unwind_pseudo_register): Likewise.
564 (s390_regmap_gregset): New format for regmap.
565 (s390x_regmap_gregset): Likewise.
566 (s390_regmap_fpregset): Likewise.
567 (s390_regmap_upper): Likewise.
568 (s390_regmap_last_break): Likewise.
569 (s390_regmap_system_call): Likewise.
570 (s390_supply_regset): Adjust to new regmap format.
571 (s390_collect_regset): Likewise.
572 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
573 (s390_native_collect): Likewise.
574 (supply_gregset): Likewise.
575 (fill_gregset): Likewise.
576 (supply_fpregset): Likewise.
577 (fill_fpregset): Likewise.
578 (fetch_regset): Likewise.
579 (store_regset): Likewise.
580 (s390_linux_fetch_inferior_registers): Likewise.
581 (s390_linux_fetch_inferior_registers): Likewise.
583 2013-09-12 Andrew Pinski <apinski@cavium.com>
585 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
587 2013-09-10 Andreas Arnez <arnez@linux.vnet.ibm.com>
589 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
591 2013-09-09 Andrew Burgess <aburgess@broadcom.com>
593 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
595 2013-09-06 Pedro Alves <palves@redhat.com>
597 * remote-sim.c (dump_mem, gdbsim_fetch_register)
598 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
599 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
600 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
601 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
604 2013-09-06 Pedro Alves <palves@redhat.com>
606 * remote-sim.c (dump_mem): Constify buf parameter.
607 gdbsim_xfer_inferior_memory): Rename to ...
608 (gdbsim_xfer_memory): ... this. Adjust interface as
609 target_xfer_partial helper.
610 (gdbsim_xfer_partial): New function.
611 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
612 Install a to_xfer_partial hook. Send output to gdb_stdlog.
614 2013-09-06 Pedro Alves <palves@redhat.com>
616 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
617 host_address_to_string, and send debug output to gdb_stdlog.
619 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
621 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
622 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
623 gdb_target_obs for cris target.
624 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
625 (cris_gdbarch_init): Move calls to
626 set_gdbarch_fetch_tls_load_module_address and
627 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
628 Add call to gdbarch_init_osabi.
629 * cris-linux-tdep.c: New file.
630 * cris-tdep.h: New file.
632 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
634 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
635 to deprecated_init_ui_hook.
637 2013-09-06 Andrew Burgess <aburgess@broadcom.com>
639 * cli/cli-interp.c (_initialize_cli_interp): Add a
640 command_loop_proc to interp_procs.
641 * event-top.c (cli_command_loop): Change signature to match
642 interp_command_loop_ftype.
643 * event-top.h (cli_command_loop): Same.
644 * interps.c (interp_new): Require every interpreter to have a
646 (current_interp_command_loop): Just call the command_loop_proc on
647 the current interpreter.
648 * tui/tui-interp.c (_initialize_tui_interp): Add a
649 command_loop_proc to interp_procs.
651 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
653 * cris-tdep.c (cris_gdbarch_init): Add call to
654 get_gdbarch_fetch_tls_load_module_address.
656 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
658 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
659 (cris_elf_gregset_t): Rename from elf_gregset_t.
660 (crisv32_elf_gregset_t): Adjust.
661 (cris_supply_gregset, fetch_core_registers): Adjust.
663 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
665 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
667 2013-09-05 Andrew Burgess <aburgess@broadcom.com>
669 * defs.h (deprecated_command_loop_hook): Remove, including
670 references in comments.
671 * interps.c (current_interp_command_loop): No longer use
672 deprecated_command_loop_hook.
673 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
675 * top.c (deprecated_command_loop_hook): Remove.
677 2013-09-05 Pedro Alves <palves@redhat.com>
679 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
680 local is now int instead of ULONGEST. Print it with %d
683 2013-09-05 Tristan Gingold <gingold@adacore.com>
685 * MAINTAINERS: Remove avr maintainership.
687 2013-09-05 Pedro Alves <palves@redhat.com>
689 * findvar.c (value_of_register): Rework in terms of
690 value_of_register_lazy.
692 2013-09-05 Muhammad Bilal <mbilal@codesourcery.com>
694 * symfile.c (add_symbol_file_command): Remove trailing
695 whitespaces and blank line after comment.
697 2013-09-05 Pedro Alves <palves@redhat.com>
699 * tui/tui-regs.c (tui_register_format): Don't look at the
700 register's name here. Return string representing register
701 value instead of storing it in the data element.
702 (tui_get_register): Compare register string representations
703 instead of register value states and contents.
705 2013-09-05 Pedro Alves <palves@redhat.com>
708 * tui/tui-regs.c (tui_show_registers): Show registers of the
709 selected frame, not the current frame.
711 2013-09-05 Ricard Wanderlof <ricardw@axis.com>
713 * MAINTAINERS (Write After Approval): Add myself to the list.
715 2013-09-04 Doug Evans <dje@google.com>
717 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
718 (queue_and_load_dwo_tu): New function.
719 (lookup_dwo_signatured_type): Set per_cu.tu_read.
720 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
721 Make dependent_cu optional.
722 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
723 and an older .gdb_index is in use, queue and load all its TUs too.
725 2013-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
727 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
728 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
729 variable search_flags.
730 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
731 (OPF_RETURN_REALPATH): ... here.
732 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
733 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
735 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
737 * solib.c (solib_find): Likewise. Four times.
738 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
739 in the function comment and for the realpath_fptr variable.
740 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
741 (find_and_open_source): Likewise. Twice.
742 * symfile.c (symfile_bfd_open): Likewise, also twice.
744 2013-09-04 Doug Evans <dje@google.com>
746 * progspace.c (save_current_space_and_thread): Remove unnecessary
747 call to save_current_inferior.
749 2013-09-04 Andrew Burgess <aburgess@broadcom.com>
751 * sh64-tdep.c (sh64_do_register): Return after printing message
752 about unavailable register contents.
754 2013-09-04 Muhammad Bilal <mbilal@codesourcery.com>
755 Pedro Alves <palves@redhat.com>
757 * symfile.c (add_symbol_file_command): Error out on unknown
758 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
759 options and collapse into single conditional branch.
761 2013-09-03 Luis Machado <lgustavo@codesourcery.com>
763 * inf-child.c (inf_child_follow_fork): New parameter
765 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
766 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
767 * inferior.h (detach_fork): Remove.
768 * infrun.c (detach_fork): Adjust comment and make it
770 (follow_fork): Pass detach_fork parameter to
772 * linux-nat.c (linux_child_follow_fork): New parameter
774 * target.c (target_follow_fork): New parameter detach_fork.
775 Pass detach_fork as parameter and print its value.
776 * target.h (struct target_ops) <to_follow_fork>: New int
778 (target_follow_fork): New parameter detach_fork.
780 2013-09-03 Joel Brobecker <brobecker@adacore.com>
782 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
783 Replace sec->bfd by sec->the_bfd_section->owner.
785 2013-09-03 Yao Qi <yao@codesourcery.com>
787 * linux-tdep.c (linux_is_uclinux): New function. Code moved
788 from linux_has_shared_address_space.
789 (linux_has_shared_address_space): Call linux_is_uclinux.
790 * linux-tdep.h (linux_is_uclinux): Declare.
791 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
794 2013-09-03 Yao Qi <yao@codesourcery.com>
796 * config/djgpp/fnchange.lst: Remove entry of
797 i386-interix-nat.c and i386-interix-tdep.c.
798 * configure.ac: Remove '*-*-interix*'.
799 * configure: Re-generated.
800 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
801 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
803 * osabi.c (gdb_osabi_names): Remove "Interix".
805 2013-09-03 Yao Qi <yao@codesourcery.com>
807 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
809 2013-09-02 Markus Metzger <markus.t.metzger@intel.com>
811 * record.h (record_print_flag) <record_print_src_line,
812 record_print_insn_range>: Rename into ...
813 (record_print_flag) <record_print_src_line,
814 record_print_insn_range>: ... this. Update all users.
816 2013-09-02 Pierre Muller <muller@sourceware.org>
818 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
821 2013-09-02 Pierre Muller <muller@sourceware.org>
823 * windows-nat.c (windows_xfer_memory): Fix compilation failure
824 by use of plongest function.
826 2013-09-02 Tristan Gingold <gingold@adacore.com>
828 * NEWS: Add entry mentioning support for native Windows x64
831 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
832 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
833 (struct amd64_windows_frame_cache): New struct.
834 (amd64_windows_w2gdb_regnum): New global.
835 (pc_in_range, amd64_windows_frame_decode_epilogue)
836 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
837 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
838 (amd64_windows_frame_this_id): New functions.
839 (amd64_windows_frame_unwind): New static global.
840 (amd64_windows_skip_prologue): New function.
841 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
842 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
843 with amd64_windows_skip_prologue.
845 2013-08-30 Joel Brobecker <brobecker@adacore.com>
849 2013-08-30 Pedro Alves <palves@redhat.com>
851 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
854 2013-08-30 Pedro Alves <palves@redhat.com>
856 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
859 2013-08-30 Pedro Alves <palves@redhat.com>
861 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
862 Adjust arguments to print_stack_frame.
864 2013-08-30 Pedro Alves <palves@redhat.com>
866 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
868 2013-08-30 Pedro Alves <palves@redhat.com>
870 * frame.h (show_and_print_stack_frame): Delete declaration.
872 2013-08-30 Phil Muldoon <pmuldoon@redhat.com>
876 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
877 (archpy_name): Check for valid architecture.
878 (archpy_disassemble): Ditto.
880 2013-08-29 Joel Brobecker <brobecker@adacore.com>
882 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
883 instead of "long long" in call to ptrace64.
885 2013-08-29 Andrew Burgess <aburgess@broadcom.com>
887 * mi/mi-interp.c (mi_command_loop): Change signature to match
888 interp_command_loop_ftype.
889 (mi1_command_loop): Remove.
890 (mi2_command_loop): Remove.
891 (mi3_command_loop): Remove.
892 (mi_interpreter_resume): Remove setting of
893 deprecated_command_loop_hook.
894 (_initialize_mi_interp): Set mi_command_loop as the command loop
897 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
899 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
902 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
904 * value.c (allocate_value_contents): Make static.
905 * value.h (allocate_value_contents): Remove prototype.
907 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
909 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
910 of assembling value via allocate_value_lazy and attribute setter.
911 * findvar.c (default_read_var_value): Use value_at_lazy instead of
912 assembling value via allocate_value_lazy and attribute setter.
913 * valops.c (do_search_struct_field): Use value_at_lazy instead of
914 assembling value via allocate_value_lazy and attribute setter.
916 2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
918 * value.c (value_from_contents_and_address): Replace allocate_value and
919 memcpy with value_from_contents.
921 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
923 * python/py-framefilter.c (py_print_frame): Remove usage of
924 PyString_AsString. Use python_string_to_host_string instead.
925 Refactor function to work with a string as a new allocation
926 instead of a pointer.
927 (py_print_frame): Ditto.
928 * python/lib/gdb/frames.py (return_list): Cain iterators together
929 instead of adding them as a list.
930 (_sort_list): Call return_list, and remove duplicate code.
931 (execute_frame_filters): Convert iterator to a list with list().
932 * python/lib/gdb/command/frame_filters.py
933 (SetFrameFilterPriority._set_filter_priority): Convert priority
934 attribute to an integer.
935 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
936 wrapper function __next__.
937 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
940 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
943 * python/py-framefilter.c (apply_frame_filter): Check
944 gdb_python_initialized. Exit if the Python frame-filter code
945 cannot be initialized.
947 2013-08-29 Phil Muldoon <pmuldoon@redhat.com>
950 * top.c (print_gdb_version): Remove erroneous newline after help
953 2013-08-29 Yao Qi <yao@codesourcery.com>
955 * varobj.c (install_dynamic_child): Remove trailing space.
956 Add one blank line after variable declaration.
958 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
961 * corefile.c (get_exec_file): Use exec_filename.
962 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
963 * exec.c (exec_close): Free EXEC_FILENAME.
964 (exec_file_attach): New variable canonical_pathname. Use
965 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
967 * exec.h (exec_filename): New.
968 * inferior.c (print_inferior, inferior_command): Use
969 PSPACE_EXEC_FILENAME.
970 * mi/mi-main.c (print_one_inferior): Likewise.
971 * progspace.c (clone_program_space, print_program_space): Likewise.
972 * progspace.h (struct program_space): New field pspace_exec_filename.
973 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
974 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
976 2013-08-28 Will Newton <will.newton@linaro.org>
978 * common/linux-ptrace.c: Include stdint.h unconditionally.
980 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
983 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
985 2013-08-28 Yao Qi <yao@codesourcery.com>
986 Pedro Alves <palves@redhat.com>
988 * event-top.c (gdb_setup_readline): Call stderr_fileopen
989 instead of stdio_fileopen.
990 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
991 .Call stderr_fileopen instead of stdio_fileopen.
992 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
993 [__MINGW32__] (stderr_file_fputs): New function.
994 (stderr_fileopen): New function.
995 * ui-file.h (stderr_fileopen): Declare.
997 2013-08-27 Doug Evans <dje@google.com>
999 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
1000 (struct dwarf2_per_cu_data): Ditto.
1001 (maybe_queue_comp_unit): Delete forward decl. Add comment.
1002 (process_imported_unit_die): Ditto.
1003 (follow_die_sig_1): Simplify assert.
1005 2013-08-27 Pedro Alves <palves@redhat.com>
1007 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
1008 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
1009 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
1010 windows_xfer_memory directly.
1011 (init_windows_ops): Don't install a deprecated_xfer_memory method.
1013 2013-08-27 Pedro Alves <palves@redhat.com>
1015 * darwin-nat.c (darwin_xfer_memory): Delete.
1016 (_initialize_darwin_inferior): Don't install a
1017 deprecated_xfer_memory method.
1019 2013-08-27 Pedro Alves <pedro@codesourcery.com>
1020 Yao Qi <yao@codesourcery.com>
1022 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
1023 (parse_no_frames_option): Remove.
1024 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
1025 (mi_cmd_stack_list_args): Adjust.
1026 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
1027 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
1028 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
1030 (list_args_or_locals): New parameter 'skip_unavailable'.
1032 * valprint.c (scalar_type_p): Rename to ...
1033 (val_print_scalar_type_p): ... this. Make extern.
1034 (val_print, value_check_printable): Adjust.
1035 * valprint.h (val_print_scalar_type_p): Declare.
1036 * value.c (value_entirely_unavailable): New function.
1037 * value.h (value_entirely_unavailable): Declare.
1039 * NEWS: Mention the new option "--skip-unavailable" to MI
1040 commands '-stack-list-locals', '-stack-list-arguments' and
1041 '-stack-list-variables'.
1043 2013-08-27 Yao Qi <yao@codesourcery.com>
1045 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
1046 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
1048 * mi/mi-getopt.c (mi_getopt): Remove.
1049 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
1051 (mi_getopt): Call mi_getopt_1.
1052 (mi_getopt_silent): New.
1053 * mi/mi-getopt.h (mi_getopt_silent): Declare.
1055 2013-08-26 Doug Evans <dje@google.com>
1058 * dwarf2read.c (dw2_dump): Print some minimal information indicating
1059 .gdb_index is in use.
1060 * symfile.c (reread_symbols): Reset objfile->sf.
1062 * NEWS: Document "mt print objfiles" now takes optional regexp.
1063 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
1064 regexp of objfiles to print.
1065 (_initialize_symmisc): Update doc string for "mt print objfiles".
1067 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
1068 missing debug info checks.
1070 2013-08-26 Raunaq Bathija <raunaq12@in.ibm.com>
1071 Ulrich Weigand <uweigand@de.ibm.com>
1073 * xcoffread.c (arrange_linetable): Add fix to correctly handle
1074 line tables generated by XLC compiled binaries.
1076 2013-08-23 Doug Evans <dje@google.com>
1078 * symmisc.c (dump_symtab): Delete prototype.
1079 (dump_msymbols, dump_objfile): Ditto.
1080 (maintenance_info_symtabs): Mark as dont_repeat.
1081 (_initialize_symmisc): Improve doc string for "mt info symtabs".
1083 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
1084 debugging printf to better location.
1086 2013-08-23 Pedro Alves <palves@redhat.com>
1088 * target.c (target_read_live_memory): Change type of 'ret' local
1091 2013-08-23 Pedro Alves <palves@redhat.com>
1093 * remote.c (remote_write_bytes_aux, remote_write_bytes)
1094 (remote_read_bytes): Change return type to LONGEST, and adjust to
1095 return a target_xfer_error on error.
1096 (remote_xfer_memory): Delete.
1097 (remote_flash_write): Change type of 'ret' local to LONGEST.
1098 (remote_xfer_partial, remote_xfer_partial): Adjust.
1099 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
1101 2013-08-23 Pierre Muller <muller@sourceware.org>
1103 ARI fix: Push # directives to start of line.
1104 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
1106 2013-08-12 Muhammad Waqas <mwaqas@codesourcery.com>
1109 * breakpoint.c (enable_command, disable_command): Iterate over
1110 all specified breakpoint locations.
1112 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
1114 * common/linux-ptrace.c (linux_fork_to_function): Push #
1115 directives to the start of the line.
1116 (linux_check_ptrace_features): Fix warning message to use
1119 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
1121 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
1122 nat/linux-waitpid.h.
1123 (linux-waitpid.o): New object file rule.
1124 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
1125 (current_ptrace_options): Moved from linux-nat.c.
1126 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
1128 (linux_fork_to_function): New function.
1129 (linux_grandchild_function): Likewise.
1130 (linux_child_function): Likewise.
1131 (linux_check_ptrace_features): New function, heavily
1132 based on linux-nat.c:linux_test_for_tracefork.
1133 (linux_enable_event_reporting): New function.
1134 (ptrace_supports_feature): Likewise.
1135 (linux_supports_tracefork): Likewise.
1136 (linux_supports_traceclone): Likewise.
1137 (linux_supports_tracevforkdone): Likewise.
1138 (linux_supports_tracesysgood): Likewise.
1139 * common/linux-ptrace.h (HAS_NOMMU): Moved from
1140 gdbserver/linux-low.c.
1141 (linux_enable_event_reporting): New declaration.
1142 (linux_supports_tracefork): Likewise.
1143 (linux_supports_traceclone): Likewise.
1144 (linux_supports_tracevforkdone): Likewise.
1145 (linux_supports_tracesysgood): Likewise.
1146 * config.in (PTRACE_TYPE_ARG4): Regenerate.
1147 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
1148 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1149 * config/arm/linux.mh (NATDEPFILES): Likewise.
1150 * config/i386/linux.mh (NATDEPFILES): Likewise.
1151 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1152 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1153 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1154 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1155 * config/mips/linux.mh (NATDEPFILES): Likewise.
1156 * config/pa/linux.mh (NATDEPFILES): Likewise..
1157 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
1158 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1159 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1160 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1161 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1162 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1163 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1164 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
1165 ptrace's 4th argument's types.
1166 Check the type of PTRACE_TYPE_ARG4.
1167 * configure: Regenerate.
1168 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
1169 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
1170 (linux_supports_tracefork_flag): Remove.
1171 (linux_supports_tracesysgood_flag): Likewise.
1172 (linux_supports_tracevforkdone_flag): Likewise.
1173 (current_ptrace_options): Moved to
1174 common/linux-ptrace.c.
1175 (linux_tracefork_child): Remove.
1176 (my_waitpid): Remove.
1177 (linux_test_for_tracefork): Renamed to
1178 linux_check_ptrace_features and moved to common/linux-ptrace.c.
1179 (linux_test_for_tracesysgood): Remove.
1180 (linux_supports_tracesysgood): Remove.
1181 (linux_supports_tracefork): Remove.
1182 (linux_supports_tracevforkdone): Remove.
1183 (linux_enable_tracesysgood): Remove.
1184 (linux_enable_event_reporting): Remove.
1185 (linux_init_ptrace): New function.
1186 (linux_child_post_attach): Call linux_init_ptrace.
1187 (linux_child_post_startup_inferior): Call linux_init_ptrace.
1188 (linux_child_follow_fork): Call linux_supports_tracefork
1189 and linux_supports_tracevforkdone.
1190 (linux_child_insert_fork_catchpoint): Call
1191 linux_supports_tracefork.
1192 (linux_child_insert_vfork_catchpoint): Likewise.
1193 (linux_child_set_syscall_catchpoint): Call
1194 linux_supports_tracesysgood.
1195 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
1196 * nat/linux-nat.h: New file.
1197 * nat/linux-waitpid.c: New file.
1198 * nat/linux-waitpid.h: New file.
1200 2013-08-22 Samuel Bronson <naesten@gmail.com>
1202 ARM Linux support for `catch syscall'.
1203 * syscalls/arm-linux.py: New file.
1204 * syscalls/arm-linux.xml: Likewise.
1205 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
1206 (arm_linux_init_abi): Register the new function and syscall xml file.
1207 * data-directory/Makefile.in: Install the new syscall xml file.
1208 * NEWS: Brag about this.
1210 2013-08-22 Pedro Alves <palves@redhat.com>
1213 * corefile.c (target_xfer_memory_error): New function.
1214 (memory_error): Defer EIO to target_memory_error.
1215 (read_memory): Use target_xfer_partial, and handle finer-grained
1217 * target.c (target_xfer_error_to_string): New function.
1218 (memory_xfer_partial_1): If memory is known to be
1219 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
1220 (target_xfer_partial): Make extern.
1221 * target.h (enum target_xfer_error): New enum.
1222 (target_xfer_error_to_string): Declare function.
1223 (target_xfer_partial): Declare function.
1224 (struct target_ops) <xfer_partial>: Adjust describing comment.
1226 2013-08-22 Alan Modra <amodra@gmail.com>
1228 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
1229 * configure.tgt: Likewise as targets.
1231 2013-08-20 Doug Evans <dje@google.com>
1233 * buildsym.c (subfile_stack): Move here from buildsym.h.
1234 (pending_macros): Ditto.
1235 (get_macro_table): New function.
1236 (buildsym_init): Initialize subfile_stack.
1237 * coffread.c (type_vector,type_vector_length): Moved here from
1239 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1240 (coff_symtab_read): Use it.
1241 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
1242 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
1243 with call to get_macro_table.
1244 * stabsread.c (type_vector,type_vector_length): Moved here from
1246 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
1247 * buildsym.h (get_macro_table): Declare.
1249 2013-08-20 Tom Tromey <tromey@redhat.com>
1251 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
1253 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
1255 2013-08-20 Doug Evans <dje@google.com>
1257 * blockframe.c: Remove #include "psymtab.h".
1258 * cp-support.c: Ditto.
1262 2013-08-20 Tom Tromey <tromey@redhat.com>
1265 * exceptions.h (return_mask): Now an enum.
1266 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
1269 2013-08-20 Tom Tromey <tromey@redhat.com>
1271 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1273 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
1274 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
1275 * jit.c (jit_object_close_impl): Update.
1276 * jv-lang.c (get_dynamics_objfile): Update.
1277 * linespec.c (add_minsym): Use get_dynamics_objfile.
1278 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
1279 (allocate_objfile): Don't initialize 'gdbarch' field.
1280 (get_objfile_arch): Update.
1281 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
1283 (struct objfile) <gdbarch>: ... here. Remove.
1284 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
1286 * symfile.c (init_entry_point_info): Use get_objfile_arch.
1288 2013-08-20 Alan Modra <amodra@gmail.com>
1290 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
1291 for IBM long double nan and inf.
1292 (floatformat_is_negative, floatformat_classify,
1293 floatformat_mantissa): Similarly.
1294 (floatformat_ieee_single, floatformat_ieee_double,
1295 floatformat_ieee_quad, floatformat_arm_ext,
1296 floatformat_ia64_spill): Delete unused vars.
1297 (_initialize_doublest): Delete unused function.
1298 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
1299 little-endian variants of floatformat_ibm_long_double.
1301 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
1303 * Makefile.in (SFILES): Remove common/target-common.c and
1304 add target/waitstatus.c.
1305 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
1306 target/resume.h, target/wait.h and target/waitstatus.h.
1307 (COMMON_OBS): Remove target-common.o and add
1309 (target-common.o): Remove.
1310 (waitstatus.o): New target object file.
1311 * common/target-common.c: Move contents to
1312 target/waitstatus.c and remove.
1313 * common/target-common.h: Move contents to other files and
1315 (enum resume_kind: Move to target/resume.h.
1316 (TARGET_WNOHANG): Move to target/wait.h.
1317 (enum target_waitkind): Move to target/waitstatus.h.
1318 (struct target_waitstatus): Likewise.
1319 * target.h: Do not include target-common.h and
1320 include target/resume.h, target/wait.h and
1321 target/waitstatus.h.
1322 * target/resume.h: New file.
1323 * target/wait.h: New file.
1324 * target/waitstatus.h: New file.
1325 * target/waitstatus.c: New file.
1327 2013-08-19 Pedro Alves <palves@redhat.com>
1329 * linux-nat.c (linux_test_for_tracefork)
1330 (linux_test_for_tracesysgood, linux_child_follow_fork)
1331 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
1332 (linux_nat_wait_1): Extend comment.
1333 (linux_async_pipe): Add comment.
1335 2013-08-15 Kevin Buettner <kevinb@redhat.com>
1337 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
1338 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
1339 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
1340 Update to account for fact that PC is now a pseudo-register.
1341 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
1342 cases for RL78_PC_REGNUM.
1344 2013-08-15 Muhammad Bilal <mbilal@codesourcery.com>
1347 * top.c (quit_force): Skip writing history file
1348 if input is not from terminal.
1350 2013-08-14 Tom Tromey <tromey@redhat.com>
1352 * remote.c (struct remote_state) <echo_nextthread, nextthread,
1353 resultthreadlist>: New fields.
1354 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
1355 (remote_get_threadlist, remote_threadlist_iterator): Use
1356 new fields. Remove static variables.
1358 2013-08-14 Tom Tromey <tromey@redhat.com>
1360 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
1361 remote_watch_data_address>: New fields.
1362 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
1363 (process_stop_reply, remote_wait_as)
1364 (remote_check_watch_resources, remote_stopped_data_address): Update.
1366 2013-08-14 Tom Tromey <tromey@redhat.com>
1368 * remote.c (struct remote_state) <async_client_callback,
1369 async_client_context>: New fields.
1370 (async_client_callback, async_client_context): Remove.
1371 (remote_async_serial_handler, remote_async): Update.
1373 2013-08-14 Tom Tromey <tromey@redhat.com>
1375 * remote.c (sizeof_pkt): Remove.
1376 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
1378 2013-08-14 Tom Tromey <tromey@redhat.com>
1380 * remote.c (struct remote_state) <use_threadinfo_query,
1381 use_threadextra_query>: New fields.
1382 (remote_threads_info, remote_threads_extra_info)
1383 (remote_open_1): Update.
1385 2013-08-14 Tom Tromey <tromey@redhat.com>
1387 * remote.c (struct remote_state) <finished_object,
1388 finished_annex, finished_offset>: New fields.
1389 (remote_read_qxfer): Use remote_state fields; remove static
1392 2013-08-14 Tom Tromey <tromey@redhat.com>
1394 * remote.c (struct remote_state) <last_sent_step>:
1396 (last_sent_step): Remove.
1397 (remote_resume, remote_wait_as): Update.
1399 2013-08-14 Tom Tromey <tromey@redhat.com>
1401 * remote.c (struct remote_state) <last_sent_signal>:
1403 (last_sent_signal): Remove.
1404 (new_remote_state, remote_resume, remote_wait_as): Update.
1406 2013-08-14 Tom Tromey <tromey@redhat.com>
1408 * remote.c (struct remote_state) <last_program_signals_packet>:
1410 (last_program_signals_packet): Remove.
1411 (remote_program_signals, remote_open_1): Update.
1413 2013-08-14 Tom Tromey <tromey@redhat.com>
1415 * remote.c (struct remote_state) <last_pass_packet>:
1417 (last_pass_packet): Remove.
1418 (remote_pass_signals, remote_open_1): Update.
1420 2013-08-14 Tom Tromey <tromey@redhat.com>
1422 * remote.c (struct remote_state) <remote_traceframe_number>:
1424 (remote_traceframe_number): Remove.
1425 (new_remote_state, remote_open_1, set_remote_traceframe)
1426 (remote_trace_find): Update.
1428 2013-08-14 Tom Tromey <tromey@redhat.com>
1430 * remote.c (struct remote_state) <general_thread, continue_thread>:
1432 (general_thread, continue_thread): Remove.
1433 (record_currthread, set_thread, set_general_process)
1434 (remote_open_1, extended_remote_attach_1, remote_wait_as)
1435 (extended_remote_mourn_1): Update.
1437 2013-08-14 Tom Tromey <tromey@redhat.com>
1439 * remote.c (struct remote_state) <remote_desc>: New field.
1440 (remote_desc): Remove.
1441 (remote_threads_info, remote_threads_extra_info, remote_close)
1442 (send_interrupt_sequence, remote_start_remote, remote_open_1)
1443 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
1444 (remote_hostio_send_command, remote_file_put, remote_file_get)
1445 (remote_file_delete, remote_can_async_p, remote_is_async_p)
1446 (remote_async, remote_new_objfile, set_range_stepping): Update.
1448 2013-08-14 Tom Tromey <tromey@redhat.com>
1450 * remote.c (remote_state): Now a pointer.
1451 (get_remote_state_raw): Update.
1452 (new_remote_state): New function.
1453 (_initialize_remote): Use new_remote_state.
1455 2013-08-14 Tom Tromey <tromey@redhat.com>
1457 * remote.c (remote_protocol_features): Now const.
1459 2013-08-14 Tom Tromey <tromey@redhat.com>
1461 * remote.c (crc32_table, crc32): Remove.
1462 (remote_verify_memory): Use xcrc32.
1464 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
1466 * value.h (create_internalvar_type_lazy): Adjust prototype
1469 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
1471 * common/format.c (parse_format_string): Don't allow '#' flag for
1472 pointer arguments in format string.
1474 2013-08-13 Pierre Muller <muller@sourceware.org>
1476 * utils.c (init_page_info): Only call tgetnum function
1477 if rl_get_screen_size did not return useful values.
1479 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
1481 PR breakpoints/15117
1482 * linespec.c (linespec_parse_basic): Check for convenience
1483 variable or history value while parsing.
1485 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
1487 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
1489 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
1490 different signals between the generic Linux kernel implementation
1492 (avr_linux_gdb_signal_from_target): Delete.
1493 (avr_linux_gdb_signal_to_target): Delete.
1494 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
1496 2013-08-09 Doug Evans <dje@google.com>
1498 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
1501 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
1503 * linux-tdep.c: Define enum with generic signal numbers.
1504 (linux_gdb_signal_from_target): New function.
1505 (linux_gdb_signal_to_target): Likewise.
1506 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1507 methods to the functions above.
1508 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
1509 (linux_gdb_signal_to_target): Likewise.
1510 * alpha-linux-tdep.c: Define new enum with signals different
1511 from generic Linux kernel.
1512 (alpha_linux_gdb_signal_from_target): New function.
1513 (alpha_linux_gdb_signal_to_target): Likewise.
1514 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1515 with the functions mentioned above.
1516 * avr-tdep.c: Define enum with differences between Linux kernel
1518 (avr_linux_gdb_signal_from_target): New function.
1519 (avr_linux_gdb_signal_to_target): Likewise.
1520 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
1521 the functions mentioned above.
1522 * sparc-linux-tdep.c: Define enum with differences between SPARC
1523 and generic Linux kernel signal numbers.
1524 (sparc32_linux_gdb_signal_from_target): New function.
1525 (sparc32_linux_gdb_signal_to_target): Likewise.
1526 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1527 to the functions defined above.
1528 * xtensa-linux-tdep.c: Define enum with differences between
1529 Xtensa and Linux kernel generic signals.
1530 (xtensa_linux_gdb_signal_from_target): New function.
1531 (xtensa_linux_gdb_signal_to_target): Likewise.
1532 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
1533 to the functions defined above.
1534 * mips-linux-tdep.c: Define enum with differences between
1535 signals in MIPS and Linux kernel generic ones.
1536 (mips_gdb_signal_to_target): New function.
1537 (mips_gdb_signal_from_target): Redefine to use new enum, handle
1538 only different signals from the Linux kernel generic.
1539 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
1540 the functions defined above.
1541 * mips-linux-tdep.h (enum mips_signals): Remove.
1543 2013-08-09 Pedro Alves <palves@redhat.com>
1545 * avr-tdep.c (XMALLOC): Delete macro.
1546 * cli/cli-dump.c (XMALLOC): Delete macro.
1548 2013-08-09 Pedro Alves <palves@redhat.com>
1550 * cli/cli-dump.c: Don't include cli/cli-dump.h.
1551 (scan_expression_with_cleanup, scan_filename_with_cleanup)
1552 (fopen_with_cleanup, add_dump_command): Make static.
1553 * cli/cli-dump.h: Delete file.
1554 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
1557 2013-08-09 Pedro Alves <palves@redhat.com>
1559 * tracepoint.c (tfile_start): Show tilde-expanded filename in
1562 2013-08-09 Pedro Alves <palves@redhat.com>
1564 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
1567 2013-08-09 Pedro Alves <palves@redhat.com>
1569 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
1570 (gcore_command): Use tilde_expand here, and when showing the
1571 filename to the user, show the expanded version.
1573 2013-08-09 Yao Qi <yao@codesourcery.com>
1575 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
1578 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
1580 * gcore.c (create_gcore_bfd): Use tilde_expand.
1582 2013-08-08 Yao Qi <yao@codesourcery.com>
1584 * frame.h (read_frame_local): Declare.
1585 * mi/mi-cmd-stack.c (list_args_or_locals): Call
1587 * stack.c (read_frame_local): New.
1589 2013-08-08 Yao Qi <yao@codesourcery.com>
1591 * mi/mi-cmd-stack.c: Update comments to function
1592 list_args_or_locals.
1594 2013-08-07 Tom Tromey <tromey@redhat.com>
1597 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
1598 (process_psymtab_comp_unit_reader): Use it.
1599 (process_psymtab_comp_unit): Update. Add "pretend_language"
1601 (dwarf2_build_psymtabs_hard): Update.
1602 (scan_partial_symbols): Pass CU's language to
1603 process_psymtab_comp_unit.
1605 2013-08-07 Tom Tromey <tromey@redhat.com>
1607 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
1608 (dwarf2_gdb_index_functions): Update.
1609 * psymtab.c (find_symbol_file_from_partial): Remove.
1610 (psym_functions): Update.
1611 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1614 2013-08-07 Tom Tromey <tromey@redhat.com>
1616 * symfile.c (set_initial_language): Look up "main" symbol
1617 and use its language.
1618 * symtab.c (find_main_filename): Remove.
1619 * symtab.h (find_main_filename): Remove.
1621 2013-08-07 Tom Tromey <tromey@redhat.com>
1623 * dwarf2read.c (recursively_compute_inclusions): Add
1624 "immediate_parent" argument. Set symtab's "user" field
1626 (compute_symtab_includes): Update.
1628 2013-08-07 Tom Tromey <tromey@redhat.com>
1630 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
1631 when adding label symbols.
1633 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1634 Ulrich Weigand <uweigand@de.ibm.com>
1636 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
1637 * configure.host (powerpc64-*-aix*): Likewise.
1639 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1640 Ulrich Weigand <uweigand@de.ibm.com>
1642 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
1644 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
1645 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
1646 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
1647 * configure.ac: Check for ptrace64.
1648 * configure, config.in: Regenerate.
1650 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
1651 Ulrich Weigand <uweigand@de.ibm.com>
1653 * aixthread.c: Call ptrace64 instead of ptracex if defined.
1654 Call ptrace64 instead of ptrace if defined.
1655 Add macro addr_ptr to take care of ptrace address argument.
1656 (pdc_read_regs): Likewise.
1657 (pdc_write_regs): Likewise.
1658 (aix_thread_resume): Likewise.
1659 (fetch_regs_kernel_thread): Likewise.
1660 (store_regs_kernel_thread): Likewise.
1662 2013-08-07 Anton Blanchard <anton@samba.org>
1664 * MAINTAINERS: Add myself to Write After Approval.
1666 2013-08-05 Tom Tromey <tromey@redhat.com>
1668 * aix-thread.c (_initialize_aix_thread): Use
1669 complete_target_initialization.
1670 * bsd-uthread.c (_initialize_bsd_uthread): Use
1671 complete_target_initialization.
1672 * dec-thread.c (_initialize_dec_thread): Use
1673 complete_target_initialization.
1674 * ravenscar-thread.c (_initialize_ravenscar): Use
1675 complete_target_initialization.
1676 * sol-thread.c (_initialize_sol_thread): Use
1677 complete_target_initialization.
1678 * spu-multiarch.c (_initialize_spu_multiarch): Use
1679 complete_target_initialization.
1681 2013-08-05 Tom Tromey <tromey@redhat.com>
1683 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
1684 * ada-lang.c (ada_lookup_simple_minsym): Return
1685 bound_minimal_symbol.
1686 * ada-lang.h (ada_lookup_simple_minsym): Update.
1687 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
1688 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
1689 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
1690 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
1691 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
1692 * minsyms.c (msymbol_objfile): Remove.
1693 (lookup_minimal_symbol_internal): New function, from
1694 lookup_minimal_symbol.
1695 (lookup_minimal_symbol): Rewrite using
1696 lookup_minimal_symbol_internal.
1697 (lookup_bound_minimal_symbol): New function.
1698 * minsyms.h (msymbol_objfile): Remove.
1699 (lookup_bound_minimal_symbol): Declare.
1700 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
1701 * parse.c (write_exp_msymbol): Change parameter to a
1702 bound_minimal_symbol.
1703 (write_dollar_variable): Use lookup_bound_minimal_symbol.
1704 * parser-defs.h (write_exp_msymbol): Update.
1705 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
1706 * symfile.c (simple_read_overlay_table): Use
1707 lookup_bound_minimal_symbol.
1708 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
1709 (search_symbols): Likewise.
1710 (print_msymbol_info): Take a bound_minimal_symbol argument.
1711 (symtab_symbol_info, rbreak_command): Update.
1712 * symtab.h (struct symbol_search) <msymbol>: Change type
1713 to bound_minimal_symbol.
1714 * valops.c (find_function_in_inferior): Use
1715 lookup_bound_minimal_symbol.
1716 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
1718 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1721 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
1723 (async_cleanup_sigint_signal_handler): ... this.
1724 (initialize_sigint_signal_handler): Remove declaration.
1725 (handle_remote_sigint): Rename the declaration to ...
1726 (async_handle_remote_sigint): ... this.
1727 (handle_remote_sigint_twice): Rename the declaration to ...
1728 (async_handle_remote_sigint_twice): ... this.
1729 (async_remote_interrupt, async_remote_interrupt_twice)
1730 (remote_interrupt): Remove the declarations.
1731 (remote_interrupt_twice): Rename the declaration ...
1732 (sync_remote_interrupt_twice): ... this.
1733 (sigint_remote_twice_token): Rename the variable to ...
1734 (async_sigint_remote_twice_token): ... this.
1735 (sigint_remote_token): Rename the variable to ...
1736 (async_sigint_remote_token): ... this.
1737 (initialize_sigint_signal_handler): Rename the function to ...
1738 (async_initialize_sigint_signal_handler): ... this. Update the name
1740 (handle_remote_sigint): Rename the function to ...
1741 (async_handle_remote_sigint): ... this. Update the names inside.
1742 (handle_remote_sigint_twice): Rename the function to ...
1743 (async_handle_remote_sigint_twice): ... this. Update the names inside.
1744 (cleanup_sigint_signal_handler): Rename the function to ...
1745 (async_cleanup_sigint_signal_handler): ... this.
1746 (remote_interrupt): Rename the function to ...
1747 (sync_remote_interrupt): this. Update the names inside.
1748 (remote_interrupt_twice): Rename the function to ...
1749 (sync_remote_interrupt_twice): this. Update the names inside.
1750 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
1751 (_initialize_remote): Update the names inside.
1753 2013-08-02 Tom Tromey <tromey@redhat.com>
1756 * breakpoint.c (update_watchpoint, watchpoint_check)
1757 (watch_command_1): Update.
1758 * eval.c (fetch_subexp_value): Add "preserve_errors"
1760 * ppc-linux-nat.c (check_condition): Update.
1761 * value.h (fetch_subexp_value): Update.
1763 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
1765 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
1768 2013-08-01 Doug Evans <dje@google.com>
1771 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
1772 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
1773 Add assert of sig_entry->dwo_unit == NULL.
1774 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
1775 had already been read.
1776 (read_signatured_type): Set per_cu.tu_read.
1779 * valops.c (value_struct_elt): Add missing call to check_typedef.
1780 (value_find_oload_method_list): Ditto.
1782 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
1783 effectively, struct symbol_search **.
1784 (make_cleanup_free_search_symbols): Change arg to struct
1785 symbol_search **. All callers updated.
1786 (compare_search_syms): Compare symtab file name and block as well.
1787 (search_symbols_equal): New function.
1788 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
1789 New args new_head, new_tail. Result is now void. Remove dups after
1790 sorting the symbols.
1791 (search_symbols): Sort all found symbols once, after all have been
1792 found, and remove duplicates. Simplify cleanup tracking of result.
1793 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
1795 Further workarounds for binutils/15021.
1796 * dwarf2read.c (recursively_compute_inclusions): Change type of result
1797 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
1798 Watch for duplicate symtabs coming from type units.
1799 (compute_symtab_includes): Update call to
1800 recursively_compute_inclusions. Build vector of included symtabs
1802 * symtab.h (symtab_ptr): New typedef.
1803 (DEF_VEC_P (symtab_ptr)): New VEC type.
1804 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
1807 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
1809 * cli/cli-script.c (script_from_file): Remove use of
1811 * main.c (captured_main): Remove use of error_pre_print and
1813 * utils.c (error_pre_print, quit_pre_print): Remove.
1814 * utils.h (error_pre_print, quit_pre_print): Likewise.
1816 2013-08-01 Yao Qi <yao@codesourcery.com>
1818 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
1820 (mi_cmd_stack_list_variables): Likewise.
1822 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1824 * exceptions.c (deprecated_throw_reason): Remove.
1825 * exceptions.h (deprecated_throw_reason): Remove.
1827 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1829 * remote-mips.c (mips_error): Replace use of
1830 deprecated_throw_reason with throw_verror. Use the error message
1831 passed to mips_error as the error message for throw_verror.
1833 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1835 * monitor.c (monitor_interrupt_query): Replace use of
1836 deprecated_throw_reason with quit.
1837 * nto-procfs.c (interrupt_query): Likewise.
1838 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
1839 * remote-mips.c (mips_kill): Likewise.
1840 * remote.c (interrupt_query): Likewise.
1842 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
1844 * utils.c (internal_verror): Replace use of deprecated_throw_reason
1847 2013-07-31 Pedro Alves <pedro@codesourcery.com>
1848 Yao Qi <yao@codesourcery.com>
1850 * tracepoint.c (trace_dump_command): Select the current frame.
1852 2013-07-30 Doug Evans <dje@google.com>
1854 * dwarf2read.c (process_queue): Add type signature to debug output.
1856 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
1858 * value.c (value_fetch_lazy): Mark optimized out values as such
1859 rather than raising an error.
1861 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
1863 * value.c (value_fetch_lazy): Ensure parent value is not lazy
1864 before checking which bits of the parent, not the child, value are
1867 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
1870 * top.c: Include "filenames.h".
1871 (set_history_filename): New function.
1872 (init_main): Install it as set hook of the "set history filename"
1875 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1877 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
1878 attribute parameter.
1879 (dwarf2_const_value_data): Constify struct attribute parameter.
1880 (dwarf2_const_value): Constify struct attribute parameter.
1881 (dwarf2_const_value_attr): Constify struct attribute parameter.
1882 (lookup_die_type): Constify struct attribute parameter.
1883 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
1884 (follow_die_ref_or_sig): Constify struct attribute parameter.
1885 (follow_die_ref): Constify struct attribute parameter.
1886 (follow_die_sig): Constify struct attribute parameter.
1887 (get_DW_AT_signature_type): Constify struct attribute parameter.
1888 (get_type_unit_group): Constify struct attribute parameter.
1889 (fill_in_loclist_baton): Constify struct attribute parameter.
1890 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
1891 (type_unit_group): Constify struct attribute parameter.
1893 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1895 * dwarf2read.c (attr_form_is_block): Make argument const.
1896 (attr_form_is_section_offset): Make argument const.
1897 (attr_form_is_constant): Make argument const.
1898 (attr_form_is_ref): Make argument const.
1900 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
1902 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
1904 (attr_form_is_ref): Moved below attr_form_is_constant.
1906 2013-07-29 Doug Evans <dje@google.com>
1908 * main.c (captured_command_loop): Tweak comment.
1910 * target.c (target_async_permitted_1): Fix comment.
1912 * symtab.c (iterate_over_some_symtabs): Add comment.
1914 * symtab.c (iterate_over_some_symtabs): Fix indentation.
1916 2013-07-27 Yao Qi <yao@codesourcery.com>
1918 * NEWS: Mention that GDBserver now supports hardware
1919 watchpoints on the MIPS GNU/Linux target.
1921 2013-07-27 Yao Qi <yao@codesourcery.com>
1923 * Makefile.in (HFILES_NO_SRCDIR): Add
1924 common/mips-linux-watch.h.
1925 (mips-linux-watch.o): New rule.
1926 * common/mips-linux-watch.c: New.
1927 * common/mips-linux-watch.h: New.
1928 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
1929 * mips-linux-nat.c: Include mips-linux-watch.h.
1930 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
1931 to common/mips-linux-watch.h.
1932 (MAX_DEBUG_REGISTER): Likewise.
1933 (enum pt_watch_style): Likewise.
1934 (struct mips32_watch_regs): Likewise.
1935 (struct mips64_watch_regs): Likewise.
1936 (struct pt_watch_regs): Likewise.
1937 (struct mips_watchpoint): Likewise.
1938 (mips_linux_watch_get_irw_mask): Move to
1939 common/mips-linux-watch.c.
1940 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
1941 (mips_linux_watch_get_watchlo): Likewise.
1942 (mips_linux_watch_set_watchlo): Likewise.
1943 (mips_linux_watch_get_watchhi): Likewise.
1944 (mips_linux_watch_set_watchhi): Likewise.
1945 (mips_linux_read_watch_registers): Likewise.
1946 (mips_linux_watch_type_to_irw): Likewise.
1947 (mips_linux_stopped_data_address, fill_mask): Likewise.
1948 (mips_linux_watch_try_one_watch): Likewise.
1949 (mips_linux_watch_populate_regs): Likewise.
1951 2013-07-27 Yao Qi <yao@codesourcery.com>
1953 * mips-linux-nat.c (get_irw_mask): Rename to ...
1954 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
1955 'set' to 'n'. Update function comment. All callers changed.
1956 (get_reg_mask): Rename parameter 'set' to 'n'. Update
1957 function comment. All callers changed.
1958 (get_num_valid): Rename to ...
1959 (mips_linux_watch_get_num_valid): ... this. Rename parameter
1960 'set' to 'n'. Update function comment. All callers changed.
1961 (get_watchlo): Rename to ...
1962 (mips_linux_watch_get_watchlo): ... this. Rename parameter
1963 'set' to 'n'. Update function comment. All callers changed.
1964 (set_watchlo): Rename to ...
1965 (mips_linux_watch_set_watchlo): ... this. Rename parameter
1966 'set' to 'n'. Update function comment. All callers changed.
1967 (get_watchhi): Rename to ...
1968 (mips_linux_watch_get_watchhi): ... this. Update function
1969 comment. All callers changed.
1970 (set_watchhi): Rename to ...
1971 (mips_linux_watch_set_watchhi): ... this. Update function
1972 comment. All callers changed.
1973 (mips_linux_read_watch_registers): Update function comment.
1974 Add new parameters 'lwpid', 'watch_readback', and
1975 'watch_readback_valid'. Update.
1976 (type_to_irw): Rename to ...
1977 (mips_linux_watch_type_to_irw): ... this. Update function
1978 comment. All callers changed.
1979 (fill_mask): Update function comment.
1980 (try_one_watch): Rename to ...
1981 (mips_linux_watch_try_one_watch): ... this. Change the type
1982 of parameter 'irw' from 'unsigned' to 'uint32_t'.
1983 (populate_regs_from_watches): Rename to ...
1984 (mips_linux_watch_populate_regs): ... this. Add parameter
1985 'current_watches'. All callers changed.
1987 2013-07-27 Yao Qi <yao@codesourcery.com>
1989 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
1991 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
1992 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
1993 (struct pt_watch_regs): Likewise.
1994 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
1995 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
1996 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
1997 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
1998 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
2000 2013-07-27 Yao Qi <yao@codesourcery.com>
2002 * breakpoint.h: Include break-common.h.
2003 (enum target_hw_bp_type): Move to ...
2004 * common/break-common.h: ... here. New.
2006 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2008 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
2009 process group regardless of having tty on stdin.
2011 2013-07-25 Doug Evans <dje@google.com>
2013 * linux-fork.h (detach_fork): Delete.
2015 2013-07-25 Tom Tromey <tromey@redhat.com>
2017 PR remote/15256, PR remote/15266:
2018 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
2019 * monitor.c (monitor_detach): Use unpush_target.
2020 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
2021 * remote-mips.c (mips_detach): Use unpush_target. Don't
2023 * remote-sim.c (gdbsim_detach): Use unpush_target.
2024 * target.c (pop_target): Remove.
2025 (pop_all_targets_above): Don't call target_close.
2026 (target_close): Assert that the target is unpushed.
2027 * target.h (pop_target): Don't declare.
2028 * tracepoint.c (tfile_open): Use unpush_target.
2030 2013-07-25 Tom Tromey <tromey@redhat.com>
2032 * linux-thread-db.c (init_thread_db_ops): Call
2033 complete_target_initialization.
2034 (_initialize_thread_db): Don't call add_target.
2035 * target.c (complete_target_initialization): New function.
2036 (add_target_with_completer): Call it.
2037 * target.h (complete_target_initialization): Declare.
2039 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2041 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
2042 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
2043 (HPPANBSD_SIZEOF_GREGS): New define.
2044 (hppaobsd_supply_gregset): Handle additional registers.
2045 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
2046 we provide more registers now.
2047 (hppabsd_supply_gregset): Supply additional registers.
2048 (hppabsd_collect_gregset): Collect additional registers.
2050 2013-07-25 Mark Kettenis <kettenis@gnu.org>
2052 * hppabsd-tdep.c: Include "dwarf2-frame.h".
2053 (hppabsd_dwarf2_frame_init_reg): New function.
2054 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
2056 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
2058 * mi/mi-main.c (output_register): Make MI 'r' format use standard
2059 'z' format code. Remove error for optimized out values, standard
2060 code will handle these fine.
2062 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
2064 * NEWS: Mention new 'z' formatter.
2065 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
2066 (_initialize_printcmd): Mention 'z' formatter in help text of the
2069 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
2071 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
2074 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
2076 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
2077 interface can evaluate arguments. Fallback to the old mode if it
2079 (create_exception_master_breakpoint): Likewise.
2080 * elfread.c (elf_can_evaluate_probe_arguments): New function.
2081 (struct sym_probe_fns elf_probe_fns): Export function above to the
2083 * probe.c (can_evaluate_probe_arguments): New function.
2084 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
2086 (can_evaluate_probe_arguments): New function prototype.
2087 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
2088 probe interface can evaluate arguments. Fallback to the old mode
2090 * stap-probe.c (stap_get_probe_argument_count): Check if probe
2091 interface can evaluate arguments. Warning the user if it cannot.
2092 (stap_can_evaluate_probe_arguments): New function.
2093 (struct probe_ops stap_probe_ops): Export function above to the
2095 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
2096 New function pointer.
2098 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
2100 * Makefile.in (SFILES): Add common/target-common.c.
2101 Add common/target-common.h to headers.
2102 (COMMON_OBS): Add target-common.o.
2103 (target-common.o): New target.
2104 * linux-nat.h (resume_kind): Move to common/target-common.h.
2105 * target.c (target_waitstatus_to_string): Move to
2106 common/target-common.c.
2107 * target.h: Include target-common.h.
2108 (target_waitkind): Move to common/target-common.h.
2109 (target_waitstatus): Likewise.
2110 (TARGET_WNOHANG): Likewise.
2111 * common/target-common.c: New file.
2112 * common/target-common.h: New file.
2114 2013-07-24 Doug Evans <dje@google.com>
2116 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
2119 2013-07-23 Yao Qi <yao@codesourcery.com>
2121 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
2122 parameter 'gdbarch'.
2123 (i386_stack_tramp_frame_sniffer): Caller update.
2124 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
2125 parameter 'gdbarch' and 'target'.
2126 (i386_linux_core_read_description): Caller update.
2127 * amd64-linux-tdep.c (amd64_linux_core_read_description):
2129 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
2132 2013-07-23 Tom Tromey <tromey@redhat.com>
2134 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
2137 2013-07-22 Doug Evans <dje@google.com>
2139 * exec.h (remove_target_sections): Delete arg abfd.
2140 * exec.c (exec_close): Update call to remove_target_sections.
2141 (remove_target_sections): Delete arg abfd.
2142 * solib.c (update_solib_list): Ditto.
2143 (reload_shared_libraries_1): Ditto.
2144 (clear_solib): Ditto, and unconditionally call remove_target_sections.
2145 * target.h (struct target_section): Rename key to owner.
2148 2013-07-22 Tom Tromey <tromey@redhat.com>
2150 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
2152 2013-07-22 Tom Tromey <tromey@redhat.com>
2154 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
2155 Simplify cleanup handling.
2157 2013-07-22 Tom Tromey <tromey@redhat.com>
2159 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
2160 on all return paths.
2162 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2164 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
2165 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
2166 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
2168 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
2170 * top.c (print_gdb_version): Add help, apropos description and
2171 url to online documentation.
2173 2013-07-19 Hui Zhu <hui@codesourcery.com>
2176 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
2178 2013-07-19 Yao Qi <yao@codesourcery.com>
2180 * target.c (update_current_target): Change the default action
2181 of 'to_traceframe_info' from tcomplain to return_zero.
2182 * target.h (struct target_ops) <to_traceframe_info>: Add more
2184 * valops.c (read_value_memory): Call
2185 traceframe_available_memory unconditionally.
2187 2013-07-18 Yao Qi <yao@codesourcery.com>
2189 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
2190 if the name is prefixed by "__imp_" or "_imp_", look for minimal
2191 symbol without prefix. If found, set its type to
2192 'mst_solib_trampoline'.
2194 2013-07-17 Doug Evans <dje@google.com>
2196 * NEWS: Mention "set print raw frame-arguments".
2197 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
2198 * stack.c (print_raw_frame_arguments): New static global.
2199 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
2200 (_initialize_stack): New command "set/show print raw frame-arguments".
2201 * valprint.c (setprintrawlist, showprintrawlist): New globals.
2202 (set_print_raw, show_print_raw): New functions.
2203 (_initialize_valprint): New prefix command "set/show print raw".
2204 * valprint.h (value_print_options): Improve comments.
2206 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
2207 of all *list variables.
2209 * gdbcmd.h (togglelist): Delete.
2210 * cli/cli-cmds.c (togglelist): Delete.
2211 (init_cmd_lists): Update.
2212 * cli/cli-cmds.h (togglelist): Delete.
2214 2013-07-17 Tom Tromey <tromey@redhat.com>
2216 * dwarf2read.c (dwarf2_per_objfile_free): Clear
2219 2013-07-16 Doug Evans <dje@google.com>
2221 * nto-tdep.c (nto_relocate_section_addresses): Update,
2222 target_section.bfd deleted.
2223 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
2224 * s390-tdep.c (s390_load): Ditto.
2225 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
2227 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
2229 * common/format.c (parse_format_string): Add checks for NULL
2230 character before calling strchr.
2232 2013-07-16 Doug Evans <dje@google.com>
2234 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
2235 temp_pathname argument.
2236 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
2237 when opening the file fails.
2239 * target.h (struct target_section): Delete member bfd.
2240 All users updated to use the_bfd_section->owner instead.
2241 * exec.c (add_to_section_table): Assert bfd is expected value.
2242 Remove initialization of target_section.bfd.
2243 (remove_target_sections): Update.
2244 (section_table_available_memory): Update.
2245 (section_table_xfer_memory_partial): Update.
2246 (print_section_info): Update.
2247 (exec_set_section_address): Update.
2248 * record-full.c (record_full_core_xfer_partial): Update.
2249 * solib-svr4.c (svr4_relocate_section_addresses): Update.
2250 * solib-target.c (solib_target_relocate_section_addresses): Update.
2251 * symfile.c (build_section_addr_info_from_section_table): Update.
2252 * target.c (memory_xfer_live_readonly_partial): Update.
2253 (memory_xfer_partial_1): Update.
2255 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2257 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
2258 now available for embedded (BookE) and server (BookS) processors,
2259 correct mentions of 'booke' and adjust comments accordingly in order to
2260 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
2261 (have_ptrace_booke_interface): Rename function and variable
2262 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
2263 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
2264 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
2265 'hwdebug_point_cmp'. Update all uses.
2266 (booke_find_thread_points_by_tid): Rename function
2267 'booke_find_thread_points_by_tid' to
2268 'hwdebug_find_thread_points_by_tid'. Update all uses.
2269 (booke_insert_point): Rename function 'booke_insert_point' to
2270 'hwdebug_insert_point'. Update all uses.
2271 (booke_remove_point): Rename function 'booke_remove_point' to
2272 'hwdebug_remove_point'. Update all uses.
2274 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
2276 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
2277 numbers with enum values.
2279 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
2282 * thread.c (thread_apply_all_command): Check for valid threads
2284 (thread_array_cleanup): New struct.
2285 (set_thread_refcount): New function.
2287 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
2289 * infcmd.c (default_print_one_register_info): Reuse function
2292 2013-07-10 Tom Tromey <tromey@redhat.com>
2294 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
2295 (ada-exp.o): New target.
2297 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
2299 * mt-tdep.c (mt_registers_info): Call
2300 get_no_prettyformat_print_options instead of
2301 get_raw_print_options (regression by last patch from Doug
2304 2013-07-09 Pedro Alves <palves@redhat.com>
2306 Checked in by Joel Brobecker <brobecker@adacore.com>.
2307 * ada-lang.c (coerce_unspec_val_to_type): Use
2308 value_optimized_out_const.
2309 * value.c (value_optimized_out_const): New function.
2310 * value.h (value_optimized_out_const): New declaration.
2312 2013-07-09 Doug Evans <dje@google.com>
2314 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
2315 Enum values rename as well. All uses updated.
2316 * valprint.h (value_print_options): Rename member pretty to
2317 pretty format. Rename member prettyprint_arrays to
2318 prettyformat_arrays. Rename member prettyprint_structs to
2319 prettyformat_structs. All uses updated.
2320 (get_no_prettyformat_print_options): Renamed from
2321 get_raw_print_options.
2322 * valprint.c (get_no_prettyformat_print_options): Renamed from
2323 get_raw_print_options. All callers updated.
2324 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
2325 All callers updated.
2326 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
2327 All callers updated.
2328 (_initialize_valprint): Improve help text for "set print pretty" and
2331 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
2333 * value.c (value_bits_valid): Revert previous change, and change
2334 by Pedro on 2013-07-04, due to regressions in
2335 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
2337 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
2338 Pedro Alves <palves@redhat.com>
2340 * value.c (value_bits_valid): If the value is not lval_computed
2341 or has no check validity handler then the answer is the
2342 optimized_out flag, otherwise defer to the handler.
2344 2013-07-06 Eli Zaretskii <eliz@gnu.org>
2346 * top.c (print_gdb_configuration): Explain in output of
2347 --configuration what does "relocatable" mean.
2349 * main.c (print_gdb_help): Regroup options in the --help text.
2350 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
2351 the relevant discussions.
2353 2013-07-06 Yao Qi <yao@codesourcery.com>
2355 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
2356 Remove parameter 'lsal'.
2357 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
2358 to inner block. Caller update.
2359 (base_breakpoint_create_breakpoints_sal): Update.
2360 (bkpt_create_breakpoints_sal): Likewise.
2361 (tracepoint_create_breakpoints_sal): Likewise.
2362 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
2363 element 0 of vector 'canonical->sals'.
2365 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
2367 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
2368 register number instead of the pseudo register one.
2369 (rs6000_dwarf2_reg_to_regnum): Likewise.
2371 2013-07-04 Pedro Alves <palves@redhat.com>
2373 * findvar.c (value_of_register): Use allocate_optimized_out_value
2374 if the register has been optimized out, instead of
2375 set_value_optimized_out.
2376 * frame-unwind.c (frame_unwind_got_optimized): Use
2377 allocate_optimized_out_value.
2379 2013-07-04 Pedro Alves <palves@redhat.com>
2381 * value.c (value_bits_valid): If the value is not lval_computed,
2382 or doesn't have a check_validity hook, assume the value is entirely
2385 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
2387 * stack.c (read_frame_arg): No longer fetch lazy values.
2388 * value.c (value_optimized_out): If the value is not already
2389 marked optimized out, and is lazy then fetch it.
2390 (value_primitive_field): Move optimized out check to later in the
2391 function, after we have loaded any lazy values.
2392 (value_fetch_lazy): Use optimized out flag directly rather than
2393 calling optimized_out method.
2395 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
2397 * valops.c: Don't include "user-regs.h".
2398 (value_fetch_lazy): Moved to value.c.
2399 * value.c: Include "user-regs.h".
2400 (value_fetch_lazy): Moved from valops.c.
2402 2013-07-04 Yao Qi <yao@codesourcery.com>
2405 2013-06-27 Yao Qi <yao@codesourcery.com>
2407 * common/create-version.sh: Update comments. Handle the case
2408 that TARGET_ALIAS is empty.
2410 2013-07-03 Pedro Alves <palves@redhat.com>
2412 * Makefile.in (config.status): Depend on development.sh.
2413 (aclocal_m4_deps): Add libmcheck.m4.
2414 * acinclude.m4: Include libmcheck.m4.
2415 * configure.ac: Source development.sh instead of setting
2416 'development' here. --enable-libmcheck/--disable-libmcheck code
2417 factored out to GDB_AC_LIBMCHECK. Run it.
2418 * development.sh: New file.
2419 * libmcheck.m4: New file.
2420 * configure: Regenerate.
2422 2013-07-02 Tom Tromey <tromey@redhat.com>
2424 * contrib/ari/update-web-ari.sh: Update for version.in change.
2426 2013-07-02 Tom Tromey <tromey@redhat.com>
2428 * common/ptid.h: Comment fixes.
2430 2013-07-01 Tom Tromey <tromey@redhat.com>
2432 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
2433 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
2434 (dwarf2_read_index, create_all_comp_units): Update.
2436 2013-07-01 Tom Tromey <tromey@redhat.com>
2438 * configure.ac (build_warnings): Add -Wold-style-definition.
2439 * configure: Rebuild.
2440 * machoread.c (_initialize_machoread): Use "(void)".
2441 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
2444 2013-07-01 Tom Tromey <tromey@redhat.com>
2446 * configure.ac (build_warnings): Add -Wold-style-declaration.
2447 * configure: Rebuild.
2448 * dsrec.c (make_srec): Use "static const", not "const static".
2449 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
2451 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
2452 Use "static const", not "const static".
2453 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
2455 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
2457 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
2459 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
2461 (v850_dbtrap_breakpoint_from_pc): Likewise.
2462 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
2465 2013-07-01 Tom Tromey <tromey@redhat.com>
2467 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
2468 * configure: Rebuild.
2470 2013-07-01 Pedro Alves <palves@redhat.com>
2472 * defs.h: Include "pathmax.h".
2473 * utils.c: Don't include sys/param.h.
2474 (gdb_realpath): Remove code that checks for MAXPATHLEN.
2475 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
2476 instead of MAXPATHLEN.
2477 * solib-sunos.c: Don't include sys/param.h.
2478 * xcoffread.c: Don't include sys/param.h.
2479 * bsd-kvm.c: Don't include sys/param.h.
2480 * darwin-nat.c: Don't include sys/param.h.
2481 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2482 * darwin-nat-info.c: Don't include sys/param.h.
2483 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
2485 * i386obsd-nat.c: Don't include sys/param.h.
2486 * inf-child.c: Don't include sys/param.h.
2487 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
2488 * linux-fork.c: Don't include sys/param.h.
2489 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
2490 * linux-nat.c: Don't include sys/param.h.
2491 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
2492 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
2493 * m68klinux-nat.c: Don't include sys/param.h.
2494 * nbsd-nat.c: Don't include sys/param.h.
2495 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
2496 * ppc-linux-nat.c: Don't include sys/param.h.
2497 * rs6000-nat.c: Don't include sys/param.h.
2498 * spu-linux-nat.c. Don't include sys/param.h.
2499 * windows-nat.c: Don't include sys/param.h.
2500 * xtensa-linux-nat.c: Don't include sys/param.h.
2501 * config/i386/nm-fbsd.h: Don't include sys/param.h.
2503 2013-07-01 Pedro Alves <palves@redhat.com>
2505 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
2506 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
2507 * gnulib/aclocal.m4: Regenerate.
2508 * gnulib/config.in: Regenerate.
2509 * gnulib/configure: Regenerate.
2510 * gnulib/import/pathmax.h: New file.
2511 * gnulib/import/Makefile.am: Regenerate.
2512 * gnulib/import/Makefile.in: Regenerate.
2513 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
2514 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
2515 * gnulib/import/m4/pathmax.m4: New file.
2517 2013-07-01 Pedro Alves <palves@redhat.com>
2519 * configure.ac (GDBINIT): Define, depending on host.
2520 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
2521 * top.c (PATH_MAX): Delete fallback definition.
2522 (GDBINIT_FILENAME): Delete.
2523 (gdbinit): Reimplement as const char array set to the GDBINIT
2525 * top.h (gdbinit): Make const.
2526 * configure, config.in: Regenerate.
2528 2013-07-01 Pedro Alves <palves@redhat.com>
2530 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
2531 * cli/cli-cmds.h (source_script): Likewise.
2532 * exceptions.c (catch_command_errors_const): New function.
2533 * exceptions.h (catch_command_errors_const): Declare.
2534 * main.c (get_init_files): Make parameters const, and adjust.
2535 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
2536 'local_gdbinit' locals const. Adjust to use
2537 catch_command_errors_const.
2538 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
2539 'local_gdbinit' locals const.
2541 2013-07-01 Pedro Alves <palves@redhat.com>
2543 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
2544 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
2545 * tracepoint.c: Don't check HAVE_UNISTD_H before including
2548 2013-07-01 Pedro Alves <palves@redhat.com>
2550 Import the "unistd" gnulib module.
2551 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
2552 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
2553 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
2554 import/m4/unistd_h.m4.
2555 * gnulib/aclocal.m4: Renenerate.
2556 * gnulib/config.in: Renenerate.
2557 * gnulib/configure: Renenerate.
2558 * gnulib/import/Makefile.am: Renenerate.
2559 * gnulib/import/Makefile.in: Renenerate.
2560 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
2561 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
2562 * gnulib/import/m4/off_t.m4: New file.
2563 * gnulib/import/m4/ssize_t.m4: New file.
2564 * gnulib/import/m4/sys_types_h.m4: New file.
2565 * gnulib/import/m4/unistd_h.m4: New file.
2566 * gnulib/import/sys_types.in.h: New file.
2567 * gnulib/import/unistd.c: New file.
2568 * gnulib/import/unistd.in.h: New file.
2570 2013-07-01 Pedro Alves <palves@redhat.com>
2572 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
2573 defined instead of checking HAVE_UNISTD_H.
2575 2013-07-01 Pedro Alves <palves@redhat.com>
2577 Reimport gnulib from scratch.
2578 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
2579 import/m4/onceonly.m4.
2580 * gnulib/aclocal.m4: Renegerate.
2581 * gnulib/config.in: Renegerate.
2582 * gnulib/configure: Renegerate.
2583 * gnulib/import/Makefile.in: Renegerate.
2584 * gnulib/import/extra/update-copyright: Renegerate.
2585 * gnulib/import/m4/onceonly.m4: Delete.
2587 2013-07-01 Pedro Alves <palves@redhat.com>
2589 * tui/tui-regs.c (pagination_enabled): Delete declaration.
2591 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2594 * remote.c (async_remote_interrupt_twice): Make it static.
2595 * remote.h (async_remote_interrupt_twice): Remove the declaration.
2597 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
2599 * ia64-linux-tdep.c: Include <ctype.h>.
2600 (ia64_linux_stap_is_single_operand): New function.
2601 (ia64_linux_init_abi): Initialize SystemTap related attributes.
2603 2013-06-28 Tom Tromey <tromey@redhat.com>
2605 * Makefile.in (version.c): Use version.in, not
2607 * common/create-version.sh: Likewise.
2608 * common/version.in: Move...
2609 * version.in: ...here.
2611 2013-06-28 Pedro Alves <palves@redhat.com>
2613 * infrun.c (set_observer_mode): Don't declare pagination_enabled
2615 * utils.h (pagination_enabled): Declare.
2617 2013-06-28 Pedro Alves <palves@redhat.com>
2619 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
2620 Move higher up in file.
2622 2013-06-28 Tom Tromey <tromey@redhat.com>
2624 * tracepoint.c (deprecated_readline_begin_hook)
2625 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
2628 2013-06-28 Pedro Alves <palves@redhat.com>
2631 * tui/tui-regs.c (tui_get_register): Fetch value contents before
2632 checking if they're available.
2633 * value.c (value_available_contents_eq): Change comment.
2634 * value.h (value_available_contents_eq): Expand comment.
2636 2013-06-27 Tom Tromey <tromey@redhat.com>
2638 * target.c (find_run_target): Remove.
2639 * target.h (find_run_target): Remove.
2641 2013-06-27 Tom Tromey <tromey@redhat.com>
2643 * corelow.c (core_gdbarch): Now static.
2645 2013-06-27 Tom Tromey <tromey@redhat.com>
2647 * target.c (target_struct_index): Remove.
2649 2013-06-27 Pedro Alves <palves@redhat.com>
2651 * infrun.c: Remove comment describing the 'stepping over runtime
2652 loader dynamic symbol resolution code' mechanism; moved to
2655 2013-06-27 Pedro Alves <palves@redhat.com>
2657 * exceptions.c (catch_command_errors): Remove spurious space.
2658 * exceptions.h (catch_command_errors): Second parameter is "arg",
2661 2013-06-27 Yao Qi <yao@codesourcery.com>
2663 * common/create-version.sh: Update comments. Handle the case
2664 that TARGET_ALIAS is empty.
2666 2013-06-26 Pedro Alves <palves@redhat.com>
2668 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
2671 2013-06-26 Pedro Alves <palves@redhat.com>
2673 * infrun.c: Update comments on stepping over runtime loader
2674 dynamic symbol resolution code.
2676 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
2678 * ax-gdb.h (union exp_element): Forward declare.
2679 * parser-defs.h: Include expression.h.
2681 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2683 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
2685 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2687 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
2689 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
2691 Fix trace-status to output proper start-time and stop-time.
2692 * tracepoint.c (trace_status_command): Fix type of printf arg to
2693 prevent improper type conversion.
2694 (trace_status_mi): Likewise.
2696 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2698 * mips-tdep.c (mips_next_pc): Fix a typo.
2700 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
2702 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
2704 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2705 Yao Qi <yao@codesourcery.com>
2707 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
2708 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
2709 * mi/mi-main.c (print_variable_or_computed): New function.
2710 (mi_cmd_trace_frame_collected): New function.
2711 * tracepoint.c (find_trace_state_variable_by_number): New.
2712 (struct traceframe_info): Move to tracepoint.h
2713 (struct collection_list): Likewise.
2714 (do_collect_symbol): Include locals and arguments in the
2715 collected variables list.
2716 (clear_collection_list): Clear wholly collected variables list
2717 and computed variables list.
2718 (append_exp): New function.
2719 (encode_actions_1): Include variables in the wholly
2720 collected variables list. Include memory ranges and
2721 full-fledged expressions in the computed expressions list.
2722 (encode_actions): Move some code to ...
2723 Return the cleanup chain.
2724 (encode_actions_rsp): ... here. New function.
2725 (get_traceframe_location, get_traceframe_info): Remove static.
2726 * tracepoint.h (struct memrange): Moved from tracepoint.c.
2727 (struct collection_list): Moved from tracepoint.c. Add two
2728 new fields 'wholly_collected' and 'computed'.
2729 (find_trace_state_variable_by_number): Declare.
2730 (encode_actions): Adjust declaration.
2731 (encode_actions_rsp): Declare.
2732 (get_traceframe_info, get_traceframe_location): Declare.
2734 * NEWS: Mention new MI command -trace-frame-collected.
2736 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2737 Yao Qi <yao@codesourcery.com>
2739 * ctf.c (ctf_traceframe_info): Push trace state variables
2740 present in the trace data into the traceframe info object.
2741 * breakpoint.c (DEF_VEC_I): Remove.
2742 * common/filestuff.c (DEF_VEC_I): Likewise.
2743 * dwarf2loc.c (DEF_VEC_I): Likewise.
2744 * mi/mi-main.c (DEF_VEC_I): Likewise.
2745 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
2746 * features/traceframe-info.dtd: Add tvar element and its
2748 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
2749 (build_traceframe_info): Push trace state variables present in
2750 the trace data into the traceframe info object.
2751 (traceframe_info_start_tvar): New function.
2752 (tvar_attributes): New.
2753 (traceframe_info_children): Add "tvar" element.
2754 * tracepoint.h (struct traceframe_info) <tvars>: New field.
2756 * NEWS: Mention the change in GDB and GDBserver.
2758 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2759 Yao Qi <yao@codesourcery.com>
2761 * tracepoint.c (trace_dump_command): Move code to ...
2762 (get_traceframe_location): ... here. New.
2764 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2765 Yao Qi <yao@codesourcery.com>
2767 * tracepoint.c (trace_dump_command): GDB emits an error
2768 instead of a warning when a traceframe is not selected.
2770 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2771 Yao Qi <yao@codesourcery.com>
2773 * tracepoint.c (tracepoint_list, stepping_list): Remove.
2774 (clear_collection_list): Free fields 'aexpre_list' and 'list'
2776 (do_clear_collection_list, init_collection_list): New.
2777 (encode_actions): Add local variables 'tracepoint_list' and
2778 'stepping_list'. Call init_collection_list and make cleanup
2779 which calls do_clear_collection_list. Don't call
2780 clear_collection_list.
2781 (_initialize_tracepoint): Delete references to
2782 'tracepoint_list' and 'stepping_list'.
2784 2013-06-25 Tom Tromey <tromey@redhat.com>
2786 * common/create-version.sh (date): Use "$", not "$$" in sed
2789 2013-06-25 Kevin Buettner <kevinb@redhat.com>
2791 * NEWS (New targets): Add entry for TI MSP430.
2793 2013-06-25 Yao Qi <yao@codesourcery.com>
2795 * remote.c (remote_start_remote): Move code to upload tsv
2798 2013-06-25 Yao Qi <yao@codesourcery.com>
2799 Hui Zhu <hui@codesourcery.com>
2800 Pedro Alves <palves@redhat.com>
2802 PR breakpoints/15075
2803 PR breakpoints/15434
2804 * breakpoint.c (bpstat_stop_status): Call
2805 b->ops->after_condition_true.
2806 (update_dprintf_command_list): Don't append "continue" command
2807 to the command list of dprintf breakpoint.
2808 (base_breakpoint_after_condition_true): New function.
2809 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
2810 (dprintf_after_condition_true): New function.
2811 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
2812 * breakpoint.h (breakpoint_ops): Add after_condition_true.
2814 2013-06-24 Kevin Buettner <kevinb@redhat.com>
2816 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
2817 (ALLDEPFILES): Add msp430-tdep.c.
2818 * configure.tgt (msp430*-*-elf): New target.
2819 * msp430-tdep.c: New file.
2821 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2823 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
2824 microMIPS synthetic symbols.
2826 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
2828 * objfiles.h (pc_in_section): New prototype.
2829 (in_plt_section): Remove name argument, replace prototype with
2830 static inline function.
2831 * mips-tdep.h: Include "objfiles.h".
2832 (in_mips_stubs_section): New function.
2833 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
2834 in_solib_call_trampoline member.
2835 (hppa_in_solib_call_trampoline): Remove name argument.
2836 * objfiles.c (pc_in_section): New function.
2837 (in_plt_section): Remove function.
2838 * mips-linux-tdep.c: Include "objfiles.h".
2839 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
2840 name argument. Return 1 rather than the low 16-bit halfword of
2841 any instruction examined.
2842 (mips_linux_in_dynsym_resolve_code): Update
2843 mips_linux_in_dynsym_stub call accordingly.
2844 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
2845 rather than an equivalent hand-coded sequence.
2846 * hppa-hpux-tdep.c (in_opd_section): Remove function.
2847 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
2848 (hppa64_hpux_in_solib_call_trampoline): Likewise.
2849 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
2851 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
2852 on call to tdep->in_solib_call_trampoline.
2853 (hppa_in_solib_call_trampoline): Remove name argument, update
2854 according to in_plt_section change.
2855 (hppa_skip_trampoline_code): Update according to in_plt_section
2857 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
2858 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
2860 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
2861 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2862 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2863 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
2864 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
2865 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
2866 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
2867 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
2868 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
2869 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
2870 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
2871 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
2872 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
2874 2013-06-24 Joel Brobecker <brobecker@adacore.com>
2876 * common/create-version.sh: Fix expansion of $host_alias
2877 and $target_alias in generation of HOST_NAME and TARGET_NAME
2880 2013-06-24 Tom Tromey <tromey@redhat.com>
2882 * common/create-version.sh: New file.
2883 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
2885 (HFILES_NO_SRCDIR): Use common/version.h.
2886 * version.in: Move to ...
2887 * common/version.in: ... here. Replace date with "DATE".
2888 * version.h: Move to ...
2889 * common/version.h: ... here.
2891 2013-06-21 Joel Brobecker <brobecker@adacore.com>
2893 * gdb/gnulib/Makefile.in: Update date in copyright header.
2894 * gdb/gnulib/configure.ac: Ditto.
2895 * gdb/gnulib/update-gnulib.sh: Ditto.
2897 2013-06-21 Joel Brobecker <brobecker@adacore.com>
2899 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
2900 "gdb/gnulib/import".
2902 2013-06-21 Will Newton <will.newton@linaro.org>
2904 * doublest.c (ldfrexp): Remove function.
2905 (convert_doublest_to_floatformat): Call frexpl instead of
2908 2013-06-21 Will Newton <will.newton@linaro.org>
2910 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
2911 * gnulib/aclocal.m4: Regenerate.
2912 * gnulib/config.in: Regenerate.
2913 * gnulib/configure: Regenerate.
2914 * gnulib/import/Makefile.am: Update.
2915 * gnulib/import/Makefile.in: Update.
2916 * gnulib/import/m4/gnulib-cache.m4: Update.
2917 * gnulib/import/m4/gnulib-comp.m4: Update.
2918 * gnulib/import/float+.h: Import.
2919 * gnulib/import/float.c: Import.
2920 * gnulib/import/float.in.h: Import.
2921 * gnulib/import/fpucw.h: Import.
2922 * gnulib/import/frexp.c: Import.
2923 * gnulib/import/frexpl.c: Import.
2924 * gnulib/import/isnan.c: Import.
2925 * gnulib/import/isnand-nolibm.h: Import.
2926 * gnulib/import/isnand.c: Import.
2927 * gnulib/import/isnanl-nolibm.h: Import.
2928 * gnulib/import/isnanl.c: Import.
2929 * gnulib/import/itold.c: Import.
2930 * gnulib/import/m4/exponentd.m4: Import.
2931 * gnulib/import/m4/exponentl.m4: Import.
2932 * gnulib/import/m4/float_h.m4: Import.
2933 * gnulib/import/m4/fpieee.m4: Import.
2934 * gnulib/import/m4/frexp.m4: Import.
2935 * gnulib/import/m4/frexpl.m4: Import.
2936 * gnulib/import/m4/isnand.m4: Import.
2937 * gnulib/import/m4/isnanl.m4: Import.
2938 * gnulib/import/m4/math_h.m4: Import.
2939 * gnulib/import/math.c: Import.
2940 * gnulib/import/math.in.h: Import.
2942 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2944 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
2945 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
2946 signature_INTEL_edx comparisons.
2948 2013-06-20 Doug Evans <dje@google.com>
2951 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
2952 All callers updated.
2953 (open_dwp_file): If we can't find the dwp file, search the basename
2954 in debug-file-directory.
2956 * dwarf2read.c (struct dwp_file): Fix comment.
2957 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
2959 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
2962 2013-06-20 Yao Qi <yao@codesourcery.com>
2964 * breakpoint.c (create_breakpoint): Fix code indentation.
2966 2013-06-20 Yao Qi <yao@codesourcery.com>
2968 * breakpoint.c (create_breakpoints_sal_default): Remove
2969 parameter 'lsal'. Update declaration.
2970 (bkpt_create_breakpoints_sal): Caller update.
2971 (tracepoint_create_breakpoints_sal): Likewise.
2973 2013-06-20 Pedro Alves <pedro@codesourcery.com>
2974 Yao Qi <yao@codesourcery.com>
2976 * NEWS: Mention the new option '--skip-unavailable' of command
2977 -data-list-register-values.
2978 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
2979 --skip-unavailable option. Adjust to use output_register.
2980 (output_register): Add new 'skip_unavailable' parameter.
2983 2013-06-19 Mike Frysinger <vapier@gentoo.org>
2985 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
2986 common/i386-gcc-cpuid.h.
2987 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
2988 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
2989 Copy the latest version from upstream gcc.
2990 * common/linux-btrace.c: Include i386-cpuid.h.
2991 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
2993 (cpu_supports_btrace): Likewise.
2994 * go32-nat.c: Include i386-cpuid.h.
2995 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
2997 2013-06-19 Doug Evans <dje@google.com>
2999 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
3000 (get_section_index): Ditto.
3002 2013-06-19 Tom Tromey <tromey@redhat.com>
3004 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
3007 2013-06-18 Doug Evans <dje@google.com>
3009 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
3011 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
3012 Move test of cu_index closer to use. Print complaint if cu_index
3015 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3017 * machoread.c (oso_vector): Delete this global.
3018 (macho_register_oso): Add new parameter "oso_vector_ptr".
3019 Use it instead of the "oso_vector" global.
3020 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
3021 (macho_symfile_read): Use a local oso_vector, to be free'ed
3022 at the end of this function, in place of the old "oso_vector"
3023 global. Update various function calls accordingly. Use one
3024 single cleanup chain for the entire function.
3026 2013-06-18 Joel Brobecker <brobecker@adacore.com>
3028 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
3029 DWARF2_PER_OBJFILE by uses of DATA instead.
3031 2013-06-18 Tom Tromey <tromey@redhat.com>
3033 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
3035 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
3036 Special case signals other than GDB_SIGNAL_TRAP.
3037 (explains_signal_watchpoint): New function.
3038 (base_breakpoint_explains_signal): Add 'sig' argument.
3039 (initialize_breakpoint_ops): Set 'explains_signal' method for
3041 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
3043 (bpstat_explains_signal): Likewise.
3044 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
3046 2013-06-18 Tom Tromey <tromey@redhat.com>
3048 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
3050 2013-06-18 Tom Tromey <tromey@redhat.com>
3052 * python/python.c (finish_python_initialization): Decref
3053 'pythondir' on failure path as well.
3055 2013-06-18 Tom Tromey <tromey@redhat.com>
3058 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
3059 after taking bits_to_skip into account. Sign extend byte_offset.
3060 * utils.h (gdb_sign_extend): Declare.
3061 * utils.c (gdb_sign_extend): New function.
3063 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3065 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
3067 2013-06-17 Pierre Muller <muller@sourceware.org>
3069 * corelow.c (core_open): Print GDB signal name instead of target
3072 2013-06-17 Mike Frysinger <vapier@gentoo.org>
3074 * .gitignore: Add /gcore.
3076 2013-06-13 Doug Evans <dje@google.com>
3078 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
3079 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
3081 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
3083 * stack.c (backtrace_command_1): Fix indentation.
3085 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3087 * window-nat.c (thread_rec): Add missing empty line after
3088 local variable declaration.
3090 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3092 * windows-nat.c (thread_rec): Revert format used to print
3093 error code returned by SuspendThread from %d back to %u.
3095 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3097 * windows-nat.c (windows_continue): Add "0x" prefix for thread
3099 (get_windows_debug_event): Likewise, for all debug traces.
3101 2013-06-11 Joel Brobecker <brobecker@adacore.com>
3103 * window-nat.c (thread_rec): Add thread ID in SuspendThread
3106 2013-06-08 Pedro Alves <pedro@codesourcery.com>
3107 Yao Qi <yao@codesourcery.com>
3109 * mi/mi-main.c (get_register): Remove declaration.
3110 (output_register): Declare.
3111 (mi_cmd_data_list_register_values): Remove local variable
3112 'tuple_cleanup'. Move some code into output_register.
3113 (get_register): Renamed to ...
3114 (output_register): ... this. Output the register's
3115 "number" ui_out tuple here.
3117 2013-06-07 Pedro Alves <palves@redhat.com>
3119 * darwin-nat.c: Fix formating in copyright header.
3120 * darwin-nat.h: Likewise.
3121 * gnu-nat.c: Likewise.
3122 * machoread.c: Likewise.
3124 2013-06-07 Pedro Alves <palves@redhat.com>
3127 * regformats/regdat.sh: Output #include tdesc.h. Make globals
3128 static. Output a global target description pointer.
3129 (init_registers_${name}): Adjust to initialize a
3130 target description structure.
3132 2013-06-07 Will Newton <will.newton@linaro.org>
3134 * printcmd.c (build_address_symbolic): Call
3135 gdbarch_addr_bits_remove for text minimal symbols.
3137 2013-06-07 Will Newton <will.newton@linaro.org>
3139 * MAINTAINERS: Add myself to Write After Approval.
3141 2013-06-07 Yao Qi <yao@codesourcery.com>
3143 * tracepoint.c (start_tracing): Move code to ...
3144 (trace_reset_local_state): ... here. New.
3145 (disconnect_tracing): Don't call set_current_traceframe,
3146 set_tracepoint_num, and set_traceframe_context. Call
3147 trace_reset_local_state instead.
3148 (tfile_close): Call trace_reset_local_state.
3149 * ctf.c (ctf_close): Likewise.
3150 * remote.c (remote_close): Likewise.
3151 * tracepoint.h (trace_reset_local_state): Declare.
3153 2013-06-06 Doug Evans <dje@google.com>
3155 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
3156 and fix header docs.
3158 2013-06-05 Doug Evans <dje@google.com>
3159 Keith Seitz <keiths@redhat.com>
3162 * cp-namespace.c (find_symbol_in_baseclass): Call
3163 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
3164 Check result of call to lookup_symbol_static.
3165 Call lookup_static_symbol_aux unconditionally.
3166 Call check_typedef on base types before accessing them.
3167 (cp_lookup_nested_symbol): Fix comment.
3169 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
3171 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
3172 minimal symbols pointing to function descriptors.
3174 2013-06-05 Tom Tromey <tromey@redhat.com>
3176 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
3178 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3179 Pedro Alves <palves@redhat.com>
3181 * remote.c (remote_wait_as): Restore signal handler before returning
3182 when GDB gets a notification.
3184 2013-06-04 Gary Benson <gbenson@redhat.com>
3187 * breakpoint.h (handle_solib_event): Moved function declaration
3189 * breakpoint.c (handle_solib_event): Moved function to solib.c.
3190 (bpstat_stop_status): Pass new argument to handle_solib_event.
3191 * solib.h (update_solib_breakpoints): New function declaration.
3192 (handle_solib_event): Moved function declaration from
3194 * solib.c (update_solib_breakpoints): New function.
3195 (handle_solib_event): Moved function from breakpoint.c.
3196 Updated to call solib_ops->handle_event if not NULL.
3197 * solist.h (target_so_ops): New fields "update_breakpoints" and
3199 * infrun.c (set_stop_on_solib_events): New function.
3200 (_initialize_infrun): Use the above for "set
3201 stop-on-solib-events".
3202 (handle_inferior_event): Pass new argument to handle_solib_event.
3203 * solib-svr4.c (probe.h): New include.
3204 (svr4_free_library_list): New forward declaration.
3205 (probe_action): New enum.
3206 (probe_info): New struct.
3207 (probe_info): New static variable.
3208 (NUM_PROBES): New definition.
3209 (svr4_info): New fields "using_xfer", "probes_table" and
3211 (free_probes_table): New function.
3212 (free_solib_list): New function.
3213 (svr4_pspace_data_cleanup): Free probes table and solib list.
3214 (svr4_copy_library_list): New function.
3215 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
3216 (svr4_read_so_list): New parameter "prev_lm".
3217 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
3218 (svr4_current_sos): New function.
3219 (probe_and_action): New struct.
3220 (hash_probe_and_action): New function.
3221 (equal_probe_and_action): Likewise.
3222 (register_solib_event_probe): Likewise.
3223 (solib_event_probe_at): Likewise.
3224 (solib_event_probe_action): Likewise.
3225 (solist_update_full): Likewise.
3226 (solist_update_incremental): Likewise.
3227 (disable_probes_interface_cleanup): Likewise.
3228 (svr4_handle_solib_event): Likewise.
3229 (svr4_update_solib_event_breakpoint): Likewise.
3230 (svr4_update_solib_event_breakpoints): Likewise.
3231 (svr4_create_solib_event_breakpoints): Likewise.
3232 (enable_break): Free probes table before creating breakpoints.
3233 Use svr4_create_solib_event_breakpoints to create breakpoints.
3234 (svr4_solib_create_inferior_hook): Free the solib list.
3235 (_initialize_svr4_solib): Initialise
3236 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
3238 2013-06-04 Gary Benson <gbenson@redhat.com>
3240 * target.h (target_ops): New field
3241 "to_augmented_libraries_svr4_read".
3242 (target_augmented_libraries_svr4_read): New macro.
3243 * target.c (update_current_target): Handle
3244 to_augmented_libraries_svr4_read.
3245 * remote.c (remote_state): New field
3246 "augmented_libraries_svr4_read".
3247 (remote_augmented_libraries_svr4_read_feature): New function.
3248 (remote_protocol_features): Add entry for
3249 "augmented-libraries-svr4-read".
3250 (remote_augmented_libraries_svr4_read): New function.
3251 (init_remote_ops): Initialize
3252 remote_ops.to_augmented_libraries_svr4_read.
3254 2013-06-04 Gary Benson <gbenson@redhat.com>
3258 2013-06-04 Gary Benson <gbenson@redhat.com>
3260 * objfiles.h (inhibit_section_map_updates): New function
3262 (resume_section_map_updates): Likewise.
3263 (resume_section_map_updates_cleanup): Likewise.
3264 * objfiles.c (objfile_pspace_info): Removed field
3265 "objfiles_changed_p". New fields "new_objfiles_available",
3266 "section_map_dirty" and "inhibit_updates".
3267 (allocate_objfile): Set new_objfiles_available.
3268 (free_objfile): Set section_map_dirty.
3269 (objfile_relocate1): Likewise.
3270 (in_plt_section): Likewise.
3271 (find_pc_section): Update the conditions under which the
3272 section map will be updated.
3273 (inhibit_section_map_updates): New function.
3274 (resume_section_map_updates): Likewise.
3275 (resume_section_map_updates_cleanup): Likewise.
3277 2013-06-04 Gary Benson <gbenson@redhat.com>
3279 * probe.h (get_probe_argument_count): New declaration.
3280 (evaluate_probe_argument): Likewise.
3281 * probe.c (get_probe_argument_count): New function.
3282 (evaluate_probe_argument): Likewise.
3283 (probe_safe_evaluate_at_pc): Use the above new functions.
3285 2013-06-04 Alan Modra <amodra@gmail.com>
3287 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
3288 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
3289 (ppc_insns_match_pattern): Add frame param. Avoid multiple
3290 target mem reads on optional insns.
3291 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
3292 ppc_insns_match_pattern calls.
3293 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
3294 Add match for power7 thread safety insns, and new order of
3295 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
3296 invocation in comment, and update rest of comment.
3297 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
3298 PPC64_STANDARD_LINKAGE3_LEN): Delete.
3299 (ppc64_standard_linkage2_target): Update insn offsets.
3300 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
3301 stubs first. Update calls.
3303 2013-06-04 Yao Qi <yao@codesourcery.com>
3305 * solib.c (solib_find): Don't need dir separator if path has
3308 2013-06-03 Joel Brobecker <brobecker@adacore.com>
3310 Revert (indirectly causes a SIGSEGV):
3311 * machoread.c (macho_symfile_read): Assign first cleanup to
3314 2013-06-03 Yao Qi <yao@codesourcery.com>
3316 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
3317 mi-parse.c. Make them static.
3318 (mi_all_values): Likewise.
3319 (mi_parse_values_option): Move to mi-parse.c. Rename it to
3320 mi_parse_print_values. Make it external.
3321 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
3322 Remove the declarations.
3323 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
3324 * mi/mi-parse.h (mi_parse_print_values): Declare.
3325 * mi/mi-cmd-stack.c: Include mi-parse.h.
3326 (parse_print_values): Remove
3327 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
3328 of parse_print_values.
3329 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
3331 2013-05-31 Pedro Alves <pedro@codesourcery.com>
3332 Yao Qi <yao@codesourcery.com>
3334 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
3335 (encode_actions): Move code to ...
3336 (all_tracepoint_actions_and_cleanup): ... here. New.
3337 (trace_dump_command): Likewise.
3339 2013-05-30 Tom Tromey <tromey@redhat.com>
3341 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
3343 2013-05-30 Tom Tromey <tromey@redhat.com>
3345 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
3346 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
3347 'old_chain' argument. Add 'parser_result' argument.
3348 (gdb_xml_create_parser_and_cleanup): Remove old version.
3349 (gdb_xml_parse_quick): Update.
3350 (xml_process_xincludes): Update.
3351 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
3354 2013-05-30 Tom Tromey <tromey@redhat.com>
3356 * probe.c (collect_probes): Check arguments for NULL before
3357 calling compile_rx_or_error.
3358 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
3361 2013-05-30 Tom Tromey <tromey@redhat.com>
3363 * infrun.c (adjust_pc_after_break): Introduce an outer null
3366 2013-05-30 Tom Tromey <tromey@redhat.com>
3368 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
3370 2013-05-30 Tom Tromey <tromey@redhat.com>
3372 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
3373 for 'old_chain'. Do not check 'head' before processing
3376 2013-05-30 Tom Tromey <tromey@redhat.com>
3378 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
3381 2013-05-30 Tom Tromey <tromey@redhat.com>
3383 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
3384 inner scope. Unconditionally call do_cleanups.
3386 2013-05-30 Tom Tromey <tromey@redhat.com>
3388 * source.c (find_and_open_source): Call do_cleanups.
3390 2013-05-30 Tom Tromey <tromey@redhat.com>
3392 * linux-thread-db.c (thread_db_load_search): Unconditionally
3395 2013-05-30 Tom Tromey <tromey@redhat.com>
3397 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
3398 for 'cleanup'; instead use a later one.
3400 2013-05-30 Tom Tromey <tromey@redhat.com>
3402 * python/py-breakpoint.c (bppy_get_commands): Use
3403 explicit, unconditional return.
3404 * python/py-frame.c (frapy_read_var): Likewise.
3405 * python/python.c (gdbpy_decode_line): Likewise.
3407 2013-05-30 Tom Tromey <tromey@redhat.com>
3409 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
3410 do_cleanups on all return paths.
3412 2013-05-30 Tom Tromey <tromey@redhat.com>
3414 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
3416 2013-05-30 Tom Tromey <tromey@redhat.com>
3418 * stabsread.c (read_struct_type): Call do_cleanups along
3421 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
3423 * mips-linux-tdep.c: Adjust formatting throughout.
3425 2013-05-30 Tom Tromey <tromey@redhat.com>
3427 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
3428 along all return paths.
3430 2013-05-30 Tom Tromey <tromey@redhat.com>
3432 * symfile.c (find_separate_debug_file): Call do_cleanups
3433 along all return paths.
3435 2013-05-30 Tom Tromey <tromey@redhat.com>
3437 * symtab.c (search_symbols): Introduce a null cleanup for
3440 2013-05-30 Tom Tromey <tromey@redhat.com>
3442 * python/py-value.c (valpy_binop): Call do_cleanups before
3445 2013-05-30 Tom Tromey <tromey@redhat.com>
3447 * python/py-prettyprint.c (print_children): Remove extra
3450 2013-05-30 Tom Tromey <tromey@redhat.com>
3452 * python/py-frame.c (frapy_read_var): Call do_cleanups along
3455 2013-05-30 Tom Tromey <tromey@redhat.com>
3457 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
3458 along all return paths.
3460 2013-05-30 Tom Tromey <tromey@redhat.com>
3462 * cli/cli-logging.c (set_logging_redirect): Unconditionally
3465 2013-05-30 Tom Tromey <tromey@redhat.com>
3467 * varobj.c (c_value_of_root): Call do_cleanups along all
3470 2013-05-30 Tom Tromey <tromey@redhat.com>
3472 * tracepoint.c (trace_dump_command): Unconditionally call
3475 2013-05-30 Tom Tromey <tromey@redhat.com>
3477 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
3478 do_cleanups earlier.
3480 2013-05-30 Tom Tromey <tromey@redhat.com>
3482 * machoread.c (macho_symfile_read): Assign first cleanup to
3485 2013-05-30 Tom Tromey <tromey@redhat.com>
3487 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
3489 2013-05-30 Tom Tromey <tromey@redhat.com>
3491 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
3493 2013-05-30 Tom Tromey <tromey@redhat.com>
3495 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
3496 call discard_cleanups.
3497 (inf_ptrace_attach): Likewise.
3499 2013-05-30 Tom Tromey <tromey@redhat.com>
3501 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
3503 (mips_initialize): Likewise.
3504 (common_open): Call do_cleanups.
3506 2013-05-30 Tom Tromey <tromey@redhat.com>
3508 * utils.c (internal_vproblem): Call do_cleanups.
3510 2013-05-30 Tom Tromey <tromey@redhat.com>
3512 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
3514 2013-05-30 Tom Tromey <tromey@redhat.com>
3516 * cli/cli-script.c (setup_user_args): Don't return after error.
3518 2013-05-30 Tom Tromey <tromey@redhat.com>
3520 * somread.c (som_symtab_read): Call do_cleanups.
3522 2013-05-30 Tom Tromey <tromey@redhat.com>
3524 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
3526 2013-05-30 Tom Tromey <tromey@redhat.com>
3528 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
3529 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
3530 * interps.c (interpreter_exec_cmd): Call do_cleanups.
3531 * source.c (show_substitute_path_command): Call do_cleanups.
3532 (unset_substitute_path_command, set_substitute_path_command):
3534 * symfile.c (load_command): Call do_cleanups.
3536 2013-05-30 Tom Tromey <tromey@redhat.com>
3538 * contrib/cleanup_check.py: New file.
3539 * contrib/gcc-with-excheck: Add option parsing.
3541 2013-05-30 Joel Brobecker <brobecker@adacore.com>
3543 * windows-nat.c (windows_delete_thread): Add missing space
3546 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
3548 * inferior.c (top level): Include tilde.h.
3549 (add_inferior_command): Call tilde_expand on the value of 'exec'
3552 2013-05-30 Pedro Alves <pedro@codesourcery.com>
3553 Yao Qi <yao@codesourcery.com>
3555 * tracepoint.c (encode_actions_1): Remove parameter 't'.
3557 (encode_actions): Likewise.
3558 * remote.c (remote_download_tracepoint): Caller update.
3559 * tracepoint.h (encode_actions): Update declaration.
3561 2013-05-30 Pedro Alves <palves@redhat.com>
3563 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
3566 2013-05-30 Yao Qi <yao@codesourcery.com>
3568 * remote.c (remote_check_symbols): Remove unused parameter
3571 (remote_start_remote, remote_new_objfile): Caller update.
3573 2013-05-30 Yao Qi <yao@codesourcery.com>
3575 * mi/mi-cmds.c (mi_cmds): Define MI command
3576 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
3579 2013-05-29 Pedro Alves <palves@redhat.com>
3581 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
3582 (remote_insert_watchpoint, remote_remove_watchpoint)
3583 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
3584 (remote_verify_memory, compare_sections_command)
3585 (remote_search_memory): Set the general process/thread on the
3588 2013-05-29 Pedro Alves <palves@redhat.com>
3590 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
3591 (_initialize_aarch64_tdep): Don't call
3592 initialize_tdesc_aarch64_without_fpu.
3593 * features/Makefile (WHICH): Remove reference to
3594 aarch64-without-fpu.
3595 * features/aarch64-without-fpu.c: Delete file.
3596 * regformats/aarch64-without-fpu.dat: Delete file.
3598 2013-05-28 Yao Qi <yao@codesourcery.com>
3600 * tracepoint.c (stringify_collection_list): Remove parameter
3602 (encode_actions): Caller update. Remove local variables.
3604 2013-05-24 Yao Qi <yao@codesourcery.com>
3606 * tracepoint.c (TFILE_PID): Remove.
3607 (tfile_open): Don't add thread and inferior.
3608 (tfile_close): Don't set 'inferior_ptid'. Don't call
3609 exit_inferior_silent.
3610 (tfile_thread_alive): Remove.
3611 (init_tfile_ops): Don't set field 'to_thread_alive' of
3614 2013-05-23 Doug Evans <dje@google.com>
3616 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
3618 2013-05-23 Pedro Alves <palves@redhat.com>
3620 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
3621 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
3622 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
3623 Only define if HAVE_SOCKETS is defined.
3624 * configure.ac: Check for sys/socket.h.
3625 * config.in, configure: Regenerate.
3627 2013-05-23 Pedro Alves <palves@redhat.com>
3629 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
3630 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
3631 printing uint32_t variables.
3633 2013-05-23 Pedro Alves <palves@redhat.com>
3635 * NEWS: Mention GDBserver range stepping support.
3637 2013-05-23 Yao Qi <yao@codesourcery.com>
3638 Pedro Alves <palves@redhat.com>
3640 * gdbthread.h (struct thread_control_state) <may_range_step>: New
3642 * infcmd.c (step_once, until_next_command): Enable range stepping.
3643 * infrun.c (displaced_step_prepare): Disable range stepping.
3644 (resume): Disable range stepping if stepping over a breakpoint or
3645 we have software watchpoints. If range stepping is enabled,
3646 assert the thread is in the stepping range.
3647 (clear_proceed_status_thread): Clear may_range_step.
3648 (handle_inferior_event): Disable range stepping as soon as we know
3649 the thread that hit the event. Re-enable it whenever we're going
3650 to step with a step range.
3651 * remote.c (struct vCont_action_support) <r>: New field.
3652 (use_range_stepping): New global.
3653 (remote_vcont_probe): Handle 'r' action.
3654 (append_resumption): Append an 'r' action if the thread may range
3656 (show_range_stepping): New function.
3657 (set_range_stepping): New function.
3658 (_initialize_remote): Call add_setshow_boolean_cmd to register the
3659 'set range-stepping' and 'show range-stepping' commands.
3660 * NEWS: Mention range stepping, the new vCont;r action, and the
3661 new "set/show range-stepping" commands.
3663 2013-05-23 Yao Qi <yao@codesourcery.com>
3664 Pedro Alves <palves@redhat.com>
3666 * remote.c (struct vCont_action_support): New struct.
3667 (struct remote_state) <support_vCont_t>: Remove field.
3668 <vCont_actions_support>: New field.
3669 (remote_vcont_probe, remote_stop_ns): Update.
3671 2013-05-23 Yao Qi <yao@codesourcery.com>
3672 Pedro Alves <palves@redhat.com>
3674 * gdbthread.h (pc_in_thread_step_range): New declaration.
3675 * thread.c (pc_in_thread_step_range): New function.
3676 * infrun.c (handle_inferior_event): Use it.
3678 2013-05-23 Joel Brobecker <brobecker@adacore.com>
3680 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
3683 2013-05-22 Keith Seitz <keiths@redhat.com>
3685 * ada-lang.c (is_known_support_routine): Add explicit free of
3686 'func_name' from find_frame_funname.
3687 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
3688 for func_name from find_frame_funname.
3689 * python/py-frame.c (frapy_name): Add explicit free of
3690 'name' from find_frame_funname.
3691 * stack.c (find_frame_funname): Add comment explaining that
3692 funcp must be freed by the caller.
3693 Return copy of symbol names instead of pointers.
3694 (print_frame): Add a cleanup for 'funname' from
3696 * stack.h (find_frame_funname): Remove "const" from
3697 'funname' parameter.
3699 2013-05-22 Tom Tromey <tromey@redhat.com>
3702 * c-valprint.c (c_value_print): Use value_addr for
3703 references. Convert back to reference type with value_ref.
3705 2013-05-22 Eli Zaretskii <eliz@gnu.org>
3707 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
3708 unloaded DLL, it will be done by handle_solib_event. See
3709 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
3712 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
3714 * ui-out.c: Create typedef ui_out_level_p and define vector
3715 operations for that type.
3716 (struct ui_out): Use a vector instead of an array.
3717 (current_level): Return level from a vector.
3718 (push_level): Create a level in a vector.
3719 (pop_level): Delete a level in a vector.
3720 (ui_out_new): Create initial level zero level, and store in a
3722 (ui_out_destroy): Add vector cleanup.
3724 2013-05-22 Pedro Alves <palves@redhat.com>
3726 * python/python-internal.h (gdb_Py_DECREF): Tag with
3727 "ARI: editCase function".
3729 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
3731 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
3733 2013-05-21 Pedro Alves <palves@redhat.com>
3735 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3736 whether PRINTER is NULL before installing a Py_DECREF cleanup.
3737 * python/py-utils.c (py_decref): Don't check for NULL before
3740 2013-05-21 Pedro Alves <palves@redhat.com>
3742 * python/py-utils.c (py_decref): Remove extra braces.
3743 (gdb_pymodule_addobject): Remove extra braces.
3744 * python-internal.h (gdb_Py_DECREF): New static inline function.
3745 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
3747 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3749 * breakpoints.c (detach_breakpoints): Do not
3750 detach breakpoints locations with loc_type bp_loc_other.
3752 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3754 Workaround Python 2.6.
3755 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
3758 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3760 Code cleanup: constification.
3761 * solib.c (solib_ops): Make return type and ops variable type const.
3762 (set_solib_ops): Make the new_ops parameter and ops variable const.
3763 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
3764 (solib_add, solib_keep_data_in_core, clear_solib)
3765 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3766 (reload_shared_libraries, solib_global_lookup): Make the ops variable
3768 * solib.h (set_solib_ops): Make the new_ops parameter const.
3770 2013-05-21 Joel Brobecker <brobecker@adacore.com>
3772 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
3774 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
3775 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
3776 (SYSTEM_GDBINIT_FILES): New variables.
3777 (all): Add stamp-system-gdbinit.
3778 (stamp-system-gdbinit): New rule.
3779 (clean-system-gdbinit, install-system-gdbinit)
3780 (uninstall-system-gdbinit): New rules. Make them .PHONY.
3781 (install-only): Add dependency on install-system-gdbinit.
3782 (uninstall): Add dependency on uninstall-system-gdbinit.
3783 (clean): Add dependency on clean-system-gdbinit.
3784 * system-gdbinit/elinos.py: New file.
3785 * system-gdbinit/wrs-linux.py: New file.
3787 2013-05-21 Joel Brobecker <brobecker@adacore.com>
3789 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
3791 2013-05-21 Hui Zhu <hui@codesourcery.com>
3793 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
3794 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
3795 * mi/mi-cmd-break.c (ctype.h): New include.
3796 (gdb_obstack.h): New include.
3797 (mi_argv_to_format, mi_cmd_break_insert_1): New.
3798 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
3799 (mi_cmd_dprintf_insert): New.
3800 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
3801 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
3803 2013-05-20 Tom Tromey <tromey@redhat.com>
3805 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
3807 2013-05-20 Tom Tromey <tromey@redhat.com>
3809 * python/py-value.c (valpy_get_dynamic_type): Simplify
3810 dynamic_type assignment. Use Py_XINCREF.
3812 2013-05-20 Tom Tromey <tromey@redhat.com>
3814 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
3816 2013-05-20 Tom Tromey <tromey@redhat.com>
3818 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
3819 (gdbpy_selected_frame): Move object-construction code
3822 2013-05-20 Tom Tromey <tromey@redhat.com>
3824 * python/py-arch.c (gdbpy_initialize_arch): Use
3825 gdb_pymodule_addobject.
3826 * python/py-block.c (gdbpy_initialize_blocks): Use
3827 gdb_pymodule_addobject.
3828 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
3829 gdb_pymodule_addobject.
3830 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
3831 gdb_pymodule_addobject.
3832 * python/py-event.c (gdbpy_initialize_event_generic): Use
3833 gdb_pymodule_addobject.
3834 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
3835 gdb_pymodule_addobject.
3836 * python/py-evts.c (add_new_registry): Use
3837 gdb_pymodule_addobject.
3838 (gdbpy_initialize_py_events): Likewise.
3839 * python/py-finishbreakpoint.c
3840 (gdbpy_initialize_finishbreakpoints): Use
3841 gdb_pymodule_addobject.
3842 * python/py-frame.c (gdbpy_initialize_frames): Use
3843 gdb_pymodule_addobject.
3844 * python/py-function.c (gdbpy_initialize_functions): Use
3845 gdb_pymodule_addobject.
3846 * python/py-inferior.c (gdbpy_initialize_inferior): Use
3847 gdb_pymodule_addobject.
3848 * python/py-infthread.c (gdbpy_initialize_thread): Use
3849 gdb_pymodule_addobject.
3850 * python/py-objfile.c (gdbpy_initialize_objfile): Use
3851 gdb_pymodule_addobject.
3852 * python/py-param.c (gdbpy_initialize_parameters): Use
3853 gdb_pymodule_addobject.
3854 * python/py-progspace.c (gdbpy_initialize_pspace): Use
3855 gdb_pymodule_addobject.
3856 * python/py-symbol.c (gdbpy_initialize_symbols): Use
3857 gdb_pymodule_addobject.
3858 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
3859 gdb_pymodule_addobject.
3860 * python/py-type.c (gdbpy_initialize_types): Use
3861 gdb_pymodule_addobject.
3862 * python/py-utils.c (gdb_pymodule_addobject): New function.
3863 * python/py-value.c (gdbpy_initialize_values): Use
3864 gdb_pymodule_addobject.
3865 * python/python-internal.h (gdb_pymodule_addobject): Declare.
3866 * python/python.c (_initialize_python): Use
3867 gdb_pymodule_addobject.
3869 2013-05-20 Tom Tromey <tromey@redhat.com>
3871 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
3872 * python/py-param.c (get_set_value, get_show_value): Use
3874 * python/python.c (start_type_printers, apply_type_printers):
3875 Use explicit decrefs.
3877 2013-05-20 Tom Tromey <tromey@redhat.com>
3879 * python/py-evts.c (gdbpy_initialize_py_events): Don't
3882 2013-05-20 Tom Tromey <tromey@redhat.com>
3884 * python/python.c (gdbpy_run_events): Decref the result
3885 of PyObject_CallObject.
3887 2013-05-20 Tom Tromey <tromey@redhat.com>
3889 * python/py-symtab.c (set_sal): Use
3890 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
3891 (symtab_and_line_to_sal_object): Update.
3893 2013-05-20 Tom Tromey <tromey@redhat.com>
3895 * python/py-param.c (compute_enum_values): Decref 'item'.
3897 2013-05-20 Tom Tromey <tromey@redhat.com>
3899 * mi/mi-main.c: Include python-internal.h.
3900 (mi_cmd_list_features): Check gdb_python_initialized.
3901 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
3902 (python_inferior_exit, python_new_objfile, add_thread_object)
3903 (delete_thread_object, py_free_inferior): Check
3904 gdb_python_initialized.
3905 * python/py-prettyprint.c (apply_val_pretty_printer): Check
3906 gdb_python_initialized.
3907 * python/py-type.c (save_objfile_types): Check
3908 gdb_python_initialized.
3909 * python/python-internal.h (gdb_python_initialized): Declare.
3910 * python/python.c (ensure_python_env): Throw exception if
3911 Python not initialized.
3912 (before_prompt_hook, source_python_script_for_objfile)
3913 (start_type_printers, apply_type_printers,
3914 free_type_printers): Check gdb_python_initialized.
3915 * varobj.c (varobj_get_display_hint)
3916 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
3917 (install_new_value_visualizer, varobj_set_visualizer)
3918 (value_get_print_value): Check gdb_python_initialized.
3920 2013-05-20 Tom Tromey <tromey@redhat.com>
3922 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
3924 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
3925 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
3927 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
3929 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
3931 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
3933 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
3934 init function to return 'int'.
3935 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
3936 Return 'int'. Check errors.
3937 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
3939 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
3940 Return 'int'. Check errors.
3941 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
3943 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
3945 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
3947 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
3949 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
3951 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
3953 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
3955 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
3957 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
3959 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
3961 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
3963 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
3965 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
3967 * python/python-internal.h (gdbpy_initialize_auto_load,
3968 gdbpy_initialize_values, gdbpy_initialize_frames,
3969 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
3970 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
3971 gdbpy_initialize_blocks, gdbpy_initialize_types,
3972 gdbpy_initialize_functions, gdbpy_initialize_pspace,
3973 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
3974 gdbpy_initialize_finishbreakpoints,
3975 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
3976 gdbpy_initialize_thread, gdbpy_initialize_inferior,
3977 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
3978 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
3979 gdbpy_initialize_signal_event,
3980 gdbpy_initialize_breakpoint_event,
3981 gdbpy_initialize_continue_event,
3982 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
3983 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
3984 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
3985 * python/python.c (gdb_python_initialized): New global.
3986 (gdbpy_initialize_events): Return 'int'. Check errors.
3987 (_initialize_python): Check errors. Set
3988 gdb_python_initialized.
3990 2013-05-20 Tom Tromey <tromey@redhat.com>
3992 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
3993 Decref the reslut of PyObject_CallMethod.
3995 2013-05-20 Tom Tromey <tromey@redhat.com>
3997 * python/py-event.c (gdbpy_initialize_event_generic): Return
3998 early if PyType_Ready fails.
4000 2013-05-20 Tom Tromey <tromey@redhat.com>
4002 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
4003 as 'default' in the switch.
4005 2013-05-20 Tom Tromey <tromey@redhat.com>
4007 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
4008 get_addr_from_python calls out of TRY_CATCH.
4009 (infpy_write_memory, infpy_search_memory): Likewise.
4010 * python/py-utils.c (get_addr_from_python): Return negative
4011 value on error. Use TRY_CATCH.
4012 * python/python-internal.h (get_addr_from_python): Use
4013 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4015 2013-05-20 Tom Tromey <tromey@redhat.com>
4017 * python/py-event.c (evpy_emit_event): Decref the
4018 result of PyObject_CallFunctionObjArgs.
4020 2013-05-20 Tom Tromey <tromey@redhat.com>
4022 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
4025 2013-05-20 Tom Tromey <tromey@redhat.com>
4027 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
4029 2013-05-20 Tom Tromey <tromey@redhat.com>
4031 * python/py-event.h (gdbpy_initialize_event_generic): Use
4032 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4033 * python/py-evts.c (add_new_registry): Use
4034 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
4035 * python/python-internal.h
4036 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
4038 2013-05-20 Tom Tromey <tromey@redhat.com>
4040 * python/py-arch.c (archpy_disassemble): Update.
4041 * python/py-type.c (typy_get_composite, typy_lookup_typename)
4042 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
4043 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
4044 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
4046 (GDB_PY_HANDLE_EXCEPTION): Update.
4047 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
4049 2013-05-20 Tom Tromey <tromey@redhat.com>
4051 * python/python-internal.h (events_object_type): Remove.
4053 2013-05-20 Tom Tromey <tromey@redhat.com>
4055 * python/py-event.h (evpy_emit_event): Use
4056 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
4057 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
4060 2013-05-20 Tom Tromey <tromey@redhat.com>
4062 * py-evtregistry.c (create_event_object): Decref
4063 eventregistry_object if PyList_New fails.
4065 2013-05-20 Tom Tromey <tromey@redhat.com>
4067 * py-cmd.c (gdbpy_string_to_argv): Check result of
4070 2013-05-20 Tom Tromey <tromey@redhat.com>
4072 * python/python.c (before_prompt_hook): Add cleanup to
4075 2013-05-20 Tom Tromey <tromey@redhat.com>
4077 * python/py-function.c (fnpy_init): Decref result of
4078 PyObject_GetAttrString.
4080 2013-05-20 Tom Tromey <tromey@redhat.com>
4082 * python/py-threadevent.c (get_event_thread): Use
4083 CPYCHECKER_RETURNS_BORROWED_REF.
4084 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
4086 (pspace_to_pspace_object, objfile_to_objfile_object)
4087 (find_thread_object): Use it.
4089 2013-05-20 Tom Tromey <tromey@redhat.com>
4091 * python/py-arch.c (arch_object_type): Use
4092 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4093 * python/py-block.c (block_syms_iterator_object_type):
4094 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4095 * python/py-bpevent.c (breakpoint_event_object_type):
4096 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4097 * python/py-cmd.c (cmdpy_object_type): Use
4098 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4099 * python/py-continueevent.c (continue_event_object_type):
4100 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4101 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
4102 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4103 * python/py-events.h (thread_event_object_type):
4104 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4105 * python/py-evtregistry.c (eventregistry_object_type): Use
4106 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4107 * python/py-exitedevent.c (exited_event_object_type):
4108 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4109 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
4110 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4111 * python/py-function.c (fnpy_object_type): Use
4112 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4113 * python/py-inferior.c (inferior_object_type, membuf_object_type):
4114 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4115 * python/py-infthread.c (thread_object_type): Use
4116 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4117 * python/py-lazy-string.c (lazy_string_object_type):
4118 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4119 * python/py-newobjfileevent.c (new_objfile_event_object_type):
4120 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4121 * python/py-objfile.c (objfile_object_type): Use
4122 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4123 * python/py-param.c (parmpy_object_type):
4124 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4125 * python/py-progspace.c (pspace_object_type):
4126 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4127 * python/py-signalevent.c (signal_event_object_type):
4128 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4129 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
4130 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4131 * python/py-type.c (type_object_type, field_object_type)
4132 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4133 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
4135 (value_object_type, block_object_type, symbol_object_type)
4136 (event_object_type, stop_event_object_type, breakpoint_object_type)
4137 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
4139 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
4141 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
4142 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
4144 2013-05-20 Doug Evans <dje@google.com>
4146 When reading CU, stay in DWO. Be more tolerent of bad debug info.
4148 * dwarf2read.c (struct dwarf2_per_cu_data): New member
4149 reading_dwo_directly.
4150 (struct signatured_type): New member dwo_unit.
4151 (struct die_reader_specs): New member comp_dir.
4152 (create_signatured_type_table_from_index): Use malloc for
4153 all_type_units instead of objfile's obstack.
4154 (create_all_type_units): Ditto.
4155 (fill_in_sig_entry_from_dwo_entry): New function.
4156 (add_type_unit): New function.
4157 (lookup_dwo_signatured_type): New function.
4158 (lookup_dwp_signatured_type): New function.
4159 (lookup_signatured_type): New arg cu. All callers updated.
4160 (init_cu_die_reader): Initialize comp_dir.
4161 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
4162 Change assert of matching type signatures to call error on mismatch.
4163 (lookup_dwo_unit): Add assert.
4164 (init_tu_and_read_dwo_dies): New function.
4165 (init_cutu_and_read_dies): Call it.
4166 (build_type_unit_groups): Handle case of no type unit groups created.
4167 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
4168 (lookup_dwo_cutu): Tweak complaint.
4169 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
4170 (dwarf2_per_objfile_free): Free all_type_units.
4172 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4174 * windows-nat.c (handle_unload_dll): Add missing empty line.
4176 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4178 * dwarf2read.c (prototyped_function_p): New function.
4179 (read_subroutine_type): Use it.
4181 2013-05-20 Joel Brobecker <brobecker@adacore.com>
4183 * rs6000-aix-tdep.c: De-indent some example code provided
4186 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
4188 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
4189 region is ok for a hardware watchpoint using the new ptrace interface
4192 2013-05-17 Doug Evans <dje@google.com>
4194 * NEWS: Mention new maintenance commands check-symtabs, and
4195 expand-symtabs, and renamed check-psymtabs.
4196 * psymtab.c (maintenance_check_psymtabs): Renamed from
4197 maintenance_check_symtabs. Only process already-expanded symbol
4199 (_initialize_psymtab): Update.
4200 * symmisc.c (maintenance_check_symtabs): New function.
4201 (maintenance_expand_name_matcher): New function
4202 (maintenance_expand_file_matcher): New function
4203 (maintenance_expand_symtabs): New function.
4204 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
4207 2013-05-17 Tom Tromey <tromey@redhat.com>
4209 * python/py-inferior.c (infpy_read_memory): Don't call
4210 PyErr_SetString if PyObject_New fails.
4211 * python/py-frame.c (frame_info_to_frame_object): Don't call
4212 PyErr_SetString if PyObject_New fails.
4214 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
4216 * acinclude.m4: Add check for dlopen in libdl.
4217 * configure.ac: Ditto.
4218 * configure: Regenerate.
4220 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
4222 * frame.c (frame_stash): Convert to htab.
4223 (frame_addr_hash): New function.
4224 (frame_addr_hash_eq): New function.
4225 (frame_stash_create): Convert function to create
4227 (frame_stash_add): Convert function to add an entry to a hash
4229 (frame_stash_find): Convert function to search the hash table.
4230 (frame_stash_invalidate): Convert function to empty the hash
4232 (get_frame_id): Only add to stash if a frame_id is created.
4233 (_initialize_frame): Call frame_stash_create.
4235 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
4237 * configure.ac: Ensure MIG is available when building for GNU Hurd
4239 * configure: Regenerate.
4241 2013-05-16 Joel Brobecker <brobecker@adacore.com>
4243 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
4245 2013-05-16 Joel Brobecker <brobecker@adacore.com>
4247 * ada-lang.c (ada_make_symbol_completion_list): Make sure
4248 all cleanups are done before returning from this function.
4250 2013-05-15 Joel Brobecker <brobecker@adacore.com>
4252 * utils.h: #include "exceptions.h".
4253 (enum errors): Remove partial declaration.
4255 2013-05-15 Joel Brobecker <brobecker@adacore.com>
4257 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
4258 * gdbarch.h, gdbarch.c: Regenerate.
4259 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
4262 * rs6000-aix-tdep.h: New file.
4263 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
4264 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
4266 (struct field_info, struct ld_info_desc): New types.
4267 (ld_info32_desc, ld_info64_desc): New static constants.
4268 (struct ld_info): New type.
4269 (rs6000_aix_extract_ld_info): New function.
4270 (rs6000_aix_shared_library_to_xml): Likewise.
4271 (rs6000_aix_ld_info_to_xml): Likewise.
4272 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
4273 (rs6000_aix_init_osabi): Add call to
4274 set_gdbarch_core_xfer_shared_libraries_aix.
4275 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
4276 Remove "xml-utils.h" include.
4277 (LdInfo): Delete typedef.
4278 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
4280 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
4281 Adjust code accordingly.
4282 (rs6000_core_ldinfo): Delete, folded into
4283 rs6000_aix_core_xfer_shared_libraries_aix.
4284 (rs6000_xfer_shared_library): Delete.
4285 (rs6000_xfer_shared_libraries): Reimplement.
4287 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
4289 * record.c (record_goto_cmdlist): New.
4290 (cmd_record_goto): Split into this ...
4291 (cmd_record_goto_begin): ... this
4292 (cmd_record_goto_end): ... and this.
4293 (_initialize_record): Change "record goto" to prefix command.
4294 Add commands for "record goto begin" and "record goto end".
4295 Add an alias for "record goto start" to "record goto begin".
4297 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4299 * linespec.c (convert_linespec_to_sals): New comment for
4300 SOURCE_FILENAME assignment.
4302 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4304 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
4307 2013-05-14 Tom Tromey <tromey@redhat.com>
4309 * eval.c (parse_and_eval_long): Make 'exp' const.
4310 * value.h (parse_and_eval_long): Update.
4312 2013-05-14 Tom Tromey <tromey@redhat.com>
4314 * ui-file.c (gdb_fopen): Make arguments const.
4315 * ui-file.h (gdb_fopen): Make arguments const.
4317 2013-05-14 Tom Tromey <tromey@redhat.com>
4319 * remote.c (remote_set_trace_notes): Make arguments const.
4320 * target.c (update_current_target): Update cast.
4321 * target.h (to_set_trace_notes): Make arguments const.
4323 2013-05-14 Tom Tromey <tromey@redhat.com>
4325 * go32-nat.c (go32_terminal_info): Make 'args' const.
4326 * inferior.h (child_terminal_info): Update.
4327 * inflow.c (child_terminal_info): Make 'args' const.
4328 * target.c (default_terminal_info): Make 'args' const.
4329 (debug_to_terminal_save_ours): Likewise.
4330 * target.h (struct target_ops) <to_terminal_info>: Make argument
4333 2013-05-13 Tom Tromey <tromey@redhat.com>
4335 * gcore.c (create_gcore_bfd): Make 'filename' const.
4336 * gcore.h (create_gcore_bfd): Make 'filename' const.
4337 * record-full.c (record_full_save): Make 'recfilename' const.
4338 * target.c (target_save_record): Make 'filename' const.
4339 * target.h (struct target_ops) <to_save_record>: Make 'filename'
4341 (target_save_record): Likewise.
4343 2013-05-13 Tom Tromey <tromey@redhat.com>
4346 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
4347 ranges section has been read.
4349 2013-05-13 Tom Tromey <tromey@redhat.com>
4352 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4353 STRUCTOP_PTR>: Return a not_lval value for
4354 EVAL_AVOID_SIDE_EFFECTS.
4355 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
4356 for EVAL_AVOID_SIDE_EFFECTS.
4358 2013-05-13 Joel Brobecker <brobecker@adacore.com>
4360 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
4361 floating point registers to register type before storing
4363 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
4366 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4367 Tom Tromey <tromey@redhat.com>
4369 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4371 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
4373 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
4374 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
4375 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
4376 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
4378 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
4379 Tom Tromey <tromey@redhat.com>
4382 * configure: Rebuild.
4383 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
4386 2013-05-10 Pedro Alves <palves@redhat.com>
4388 * remote.c (_initialize_remote): Fix spelling of
4389 qXfer:traceframe-info:read packet in packet config command.
4391 2013-05-10 David Taylor <dtaylor@emc.com>
4395 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
4396 "QTro" at start of packet.
4398 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4400 * solib-aix.c (solib_aix_relocate_section_addresses):
4401 For the .bss section action, apply the same offset as
4404 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4406 * solib-aix.c (solib_aix_relocate_section_addresses):
4407 Remove FIXME comment.
4409 2013-05-10 Joel Brobecker <brobecker@adacore.com>
4412 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
4413 New functions, directly copied from sparc-sol-thread.c.
4414 * sparc-sol-thread.c: Delete.
4415 * configure.ac: Remove code handling sparc-solaris-thread.c.
4416 * configure: Regenerate.
4418 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
4420 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
4422 (backtrace_command): Add "no-filters" option parsing.
4423 (_initialize_stack): Alter help to reflect "no-filters" option.
4424 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
4425 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
4426 (py-frame.o): Add target
4427 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
4429 * python/python.h: Add new frame filter constants, and flag enum.
4430 (apply_frame_filter): Add definition.
4431 * python/python.c (apply_frame_filter): New non-Python
4433 * python/py-utils.c (py_xdecref): New function.
4434 (make_cleanup_py_xdecref): Ditto.
4435 * python/py-objfile.c: Declare frame_filters dictionary.
4436 (objfpy_dealloc): Add frame_filters dealloc.
4437 (objfpy_new): Initialize frame_filters attribute.
4438 (objfile_to_objfile_object): Ditto.
4439 (objfpy_get_frame_filters): New function.
4440 (objfpy_set_frame_filters): New function.
4441 * python/py-progspace.c: Declare frame_filters dictionary.
4442 (pspy_dealloc): Add frame_filters dealloc.
4443 (pspy_new): Initialize frame_filters attribute.
4444 (pspacee_to_pspace_object): Ditto.
4445 (pspy_get_frame_filters): New function.
4446 (pspy_set_frame_filters): New function.
4447 * python/py-framefilter.c: New file.
4448 * python/lib/gdb/command/frame_filters.py: New file.
4449 * python/lib/gdb/frames.py: New file.
4450 * python/lib/gdb/__init__.py: Initialize global frame_filters
4452 * python/lib/gdb/FrameDecorator.py: New file.
4453 * python/lib/gdb/FrameIterator.py: New file.
4454 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
4455 * mi/mi-cmds.h: Declare.
4456 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
4457 --no-frame-filter logic, and Python frame filter logic.
4458 (stack_enable_frame_filters): New function.
4459 (parse_no_frame_option): Ditto.
4460 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
4462 (mi_cmd_stack_list_locals): Ditto.
4463 (mi_cmd_stack_list_args): Ditto.
4464 (mi_cmd_stack_list_variables): Ditto.
4465 * NEWS: Add frame filter note.
4467 2013-05-09 Doug Evans <dje@google.com>
4469 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
4470 All callers updated.
4471 (syms_from_objfile): Ditto. Make static.
4472 (symbol_file_add_with_addrs): Renamed from
4473 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
4474 num_offsets. All callers updated.
4475 * symfile.h (syms_from_objfile): Delete.
4477 * symfile.c (decrement_reading_symtab): Add assert.
4478 (increment_reading_symtab): Ditto.
4480 2013-05-09 Joel Brobecker <brobecker@adacore.com>
4482 * source.c (forward_search_command): Replace call to getc
4484 (reverse_search_command): Likewise.
4486 2013-05-08 Doug Evans <dje@google.com>
4488 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
4491 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4493 * sol-thread.c (info_cb): Factorize the code a little.
4495 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4497 * sol-thread.c (info_cb): Rework the output of the "maintenance
4498 info sol-threads" command a bit.
4500 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4502 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
4503 Replace ti.ti_startfunc by ti.ti_pc.
4505 2013-05-08 Joel Brobecker <brobecker@adacore.com>
4507 * solib-aix.c (solib_aix_free_library_list): New function
4508 for the case where HAVE_LIBEXPAT is not defined.
4510 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4512 PR breakpoints/15413:
4513 * breakpoint.c (condition_completer): Simplify the code to
4514 disconsider multiple locations of breakpoints when completing the
4515 "condition" command.
4517 2013-05-07 Pierre Muller <muller@sourceware.org>
4519 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
4520 instead of <sys/wait.h>.
4522 2013-05-07 Pierre Muller <muller@sourceware.org>
4524 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
4525 trailing new line from warning message.
4527 2013-05-07 Pierre Muller <muller@sourceware.org>
4529 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
4530 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
4532 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4534 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
4535 error message (ARI fix).
4537 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4539 * features/library-list-aix.dtd: Replace library-list by
4541 * rs6000-nat.c: Replace library-list by library-list-aix
4543 * solib-aix.c: Likewise.
4545 2013-05-07 Joel Brobecker <brobecker@adacore.com>
4547 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
4548 Renames TARGET_OBJECT_AIX_LIBRARIES.
4549 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
4550 TARGET_OBJECT_LIBRARIES_AIX throughout.
4551 * solib-aix.c: Likwise.
4553 2013-05-07 Yao Qi <yao@codesourcery.com>
4555 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
4556 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
4558 2013-05-07 Yao Qi <yao@codesourcery.com>
4560 * solib-dsbt.c (enable_break): Declare.
4561 (dsbt_current_sos): Remove call to enable_break2.
4562 (enable_break2): Rename to enable_break. Set solib breakpoint
4563 on '_dl_debug_state'.
4564 (enable_break): Remove.
4566 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
4568 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
4569 debug state prior to replicating existing hardware watchpoints or
4572 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4574 * gcore.c (gcore_create_callback): Ignore sections with
4575 separate_debug_objfile_backlink != NULL.
4577 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
4578 Andrew Jenner <andrew@codesourcery.com>
4579 Chung-Lin Tang <cltang@codesourcery.com>
4580 Julian Brown <julian@codesourcery.com>
4582 Based on the nios2-elf port from Altera Corporation.
4584 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
4586 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
4587 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
4588 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
4589 * nios2-tdep.h: New.
4590 * nios2-tdep.c: New.
4591 * nios2-linux-tdep.c: New.
4592 * features/Makefile (WHICH): Add nios2-linux.
4593 (nios2-linux-expedite): Set.
4594 * features/nios2-cpu.xml: New.
4595 * features/nios2.xml: New.
4596 * features/nios2-linux.xml: New.
4597 * features/nios2.c: New (autogenerated).
4598 * features/nios2-linux.c: New (autogenerated).
4599 * regformats/nios2-linux.dat: New (autogenerated).
4600 * NEWS (Changes since GDB 7.6): Add new Nios II targets
4603 2013-05-06 Doug Evans <dje@google.com>
4605 * symfile.c: Whitespace cleanup.
4607 * solist.h (struct target_so_ops): New member clear_so.
4608 * solib-svr4.c (svr4_clear_so): New function.
4609 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
4610 * solib.c (clear_so): Renamed from free_so_symbols.
4611 All callers updated. Call target clear_so if it exists.
4613 2013-05-06 Tom Tromey <tromey@redhat.com>
4615 * ada-lang.c (ada_value_primitive_packed_val): Don't
4617 * value.c (set_value_parent): Incref the new parent and decref
4619 (value_copy, value_primitive_field): Use set_value_parent.
4621 2013-05-06 Tom Tromey <tromey@redhat.com>
4623 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
4624 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
4626 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
4627 * dwarf2read.c (write_constant_as_bytes)
4628 (dwarf2_fetch_constant_bytes): New functions.
4630 2013-05-06 Tom Tromey <tromey@redhat.com>
4632 * dwarf2read.c (dwarf2_const_value_data): Remove unused
4634 (dwarf2_const_value_attr): Update.
4636 2013-05-06 Tom Tromey <tromey@redhat.com>
4638 * somread.c (som_symfile_offsets): Add 'const' to addrs.
4639 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
4640 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
4643 2013-05-06 Tom Tromey <tromey@redhat.com>
4645 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
4648 2013-05-06 Doug Evans <dje@google.com>
4650 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
4651 * stabsread.h (process_one_symbol): Update declaration.
4652 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
4653 * elfread.c (elf_symfile_relocate_probe): Ditto.
4654 * psymtab.c (relocate_psymtabs): Ditto.
4655 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
4656 (objfile_relocate): Ditto.
4657 * objfiles.h (objfile_relocate): Update declaration.
4658 * symfile.c (relative_addr_info_to_section_offsets): Constify
4660 (default_symfile_offsets): Ditto.
4661 (syms_from_objfile_1): Constify offsets parameter.
4662 (syms_from_objfile): Ditto.
4663 (symbol_file_add_with_addrs_or_offsets): Ditto.
4664 (symfile_map_offsets_to_segments): Constify data parameter.
4665 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
4666 delta parameters of member relocate.
4667 (struct sym_probe_fns): Constify new_offsets,
4668 delta parameters of member sym_relocate_probe.
4669 (struct sym_fns): Constify section_addr_info parameter of member
4671 (relative_addr_info_to_section_offsets): Update declaration.
4672 (default_symfile_offsets): Ditto.
4673 (syms_from_objfile): Ditto.
4674 (symfile_map_offsets_to_segments): Ditto.
4676 * symfile.c (syms_from_objfile_1): Use correct section count when
4677 objfile->sf == NULL.
4679 2013-05-06 Mike Frysinger <vapier@gentoo.org>
4681 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
4683 2013-05-06 Doug Evans <dje@google.com>
4685 * psympriv.h (struct partial_symtab): Augment comment for member
4688 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4690 Reimplement shared library support on ppc-aix...
4691 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
4692 * features/library-list-aix.dtd: New file.
4693 * solib-aix.h, solib-aix.c: New file.
4694 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
4695 (rs6000_find_toc_address_hook): Delete.
4696 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
4697 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
4698 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
4700 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
4701 (vmap_symtab, fixup_breakpoints): Delete.
4702 (rs6000_xfer_shared_libraries): New function.
4703 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
4704 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
4705 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
4706 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
4707 (rs6000_xfer_shared_library): New function.
4708 (find_toc_address): Delete.
4709 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
4710 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
4711 * xcoffread.c (record_minimal_symbol): Reloate symbol address
4712 before creating minimal symbol. Adjust function description
4714 (scan_xcoff_symtab): Replace call to
4715 prim_record_minimal_symbol_and_info by call to
4716 record_minimal_symbol.
4717 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
4718 around default_symfile_offsets.
4719 * configure.tgt: Add solib-aix.o to gdb_target_obs for
4720 powerpc-aix targets.
4721 * config/rs6000/nm-rs6000.h: Delete.
4722 * config/powerpc/aix.mh (NAT_FILE): Delete.
4723 (NATDEPFILES): Remove xcoffsolib.o.
4724 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
4725 (ALL_TARGET_OBS): Add solib-aix.o.
4726 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
4727 config/rs6000/nm-rs6000.h. Add solib-aix.h.
4728 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
4729 * xcoffsolib.h, xcoffsolib.c: Delete.
4731 * solib.c (reload_shared_libraries): Remove reference to
4732 SOLIB_CREATE_INFERIOR_HOOK.
4733 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
4734 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
4735 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
4737 * corelow.c (deprecated_core_resize_section_table): Delete.
4738 * exec.c: Remove include of xcoffsolib.h".
4739 (map_vmap, vmap): Delete.
4740 (exec_close_1): Remove references to vmap.
4741 (exec_file_attach): Remove vmap handling code, and reference
4742 to DEPRECATED_IBM6000_TARGET.
4743 (bfdsec_to_vmap): Delete.
4744 (exec_files_info): Remove block of code handling VMAP.
4745 * infcmd.c (post_create_inferior): Remove reference to
4746 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
4747 * infrun.c (follow_exec): Remove reference to
4748 SOLIB_CREATE_INFERIOR_HOOK.
4749 * stack.c (print_frame): Remove reference to PC_SOLIB.
4750 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
4751 (dsbt_relocate_main_executable): Likewise.
4752 * solib-frv.c (frv_current_sos): Likewise.
4754 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4756 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
4757 to target_write_memory and target_read_memory.
4759 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4761 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
4762 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
4764 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4766 * darwin-nat.c: Replace all "%x" instances in format strings
4767 into "0x%x" throughout.
4769 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4771 * darwin-nat.c (darwin_mourn_inferior): Replace call to
4772 gdb_assert by call to MACH_CHECK_ERROR.
4773 (darwin_attach_pid): Raise an error rather than a failed
4774 assertion when various system calls failed. Report a warning
4775 instead of raising a failed assertion when PREV_NOT is not NULL
4776 after call to mach_port_request_notification.
4777 (darwin_ptrace_me): Raise an error rather than a failed
4778 assertion when read returns nonzero.
4780 2013-05-06 Joel Brobecker <brobecker@adacore.com>
4782 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
4784 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4786 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
4788 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4790 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
4791 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
4792 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
4793 a stale cleanup. Fix double free of NAME.
4795 2013-05-04 Eli Zaretskii <eliz@gnu.org>
4797 * windows-nat.c (windows_delete_thread): Accept an additional
4798 argument, the thread's exit code, and announce thread death when
4799 print_thread_events is non-zero and we are deleting a thread that
4800 is not the main thread.
4801 (get_windows_debug_event): Pass thread exit code to
4802 windows_delete_thread.
4804 2013-05-03 Kevin Buettner <kevinb@redhat.com>
4806 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
4807 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
4808 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
4809 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
4810 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
4811 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
4812 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
4813 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
4814 (gdbarch_tdep): New struct.
4815 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
4817 (v850e3v5_register_name): New function.
4818 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
4819 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
4820 code handling the struct return conventions for the RH850 ABI.
4822 (v850_eight_byte_align_p): New function.
4823 (v850_push_call_dummy): Push structs by value, not by reference
4824 for the RH850 ABI. Add support for eight byte alignment.
4825 (v850_dbtrap_breakpoint_from_pc): New function.
4826 (v850_gdbarch_init): Add ABI detection code. Register
4827 v850e3v5_register_name for the v850e3v5 architecture. Set the
4828 number of registers for v850e3v5. Register
4829 v850_dbtrap_breakpoint_from_pc as appropriate.
4830 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
4832 2013-05-03 Doug Evans <dje@google.com>
4834 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
4835 of bfd_count_sections.
4836 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
4837 * symfile.c (default_symfile_offsets): Ditto.
4838 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
4839 one entry, not bfd_count_sections entries.
4841 2013-05-03 Kevin Buettner <kevinb@redhat.com>
4843 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
4844 `save' and `restore' register groups. Don't include SPL
4845 or SPH in these groups.
4846 (rl78_dwarf_reg_to_regnum): Adjust mapping for
4847 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
4848 RL78_ES_REGNUM, and RL78_CS_REGNUM.
4849 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
4850 dwarf2_append_unwinders().
4852 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4854 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
4855 ignore SIGINT and SIGTRAP in case these internal signals are
4858 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4860 * darwin-nat.c (darwin_read_write_inferior): Change types
4861 of parameters rdaddr and wraddr to "gdb_byte *". Change type
4862 of copy_count to "mach_msg_type_number_t".
4863 (darwin_read_dyld_info): Change type of parameter
4864 rdaddr to "gdb_byte *".
4866 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4868 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
4869 of &info->load_map from "char *" to "gdb_byte *".
4871 2013-05-01 Joel Brobecker <brobecker@adacore.com>
4873 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
4874 from "char *" to "gdb_byte *".
4875 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
4877 2013-04-30 Doug Evans <dje@google.com>
4879 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
4880 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
4881 DWO stub. If DWO isn't found, just use stub.
4882 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
4884 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
4885 calling init_cutu_and_read_dies.
4887 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4889 * target-descriptions.c (maint_print_c_tdesc_cmd):
4890 Add case to parse structures as register types and
4893 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
4895 * MAINTAINERS (Write After Approval): Add myself to the list.
4897 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4899 * sol-thread.c (rw_common): Change type of parameter "buf"
4901 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
4902 rw_common to "gdb_byte *" instead of "char *".
4904 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4906 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
4907 of local variable msym to const struct bound_minimal_symbol.
4908 Adjust use accordingly.
4909 [ti.ti_state == TD_THR_SLEEP]: Likewise.
4911 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
4913 * i386gnu-nat.c (CREG_OFFSET): New macro.
4914 (creg_offset): New array.
4915 (CREG_ADDR): Use creg_offset instead of reg_offset.
4917 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4919 * mep-tdep.c (mep_write_pc): Delete.
4920 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
4921 Add call to set_gdbarch_pc_regnum.
4923 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4925 * common/filestuff.c: Replace #include <dirent.h> by
4926 #include "gdb_dirent.h".
4928 2013-04-30 Joel Brobecker <brobecker@adacore.com>
4930 * common/filestuff.c: Replace #include <sys/stat.h> by
4931 #include "gdb_stat.h".
4933 2013-04-29 Pierre Muller <muller@sourceware.org>
4935 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
4936 editCase function rule.
4937 (get_DW_AT_signature_type): Likewise.
4939 2013-04-29 Joel Brobecker <brobecker@adacore.com>
4941 * m32r-tdep.c (m32r_write_pc): Delete.
4942 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
4943 Add call to set_gdbarch_pc_regnum.
4945 2013-04-29 Pierre Muller <muller@sourceware.org>
4947 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
4949 2013-04-29 Joel Brobecker <brobecker@adacore.com>
4951 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
4953 2013-04-28 Yao Qi <yao@codesourcery.com>
4955 * solib-dsbt.c (fetch_loadmap): Re-indent.
4956 (displacement_from_map, enable_break2): Likewise.
4957 (dsbt_relocate_section_addresses): Likewise.
4959 2013-04-26 Joel Brobecker <brobecker@adacore.com>
4963 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
4966 * dwarf2read.c (process_full_comp_unit): Always create a static
4969 2013-04-25 Hui Zhu <hui@codesourcery.com>
4971 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
4972 to loc->cmd_bytecode.
4974 2013-04-24 Doug Evans <dje@google.com>
4976 * dwarf2read.c (setup_type_unit_groups): Fix comment.
4978 2013-04-22 Keith Seitz <keiths@redhat.com>
4980 * tracepoint.c (trace_save): Call the writer's start method.
4982 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
4985 * cli/cli-decode.c (lookup_command): Show an error if there is no space
4988 2013-04-23 Tom Tromey <tromey@redhat.com>
4990 * common/filestuff.c: Check USE_WIN32API before including
4992 (HAVE_F_GETFD): New define.
4993 (mark_cloexec): Check HAVE_F_GETFD.
4994 (gdb_open_cloexec): Change 'mode' to unsigned long.
4995 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
4996 (gdb_pipe_cloexec): Check HAVE_PIPE.
4997 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
5000 2013-04-23 Hui Zhu <hui@codesourcery.com>
5003 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
5005 2013-04-23 Hui Zhu <hui@codesourcery.com>
5008 * breakpoint.c (dprintf_print_recreate): New.
5009 (save_breakpoints): Let it not save dprintf commands.
5010 (initialize_breakpoint_ops): Set dprintf_print_recreate.
5012 2013-04-22 Tom Tromey <tromey@redhat.com>
5015 * Makefile.in (SFILES): Add filestuff.c
5016 (COMMON_OBS): Add filestuff.o.
5017 (filestuff.o): New target.
5018 * auto-load.c (auto_load_objfile_script_1): Use
5020 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
5021 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
5022 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
5023 * common/agent.c (gdb_connect_sync_socket): Use
5025 * common/filestuff.c: New file.
5026 * common/filestuff.h: New file.
5027 * common/linux-osdata.c (linux_common_core_of_thread)
5028 (command_from_pid, commandline_from_pid, print_source_lines)
5029 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
5030 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
5032 * common/linux-procfs.c (linux_proc_get_int)
5033 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
5034 * config.in, configure: Rebuild.
5035 * configure.ac: Don't check for sys/socket.h. Check for
5037 * corelow.c (core_open): Use gdb_open_cloexec.
5038 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
5039 * fork-child.c (fork_inferior): Call close_most_fds.
5040 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
5041 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
5042 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
5043 Use gdb_fopen_cloexec.
5044 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
5046 (linux_async_pipe): Use gdb_pipe_cloexec.
5047 * remote-fileio.c (remote_fileio_func_open): Use
5049 * remote.c (remote_file_put, remote_file_get): Use
5051 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
5053 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
5054 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
5055 * solib.c (solib_find): Use gdb_open_cloexec.
5056 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
5057 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
5058 (tfile_open): Use gdb_open_cloexec.
5059 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
5060 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
5061 * xml-support.c (xml_fetch_content_from_file): Use
5063 * main.c (captured_main): Call notice_open_fds.
5065 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
5067 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
5068 'char *' to 'gdb_byte *'.
5069 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
5072 2013-04-22 Yao Qi <yao@codesourcery.com>
5074 * infrun.c: Fix typo in comment.
5076 2013-04-22 Andrew Haley <aph@redhat.com>
5078 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
5081 2013-04-20 Yao Qi <yao@codesourcery.com>
5083 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
5084 'char *' to 'gdb_byte *'. Cast the return value of
5085 'bt_ctf_get_char_array' to 'gdb_byte *'.
5087 2013-04-19 Pedro Alves <palves@redhat.com>
5089 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
5091 * configure: Regenerate.
5093 2013-04-19 Pedro Alves <palves@redhat.com>
5095 * ser-tcp.c (net_read_prim): Cast second argument to recv to
5098 2013-04-19 Pedro Alves <palves@redhat.com>
5100 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
5101 Change type of 'myaddr' parameter to gdb_byte pointer.
5102 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
5103 to 'long long' pointer instead of to 'unsigned long long'.
5104 (monitor_write_memory_block, monitor_read_memory_single)
5105 (monitor_read_memory): Change type of 'myaddr' parameter to
5108 2013-04-19 Pedro Alves <palves@redhat.com>
5110 * record.c (validate_history_size): Make parameter 'setting'
5113 2013-04-19 Pedro Alves <palves@redhat.com>
5115 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
5118 2013-04-19 Pedro Alves <palves@redhat.com>
5120 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
5123 2013-04-19 Pedro Alves <palves@redhat.com>
5125 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
5126 * ada-tasks.c (read_fat_string_value): Likewise.
5128 2013-04-19 Pedro Alves <palves@redhat.com>
5130 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
5131 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
5132 'offset', and adjust.
5134 2013-04-19 Pedro Alves <palves@redhat.com>
5136 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
5137 (read_index_from_section): Add cast to 'char *'.
5139 2013-04-19 Pedro Alves <palves@redhat.com>
5141 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
5143 2013-04-19 Pedro Alves <palves@redhat.com>
5145 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
5147 2013-04-19 Pedro Alves <palves@redhat.com>
5149 * record-full.c (record_full_get_bookmark): Change local 'ret'
5150 type to char * and add cast to gdb_byte *.
5151 (record_full_goto_bookmark): Handle 'bookmark' argument as a
5153 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
5155 2013-04-19 Pedro Alves <palves@redhat.com>
5157 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
5158 * python/py-prettyprint.c (print_string_repr): Change type of
5159 'output' local to char *. Add cast to gdb_byte * in
5160 LA_PRINT_STRING call.
5161 (print_children): Change type of 'output' local to char *.
5162 * python/py-value.c (valpy_string): Add cast to const char * in
5163 PyUnicode_Decode call.
5165 2013-04-19 Pedro Alves <palves@redhat.com>
5167 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
5168 and change its type to 'const char *'. Adjust.
5169 (mips_send_packet): Add cast to 'char *', and remove cast to
5171 (mips_receive_packet): Remove cast to 'unsigned char *'.
5172 (mips_load_srec): Use bfd_byte.
5173 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
5174 (pmon_checkset): Make 'value' parameter unsigned.
5176 2013-04-19 Pedro Alves <palves@redhat.com>
5178 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
5180 2013-04-19 Pedro Alves <palves@redhat.com>
5182 * remote.c (remote_write_bytes_aux, compare_sections_command)
5184 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
5185 (remote_hostio_readlink, remote_bfd_iovec_pread)
5186 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
5187 binary buffer, and char when buffer is used as string.
5188 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
5189 (trace_save, tfile_open, traceframe_walk_blocks)
5190 (tfile_fetch_registers): Likewise.
5192 2013-04-19 Pedro Alves <palves@redhat.com>
5194 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
5195 buffer and size_t size. Adjust.
5196 * ser-base.h (ser_base_write): Adjust.
5197 * ser-go32.c (cnts): Change type to size_t.
5198 (dos_write): Change prototype -- take 'void *'
5199 buffer and size_t size. Adjust.
5200 (dos_info): Print elements of 'cnts' as unsigned long.
5201 * serial.c (serial_write): Likewise.
5202 * serial.h (serial_write): Adjust.
5203 (struct serial_ops) <write>: Change prototype -- take 'void *'
5204 buffer and size_t size. Adjust.
5206 2013-04-19 Pedro Alves <palves@redhat.com>
5208 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
5210 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
5212 2013-04-19 Pedro Alves <palves@redhat.com>
5214 * alpha-tdep.c (alpha_extract_return_value): Use
5215 regcache_cooked_read_unsigned to read 'v0'.
5217 2013-04-19 Pedro Alves <palves@redhat.com>
5219 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
5220 parameters 'at', 'as' and 'offset' to uint32_t.
5222 2013-04-19 Pedro Alves <palves@redhat.com>
5224 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
5225 'is64' to signed 'int'.
5227 2013-04-19 Pedro Alves <palves@redhat.com>
5229 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
5232 2013-04-19 Pedro Alves <palves@redhat.com>
5234 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
5235 'insnbuf' buffer type to unsigned int[].
5237 2013-04-19 Pedro Alves <palves@redhat.com>
5239 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
5241 2013-04-19 Pedro Alves <palves@redhat.com>
5243 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
5246 2013-04-19 Pedro Alves <palves@redhat.com>
5248 * alpha-tdep.c (heuristic_fence_post): Change type to int.
5249 (alpha_heuristic_proc_start): Adjust to check -1 instead of
5251 * mips-tdep.c (heuristic_fence_post): Change type to int.
5252 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
5254 2013-04-19 Pedro Alves <palves@redhat.com>
5256 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
5257 (struct gdbarch_tdep) <cris_version>: Make unsigned.
5258 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
5260 2013-04-19 Pedro Alves <palves@redhat.com>
5262 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
5263 it to get a string view of the byte buffer.
5264 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
5265 type to gdb_byte *. Adjust.
5266 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
5267 Change local to char *.
5268 * solib-darwin.c (find_program_interpreter): Change return type to
5270 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
5271 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
5272 * solib-frv.c (enable_break2): Change local 'buf' to char *.
5273 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
5274 * solib-svr4.c (find_program_interpreter): Change return type to
5276 (enable_break): Change local 'interp_name' to char *.
5277 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5278 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
5279 (spu_pseudo_register_write_spu): Use char for string buffer.
5281 (info_spu_event_command, info_spu_signal_command): Add casts to
5284 2013-04-19 Pedro Alves <palves@redhat.com>
5286 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
5288 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
5289 * ada-lang.c (ada_value_assign): Use gdb_byte.
5290 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
5291 (alphanbsd_sigtramp_offset): Use gdb_byte.
5292 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
5293 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
5294 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
5295 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
5296 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
5297 * arm-tdep.c (arm_stub_unwind_sniffer)
5298 (arm_displaced_init_closure): Use gdb_byte.
5299 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
5300 (arm_default_thumb_le_breakpoint)
5301 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
5302 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
5303 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
5304 * arm-wince-tdep.c (arm_wince_le_breakpoint)
5305 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
5306 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
5307 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
5308 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
5309 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
5310 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
5311 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
5312 (cris_store_return_value, cris_extract_return_value): Use
5314 (constraint): Change type of parameter to char * from signed
5315 char*. Use gdb_byte.
5316 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
5317 of local buffer to gdb_byte *.
5318 * dwarf2read.c (read_index_from_section): Use gdb_byte.
5319 (create_dwp_hash_table): Change type of locals to gdb_byte *.
5320 (add_address_entry): Change type of local buffer to gdb_byte[].
5321 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
5322 (frv_push_dummy_call): Use gdb_byte.
5323 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
5324 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
5325 (hppa_hpux_supply_save_state): Use gdb_byte.
5326 * hppa-tdep.c (hppa32_push_dummy_call)
5327 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
5328 * ia64-tdep.c (extract_bit_field, replace_bit_field)
5329 (slotN_contents, replace_slotN_contents): Change type of parameter
5331 (fetch_instruction, ia64_pseudo_register_write)
5332 (ia64_register_to_value, ia64_value_to_register)
5333 (ia64_extract_return_value, ia64_store_return_value)
5334 (ia64_push_dummy_call): Use gdb_byte.
5335 * m32c-tdep.c (m32c_return_value): Remove cast.
5336 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
5337 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
5339 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
5340 * mn10300-tdep.c (mn10300_store_return_value)
5341 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
5343 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
5344 (moxie_process_record): Remove casts.
5345 * ppc-ravenscar-thread.c (supply_register_at_address)
5346 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
5347 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
5348 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
5349 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
5350 * remote.c (compare_sections_command): Use gdb_byte.
5351 * score-tdep.c (score7_free_memblock): Change type of parameter to
5353 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
5354 gdb_byte *. Use gdb_byte.
5355 (sh_push_dummy_call_fpu): Use gdb_byte.
5356 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
5357 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
5358 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
5359 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5360 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
5361 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
5362 (sh64_store_return_value, sh64_register_convert_to_virtual):
5363 Change parameter type to 'gdb_byte *'. Use gdb_byte.
5364 (sh64_pseudo_register_write): Use gdb_byte.
5365 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
5366 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
5368 (irix_current_sos): Use gdb_byte.
5369 * solib-som.c (som_current_sos): Use gdb_byte.
5370 * sparc-ravenscar-thread.c (supply_register_at_address)
5371 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
5372 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
5373 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
5374 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
5376 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
5378 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
5379 * xstormy16-tdep.c (xstormy16_extract_return_value)
5380 (xstormy16_store_return_value): Change parameter type to
5381 'gdb_byte *'. Adjust.
5382 (xstormy16_push_dummy_call): Use gdb_byte.
5383 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
5384 (call0_analyze_prologue, execute_code): Use gdb_byte.
5386 2013-04-19 Vladimir Kargov <kargov@gmail.com>
5387 Pedro Alves <palves@redhat.com>
5389 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
5392 2013-04-17 Doug Evans <dje@google.com>
5394 * dwarf2read.c (struct signatured_type): New member type.
5395 (struct attribute): Replace member signatured_type with signature.
5396 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
5397 (read_call_site_scope): Call follow_die_ref instead of
5398 follow_die_ref_or_sig.
5399 (read_structure_type): Rewrite handling of signatured types.
5400 (read_enumeration_type): Ditto.
5401 (read_attribute_value): Update.
5402 (build_error_marker_type): New function.
5403 (lookup_die_type): Add assert. Rewrite handling of signatured types.
5404 Don't call error for bad types, just build an error marker type.
5405 (dump_die_shallow): Update.
5406 (follow_die_sig_1): Renamed from follow_die_sig.
5407 Don't call error for bad types, instead return NULL.
5408 (follow_die_sig): New function.
5409 (get_signatured_type, get_DW_AT_signature_type): New functions.
5411 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
5413 * aarch64-tdep.c (aarch64_write_pc): Removed.
5414 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
5417 2013-04-17 Yao Qi <yao@codesourcery.com>
5419 * top.c (print_gdb_configuration): Print configure-time
5420 parameter on using libbabeltrace or not.
5422 2013-04-16 Pedro Alves <palves@redhat.com>
5424 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
5426 2013-04-16 Pedro Alves <palves@redhat.com>
5428 * common/glibc_thread_db.h: Update from upstream glibc
5429 (git 568035b7874a099087b77f7bba3e36a1173787b0).
5431 2013-04-16 Pedro Alves <palves@redhat.com>
5433 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
5434 * common/glibc_thread_db.h: ... this new file ...
5435 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
5437 2013-04-16 Will Newton <will.newton@gmail.com>
5438 Pedro Alves <palves@redhat.com>
5442 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
5443 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
5446 2013-04-16 Pedro Alves <palves@redhat.com>
5447 Eli Zaretskii <eliz@gnu.org>
5449 * NEWS: Mention "set foo unlimited".
5451 2013-04-15 Doug Evans <dje@google.com>
5453 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
5454 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
5455 (create_dwo_cu_reader): Renamed from
5456 create_dwo_debug_info_hash_table_reader.
5457 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
5458 Remove support for multiple CUs in a DWO file.
5459 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
5461 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
5463 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
5464 (create_dwo_in_dwp): Ditto.
5466 2013-04-15 Tom Tromey <tromey@redhat.com>
5468 * NEWS: Move recent entries into "since 7.6" section.
5470 2013-04-15 Tom Tromey <tromey@redhat.com>
5474 * break-catch-throw.c (struct exception_catchpoint)
5475 <exception_rx, pattern>: New fields.
5476 (fetch_probe_arguments, dtor_exception_catchpoint)
5477 (check_status_exception_catchpoint)
5478 (print_one_detail_exception_catchpoint): New functions.
5479 (handle_gnu_v3_exceptions): Add "except_rx" argument.
5480 Compile regular expression if needed.
5481 (extract_exception_regexp): New function.
5482 (catch_exception_command_1): Use extract_exception_regexp.
5483 (compute_exception): Use fetch_probe_arguments.
5484 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
5485 and check_status fields.
5486 * cp-abi.c (cplus_typename_from_type_info): New function.
5487 * cp-abi.h (cplus_typename_from_type_info): Declare.
5488 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
5489 * gdb_regex.h (compile_rx_or_error): Declare.
5490 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
5492 (init_gnuv3_ops): Set get_type_from_type_info field.
5493 * probe.c (compile_rx_or_error): Move...
5494 * utils.c (compile_rx_or_error): ... here.
5496 2013-04-15 Tom Tromey <tromey@redhat.com>
5500 * break-catch-throw.c (compute_exception): New function.
5501 (exception_funcs): New global.
5502 (_initialize_break_catch_throw): Create $_exception.
5503 * cp-abi.c (cplus_type_from_type_info): New function.
5504 * cp-abi.h (cplus_type_from_type_info): Declare.
5505 (struct cp_abi_ops) <get_type_from_type_info>: New field.
5506 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
5507 (gnuv3_get_type_from_type_info): New functions.
5508 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
5510 2013-04-15 Tom Tromey <tromey@redhat.com>
5512 * break-catch-throw.c (struct exception_names): New.
5513 (exception_functions): Change type.
5514 (re_set_exception_catchpoint): Look for SDT probes.
5516 2013-04-15 Tom Tromey <tromey@redhat.com>
5519 * break-catch-throw.c (exception_functions): New global.
5520 (gnu_v3_exception_catchpoint_ops): Move earlier.
5521 (struct exception_catchpoint): New.
5522 (classify_exception_breakpoint): Rewrite.
5523 (re_set_exception_catchpoint): New function.
5524 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
5525 Allocate a struct exception_catchpoint.
5526 (catch_exception_command_1): Update.
5527 (initialize_throw_catchpoint_ops): Set 're_set' method.
5529 2013-04-15 Tom Tromey <tromey@redhat.com>
5531 * Makefile.in (SFILES): Add break-catch-throw.c
5532 (COMMON_OBS): Add break-catch-throw.o.
5533 * break-catch-throw.c: New file.
5534 * breakpoint.c: Move exception-catching code to new file.
5535 (ep_parse_optional_if_clause): No longer static.
5536 * breakpoint.h (ep_parse_optional_if_clause): Declare.
5538 2013-04-15 Tom Tromey <tromey@redhat.com>
5542 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
5543 * c-exp.y (TYPEID): New token.
5544 (exp): Add new TYPEID productions.
5545 (ident_tokens): Add "typeid".
5546 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
5547 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
5548 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
5549 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
5550 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
5552 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
5553 (build_std_type_info_type, gnuv3_get_typeid_type)
5554 (gnuv3_get_typeid): New functions.
5555 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
5556 new fields on ABI object.
5557 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
5558 * std-operator.def (OP_TYPEID): New.
5560 2013-04-15 Tom Tromey <tromey@redhat.com>
5562 * elfread.c (elf_symtab_read): Install versioned symbol under
5563 unversioned name as well.
5565 2013-04-15 Tom Tromey <tromey@redhat.com>
5568 * c-lang.c (cplus_language_defn): Use gdb_demangle.
5569 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
5570 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
5571 (gdb_demangle): New function.
5572 * cp-support.h (gdb_demangle): Declare.
5573 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
5574 (dwarf2_name): Use gdb_demangle.
5575 * gdbtypes.c (check_stub_method): Use gdb_demangle.
5576 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
5578 (gnuv3_print_method_ptr): Use gdb_demangle.
5579 * jv-lang.c (java_demangle): Use gdb_demangle.
5580 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
5581 * language.c (unk_lang_demangle): Use gdb_demangle.
5582 * symtab.c (symbol_find_demangled_name)
5583 (demangle_for_lookup): Use gdb_demangle.
5585 2013-04-15 Tom Tromey <tromey@redhat.com>
5589 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
5591 (classify_exception_breakpoint): New function.
5592 (print_it_exception_catchpoint, print_one_exception_catchpoint)
5593 (print_mention_exception_catchpoint)
5594 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
5595 (catch_exception_command_1): Handle "rethrow" catchpoint.
5596 (catch_rethrow_command): New function.
5597 (_initialize_breakpoint): Add "catch rethrow" command.
5599 2013-04-15 Pierre Muller <muller@sourceware.org>
5601 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
5602 set_gdbarch_write_pc as deprecated anymore.
5604 2013-04-15 Joel Brobecker <brobecker@adacore.com>
5606 * spu-tdep.c (spu_write_pc): Add empty line after local variable
5609 2013-04-13 Yao Qi <yao@codesourcery.com>
5611 * ctf.c (_initialize_ctf): Include "completer.h".
5612 Call add_target_with_completer instead of add_target.
5614 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5616 Fix GDB regression related to PR binutils/14813.
5617 * jit.c (mem_bfd_iovec_close): Return 0 for success.
5618 * minidebug.c (lzma_close): Add return value comment.
5619 * remote.c (remote_bfd_iovec_close): Return 0 for success.
5620 * solib-spu.c (spu_bfd_iovec_close): Likewise.
5621 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
5623 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5625 * config.in: Regenerate.
5627 2013-04-12 Tom Tromey <tromey@redhat.com>
5629 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
5631 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
5632 (struct die_reader_specs) <buffer>: Likewise.
5633 (die_reader_func_ftype): Make 'info_ptr' const.
5634 (struct line_header) <include_dirs, statement_program_start,
5635 statement_program_end>: Now const.
5636 (struct file_entry) <name>: Likewise.
5637 (struct partial_die_info) <sibling>: Likewise.
5638 (struct dwarf_block) <data>: Likewise.
5639 (dwarf2_read_section): Remove cast.
5640 (dwarf2_get_section_info): Make 'bufp' const.
5641 (read_index_from_section): Constify.
5642 (dw2_get_file_names_reader): Make 'info_ptr' const.
5643 (dw2_get_primary_filename_reader): Likewise.
5644 (read_comp_unit_head): Make 'info_ptr' and return type const.
5645 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
5647 (read_abbrev_offset): Constify.
5648 (dwarf2_create_include_psymtab): Make 'name' const.
5649 (create_debug_types_hash_table): Update.
5650 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
5651 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
5653 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
5654 (load_partial_comp_unit_reader): Make 'info_ptr' const.
5655 (read_comp_units_from_section): Constify.
5656 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
5657 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
5659 (dwarf2_compute_name, setup_type_unit_groups): Constify.
5660 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
5661 (create_dwp_hash_table, dwarf2_ranges_read)
5662 (dwarf2_record_block_ranges): Constify.
5663 (read_die_and_children, read_die_and_siblings_1)
5664 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
5666 (read_full_die_1, read_full_die): Make 'info_ptr' const.
5667 (abbrev_table_read_table): Constify.
5668 (load_partial_dies): Make 'info_ptr' const.
5669 (read_partial_die, read_attribute_value, read_attribute): Make
5670 'info_ptr' and return type const.
5671 (read_address, read_initial_length)
5672 (read_checked_initial_length_and_offset, read_offset)
5673 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
5675 (read_direct_string): Make 'buf' and return type const.
5676 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
5677 (read_indirect_string): Make return type const.
5678 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
5679 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
5681 (read_str_index): Make return type const.
5682 (add_include_dir): Make 'include_dir' const.
5683 (add_file_name): Make 'name' const.
5684 (dwarf_decode_line_header): Constify.
5685 (psymtab_include_file_name): Make return type const.
5686 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
5687 (dwarf2_start_subfile): Make 'filename' const.
5688 (dwarf2_const_value_attr): Make 'bytes' const.
5689 (read_signatured_type_reader): Make 'info_ptr' const.
5690 (decode_locdesc): Constify.
5691 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
5693 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
5694 'mac_end', and return type const.
5695 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
5696 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
5698 (per_cu_header_read_in): Constify.
5699 * symfile.h (dwarf2_get_section_info): Update.
5701 2013-04-12 Tom Tromey <tromey@redhat.com>
5703 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
5705 2013-04-12 Eli Zaretskii <eliz@gnu.org>
5707 * NEWS: Mention "show configuration", --configuration.
5708 * top.c (print_gdb_configuration): New function, displays the
5709 details about GDB configure-time parameters.
5710 (print_gdb_version): Mention "show configuration".
5711 * cli/cli-cmds.c (show_configuration): New function.
5712 (_initialize_cli_cmds): Add the "show configuration" command.
5713 * main.c (captured_main) <print_configuration>: New static var.
5714 <long_options>: Use it.
5715 If --configuration was given, call print_gdb_configuration.
5717 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5718 Pedro Alves <palves@redhat.com>
5720 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
5721 (generated_files): Add gcore.
5722 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
5723 HAVE_NATIVE_GCORE_HOST.
5725 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
5726 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
5727 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
5728 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
5729 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
5730 Add HAVE_NATIVE_GCORE_HOST.
5731 * configure: Regenerate.
5732 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
5733 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
5734 AC_CONFIG_FILES for gcore.
5735 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
5737 * gdb_gcore.sh: Rename to ...
5738 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
5739 and GCORE_TRANSFORM_NAME substitutions.
5741 Fix parsing tabs in ${gdb_target_obs}.
5742 * configure.tgt (gdb_have_gcore): Replace case with for and if.
5744 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5746 * remote.c (unpush_and_perror): Add output message final dot.
5748 2013-04-11 Yao Qi <yao@codesourcery.com>
5750 * tracepoint.c (tfile_interp_line): Fit parameters line and
5753 2013-04-10 Joel Brobecker <brobecker@adacore.com>
5755 * solib.c (solib_map_sections): Remove code overwriting
5756 SO->SO_NAME with the bfd's filename.
5758 2013-04-10 Pedro Alves <palves@redhat.com>
5760 * cli/cli-decode.c (integer_unlimited_completer): New function.
5761 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
5762 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
5764 * cli/cli-setshow.c: Include "cli/cli-utils.h".
5765 (is_unlimited_literal): New function.
5766 (do_set_command): Handle literal "unlimited" arguments.
5767 * frame.c (_initialize_frame) <set backtrace limit>: Document
5769 * printcmd.c (_initialize_printcmd) <set print
5770 max-symbolic-offset>: Add help text.
5771 * record-full.c (_initialize_record_full) <set record full
5772 insn-number-max>: Likewise.
5773 * record.c (_initialize_record) <set record
5774 instruction-history-size, set record function-call-history-size>:
5776 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
5778 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
5780 * source.c (_initialize_source) <set listsize>: Add help text.
5781 * utils.c (initialize_utils) <set height, set width>: Likewise.
5782 <set pagination>: Mention "set height unlimited".
5783 * valprint.c (_initialize_valprint) <set print elements, set print
5784 repeats>: Document "unlimited".
5786 2013-04-10 Pedro Alves <palves@redhat.com>
5788 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
5789 instead of disconnect_tracing.
5790 * infcmd.c (detach_command, disconnect_command): Call
5791 query_if_trace_running. Adjust.
5792 * top.c: Include "tracepoint.h".
5793 (quit_target): Delete. Contents moved ...
5794 (quit_force): ... here. Wrap each stage of teardown in
5795 TRY_CATCH. Call disconnect_tracing before detaching.
5797 2013-04-10 Hui Zhu <hui@codesourcery.com>
5798 Yao Qi <yao@codesourcery.com>
5800 * configure.ac: Check libbabeltrace is installed.
5801 * config.in: Regenerate.
5802 * configure: Regenerate.
5803 * Makefile.in (LIBBABELTRACE): New.
5804 (CLIBS): Add LIBBABELTRACE.
5805 * ctf.c: Include "exec.h".
5806 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
5807 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
5808 (ctf_save_metadata_header): Define new type aliases in
5810 (ctf_write_header): Define event type "tsv_def" and "tp_def"
5811 in metadata. Start a new faked packet for trace status.
5812 (ctf_write_status): Write trace status to CTF.
5813 (ctf_write_uploaded_tsv): Write TSV to CTF.
5814 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
5815 (ctf_write_definition_end): End the faked packet.
5817 (ctx, ctf_iter, trace_dirname): New.
5818 (start_pos): New variable.
5819 (ctf_destroy, ctf_open_dir, ctf_open): New.
5820 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
5822 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
5823 (ctf_fetch_registers, ctf_xfer_partial): New.
5824 (ctf_get_trace_state_variable_value): New.
5825 (ctf_get_tpnum_from_frame_event): New.
5826 (ctf_get_traceframe_address): New.
5827 (ctf_trace_find, ctf_has_stack): New.
5828 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
5829 (ctf_get_trace_status, ctf_read_status): New.
5830 (_initialize_ctf): New.
5831 * tracepoint.c (get_tracepoint_number): New
5832 (get_uploaded_tsv): Remove 'static'.
5833 (struct traceframe_info, trace_regblock_size): Move it to ...
5834 * tracepoint.h: ... here.
5835 (get_tracepoint_number): Declare it.
5836 (get_uploaded_tsv): Declare it.
5838 * NEWS: Mention new configure option.
5840 2013-04-10 Pedro Alves <palves@redhat.com>
5841 Hui Zhu <hui@codesourcery.com>
5843 * breakpoint.c (dprintf_re_set): New.
5844 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
5847 2013-04-09 Joel Brobecker <brobecker@adacore.com>
5849 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
5850 Remove solib-svr4.o from the list.
5852 2013-04-09 Joel Brobecker <brobecker@adacore.com>
5854 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
5855 Use gdb_assert_not_reached instead of invalid boolean expression.
5857 2013-04-09 Pedro Alves <palves@redhat.com>
5859 * remote.c (unpush_and_perror): New function.
5860 (readchar, remote_serial_write): Use it.
5862 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
5864 * NEWS: Mention new btrace RSP packets.
5866 2013-04-08 Tom Tromey <tromey@redhat.com>
5868 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
5871 2013-04-08 Tom Tromey <tromey@redhat.com>
5873 * maint.c (print_bfd_section_info): Print the section index.
5874 * symmisc.c (dump_msymbols): Print the section index.
5876 2013-04-08 Tom Tromey <tromey@redhat.com>
5879 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
5880 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
5881 * breakpoint.c (resolve_sal_pc): Update.
5882 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5883 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
5884 (minsym_lookup_iterator_cb): Use it.
5885 (default_read_var_value): Update.
5886 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
5888 * infcmd.c (jump_command): Update.
5889 * linespec.c (minsym_found): Update.
5890 * maint.c (maintenance_translate_address): Update.
5891 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
5892 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
5893 * parse.c (write_exp_msymbol): Update.
5894 * printcmd.c (address_info): Update.
5895 * psymtab.c (find_pc_sect_psymbol): Update.
5896 (fixup_psymbol_section): Check SYMBOL_SECTION, not
5898 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
5899 Don't initialize SYMBOL_OBJ_SECTION.
5900 * spu-tdep.c (spu_catch_start): Update.
5901 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
5902 * symmisc.c (dump_msymbols, print_symbol): Update.
5903 * symtab.c (fixup_section): Don't set 'obj_section'. Change
5904 how fallback section is computed.
5905 (fixup_symbol_section): Update.
5906 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
5908 (allocate_symbol, initialize_symbol, allocate_template_symbol):
5909 Initialize SYMBOL_SECTION.
5910 * symtab.h (struct general_symbol_info) <section>: Update comment.
5911 <obj_section>: Remove.
5912 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
5913 (SYMBOL_OBJFILE): New macro.
5915 2013-04-08 Tom Tromey <tromey@redhat.com>
5917 * coffread.c (record_minimal_symbol): Update.
5918 * dbxread.c (record_minimal_symbol): Update.
5919 * elfread.c (record_minimal_symbol): Update.
5920 * machoread.c (macho_symtab_add_minsym): Update.
5921 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
5923 * minsyms.c (prim_record_minimal_symbol): Update.
5924 (prim_record_minimal_symbol_full): Remove 'bfd_section'
5926 (prim_record_minimal_symbol_and_info): Likewise.
5927 * minsyms.h (prim_record_minimal_symbol_full)
5928 (prim_record_minimal_symbol_and_info): Update.
5929 * symtab.c (allocate_symbol, initialize_symbol)
5930 (allocate_template_symbol): Initialize SYMBOL_SECTION.
5931 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
5934 2013-04-08 Tom Tromey <tromey@redhat.com>
5937 * solib-som.c (som_solib_section_offsets): Use BFD section
5938 indices. Set offsets for all sections.
5939 * somread.c (som_symtab_read): Compute BFD section for
5940 symbol. Use prim_record_minimal_symbol_and_info.
5941 (som_symfile_read): Fix comment.
5942 (struct find_section_offset_arg): New.
5943 (find_section_offset, set_section_index): New functions.
5944 (som_symfile_offsets): Use set_section_index to compute
5947 2013-04-08 Tom Tromey <tromey@redhat.com>
5949 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
5950 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
5951 gdb_bfd_section_index.
5952 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
5954 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
5956 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
5958 * objfiles.c (add_to_objfile_sections_full): New function.
5959 (add_to_objfile_sections): Use it.
5960 (build_section_table): Rewrite.
5961 (objfile_relocate1): Use gdb_bfd_section_index. Update.
5962 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
5963 (struct objfile) <sections>: Update comment.
5964 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
5966 (ALL_OBJSECTIONS): Use it.
5967 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
5968 * solib-frv.c (frv_relocate_main_executable): Update.
5969 * solib-target.c (solib_target_relocate_section_addresses):
5970 Use gdb_bfd_section_index.
5971 * symfile.c (build_section_addr_info_from_section_table):
5972 Use gdb_bfd_section_index.
5973 (build_section_addr_info_from_bfd, place_section): Likewise.
5974 * symtab.c (fixup_section): Update.
5975 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
5977 2013-04-08 Tom Tromey <tromey@redhat.com>
5979 * minsyms.h (struct bound_minimal_symbol): New.
5980 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5981 Remove objfile argument.
5982 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5983 Return bound_minimal_symbol.
5984 * minsyms.c (lookup_minimal_symbol_by_pc_1)
5985 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
5986 Return bound_minimal_symbol.
5987 (in_gnu_ifunc_stub): Update.
5988 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
5989 Remove 'objfile_p' argument.
5990 (lookup_solib_trampoline_symbol_by_pc): Update.
5991 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
5992 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
5993 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
5994 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
5995 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
5996 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
5997 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
5998 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
5999 stack.c, symtab.c, tui/tui-disasm.c: Update.
6001 2013-04-08 Tom Tromey <tromey@redhat.com>
6003 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
6004 Use symbol's obstack, not an objfile.
6005 * coffread.c (process_coff_symbol): Update.
6006 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
6007 * jv-lang.c (add_class_symbol): Update.
6008 * mdebugread.c (new_symbol): Update.
6009 * minsyms.c (prim_record_minimal_symbol_full)
6010 (terminate_minimal_symbol_table): Update.
6011 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
6012 * stabsread.c (define_symbol, read_enum_type): Update.
6013 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
6014 Handle Ada specially.
6015 (symbol_set_language): Add 'obstack' argument.
6016 (symbol_set_names): Update.
6017 (symbol_natural_name, symbol_demangled_name): Always use
6019 * symtab.h (struct general_symbol_info)
6020 <language_specific::obstack>: New field.
6021 <ada_mangled>: New field.
6022 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
6023 (symbol_set_language): Update.
6025 2013-04-08 Tom Tromey <tromey@redhat.com>
6027 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
6028 Take an obstack, not an objfile.
6029 (symbol_set_names): Update.
6030 * symtab.h (symbol_set_demangled_name): Update.
6032 2013-04-08 Tom Tromey <tromey@redhat.com>
6034 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
6036 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
6037 (read_func_scope): Call allocate_template_symbol.
6038 (new_symbol_full): Call allocate_symbol.
6039 * jit.c (finalize_symtab): Call allocate_symbol.
6040 * jv-lang.c (add_class_symbol): Call allocate_symbol.
6041 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
6042 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6043 (common_block_end): Call allocate_symbol.
6044 * symtab.c (allocate_symbol, initialize_symbol)
6045 (allocate_template_symbol): New functions.
6046 * symtab.c (allocate_symbol, initialize_symbol)
6047 (allocate_template_symbol): Declare.
6048 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
6050 2013-04-08 Pedro Alves <palves@redhat.com>
6051 Keith Seitz <keiths@redhat.com>
6053 * breakpoint.c (create_breakpoint): Rename
6054 "parse_condition_and_thread" parameter to "parse_arg". Update
6055 describing comment. If !PARSE_ARG, then error out if ARG is not
6056 the empty string after extracting the location.
6057 * breakpoint.h (create_breakpoint): Rename
6058 "parse_condition_and_thread" parameter to "parse_arg".
6060 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
6062 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
6064 2013-04-07 Yao Qi <yao@codesourcery.com>
6066 * remote.c (remote_trace_find): Change type of parameters 'addr1'
6067 and 'addr2' to CORE_ADDR.
6068 * target.c (update_current_target): Update.
6069 * target.h (struct target_ops) <to_trace_find>: Change parameter
6071 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
6072 'addr2' to CORE_ADDR.
6073 (tfile_trace_find): Likewise.
6074 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
6075 Change local variable 'addr' to type CORE_ADDR.
6076 * tracepoint.h (tfind_1): Update declaration.
6078 2013-04-06 Eli Zaretskii <eliz@gnu.org>
6080 * windows-nat.c (windows_get_absolute_argv0): Move from here...
6081 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
6084 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
6086 * main.h (windows_get_absolute_argv0): ...to here.
6088 2013-04-05 Doug Evans <dje@google.com>
6090 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
6091 (read_cutu_die_from_dwo): Add comments.
6092 (read_structure_type): Update comment.
6093 (read_enumeration_type, read_namespace_type): Update comment.
6094 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
6096 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6098 Convert man pages to texinfo, new gdbinit.5 texinfo page.
6099 * Makefile.in (gdb.z): Remove.
6100 (install-only): Remove $(man1dir) and gdb.1 installation.
6103 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6105 Fix compatibility with Linux kernel 3.8.3.
6106 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
6107 to more inner block. Remove parsing of NUMBER from outer block.
6108 Parse NUMBER only if KEYWORD has been identified.
6110 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 Fix variable name shadowing.
6113 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
6114 filename to mapsfilename and update its uses.
6116 2013-04-05 Eli Zaretskii <eliz@gnu.org>
6118 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
6119 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
6120 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
6121 details of the problem.
6123 2013-04-04 Pedro Alves <palves@redhat.com>
6124 Hui Zhu <hui@codesourcery.com>
6126 * breakpoint.c (validate_commands_for_breakpoint): If validating a
6127 tracepoint, reset its STEP_COUNT and call validate_actionline.
6129 2013-04-03 Doug Evans <dje@google.com>
6131 * dwarf2read.c (read_die_and_siblings_1): Renamed from
6132 read_die_and_siblings.
6133 (read_die_and_siblings): New function.
6134 (read_cutu_die_from_dwo): Dump die if requested.
6135 (read_die_and_children): Call read_full_die_1 and
6136 read_die_and_siblings_1.
6137 (read_full_die): Dump die if requested.
6139 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
6141 * dwarf2read.c (struct dwo_file): New member comp_dir.
6142 Rename member name to dwo_name. All uses updated.
6143 (hash_dwo_file): Include comp_dir in computation.
6144 (eq_dwo_file): Ditto.
6145 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
6146 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
6148 * psymtab.c (read_psymtabs_with_fullname): Don't call
6149 psymtab_to_fullname if the basenames are different.
6151 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6153 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
6154 New entry about "fullname" presence.
6156 2013-04-03 Pedro Alves <palves@redhat.com>
6158 * NEWS: Mention x86_64/Cygwin as new native configuration.
6160 2013-04-02 Doug Evans <dje@google.com>
6162 * dwarf2read.c (read_structure_type): Fix typo in comment.
6164 2013-04-02 Pedro Alves <palves@redhat.com>
6166 * NEWS: Mention "set/show debug aarch64", "set/show debug
6167 coff-pe-read" and "set/show debug mach-o".
6169 2013-04-02 Pedro Alves <palves@redhat.com>
6171 * NEWS: Mention "set/show remote trace-buffer-size-packet".
6173 2013-04-02 Eli Zaretskii <eliz@gnu.org>
6175 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
6176 gdb_string.h is now in common/.
6178 2013-04-02 Pedro Alves <palves@redhat.com>
6180 * NEWS: Move "set debug notification" and "set trace-buffer-size"
6181 under "New options".
6183 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6187 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6189 2013-04-02 Pedro Alves <palves@redhat.com>
6193 * remote.c (send_interrupt_sequence): Use remote_serial_write.
6194 (remote_serial_write): New function.
6195 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
6197 2013-04-01 Jiong Wang <jiwang@tilera.com>
6199 * NEWS: Mention TILE-Gx in "New native configurations" and
6200 "New targets" sections.
6202 2013-04-01 Doug Evans <dje@google.com>
6204 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
6205 (process_enumeration_scope): Simplify.
6207 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
6209 (struct signatured_type): ... to here.
6210 (sig_type_ptr): New typedef.
6211 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
6212 out of union 't'. All uses updated.
6213 (dw2_get_file_names_reader): Assert not called for a type unit.
6214 (dw2_get_file_names): Assert not called for a type unit or type
6216 (build_type_psymtabs_reader): Assert called for a type unit.
6217 (build_type_psymtab_dependencies): Assert called for a type unit group.
6219 * dwarf2read.c (free_dwo_file): Add comment.
6220 (dwarf2_per_objfile_free): Unref dwp bfd.
6222 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6224 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
6225 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
6226 (read_pe_exported_syms): Remove unused 'exportix'.
6227 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
6228 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
6229 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
6231 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6233 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
6234 (print_it_watchpoint): Remove unused 'bl'.
6235 (say_where): Remove unused 'uiout'.
6236 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
6237 (bkpt_breakpoint_hit): Remove unused 'b'.
6238 (internal_bkpt_print_it): Remove unused 'uiout'.
6239 * buildsym.c (augment_type_symtab): Remove unused 'i'.
6241 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6243 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
6244 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
6246 2013-03-29 Doug Evans <dje@google.com>
6248 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
6249 Delete arg is_dwp. All callers updated.
6250 (open_dwp_file): New function.
6251 (open_and_init_dwp_file): Call it.
6252 (get_dwp_file): New function.
6253 (lookup_dwo_cutu): Call it.
6255 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
6256 unnecessary, cleanup.
6258 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
6260 * dwarf2read.c (read_cutu_die_from_dwo): New function.
6261 (lookup_dwo_unit): New function.
6262 (init_cutu_and_read_dies): Move DWO handling to new functions.
6264 * dwarf2read.c (struct signatured_type): Tweak comment.
6265 (struct dwo_unit): Tweak comment.
6266 (create_debug_types_hash_table): Tweak comment. Reformat long line.
6267 (create_dwo_debug_info_hash_table): Tweak comment.
6268 (dwarf2_per_cu_offset_and_type): Tweak comment.
6270 * dwarf2read.c (lookup_signatured_type): Remove complaint about
6271 missing .debug_types section.
6273 2013-03-29 Yao Qi <yao@codesourcery.com>
6275 * corelow.c: Include "completer.h".
6276 (_initialize_corelow): Call add_target_with_completer with
6277 argument 'filename_completer'.
6278 * tracepoint.c: Likewise.
6279 * exec.c (_initialize_exec): Likewise.
6280 * target.c (add_target): Rename to ...
6281 (add_target_with_completer): ... this. Call set_cmd_completer
6282 if parameter completer is not NULL.
6284 * target.h: Include "command.h".
6285 (add_target_with_completer): Declare it.
6287 2013-03-28 Joel Brobecker <brobecker@adacore.com>
6289 * coffread.c (is_import_fixup_symbol): New function.
6290 (record_minimal_symbol): Use is_import_fixup_symbol to
6291 detect import fixup symbols, and discard them.
6293 2013-03-28 Doug Evans <dje@google.com>
6295 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
6296 types hash table until we know we need it.
6298 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
6301 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
6302 All callers updated.
6303 (dw2_print_stats): Print #read CUs too.
6304 (dump_die_shallow): Print signatured types better.
6306 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
6307 info_or_types_section to section. All uses updated.
6308 (struct dwo_unit): Ditto.
6310 2013-03-28 Pedro Alves <palves@redhat.com>
6312 * NEWS (New options): New section.
6313 (New options): Mention set/show remote trace-status-packet.
6314 * remote.c (PACKET_qTStatus): New enumeration value.
6315 (remote_get_trace_status): Skip sending qTStatus if the packet is
6316 disabled. Use packet_ok.
6317 (_initialize_remote): Register a configuration command for
6320 2013-03-28 Doug Evans <dje@google.com>
6322 * symfile.c (find_separate_debug_file): Add comment.
6323 (terminate_after_last_dir_separator): Tweak comment.
6325 * dwarf2read.c (create_partial_symtab): Add forward decl.
6326 (create_partial_symtab): Move to be closer to other psymtab functions.
6327 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
6329 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
6330 (compute_symtab_includes): Remove unnecessary forward declaration.
6331 (die_needs_namespace): Add comment marking group of functions for
6332 dwarf2 name computation.
6334 * typeprint.c (_initialize_typeprint): Improve type help text.
6336 * python/python.c (finish_python_initialization): Provide suggestion
6337 for how to tell gdb to find its python files.
6339 2013-03-28 Pedro Alves <palves@redhat.com>
6343 * source.c (_initialize_source): Change back "set listsize" to an
6346 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
6349 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
6351 2013-03-27 Pedro Alves <palves@redhat.com>
6353 * top.c (history_size): Rename to ...
6354 (history_size_setshow_var): ... this. Add comment.
6355 (show_commands): Use readline's 'history_length' instead of
6356 computing the history length by calling history_get in a loop.
6357 (set_history_size_command): Error out for sizes over INT_MAX.
6358 Restore previous history size on invalid size.
6359 (init_history): If HISTSIZE is negative, leave the history size as
6361 (init_main): Adjust.
6363 2013-03-27 Pedro Alves <palves@redhat.com>
6365 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
6366 coff_pe_read" command to "set debug coff-pe-read".
6368 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
6370 * record.c (command_size_to_target_size): Fix size comparison.
6371 Change parameter type from pointer to integer to integer.
6374 2013-03-27 Pierre Muller <muller@sourceware.org>
6376 * windows-nat.c (handle_output_debug_string): Avoid typecast
6377 from integer of different size warning.
6379 2013-03-26 Joel Brobecker <brobecker@adacore.com>
6381 * windows-nat.c (handle_output_debug_string): Add empty line
6382 after local block variable definition.
6384 2013-03-26 Pedro Alves <palves@redhat.com>
6386 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
6387 (net_open): Make 'polls' local unsigned.
6389 2013-03-26 Pedro Alves <palves@redhat.com>
6391 * remote.c (_initialize_remote): Make "set remoteaddresssize"
6392 a zuinteger command instead of uinteger.
6394 2013-03-26 Pedro Alves <palves@redhat.com>
6396 * record-full.c (record_full_insn_num): Make it unsigned.
6397 (record_full_check_insn_num, record_full_message)
6398 (record_full_registers_change, record_full_xfer_partial): Remove
6399 record_full_insn_max_num check (it's always != 0).
6400 (record_full_info, record_full_restore): Use %u as format string.
6401 (): Use %u as format string.
6402 (set_record_full_insn_max_num): Remove record_full_insn_max_num
6403 check (it's always != 0).
6405 2013-03-26 Pedro Alves <palves@redhat.com>
6407 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
6408 and "set dcache size" commands zuinteger instead of uinteger.
6410 2013-03-26 Pedro Alves <palves@redhat.com>
6412 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
6413 command zuinteger instead of uinteger.
6415 2013-03-26 Pedro Alves <palves@redhat.com>
6417 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
6418 zuinteger instead of uinteger.
6420 2013-03-26 Pedro Alves <palves@redhat.com>
6422 * record.c (record_insn_history_size_setshow_var)
6423 (record_call_history_size_setshow_var): New globals.
6424 (command_size_to_target_size): New function.
6425 (cmd_record_insn_history, cmd_record_call_history): Use
6426 command_size_to_target_size instead of cast.
6427 (validate_history_size, set_record_insn_history_size)
6428 (set_record_call_history_size): New functions.
6429 (_initialize_record): Install set_record_insn_history_size and
6430 set_record_call_history_size as "set" hooks of "set record
6431 instruction-history-size" and "set record
6432 function-call-history-size".
6434 2013-03-26 Pedro Alves <palves@redhat.com>
6436 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
6437 use with history_max_entries use. Remove FIXME note.
6439 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
6441 * record-btrace.c (record_btrace_close): Call
6442 record_btrace_auto_disable.
6444 2013-03-25 Joel Brobecker <brobecker@adacore.com>
6446 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
6448 2013-03-25 Doug Evans <dje@google.com>
6450 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
6452 2013-03-25 Tom Tromey <tromey@redhat.com>
6455 * c-exp.y (exp): Add new productions for destructors after '.' and
6457 (write_destructor_name): New function.
6459 2013-03-25 Tom Tromey <tromey@redhat.com>
6462 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
6463 value_struct_elt, not lookup_struct_elt_type.
6464 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
6465 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
6466 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
6468 2013-03-25 Yao Qi <yao@codesourcery.com>
6470 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
6471 instead of '_mkdir'.
6473 2013-03-23 Eli Zaretskii <eliz@gnu.org>
6475 * windows-nat.c (windows_get_absolute_argv0): New function.
6476 * windows-nat.h: Add its prototype.
6478 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
6479 Use IS_DIR_SEPARATOR instead of looking for a character inside
6480 SLASH_STRING. Include filenames.h.
6481 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
6482 relocate_gdb_directory works when passed gdb_program_name.
6483 Include windows-nat.h.
6485 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6487 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
6488 * remote.c (trace_error): Remove the special handling of '2'.
6489 (readchar) <SERIAL_EOF>
6490 (readchar) <SERIAL_ERROR>
6491 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
6492 (remote_get_trace_status): Call throw_exception if EX is
6494 * utils.c (perror_with_name): Rename to ...
6495 (throw_perror_with_name): ... here. New parameter errcode, describe it
6496 in the function comment.
6497 (perror_with_name): New function wrapper.
6498 * utils.h (enum errors): New stub declaration.
6499 (throw_perror_with_name): New declaration.
6501 2013-03-22 Pedro Alves <palves@redhat.com>
6502 Yao Qi <yao@codesourcery.com>
6503 Mark Kettenis <kettenis@gnu.org>
6505 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
6506 Don't let the user set the value to UINT_MAX directly.
6507 <var_integer>: Don't let the user set the value to INT_MAX
6510 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6512 * remote.c (remote_unpush_target): New function.
6513 (remote_open_1): Remove two pop_target calls, update one comment, add
6514 comment to target_preopen call. Replace pop_target call by
6515 remote_unpush_target call.
6516 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
6517 pop_target calls by remote_unpush_target calls.
6519 2013-03-22 Pedro Alves <palves@redhat.com>
6521 * linux-nat.c (linux_child_follow_fork): Don't call
6522 linux_enable_event_reporting.
6523 (linux_handle_extended_wait): Don't call
6524 linux_enable_event_reporting.
6526 2013-03-22 Pedro Alves <palves@redhat.com>
6528 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
6529 use it to rewrite the trampoline buffers with type gdb_byte[], and
6530 undefine the macro. Remove char* cast.
6532 2013-03-21 Doug Evans <dje@google.com>
6534 New commands "mt set per-command {space,time,symtab} {on,off}".
6536 * event-top.c: #include "maint.h".
6537 * main.c: #include "maint.h".
6538 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
6539 timeval-utils.h, maint.h, cli/cli-setshow.h.
6540 (per_command_time, per_command_space): New static globals.
6541 (per_command_symtab): New static global.
6542 (per_command_setlist, per_command_showlist): New static globals.
6543 (struct cmd_stats): Move here from utils.c.
6544 (set_per_command_time): Renamed from set_display_time in utils.c
6545 and moved here. All callers updated.
6546 (set_per_command_space): Renamed from set_display_space in utils.c
6547 and moved here. All callers updated.
6548 (count_symtabs_and_blocks): New function.
6549 (report_command_stats): Moved here from utils.c. Add support for
6550 printing symtab stats. Only print data if enabled before command
6552 (make_command_stats_cleanup): Ditto.
6553 (sert_per_command_cmd, show_per_command_cmd): New functions.
6554 (_initialize_maint_cmds): Add new commands
6555 mt set per-command {space,time,symtab} {on,off}.
6556 * maint.h: New file.
6557 * top.c: #include "maint.h".
6558 * utils.c (reset_prompt_for_continue_wait_time): New function.
6559 (get_prompt_for_continue_wait_time): New function.
6560 * utils.h (reset_prompt_for_continue_wait_time): Declare
6561 (get_prompt_for_continue_wait_time): Declare.
6562 (make_command_stats_cleanup): Moved to maint.h.
6563 (set_display_time, set_display_space): Moved to maint.h and renamed
6564 to set_per_command_time, set_per_command_space.
6565 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
6566 parse_binary_operation and made non-static. Don't call error,
6567 just return an error marker. All callers updated.
6568 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
6570 2013-03-21 Tom Tromey <tromey@redhat.com>
6572 * symfile.c (alloc_section_addr_info): Update header. Don't set
6573 'num_sections' field.
6574 (build_section_addr_info_from_section_table): Set 'num_sections'.
6575 (build_section_addr_info_from_bfd): Likewise.
6576 (build_section_addr_info_from_objfile): Remove dead loop
6578 (free_section_addr_info): Unconditionally call xfree.
6579 (relative_addr_info_to_section_offsets, addrs_section_sort)
6580 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
6582 (syms_from_objfile_1): Remove dead 'if' condition. Check
6584 (add_symbol_file_command): Set 'num_sections'.
6585 * symfile-mem.c (symbol_file_add_from_memory): Set
6587 * somread.c (som_symfile_offsets): Remove dead loop condition.
6588 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
6589 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
6591 2013-03-21 Tom Tromey <tromey@redhat.com>
6593 * tracepoint.h (decode_agent_options): Add 'trace_string'
6595 * tracepoint.c (decode_agent_options): Add 'trace_string'
6597 (validate_actionline): Update.
6598 (collect_symbol): Add 'trace_string' argument.
6599 (struct add_local_symbols_data) <trace_string>: New field.
6600 (do_collect_symbol): Update.
6601 (add_local_symbols): Add 'trace_string' argument.
6602 (encode_actions_1): Update.
6603 (trace_dump_actions): Update.
6604 * dwarf2loc.c (access_memory): Update.
6605 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
6606 * ax-general.c (new_agent_expr): Update.
6607 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
6608 (gen_trace_for_return_address): Add argument.
6609 (trace_kludge, trace_string_kludge): Remove.
6610 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
6611 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
6612 (gen_trace_for_var): Add 'trace_string' argument.
6613 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
6614 (gen_printf, agent_eval_command_one): Update.
6616 2013-03-21 Tom Tromey <tromey@redhat.com>
6619 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
6620 Handle FILENAME token.
6622 2013-03-21 Tom Tromey <tromey@redhat.com>
6624 * c-exp.y (YYPRINT): Define.
6625 (c_print_token): New function.
6627 2013-03-21 Tom Tromey <tromey@redhat.com>
6629 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
6631 2013-03-21 Yao Qi <yao@codesourcery.com>
6633 * ctf.c: Include "gdb_stat.h".
6634 [USE_WIN32API]: New macro 'mkdir'.
6635 (ctf_start): Use permission bits macros if they are defined.
6637 2013-03-20 Keith Seitz <keiths@redhat.com>
6639 * breakpoint.h (struct breakpoint): Add comment to
6640 extra_string indicating that this member is mallod'd.
6641 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
6643 2013-03-20 Pedro Alves <palves@redhat.com>
6647 * cli/cli-setshow.c (do_set_command)
6648 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
6649 the result of parsing the command argument. Throw error if the
6650 value is greater than UINT_MAX. Print the invalid value with
6652 <var_integer, var_zinteger>: Use LONGEST for variable holding the
6653 result of parsing the command argument. Throw error if the value
6654 is greater than INT_MAX, not greater or equal. Also throw error
6655 if the value is less than INT_MIN. Print the invalid value with
6657 <var_zuinteger_unlimited>: Throw error if the value is greater
6658 than INT_MAX, not greater or equal.
6659 (do_show_command) <var_integer, var_zinteger,
6660 var_zuinteger_unlimited>: Use %d for printing int, not %u.
6662 2013-03-20 Tom Tromey <tromey@redhat.com>
6664 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
6666 * dwarf2read.c (read_func_scope): Remove old FIXME.
6667 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
6669 * findvar.c (symbol_read_needs_frame, default_read_var_value):
6670 Unconditionally call via computed ops, if possible.
6671 * printcmd.c (address_info): Unconditionally call via computed ops,
6673 * stack.c (read_frame_arg): Unconditionally call via computed ops,
6675 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
6676 * tracepoint.c (scope_info): Unconditionally call via computed ops,
6679 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6680 Tom Tromey <tromey@redhat.com>
6683 * coffread.c (coff_register_index): New global.
6684 (process_coff_symbol, coff_read_enum_type): Set
6685 SYMBOL_ACLASS_INDEX.
6686 (_initialize_coffread): Initialize new global.
6687 * dwarf2loc.c (locexpr_find_frame_base_location)
6688 (dwarf2_block_frame_base_locexpr_funcs)
6689 (loclist_find_frame_base_location)
6690 (dwarf2_block_frame_base_loclist_funcs): New.
6691 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
6692 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
6693 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
6694 (dwarf2_block_frame_base_loclist_funcs): New.
6695 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
6696 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
6698 (read_func_scope): Update.
6699 (fixup_go_packaging, mark_common_block_symbol_computed)
6700 (var_decode_location, new_symbol_full, dwarf2_const_value):
6701 Set SYMBOL_ACLASS_INDEX.
6702 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
6703 (_initialize_dwarf2_read): Initialize new globals.
6704 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
6705 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
6706 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
6708 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
6709 (_initialize_mdebugread): Initialize new globals.
6710 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
6711 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
6712 (stab_register_index, stab_regparm_index): New globals.
6713 (define_symbol, read_enum_type, common_block_end): Set
6714 SYMBOL_ACLASS_INDEX.
6715 (_initialize_stabsread): Initialize new globals.
6716 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
6718 (MAX_SYMBOL_IMPLS): New define.
6719 (register_symbol_computed_impl, register_symbol_block_impl)
6720 (register_symbol_register_impl)
6721 (initialize_ordinary_address_classes): New functions.
6722 (_initialize_symtab): Call initialize_ordinary_address_classes.
6723 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
6724 (struct symbol_impl): New.
6725 (SYMBOL_ACLASS_BITS): New define.
6726 (struct symbol) <aclass, ops>: Remove fields.
6727 <aclass_index>: New field.
6728 (symbol_impls): Declare.
6729 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
6730 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
6731 (register_symbol_computed_impl, register_symbol_block_impl)
6732 (register_symbol_register_impl): Declare.
6733 (struct symbol_computed_ops): Add location_has_loclist.
6734 (struct symbol_block_ops): New.
6735 (SYMBOL_BLOCK_OPS): New.
6736 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
6738 2013-03-20 Tom Tromey <tromey@redhat.com>
6740 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
6741 (print_partial_symbols, recursively_search_psymtabs): Use
6744 2013-03-20 Pierre Muller <muller@sourceware.org>
6746 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
6747 addtion, subtraction, multiplication and division binary operator.
6749 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
6753 * bsd-kvm.c (bsd_kvm_close): Likewise.
6754 * bsd-uthread.c (bsd_uthread_close): Likewise.
6755 * corelow.c (core_close): Likewise.
6756 (core_close_cleanup): Remove parameter quitting from a caller.
6757 * event-top.c (async_disconnect): Likewise.
6758 * exec.c (exec_close_1): Remove parameter quitting.
6759 * go32-nat.c (go32_close): Likewise.
6760 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
6761 parameter quitting from a caller.
6762 * mips-linux-nat.c (super_close): Remove parameter quitting from the
6764 (mips_linux_close): Remove parameter quitting. Remove parameter
6765 quitting from a caller.
6766 * monitor.c (monitor_close): Remove parameter quitting.
6767 * monitor.h (monitor_close): Likewise.
6768 * record-btrace.c (record_btrace_close): Likewise.
6769 * record-full.c (record_full_close): Likewise.
6770 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
6771 it also from fprintf_unfiltered.
6772 * remote-mips.c (mips_close): Remove parameter quitting.
6773 (mips_detach): Remove parameter quitting from a caller.
6774 * remote-sim.c (gdbsim_close): Remove parameter quitting.
6775 (gdbsim_close): Remove duplicate function comment. Remove parameter
6776 quitting and remove it also from printf_filtered.
6777 * remote.c (remote_close): Remove parameter quitting.
6778 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
6779 * target.c (update_current_target): Remove parameter int from to_close
6781 (push_target, unpush_target, pop_target): Remove parameter quitting from
6783 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
6784 Remove parameter quitting from a caller.
6785 (target_preopen): Remove parameter quitting from a caller.
6786 (target_close): Remove parameter quitting. Remove parameter quitting
6787 from a caller two times. Remove parameter quitting also from
6789 * target.h (struct target_ops): Remove parameter quitting and as int
6790 from fields to_xclose and to_close.
6791 (extern struct target_ops current_target):
6792 (target_close, pop_all_targets): Remove parameter quitting. Update the
6794 (pop_all_targets_above): Remove parameter quitting.
6795 * top.c (quit_target): Remove parameter quitting from a caller.
6796 * tracepoint.c (tfile_close): Remove parameter quitting.
6797 * windows-nat.c (windows_close): Remove parameter quitting.
6799 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
6801 * windows-nat.c (handle_output_debug_string): Replace call
6802 to string_to_core_addr with call to strtoull.
6804 2013-03-20 Yao Qi <yao@codesourcery.com>
6806 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
6807 and write it to CTF metadata.
6809 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
6811 * windows-nat.c (handle_output_debug_string): Change type of n to
6812 SIZE_T to avoid crash on 64 bit systems.
6814 2013-03-17 Eli Zaretskii <eliz@gnu.org>
6816 * python/python-internal.h (HAVE_SNPRINTF)
6817 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
6818 about redefinition of snprintf by pyerrors.h.
6820 2013-03-15 Steve Ellcey <sellcey@mips.com>
6822 * remote-sim.c (sim_command_completer): Make char arguments const.
6824 2013-03-15 Tom Tromey <tromey@redhat.com>
6827 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
6829 2013-03-14 Tom Tromey <tromey@redhat.com>
6831 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
6833 (get_file_crc): Move from symfile.c.
6834 (gdb_bfd_crc): New function.
6835 * gdb_bfd.h (gdb_bfd_crc): Declare.
6836 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
6837 * symfile.c (get_file_crc): Move to gdb_bfd.c.
6838 (separate_debug_file_exists): Use gdb_bfd_crc.
6840 2013-03-14 Tom Tromey <tromey@redhat.com>
6842 * symfile.c (get_debug_link_info): Remove.
6843 (find_separate_debug_file_by_debuglink): Use
6844 bfd_get_debug_link_info.
6846 2013-03-14 Tom Tromey <tromey@redhat.com>
6848 * symtab.c (error_in_psymtab_expansion): New function.
6849 (lookup_symbol_aux_quick)
6850 (basic_lookup_transparent_type_quick): Remove "last resort"
6851 code. Use error_in_psymtab_expansion.
6853 2013-03-14 Doug Evans <dje@google.com>
6854 Jan Kratochvil <jan.kratochvil@redhat.com>
6856 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
6857 any successful compare_filenames_for_search or FILENAME_CMP.
6858 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6859 * symtab.c (iterate_over_some_symtabs): Likewise.
6861 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6863 * source.c (print_source_lines_base): Make a local copy of
6866 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
6867 Jan Kratochvil <jan.kratochvil@redhat.com>
6869 * source.c (print_source_lines_base): Suppress "file" for TUI.
6871 2013-03-14 Keith Seitz <keiths@redhat.com>
6872 Alan Matsuoka <alanm@redhat.com>
6876 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
6878 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
6881 2013-03-14 Yao Qi <yao@codesourcery.com>
6883 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
6884 status to tfile if trace is stopped by command 'tstop'.
6886 2013-03-14 Yao Qi <yao@codesourcery.com>
6888 * tracepoint.c (tfile_write_status): Write trace notes and user
6889 name into tfile if they are not NULL.
6891 2013-03-14 Hui Zhu <hui@codesourcery.com>
6892 Yao Qi <yao@codesourcery.com>
6894 * Makefile.in (REMOTE_OBS): Add ctf.o.
6895 (SFILES): Add ctf.c.
6896 (HFILES_NO_SRCDIR): Add ctf.h.
6897 * ctf.c, ctf.h: New files.
6898 * tracepoint.c: Include 'ctf.h'.
6899 (collect_pseudocommand): Remove static.
6900 (trace_save_command): Parse option "-ctf".
6901 Produce different trace file writers per option.
6902 Adjust output message.
6903 (trace_save_tfile, trace_save_ctf): New.
6904 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
6905 * mi/mi-main.c: Include 'ctf.h'.
6906 (mi_cmd_trace_save): Handle option '-ctf'. Call either
6907 trace_save_tfile or trace_save_ctf.
6908 * NEWS: Mention these changes.
6910 2013-03-14 Yao Qi <yao@codesourcery.com>
6912 * tracepoint.c (trace_file_writer_xfree): New.
6913 (struct tfile_writer_data): New.
6914 (tfile_dtor, tfile_can_target_save, tfile_start): New.
6915 (tfile_write_header, tfile_write_regblock_type): New.
6916 (tfile_write_status, tfile_write_uploaded_tsv): New.
6917 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
6918 (tfile_write_raw_data, (tfile_end): New.
6919 (tfile_write_ops): New global variable.
6920 (TRACE_WRITE_R_BLOCK): New macro.
6921 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
6922 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
6923 (TRACE_WRITE_V_BLOCK): New macro.
6924 (trace_save): Add extra one parameter WRITER. Make it static.
6925 Use WRITER to writer trace.
6926 (tfile_trace_file_writer_new): New.
6927 (trace_save_command): Caller update.
6928 (trace_save_tfile): Write trace data in TFILE format.
6929 * tracepoint.h (struct trace_frame_write_ops): New.
6930 (struct trace_file_write_ops): New.
6931 (struct trace_file_writer): New.
6932 (trace_save): Remove its declaration.
6933 (trace_save_tfile): Declare it.
6934 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
6935 instead of trace_save.
6937 2013-03-13 Pedro Alves <palves@redhat.com>
6939 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
6941 2013-03-13 Pedro Alves <palves@redhat.com>
6943 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
6945 * demangle.c (current_demangling_style_string): Make it const.
6946 (set_demangling_command): Assert the demangling style is known.
6947 Remove all handling of unknown styles. Set
6948 'current_demangling_style_string' to an element of the
6949 demangling_style_names array.
6950 (set_demangling_style): Delete.
6951 (_initialize_demangler): Set current_demangling_style_string to the
6952 element of the demangling_style_names array that corresponds to
6953 the default demangling style. Remove FIXME note. Don't call
6954 set_demangling_style.
6955 * gdb-demangle.h (set_demangling_style): Remove declaration.
6957 2013-03-13 Pedro Alves <palves@redhat.com>
6959 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
6961 (ada_make_symbol_completion_list): Make "text0" parameter const.
6962 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
6963 * breakpoint.c (condition_completer): Make "text" and "word"
6964 parameters const. Adjust.
6965 (check_tracepoint_command): Adjust to validate_actionline
6967 (catch_syscall_completer): Make "text" and "word" parameters
6969 * cli/cli-cmds.c (show_user): Make "comname" local const.
6970 (valid_command_p): Make "command" parameter const.
6971 (alias_command): Make "alias_prefix" and "command_prefix" locals
6973 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
6974 (add_alias_cmd): Make "name" and "oldname" parameters const.
6975 Adjust. No longer make copy of OLDNAME.
6976 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
6977 (add_setshow_cmd_full, add_setshow_enum_cmd)
6978 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
6979 (add_setshow_filename_cmd, add_setshow_string_cmd)
6980 (add_setshow_string_noescape_cmd)
6981 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
6982 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
6983 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
6984 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
6985 Make "name" parameter const.
6986 (help_cmd): Rename "command" parameter to "arg". New const local
6988 (find_cmd): Make "command" parameter const.
6989 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
6990 deprecated_cmd_warning prototype change.
6991 (undef_cmd_error): Make "cmdtype" parameter const.
6992 (lookup_cmd): Make "line" parameter const.
6993 (deprecated_cmd_warning): Change type of "text" parameter to
6994 pointer to const char, from pointer to pointer to char. Adjust.
6995 (lookup_cmd_composition): Make "text" parameter const.
6996 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
6998 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
7000 * cli/cli-script.c (validate_comname): Make "tem" local const.
7001 (define_command): New const local "tem_c". Use it in calls to
7003 (document_command): Make "tem" and "comfull" locals const.
7004 (show_user_1): Make "prefix" and "name" parameters const.
7005 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
7007 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
7008 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
7009 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
7010 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
7011 (complete_on_enum, add_setshow_enum_cmd)
7012 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
7013 (add_setshow_filename_cmd, add_setshow_string_cmd)
7014 (add_setshow_string_noescape_cmd)
7015 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
7016 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
7017 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
7018 Change prototypes, constifying strings.
7019 * completer.c (noop_completer, filename_completer): Make "text"
7020 and "prefix" parameters const.
7021 (location_completer, expression_completer)
7022 (complete_line_internal): Make "text" and "prefix" parameters
7024 (command_completer, signal_completer): Make "text" and "prefix"
7026 * completer.h (noop_completer, filename_completer)
7027 (expression_completer, location_completer, command_completer)
7028 (signal_completer): Change prototypes.
7029 * corefile.c (complete_set_gnutarget): Make "text" and "word"
7031 * cp-abi.c (cp_abi_completer): Likewise.
7032 * expression.h (parse_expression_for_completion): Change
7034 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
7036 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
7037 * infrun.c (handle_completer): Make "text" and "word" parameters
7039 * interps.c (interpreter_completer): Make "text" and "word"
7041 * language.h (struct language_defn)
7042 <la_make_symbol_completion_list>: Make "text" and "word"
7044 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
7045 (parse_exp_in_context): Rename to ...
7046 (parse_exp_in_context_1): ... this.
7047 (parse_exp_in_context): Reimplement, with const hack from
7049 (parse_expression_for_completion): Make "string" parameter const.
7050 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
7051 to pointer to const char. Adjust.
7052 (print_command_1): Make "exp" parameter const.
7053 (output_command): Rename to ...
7054 (output_command_const): ... this. Make "exp" parameter const.
7055 (output_command): Reimplement.
7056 (x_command): Adjust.
7057 (display_command): Rename "exp" parameter to "arg". New "exp"
7058 local, const version of "arg".
7059 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
7060 "cmd_name" local const.
7061 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
7063 (cmdpy_completer): Make "text" and "word" parameters const.
7064 (gdbpy_parse_command_name): Make "prefix_text2" local const.
7065 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
7067 * remote.c (_initialize_remote): Make "cmd_name" local const.
7068 * symtab.c (language_search_unquoted_string): Make "text" and "p"
7069 parameters const. Adjust.
7070 (completion_list_add_fields): Make "sym_text", "text" and "word"
7072 (struct add_name_data) <sym_text, text, word>: Make fields const.
7073 (default_make_symbol_completion_list_break_on): Make "text" and
7074 "word" parameters const. Adjust locals.
7075 (default_make_symbol_completion_list)
7076 (make_symbol_completion_list, make_symbol_completion_type)
7077 (make_symbol_completion_list_fn): Make "text" and "word"
7079 (make_file_symbol_completion_list): Make "text", "word" and
7080 "srcfile" parameters const. Adjust locals.
7081 (add_filename_to_list): Make "text" and "word" parameters const.
7082 (struct add_partial_filename_data) <text, word>: Make fields
7084 (make_source_files_completion_list): Make "text" and "word"
7086 * symtab.h (default_make_symbol_completion_list_break_on)
7087 (default_make_symbol_completion_list, make_symbol_completion_list)
7088 (make_symbol_completion_type enum type_code)
7089 (make_symbol_completion_list_fn make_file_symbol_completion_list)
7090 (make_source_files_completion_list): Change prototype.
7091 * top.c (execute_command): Adjust to pass pointer to pointer to
7092 const char to lookup_cmd, and to deprecated_cmd_warning prototype
7094 (set_verbose): Make "cmdname" local const.
7095 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
7097 (validate_actionline): Make "line" parameter a pointer to const
7099 (encode_actions_1): Make "action_exp" local const, and adjust.
7100 (encode_actions): Adjust.
7101 (replace_comma): Delete.
7102 (trace_dump_actions): Make "action_exp" and "next_comma" locals
7103 const, and adjust. Don't frob the action string while splitting
7104 it at commas. Instead, make a copy of each split substring in
7106 (trace_dump_command): Adjust to validate_actionline prototype
7108 * tracepoint.h (decode_agent_options, decode_agent_options)
7109 (encode_actions, validate_actionline): Change prototypes.
7110 * valprint.h (output_command): Delete declaration.
7111 (output_command_const): Declare.
7112 * value.c (function_destroyer): Cast const away in xfree call.
7114 2013-03-13 Pedro Alves <palves@redhat.com>
7116 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
7117 rather than casting 'const char * const *' to 'const char **'.
7118 * ada-lex.l (processInt): Make "trailer" local const. Remove
7119 'const char **' cast.
7120 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
7121 locals, and use those as strtol output pointer, instead than doing
7122 invalid casts to from 'const char **' to 'char **'.
7123 (_initialize_demangle): Remove cast.
7124 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
7125 locals, and use those as strtol output pointer, instead than doing
7126 invalid casts to from 'const char **' to 'char **'.
7127 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
7129 * stap-probe.c (stap_parse_register_operand)
7130 (stap_parse_single_operand): Likewise.
7132 2013-03-13 Yao Qi <yao@codesourcery.com>
7134 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
7135 the last matched 'V' blcok in trace frame.
7137 2013-03-12 Joel Brobecker <brobecker@adacore.com>
7139 * NEWS: Create a new section for the next release branch.
7140 Rename the section of the current branch, now that it has
7143 2013-03-12 Joel Brobecker <brobecker@adacore.com>
7145 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
7146 * version.in: Bump version to 7.6.50.20130312-cvs.
7148 2013-03-12 Keith Seitz <keiths@redhat.com>
7150 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
7151 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
7152 Remove temporary copy of input string.
7153 (mi_execute_command_wrapper): Make "cmd" const.
7154 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
7155 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
7157 (mi_parse): Make "cmd" const.
7159 * mi/mi-parse.h (mi_parse): Make "cmd" const.
7161 2013-03-12 Keith Seitz <keiths@redhat.com>
7163 * ada-lang.c (ada_read_renaming_var_value): Pass const
7164 pointer to expression string to parse_exp_1.
7165 (create_excep_cond_exprs): Likewise.
7166 * ax-gdb.c (agent_eval_command_one): Likewise.
7167 (maint_agent_printf_command): Likewise.
7168 Constify much of the string handling/parsing.
7169 * breakpoint.c (set_breakpoint_condition): Pass const
7170 pointer to expression string to parse_exp_1.
7171 (update_watchpoint): Likewise.
7172 (parse_cmd_to_aexpr): Constify string handling.
7173 Pass const pointer to parse_exp_1.
7174 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
7175 (find_condition_and_thread): Likewise.
7177 (watch_command_1): Make "arg" const.
7178 Constify string handling.
7179 Copy the expression string instead of changing the input
7181 (update_breakpoint_location): Pass const pointer to
7183 * eval.c (parse_and_eval_address): Make "exp" const.
7184 (parse_to_comma_and_eval): Make "expp" const.
7185 (parse_and_eval): Make "exp" const.
7186 * expression.h (parse_expression): Make argument const.
7187 (parse_exp_1): Make first argument const.
7188 * findcmd.c (parse_find_args): Treat "args" as const.
7189 * linespec.c (parse_linespec): Pass const pointer to
7190 linespec_expression_to_pc.
7191 (linespec_expression_to_pc): Make "exp_ptr" const.
7192 * parse.c (parse_exp_1): Make "stringptr" const.
7193 Make a copy of the expression to pass to parse_exp_in_context until
7194 this whole interface can be constified.
7195 (parse_expression): Make "string" const.
7196 * printcmd.c (ui_printf): Treat "arg" as const.
7197 Handle const strings.
7198 * tracepoint.c (validate_actionline): Pass const pointer to
7199 all calls to parse_exp_1.
7200 (encode_actions_1): Likewise.
7201 * value.h (parse_to_comma_and_eval): Make argument const.
7202 (parse_and_eval_address): Likewise.
7203 (parse_and_eval): Likewise.
7204 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
7205 (varobj_set_value): Likewise.
7206 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
7207 constify string handling.
7208 Pass const pointers to parse_and_eval_address and
7209 parse_to_comman_and_eval.
7210 * cli/cli-utils.c (skip_to_space): Rename to ...
7211 (skip_to_space_const): ... this. Handle const strings.
7212 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
7213 skip_to_space_const.
7214 (skip_to_space_const): Declare.
7215 * common/format.c (parse_format_string): Make "arg" const.
7216 Handle const strings.
7217 * common/format.h (parse_format_string): Make "arg" const.
7218 * gdbserver/ax.c (ax_printf): Make "format" const.
7219 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
7220 of the expression string.
7222 2013-03-12 Hui Zhu <hui@codesourcery.com>
7224 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
7226 2013-03-12 Yao Qi <yao@codesourcery.com>
7227 Hui Zhu <hui@codesourcery.com>
7229 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
7230 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
7233 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
7235 * ada-lex.l (rules): Only recognize 'thread' as a
7236 delimiter when followed by numerals, as for c-exp.y.
7237 Use new rewind_to_char function to rewind the input for
7238 expression-delimiting tokens.
7239 (rewind_to_char): New function.
7241 2013-03-11 Pedro Alves <palves@redhat.com>
7242 Jan Kratochvil <jan.kratochvil@redhat.com>
7244 * configure: Regenerate.
7245 * configure.ac (check dynamic export flag): Link python test with
7248 2013-03-11 Doug Evans <dje@google.com>
7249 Keith Seitz <keiths@redhat.com>
7251 * linespec.c (find_linespec_symbols): Call find_function_symbols
7252 first, and then call lookup_prefix_sym/find_method.
7254 2013-03-11 Pedro Alves <palves@redhat.com>
7256 * charset.c (convert_between_encodings): Don't cast between
7257 different pointer to pointer types. Instead, make the 'inp' local
7258 be of the type iconv expects.
7259 (wchar_iterate): Don't cast between different pointer to pointer
7260 types. Instead, use new pointer local of the type iconv expects.
7261 * target.c (target_read_stralloc, target_fileio_read_stralloc):
7262 Add new local of type char pointer, and use it to get a
7263 char/string view of the byte buffer, instead of casting between
7264 pointer to pointer types.
7266 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
7268 * remote.c (remote_set_trace_buffer_size): Move != operator
7269 to the start of next line to fix an ARI warning.
7271 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7273 * NEWS: Add record changes.
7275 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7277 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
7278 the instruction history disassembly.
7279 * disasm.c (dump_insns): Omit the pc prefix, if requested.
7280 * disasm.h (DISASSEMBLY_OMIT_PC): New.
7282 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7284 * Makefile.in (SFILES): Add record-btrace.c
7285 (COMMON_OBS): Add record-btrace.o
7286 * record-btrace.c: New.
7287 * objfiles.c: Include btrace.h.
7288 (free_objfile): call btrace_free_objfile.
7290 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7292 * target.c (target_call_history, target_call_history_from,
7293 target_call_history_range): New.
7294 * target.h (target_ops) <to_call_history, to_call_history_from,
7295 to_call_history_range>: New fields.
7296 (target_call_history, target_call_history_from,
7297 target_call_history_range): New declaration.
7298 * record.c (get_call_history_modifiers, cmd_record_call_history,
7299 record_call_history_size): New.
7300 (_initialize_record): Add the "record function-call-history" command.
7301 Add "set/show record function-call-history-size" commands.
7302 * record.h (record_print_flag): New.
7304 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7306 * target.h (target_ops) <to_insn_history, to_insn_history_from,
7307 to_insn_history_range>: New fields.
7308 (target_insn_history): New.
7309 (target_insn_history_from): New.
7310 (target_insn_history_range): New.
7311 * target.c (target_insn_history): New.
7312 (target_insn_history_from): New.
7313 (target_insn_history_range): New.
7314 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
7315 (record_insn_history_size): New.
7316 (get_insn_number): New.
7317 (get_context_size): New.
7319 (get_insn_history_modifiers): New.
7320 (cmd_record_insn_history): New.
7321 (_initialize_record): Add "set/show record instruction-history-size"
7322 command. Add "record instruction-history" command.
7324 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7326 * record.h (record_disconnect): New.
7327 (record_detach): New.
7328 (record_mourn_inferior): New.
7330 * record-full.c (record_disconnect, record_detach,
7331 record_mourn_inferior, record_kill): Move to...
7332 * record.c: ...here.
7335 (record_unpush): New.
7336 (cmd_record_stop): Call record_stop. Replace unpush_target
7337 call with record_unpush call.
7338 (record_disconnect, record_detach): Assert that the target
7339 is of record stratum. Call record_unpush, record_stop, and
7341 (record_mourn_inferior, record_kill): Assert that the target
7342 is of record stratum. Call record_unpush and DEBUG.
7344 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7346 * record-full.h, record-full.c (record_memory_query): Rename
7348 (record_full_memory_query): ...this. Update all users.
7349 (record_arch_list_add_reg): Rename to ...
7350 (record_full_arch_list_add_reg): ...this. Update all users.
7351 (record_arch_list_add_mem): Rename to ...
7352 (record_full_arch_list_add_mem): ...this. Update all users.
7353 (record_arch_list_add_end): Rename to ...
7354 (record_full_arch_list_add_end): ...this. Update all users.
7355 (record_gdb_operation_disable_set): Rename to ...
7356 (record_full_gdb_operation_disable_set): ...this.
7359 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7361 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
7362 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
7363 (RECORD_IS_REPLAY): Renamed to ...
7364 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
7365 (RECORD_FILE_MAGIC): Renamed to ...
7366 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
7367 (record_mem_entry): Renamed to ...
7368 (record_full_mem_entry): ... this. Updated all users.
7369 (record_reg_entry): Renamed to ...
7370 (record_full_reg_entry): ... this. Updated all users.
7371 (record_end_entry): Renamed to ...
7372 (record_full_end_entry): ... this. Updated all users.
7373 (record_type) <record_end, record_reg, record_mem>: Renamed
7375 (record_full_type) <record_full_end, record_full_reg,
7376 record_full_mem>: ... this. Updated all users.
7377 (record_entry): Renamed to ...
7378 (record_full_entry): ... this. Updated all users.
7379 (record_core_buf_entry): Renamed to ...
7380 (record_full_core_buf_entry): ... this. Updated all users.
7381 (record_core_regbuf): Renamed to ...
7382 (record_full_core_regbuf): ... this. Updated all users.
7383 (record_core_start): Renamed to ...
7384 (record_full_core_start): ... this. Updated all users.
7385 (record_core_end): Renamed to ...
7386 (record_full_core_end): ... this. Updated all users.
7387 (record_core_buf_list): Renamed to ...
7388 (record_full_core_buf_list): ... this. Updated all users.
7389 (record_first): Renamed to ...
7390 (record_full_first): ... this. Updated all users.
7391 (record_list): Renamed to ...
7392 (record_full_list): ... this. Updated all users.
7393 (record_arch_list_head): Renamed to ...
7394 (record_full_arch_list_head): ... this. Updated all users.
7395 (record_arch_list_tail): Renamed to ...
7396 (record_full_arch_list_tail): ... this. Updated all users.
7397 (record_stop_at_limit): Renamed to ...
7398 (record_full_stop_at_limit): ... this. Updated all users.
7399 (record_insn_max_num): Renamed to ...
7400 (record_full_insn_max_num): ... this. Updated all users.
7401 (record_insn_num): Renamed to ...
7402 (record_full_insn_num): ... this. Updated all users.
7403 (record_insn_count): Renamed to ...
7404 (record_full_insn_count): ... this. Updated all users.
7405 (record_ops): Renamed to ...
7406 (record_full_ops): ... this. Updated all users.
7407 (record_core_ops): Renamed to ...
7408 (record_full_core_ops): ... this. Updated all users.
7409 (set_record_cmdlist): Renamed to ...
7410 (set_record_full_cmdlist): ... this. Updated all users.
7411 (show_record_cmdlist): Renamed to ...
7412 (show_record_full_cmdlist): ... this. Updated all users.
7413 (record_cmdlist): Renamed to ...
7414 (record_full_cmdlist): ... this. Updated all users.
7415 (record_beneath_to_resume_ops): Renamed to ...
7416 (record_full_beneath_to_resume_ops): ... this. Updated all users.
7417 (record_beneath_to_resume): Renamed to ...
7418 (record_full_beneath_to_resume): ... this. Updated all users.
7419 (record_beneath_to_wait_ops): Renamed to ...
7420 (record_full_beneath_to_wait_ops): ... this. Updated all users.
7421 (record_beneath_to_wait): Renamed to ...
7422 (record_full_beneath_to_wait): ... this. Updated all users.
7423 (record_beneath_to_store_registers_ops): Renamed to ...
7424 (record_full_beneath_to_store_registers_ops): ... this.
7426 (record_beneath_to_store_registers): Renamed to ...
7427 (record_full_beneath_to_store_registers): ... this.
7429 (record_beneath_to_xfer_partial_ops): Renamed to ...
7430 (record_full_beneath_to_xfer_partial_ops): ... this.
7432 (record_beneath_to_xfer_partial): Renamed to ...
7433 (record_full_beneath_to_xfer_partial): ... this.
7435 (record_beneath_to_insert_breakpoint): Renamed to ...
7436 (record_full_beneath_to_insert_breakpoint): ... this.
7438 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
7439 (record_full_beneath_to_stopped_by_watchpoint): ... this.
7441 (record_beneath_to_stopped_data_address): Renamed to ...
7442 (record_full_beneath_to_stopped_data_address): ... this.
7444 (record_beneath_to_async): Renamed to ...
7445 (record_full_beneath_to_async): ... this. Updated all users.
7446 (record_goto_insn): Renamed to ...
7447 (record_full_goto_insn): ... this. Updated all users.
7448 (record_save): Renamed to ...
7449 (record_full_save): ... this. Updated all users.
7450 (record_reg_alloc): Renamed to ...
7451 (record_full_reg_alloc): ... this. Updated all users.
7452 (record_reg_release): Renamed to ...
7453 (record_full_reg_release): ... this. Updated all users.
7454 (record_mem_alloc): Renamed to ...
7455 (record_full_mem_alloc): ... this. Updated all users.
7456 (record_mem_release): Renamed to ...
7457 (record_full_mem_release): ... this. Updated all users.
7458 (record_end_alloc): Renamed to ...
7459 (record_full_end_alloc): ... this. Updated all users.
7460 (record_end_release): Renamed to ...
7461 (record_full_end_release): ... this. Updated all users.
7462 (record_entry_release): Renamed to ...
7463 (record_full_entry_release): ... this. Updated all users.
7464 (record_list_release): Renamed to ...
7465 (record_full_list_release): ... this. Updated all users.
7466 (record_list_release_following): Renamed to ...
7467 (record_full_list_release_following): ... this.
7469 (record_list_release_first): Renamed to ...
7470 (record_full_list_release_first): ... this. Updated all users.
7471 (record_arch_list_add): Renamed to ...
7472 (record_full_arch_list_add): ... this. Updated all users.
7473 (record_get_loc): Renamed to ...
7474 (record_full_get_loc): ... this. Updated all users.
7475 (record_check_insn_num): Renamed to ...
7476 (record_full_check_insn_num): ... this. Updated all users.
7477 (record_arch_list_cleanups): Renamed to ...
7478 (record_full_arch_list_cleanups): ... this. Updated all users.
7479 (record_message): Renamed to ...
7480 (record_full_message): ... this. Updated all users.
7481 (record_message_wrapper): Renamed to ...
7482 (record_full_message_wrapper): ... this. Updated all users.
7483 (record_message_wrapper_safe): Renamed to ...
7484 (record_full_message_wrapper_safe): ... this. Updated all users.
7485 (record_gdb_operation_disable): Renamed to ...
7486 (record_full_gdb_operation_disable): ... this. Updated all users.
7487 (record_hw_watchpoint): Renamed to ...
7488 (record_full_hw_watchpoint): ... this. Updated all users.
7489 (record_exec_insn): Renamed to ...
7490 (record_full_exec_insn): ... this. Updated all users.
7491 (record_restore): Renamed to ...
7492 (record_full_restore): ... this. Updated all users.
7493 (record_async_inferior_event_token): Renamed to ...
7494 (record_full_async_inferior_event_token): ... this.
7496 (record_async_inferior_event_handler): Renamed to ...
7497 (record_full_async_inferior_event_handler): ... this.
7499 (record_core_open_1): Renamed to ...
7500 (record_full_core_open_1): ... this. Updated all users.
7501 (record_open_1): Renamed to ...
7502 (record_full_open_1): ... this. Updated all users.
7503 (record_open): Renamed to ...
7504 (record_full_open): ... this. Updated all users.
7505 (record_close): Renamed to ...
7506 (record_full_close): ... this. Updated all users.
7507 (record_resume_step): Renamed to ...
7508 (record_full_resume_step): ... this. Updated all users.
7509 (record_resumed): Renamed to ...
7510 (record_full_resumed): ... this. Updated all users.
7511 (record_execution_dir): Renamed to ...
7512 (record_full_execution_dir): ... this. Updated all users.
7513 (record_resume): Renamed to ...
7514 (record_full_resume): ... this. Updated all users.
7515 (record_get_sig): Renamed to ...
7516 (record_full_get_sig): ... this. Updated all users.
7517 (record_sig_handler): Renamed to ...
7518 (record_full_sig_handler): ... this. Updated all users.
7519 (record_wait_cleanups): Renamed to ...
7520 (record_full_wait_cleanups): ... this. Updated all users.
7521 (record_wait_1): Renamed to ...
7522 (record_full_wait_1): ... this. Updated all users.
7523 (record_wait): Renamed to ...
7524 (record_full_wait): ... this. Updated all users.
7525 (record_stopped_by_watchpoint): Renamed to ...
7526 (record_full_stopped_by_watchpoint): ... this. Updated all users.
7527 (record_disconnect): Renamed to ...
7528 (record_full_disconnect): ... this. Updated all users.
7529 (record_detach): Renamed to ...
7530 (record_full_detach): ... this. Updated all users.
7531 (record_mourn_inferior): Renamed to ...
7532 (record_full_mourn_inferior): ... this. Updated all users.
7533 (record_kill): Renamed to ...
7534 (record_full_kill): ... this. Updated all users.
7535 (record_stopped_data_address): Renamed to ...
7536 (record_full_stopped_data_address): ... this. Updated all users.
7537 (record_registers_change): Renamed to ...
7538 (record_full_registers_change): ... this. Updated all users.
7539 (record_store_registers): Renamed to ...
7540 (record_full_store_registers): ... this. Updated all users.
7541 (record_xfer_partial): Renamed to ...
7542 (record_full_xfer_partial): ... this. Updated all users.
7543 (record_breakpoint): Renamed to ...
7544 (record_full_breakpoint): ... this. Updated all users.
7545 (record_breakpoint_p): Renamed to ...
7546 (record_full_breakpoint_p): ... this. Updated all users.
7547 (record_breakpoints): Renamed to ...
7548 (record_full_breakpoints): ... this. Updated all users.
7549 (record_sync_record_breakpoints): Renamed to ...
7550 (record_full_sync_record_breakpoints): ... this.
7552 (record_init_record_breakpoints): Renamed to ...
7553 (record_full_init_record_breakpoints): ... this.
7555 (record_insert_breakpoint): Renamed to ...
7556 (record_full_insert_breakpoint): ... this. Updated all users.
7557 (record_remove_breakpoint): Renamed to ...
7558 (record_full_remove_breakpoint): ... this. Updated all users.
7559 (record_can_execute_reverse): Renamed to ...
7560 (record_full_can_execute_reverse): ... this. Updated all users.
7561 (record_get_bookmark): Renamed to ...
7562 (record_full_get_bookmark): ... this. Updated all users.
7563 (record_goto_bookmark): Renamed to ...
7564 (record_full_goto_bookmark): ... this. Updated all users.
7565 (record_async): Renamed to ...
7566 (record_full_async): ... this. Updated all users.
7567 (record_can_async_p): Renamed to ...
7568 (record_full_can_async_p): ... this. Updated all users.
7569 (record_is_async_p): Renamed to ...
7570 (record_full_is_async_p): ... this. Updated all users.
7571 (record_execution_direction): Renamed to ...
7572 (record_full_execution_direction): ... this. Updated all users.
7573 (record_info): Renamed to ...
7574 (record_full_info): ... this. Updated all users.
7575 (record_delete): Renamed to ...
7576 (record_full_delete): ... this. Updated all users.
7577 (record_is_replaying): Renamed to ...
7578 (record_full_is_replaying): ... this. Updated all users.
7579 (record_goto_entry): Renamed to ...
7580 (record_full_goto_entry): ... this. Updated all users.
7581 (record_goto_begin): Renamed to ...
7582 (record_full_goto_begin): ... this. Updated all users.
7583 (record_goto_end): Renamed to ...
7584 (record_full_goto_end): ... this. Updated all users.
7585 (record_goto): Renamed to ...
7586 (record_full_goto): ... this. Updated all users.
7587 (init_record_ops): Renamed to ...
7588 (init_record_full_ops): ... this. Updated all users.
7589 (record_core_resume): Renamed to ...
7590 (record_full_core_resume): ... this. Updated all users.
7591 (record_core_kill): Renamed to ...
7592 (record_full_core_kill): ... this. Updated all users.
7593 (record_core_fetch_registers): Renamed to ...
7594 (record_full_core_fetch_registers): ... this. Updated all users.
7595 (record_core_prepare_to_store): Renamed to ...
7596 (record_full_core_prepare_to_store): ... this. Updated all users.
7597 (record_core_store_registers): Renamed to ...
7598 (record_full_core_store_registers): ... this. Updated all users.
7599 (record_core_xfer_partial): Renamed to ...
7600 (record_full_core_xfer_partial): ... this. Updated all users.
7601 (record_core_insert_breakpoint): Renamed to ...
7602 (record_full_core_insert_breakpoint): ... this. Updated all users.
7603 (record_core_remove_breakpoint): Renamed to ...
7604 (record_full_core_remove_breakpoint): ... this. Updated all users.
7605 (record_core_has_execution): Renamed to ...
7606 (record_full_core_has_execution): ... this. Updated all users.
7607 (init_record_core_ops): Renamed to ...
7608 (init_record_full_core_ops): ... this. Updated all users.
7609 (cmd_record_restore): Renamed to ...
7610 (cmd_record_full_restore): ... this. Updated all users.
7611 (record_save_cleanups): Renamed to ...
7612 (record_full_save_cleanups): ... this. Updated all users.
7613 (cmd_record_start): Renamed to ...
7614 (cmd_record_full_start): ... this. Updated all users.
7615 (set_record_insn_max_num): Renamed to ...
7616 (set_record_full_insn_max_num): ... this. Updated all users.
7617 (set_record_command): Renamed to ...
7618 (set_record_full_command): ... this. Updated all users.
7619 (show_record_command): Renamed to ...
7620 (show_record_full_command): ... this. Updated all users.
7621 (_initialize_record): Renamed to ...
7622 (_initialize_record_full): ... this. Updated all users.
7624 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7626 * record.h: Split into this and ...
7627 * record-full.h: ... this.
7628 * record.c: Split into this and ...
7629 * record-full.c: ... this.
7630 * target.h (target_ops): Add new fields to_info_record,
7631 to_save_record, to_delete_record, to_record_is_replaying,
7632 to_goto_record_begin, to_goto_record_end, to_goto_record.
7633 (target_info_record): New.
7634 (target_save_record): New.
7635 (target_supports_delete_record): New.
7636 (target_delete_record): New.
7637 (target_record_is_replaying): New.
7638 (target_goto_record_begin): New.
7639 (target_goto_record_end): New.
7640 (target_goto_record): New.
7641 * target.c (target_info_record): New.
7642 (target_save_record): New.
7643 (target_supports_delete_record): New.
7644 (target_delete_record): New.
7645 (target_record_is_replaying): New.
7646 (target_goto_record_begin): New.
7647 (target_goto_record_end): New.
7648 (target_goto_record): New.
7649 * record.h: Declare struct cmd_list_element.
7650 (record_cmdlist): New declaration.
7651 (set_record_cmdlist): New declaration.
7652 (show_record_cmdlist): New declaration.
7653 (info_record_cmdlist): New declaration.
7654 (cmd_record_goto): New declaration.
7655 * record.c: Remove unnecessary includes.
7657 (cmd_record_goto): Remove declaration.
7658 (record_cmdlist): Now extern. Initialize.
7659 (set_record_cmdlist): Now extern. Initialize.
7660 (show_record_cmdlist): Now extern. Initialize.
7661 (info_record_cmdlist): Now extern. Initialize.
7662 (find_record_target): New.
7663 (require_record_target): New.
7664 (cmd_record_start): Update.
7665 (cmd_record_delete): Remove target-specific code.
7666 Call target_delete_record.
7667 (cmd_record_stop): Unpush any record target.
7668 (set_record_insn_max_num): Move to record-full.c
7669 (set_record_command): Add comment.
7670 (show_record_command): Add comment.
7671 (info_record_command): Update comment.
7672 Remove target-specific code.
7673 Call the record target's to_info_record.
7674 (cmd_record_start): New.
7675 (cmd_record_goto): Now extern.
7676 Remove target-specific code.
7677 Call target_goto_begin, target_goto_end, or target_goto.
7678 (_initialize_record): Move record target ops initialization to
7680 Change "record" command help text.
7681 Move "record restore", "record set", and "record show" commands to
7683 * Makefile.in (SFILES): Add record-full.c.
7684 (HFILES_NO_SRCDIR): Add record-full.h.
7685 (COMMON_OBS): Add record-full.o.
7686 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
7687 * arm-tdep.c: Include record-full.h.
7688 * i386-linux-tdep.c: Include record-full.h instead of record.h.
7689 * i386-tdep.c: Include record-full.h.
7690 * infrun.c: Include record-full.h.
7691 * linux-record.c: Include record-full.h.
7692 * moxie-tdep.c: Include record-full.h.
7693 * record-full.c: Include record-full.h.
7694 Change module comment.
7695 (set_record_full_cmdlist): New.
7696 (show_record_full_cmdlist): New.
7697 (record_full_cmdlist): New.
7698 (record_goto_insn): New declaration.
7699 (record_save): New declaration.
7700 (record_check_insn_num): Change query string.
7702 (record_delete): New.
7703 (record_is_replaying): New.
7704 (record_goto_entry): New.
7705 (record_goto_begin): New.
7706 (record_goto_end): New.
7708 (init_record_ops): Update.
7709 (init_record_core_ops): Update.
7710 (cmd_record_save): Rename to record_save. Remove target and arg checks.
7711 (cmd_record_start): New.
7712 (set_record_insn_max_num): Moved from record.c
7713 (set_record_full_command): New.
7714 (show_record_full_command): New.
7715 (_initialize_record_full): New.
7717 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7719 * target.h (add_deprecated_target_alias): New.
7720 * target.c (add_deprecated_target_alias): New.
7722 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7724 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
7726 (linux_supports_btrace): Add kernel and
7728 (kernel_supports_btrace): New function.
7729 (cpu_supports_btrace): New function.
7730 (intel_supports_btrace): New function.
7732 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7734 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
7735 * remote.c: Include btrace.h.
7736 (struct btrace_target_info): New struct.
7737 (remote_supports_btrace): New function.
7738 (send_Qbtrace): New function.
7739 (remote_enable_btrace): New function.
7740 (remote_disable_btrace): New function.
7741 (remote_teardown_btrace): New function.
7742 (remote_read_btrace): New function.
7743 (init_remote_ops): Add btrace ops.
7744 (enum <unnamed>): Add btrace packets.
7745 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
7746 (_initialize_remote): Add packet configuration for branch tracing.
7748 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7750 * features/btrace.dtd: New file.
7751 * Makefile.in (XMLFILES): Add btrace.dtd.
7752 * btrace.h (parse_xml_btrace): New declaration.
7753 * btrace.c: Include xml-support.h.
7754 (parse_xml_btrace): New function.
7755 (parse_xml_btrace_block): New function.
7756 (block_attributes): New struct.
7757 (btrace_attributes): New struct.
7758 (btrace_children): New struct.
7759 (btrace_elements): New struct.
7761 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7763 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
7764 (amd64_linux_enable_btrace): New.
7765 (amd64_linux_disable_btrace): New.
7766 (amd64_linux_teardown_btrace): New.
7767 (_initialize_amd64_linux_nat): Initialize btrace ops.
7768 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
7769 (i386_linux_enable_btrace): New.
7770 (i386_linux_disable_btrace): New.
7771 (i386_linux_teardown_btrace): New.
7772 (_initialize_i386_linux_nat): Initialize btrace ops.
7773 * config/i386/linux.mh: Add linux-btrace.o.
7774 * config/i386/linux64.mh: Add linux-btrace.o.
7776 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7778 * common/linux_btrace.h: New file.
7779 * common/linux_btrace.c: New file.
7780 * Makefile.in (SFILES): Add btrace.c.
7781 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
7782 (COMMON_OBS): Add btrace.o.
7783 (linux-btrace.o): New rule.
7785 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
7787 * target.h: Include btrace.h.
7788 (struct target_ops) <to_supports_btrace, to_enable_btrace,
7789 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
7790 * target.c (target_supports_btrace): New function.
7791 (target_enable_btrace): New function.
7792 (target_disable_btrace): New function.
7793 (target_teardown_btrace): New function.
7794 (target_read_btrace): New function.
7795 * btrace.h: New file.
7796 * btrace.c: New file.
7797 * Makefile.in: Add btrace.c.
7798 * gdbthread.h: Include btrace.h.
7799 (struct thread_info): Add btrace field.
7800 * thread.c: Include btrace.h.
7801 (clear_thread_inferior_resources): Call target_teardown_btrace.
7802 * common/btrace-common.h: New file.
7804 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7806 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
7807 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
7808 kill_status to outer block.
7810 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7812 Fix entry-values if the callee called a noreturn function.
7813 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7814 get_frame_address_in_block. Add new comment.
7816 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7818 Fix entry-values in C++ across CUs.
7819 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
7820 lookup_minimal_symbol. Add a comment.
7822 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
7825 2013-03-08 Yao Qi <yao@codesourcery.com>
7827 * tracepoint.c (_initialize_tracepoint): Indent the code.
7829 2013-03-08 Pedro Alves <palves@redhat.com>
7831 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
7832 (parse_find_args, find_command): Change type of pattern buffer
7833 locals to 'gdb_byte *'.
7835 2013-03-08 Stan Shebs <stan@codesourcery.com>
7836 Hafiz Abid Qadeer <abidh@codesourcery.com>
7838 * NEWS: Mention set and show trace-buffer-size commands.
7840 * target.h (struct target_ops): New method
7841 to_set_trace_buffer_size.
7842 (target_set_trace_buffer_size): New macro.
7843 * target.c (update_current_target): Set up new method.
7844 * tracepoint.c (trace_buffer_size): New global.
7845 (start_tracing): Send it to the target.
7846 (set_trace_buffer_size): New function.
7847 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
7848 * remote.c (remote_set_trace_buffer_size): New function.
7849 (_initialize_remote): Use it.
7850 (QTBuffer:size) New remote command.
7851 (PACKET_QTBuffer_size): New enum.
7852 (remote_protocol_features): Add an entry for
7853 PACKET_QTBuffer_size.
7855 2013-03-08 Tom Tromey <tromey@redhat.com>
7857 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
7860 2013-03-07 Pedro Alves <palves@redhat.com>
7862 * target.c (target_read_stralloc, target_fileio_read_alloc):
7863 *Cast pointer to 'gdb_byte *' in target call.
7865 2013-03-07 Pedro Alves <palves@redhat.com>
7867 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
7870 2013-03-07 Keith Seitz <keiths@redhat.com>
7872 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
7873 (trace_pass_command): Likewise.
7874 * cli/cli-cmds.c: Include cli/cli-utils.h.
7875 (source_command): Use skip-spaces.
7876 (disassemble_command): Likewise.
7877 * findcmd.c: Include cli/cli-utils.h.
7878 (parse_find_args): Use skip_spaces.
7879 * go32-nat.c: Include cli/cli-utils.h.
7880 (go32_sldt): Use skip_spaces.
7881 (go32_sgdt): Likewise.
7882 (go32_sidt): Likewise.
7883 (go32_pde): Likewise.
7884 (go32_pte): Likewise.
7885 (go32_pte_for_address): Likewise.
7886 * infcmd.c: Include cli/cli-utils.h.
7887 (registers_info): Use skip_spaces.
7888 * linux-tdep.c (read_mapping): Use skip_spaces_const.
7889 (linux_info_proc): Likewise.
7890 * linux-thread-db.c: Include cli/cli-utils.h.
7891 (info_auto_load_libthread_db): Use skip_spaces_const.
7892 * m32r-rom.c: Include cli/cli-utils.h.
7893 (m32r_upload_command): Use skip_spaces.
7894 * maint.c: Include cli/cli-utils.h.
7895 (maintenance_translate_address): Use skip_spaces.
7896 * mi/mi-parse.c: Include cli/cli-utils.h.
7897 (mi_parse_argv): Use skip_spaces.
7898 (mi_parse): Likewise.
7899 * minsyms.c: Include cli/cli-utils.h.
7900 (msymbol_hash_iw): Use skip_spaces_const.
7901 * objc-lang.c: Include cli/cli-utils.h.
7902 (parse_selector): Use skip_spaces.
7903 (parse_method): Likewise.
7904 * python/python.c: Include cli/cli-utils.h.
7905 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
7906 (python_command)[HAVE_PYTHON]: Likewise.
7907 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
7908 * remote-m32r-sdi.c: Include cli/cli-utils.h.
7909 (m32r_load): Use skip_spaces.
7910 * serial.c: Include cli/cli-utils.h.
7911 (serial_open): Use skip_spaces_const.
7912 * stack.c: Include cli/cli-utils.h.
7913 (parse_frame_specification_1): Use skip_spaces_const.
7914 * symfile.c: Include cli/cli-utils.h.
7915 (set_ext_lang_command): Use skip_spaces.
7916 * symtab.c: Include cli/cli-utils.h.
7917 (rbreak_command): Use skip_spaces.
7918 * thread.c (thread_name_command): Use skip_spaces.
7919 * tracepoint.c (validate_actionline): Use skip_spaces.
7920 (encode_actions_1): Likewise.
7921 (trace_find_range_command): Likewise.
7922 (trace_find_outside_command): Likewise.
7923 (trace_dump_actions): Likewise.
7925 2013-03-07 Pedro Alves <palves@redhat.com>
7927 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
7928 * expprint.c (print_subexp_standard): Likewise.
7929 * utils.c (host_char_to_target): Likewise.
7930 * valprint.c (generic_emit_char, generic_printstr): Likewise.
7931 * varobj.c (value_get_print_value): Change type of local to char*.
7932 Cast it gdb_byte * in call to language printer.
7934 2013-03-07 Pedro Alves <palves@redhat.com>
7936 * charset.c (struct wchar_iterator) <input>: Change type to 'const
7938 (make_wchar_iterator): Remove cast to char*.
7939 (wchar_iterate): Change type of local.
7941 2013-03-07 Pedro Alves <palves@redhat.com>
7943 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
7944 for 'regcache->register_status'.
7946 2013-03-07 Pedro Alves <palves@redhat.com>
7948 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
7951 2013-03-07 Pedro Alves <palves@redhat.com>
7953 * stap-probe.c (handle_stap_probe): Add cast to char*.
7955 2013-03-07 Pedro Alves <palves@redhat.com>
7957 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
7958 RECORD_MSGRCV>: Pass a signed variable to
7959 regcache_raw_read_signed, instead of an unsigned one.
7961 2013-03-07 Pedro Alves <palves@redhat.com>
7963 * remote-notif.c (notif_debug): Change type to int.
7964 * remote-notif.h (notif_debug): Likewise.
7966 2013-03-07 Pedro Alves <palves@redhat.com>
7968 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
7970 2013-03-07 Pedro Alves <palves@redhat.com>
7972 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
7973 * remote.h (hex2bin, bin2hex): ... here.
7974 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
7976 2013-03-07 Eli Zaretskii <eliz@gnu.org>
7978 * utils.c (initialize_utils): Improve doc strings of "set/show
7979 width", "set/show height", and "set/show pagination".
7981 2013-03-06 Keith Seitz <keiths@redhat.com>
7983 * ax-gdb.c (gen_printf): Make FORMAT const.
7984 * ax-gdb.h (gen_printf): Likewise.
7985 * ax-general.c (ax_string): Make STR const.
7986 * ax.h (ax_string): Likewise.
7988 2013-03-06 Doug Evans <dje@google.com>
7990 * elfread.c (elf_symfile_read): Move debugging printf to more
7993 2013-03-06 Pedro Alves <palves@redhat.com>
7995 * python/py-utils.c (target_string_to_unicode): Delete function.
7996 * python/python-internal.h (target_string_to_unicode): Delete
7999 2013-03-06 Pierre Muller <muller@sourceware.org>
8001 * linespec.c (get_current_search_block): ARI fix, use (void)
8002 for empty parameter list.
8004 2013-03-05 Doug Evans <dje@google.com>
8006 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
8007 of old ada_lookup_symbol_list. In !full_search case, don't
8009 (ada_lookup_symbol_list): Delete arg full_search, all callers
8010 updated. Call ada_lookup_symbol_list_worker.
8011 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
8012 * ada-lang.h (ada_lookup_symbol_list): Update.
8013 * language.h (language_defn): Update comment for
8014 la_iterate_over_symbols.
8015 * linespec.c (iterate_over_file_blocks): New function.
8016 (iterate_over_all_matching_symtabs): Call it.
8017 (lookup_prefix_sym): Ditto.
8018 (get_current_search_block): New function.
8019 (get_search_block): Delete.
8020 (find_label_symbols): Call get_current_search_block.
8021 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
8022 * symtab.c (iterate_over_symbols): Don't search superblocks.
8024 2013-03-05 Yao Qi <yao@codesourcery.com>
8026 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
8027 parameter VAR's type from "unsigned int" to "int".
8028 * command.h (var_zuinteger_unlimited): Update its comments.
8029 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
8031 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8033 * NEWS: Mention new target x86_64-*-cygwin*.
8035 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
8037 * configure.host: Add x86_64-*-cygwin* as host.
8038 * configure.tgt: Add x86_64-*-cygwin* as target.
8039 * config/i386/cygwin64.mh: New file.
8041 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8043 * linespec.c (decode_line_2): Fix duplicate request off by two message.
8045 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8047 * linespec.c (struct linespec_canonical_name): New.
8048 (struct linespec_state): Change canonical_names type to it.
8049 (add_sal_to_sals): Change variable canonical_name to canonical. Change
8050 xrealloc element size. Initialize the different CANONICAL fields.
8051 (canonical_to_fullform): New.
8052 (filter_results): Use it. Add variables canonical, fullform and
8054 (struct decode_line_2_item, decode_line_2_compare_items): New.
8055 (decode_line_2): Remove variables iter and item_names, add variables
8056 items and items_count. Modify the code for these new variables.
8058 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
8060 * coff-pe-read.c (read_pe_exported_syms): Don't return without
8063 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
8065 * tracepoint.c (build_traceframe_info): Add code for byte order.
8067 2013-03-02 Kevin Buettner <kevinb@redhat.com>
8069 * v850-tdep.c: (v850e2_register_name): Revise system register
8070 names to match current V850E2M architecture specifications.
8071 Update register number enum comments too.
8073 2013-03-01 Jiong Wang <jiwang@tilera.com>
8074 Pedro Alves <palves@redhat.com>
8076 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
8078 (tilegx_skip_prologue): Limit prologue analysis to section end.
8080 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8082 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
8085 2013-03-01 Pedro Alves <palves@redhat.com>
8087 Use gdb_byte for bytes from the program being debugged.
8089 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
8090 Change type of local 'buf' to gdb_byte.
8091 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
8092 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
8093 * cris-tdep.c (cris_sigcontext_addr)
8094 (cris_sigtramp_frame_unwind_cache): Likewise.
8095 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
8096 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
8098 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
8099 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
8100 (hppa32_hpux_search_dummy_call_sequence)
8101 (hppa_hpux_supply_save_state): Likewise.
8102 * hppa-linux-tdep.c (insns_match_pattern)
8103 (hppa_linux_find_global_pointer): Likewise.
8104 * hppa-tdep.c (hppa_in_function_epilogue_p)
8105 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
8106 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
8107 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
8108 (i386fbsd_collect_uthread): Likewise.
8109 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
8110 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
8111 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
8112 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
8113 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
8114 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
8115 (ia64_libunwind_frame_prev_register)
8116 (ia64_libunwind_sigtramp_frame_this_id)
8117 (ia64_find_global_pointer_from_dynamic_section)
8118 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
8119 (ia64_unwind_pc): Likewise.
8120 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
8121 * m68hc11-tdep.c (m68hc11_push_dummy_call)
8122 (m68hc11_extract_return_value): Likewise.
8123 * m68klinux-nat.c (fetch_register, store_register): Likewise.
8124 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
8125 (mep_get_insn, mep_push_dummy_call): Likewise.
8126 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
8127 (mips_linux_in_dynsym_stub): Likewise.
8128 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
8129 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
8130 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
8132 * remote-mips.c (mips_set_register): Likewise.
8133 * remote-sim.c (gdbsim_fetch_register): Likewise.
8134 * score-tdep.c (score7_fetch_inst): Change type of parameter
8135 'memblock' and local 'buf' to gdb_byte.
8136 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
8137 Change type of local 'buf' to gdb_byte. Adjust.
8138 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
8140 (score7_analyze_prologue): Change type of 'memblock' and
8141 'memblock_ptr' locals to gdb_byte*.
8142 * sh64-tdep.c (sh64_extract_return_value)
8143 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
8144 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
8145 * solib-pa64.c (pa64_solib_create_inferior_hook)
8146 (pa64_open_symbol_file_object): Remove local 'buf'.
8147 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
8148 (som_open_symbol_file_object): Likewise.
8149 * solib-spu.c (spu_current_sos): Likewise.
8150 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
8151 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
8152 (spu_store_registers): Likewise.
8153 * target.c (debug_print_register): Likewise.
8154 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
8155 * xstormy16-tdep.c (xstormy16_store_return_value)
8156 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
8157 (xstormy16_find_jmp_table_entry): Likewise.
8159 2013-03-01 Jiong Wang <jiwang@tilera.com>
8161 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
8162 (tilegx_gdbarch_init): Install it.
8164 2013-02-28 Tom Tromey <tromey@redhat.com>
8166 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
8169 2013-02-28 Doug Evans <dje@google.com>
8171 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
8172 * python/python.c (gdbpy_find_pc_line): Ditto.
8174 2013-02-28 Tom Tromey <tromey@redhat.com>
8176 * contrib/excheck.py: New file.
8177 * contrib/exsummary.py: New file.
8178 * contrib/gcc-with-excheck: New file.
8180 2013-02-28 Tom Tromey <tromey@redhat.com>
8182 * python/python.c (gdbpy_print_stack): Call begin_line and
8183 fprintf_filtered inside TRY_CATCH.
8185 2013-02-28 Tom Tromey <tromey@redhat.com>
8187 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
8190 2013-02-28 Tom Tromey <tromey@redhat.com>
8192 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
8193 frame_object_to_frame_info inside TRY_CATCH.
8195 2013-02-28 Tom Tromey <tromey@redhat.com>
8197 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
8200 2013-02-28 Tom Tromey <tromey@redhat.com>
8202 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
8204 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
8206 * windows-nat.c: Throughout, fix format strings and casts of
8207 printf-like functions to avoid type related warnings on all
8209 (handle_output_debug_string): Fetch context information address
8210 from debug string using string_to_core_addr.
8212 2013-02-27 Jiong Wang <jiwang@tilera.com>
8214 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
8215 * regformats/reg-tilegx32.dat: New.
8217 2013-02-27 Jiong Wang <jiwang@tilera.com>
8219 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
8221 2013-02-27 Jiong Wang <jiwang@tilera.com>
8223 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
8225 2013-02-27 Yao Qi <yao@codesourcery.com>
8226 Pedro Alves <palves@redhat.com>
8228 * tracepoint.c (tfile_trace_find): For tfind
8229 pc/tp/range/outside, look for the next trace frame instead of
8230 always starting from frame 0.
8232 2013-02-26 Anthony Green <green@moxielogic.com>
8234 * configure.tgt: Add support for moxie-*-rtems* target.
8236 2013-02-25 Pedro Alves <palves@redhat.com>
8238 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
8241 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8243 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
8244 if $fp is used as the virtual frame pointer.
8246 2013-02-23 Alan Modra <amodra@gmail.com>
8248 * elfread.c (elf_symtab_read): Do not use udata.p here to find
8250 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
8251 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
8252 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
8253 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
8255 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8258 * elfread.c (build_id_bfd_get): Make the return type const.
8259 (build_id_verify): Make the check parameter const.
8260 (build_id_to_debug_filename): Make the build_id parameter and variable
8262 (find_separate_debug_file_by_buildid): Make the variable build_id const.
8264 2013-02-21 Alan Modra <amodra@gmail.com>
8266 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
8268 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
8270 Add a new method 'disassemble' to gdb.Architecture class.
8271 * python/py-arch.c (archpy_disassmble): Implementation of the
8272 new method gdb.Architecture.disassemble.
8273 (arch_object_methods): Add entry for the new method.
8275 2013-02-20 Jiong Wang <jiwang@tilera.com>
8277 * MAINTAINERS (Write After Approval): Add myself to the list.
8279 2013-02-19 Pedro Alves <palves@redhat.com>
8281 Garbage collect 'struct monitor_ops'::load_routine.
8283 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
8284 * monitor.c (monitor_load): No longer call
8285 current_monitor->load_routine.
8286 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
8287 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
8288 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
8290 2013-02-19 Pedro Alves <palves@redhat.com>
8294 Harmonize with generic_load.
8296 * monitor.c: Include "readline/readline.h".
8297 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
8298 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
8299 long/strtol for the 'load_offset' local. Error out if no argument
8300 is given or if too many arguments are given. Tilde expand the
8301 passed in file name.
8303 2013-02-19 Kai Tietz <ktietz@redhat.com>
8306 * symfile.c (load_section_data): Change type of load_offset
8308 (generic_load): User strtoulst instead of strtoul for conversion
8311 2013-02-19 Jiong Wang <jiwang@tilera.com>
8313 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
8314 for return address, "lr" register, saved on stack.
8315 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
8316 after we invoke tilegx_analyze_prologue.
8318 2013-02-19 Jiong Wang <jiwang@tilera.com>
8320 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
8322 2013-02-19 Jiong Wang <jiwang@tilera.com>
8324 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
8326 2013-02-19 Jiong Wang <jiwang@tilera.com>
8328 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
8329 (tilegx_write_pc): New function.
8330 (tilegx_cannot_reference_register): Return zero if REGNO
8331 is TILEGX_FAULTNUM_REGNUM.
8332 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
8333 (tilegx_register_name): Add handling of "faultnum" register.
8334 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
8335 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
8336 handling of TILEGX_FAULTNUM_REGNUM.
8337 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
8339 2013-02-19 Jiong Wang <jiwang@tilera.com>
8341 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
8342 should be aligned to 64bit.
8344 2013-02-19 Kai Tietz <ktietz@redhat.com>
8346 * windows-nat.c (windows_xfer_memory): Fix debug-output
8349 2013-02-19 Lei Liu <lei.liu2@windriver.com>
8351 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
8352 Don't check DSP register number if HAVE_DSP is not set.
8354 2013-02-19 Alan Modra <amodra@gmail.com>
8356 * elfread.c (struct build_id): Delete. Use struct elf_build_id
8357 throughout file instead.
8358 (build_id_bfd_get): Update to use new elf_tdata build_id field.
8359 Don't xmalloc return value.
8360 (build_id_verify): Similarly. Don't xfree.
8361 (build_id_to_debug_filename): Update.
8362 (find_separate_debug_file_by_buildid): Update, don't xfree.
8364 2013-02-18 Tom Tromey <tromey@redhat.com>
8367 * dwarf2read.c (read_subrange_type): Use result of
8370 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
8372 * frame.c: Remove one extra white space after #include
8375 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8377 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
8379 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8381 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
8382 and dir commands into an if block.
8384 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
8386 * python/py-breakpoint (struct pybp_code): Use int instead of
8389 2013-02-15 Pedro Alves <pedro@codesourcery.com>
8390 Hafiz Abid Qadeer <abidh@codesourcery.com>
8392 * NEWS: Mention new field "trace-file".
8393 * tracepoint.c (trace_status_mi): Output "trace-file" field.
8394 (tfile_open): Record the trace file's filename in the trace
8396 (tfile_files_info): Mention the name of the trace file.
8397 Check the "filename" field explicitely.
8398 (trace_status_command): Explicitely check "filename" field.
8399 (trace_find_command): Ditto.
8400 (trace_find_pc_command): Ditto.
8401 (trace_find_tracepoint_command): Ditto.
8402 (trace_find_line_command): Ditto.
8403 (trace_find_range_command): Ditto.
8404 (trace_find_outside_command): Ditto.
8405 * tracepoint.h (struct trace_status) <from_file>: Rename it
8406 to "filename" and make it hold the trace file's filename
8407 instead of a boolean.
8408 * remote.c (remote_get_trace_status): Initialize "filename"
8409 field with NULL instead of 0.
8411 2013-02-15 Yao Qi <yao@codesourcery.com>
8413 * remote.c: Fix a typo.
8415 2013-02-14 Pierre Muller <muller@sourceware.org>
8417 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
8419 2013-02-14 Pedro Alves <palves@redhat.com>
8421 * utils.c (savestring): Don't #undef it. Move function to
8422 common/common-utils.c.
8423 * common/common-utils.c: Include gdb_string.h.
8424 (savestring): Move here from utils.c.
8425 * common/common-utils.h (savestring): Declare.
8427 2013-02-14 Pedro Alves <palves@redhat.com>
8429 * utils.c (savestring): Rename parameter 'size' to 'len'.
8431 2013-02-14 Pedro Alves <palves@redhat.com>
8432 Yufeng Zhang <yufeng.zhang@arm.com>
8434 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
8435 (aarch64_inferior_data, struct aarch64_inferior_data):
8437 (struct aarch64_process_info): New.
8438 (aarch64_process_list): New global.
8439 (aarch64_find_process_pid, aarch64_add_process)
8440 (aarch64_process_info_get): New functions.
8441 (aarch64_inferior_data_get): Delete.
8442 (aarch64_process_info_get): New function.
8443 (aarch64_forget_process): New function.
8444 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
8445 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
8446 aarch64_get_debug_reg_state.
8447 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
8448 instead of linux_nat_iterate_watchpoint_lwps.
8449 (aarch64_linux_new_fork): New function.
8450 (aarch64_linux_child_post_startup_inferior): Use
8451 aarch64_forget_process instead of aarch64_init_debug_reg_state.
8452 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
8453 (aarch64_linux_remove_hw_breakpoint)
8454 (aarch64_handle_aligned_watchpoint)
8455 (aarch64_handle_unaligned_watchpoint)
8456 (aarch64_linux_insert_watchpoint)
8457 (aarch64_linux_remove_watchpoint)
8458 (aarch64_linux_stopped_data_address): Adjust to pass the current
8459 process id to aarch64_debug_reg_state.
8460 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
8461 linux_nat_new_fork hook, and aarch64_forget_process as
8462 linux_nat_forget_process hook; remove the call to
8463 register_inferior_data_with_cleanup.
8465 2013-02-14 Pedro Alves <palves@redhat.com>
8467 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
8468 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
8471 2013-02-14 Pedro Alves <pedro@codesourcery.com>
8472 Hafiz Abid Qadeer <abidh@codesourcery.com>
8474 * tracepoint.h (validate_trace_state_variable_name): Declare.
8475 * tracepoint.c (validate_trace_state_variable_name): New.
8476 (trace_variable_command): Parse the trace state variable's name
8477 without using parse_expression. Do several validations.
8478 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
8479 trace state variable's name with parse_expression. Validate it.
8481 2013-02-14 Yao Qi <yao@codesourcery.com>
8483 * infcmd.c (breakpoint_proceeded): Remove it.
8485 2013-02-14 Yao Qi <yao@codesourcery.com>
8487 * tracepoint.c (end_actions_pseudocommand): Make it static.
8488 (while_stepping_pseudocommand): Likewise.
8489 * tracepoint.h (end_actions_pseudocommand): Remove the
8491 (while_stepping_pseudocommand): Likewise.
8493 2013-02-14 Yao Qi <yao@codesourcery.com>
8495 * cli/cli-decode.c (help_cmd): Remove the declaration of
8497 (help_all): Likewise.
8499 2013-02-13 Pedro Alves <palves@redhat.com>
8501 * amd64-linux-nat.c (update_debug_registers_callback):
8503 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8505 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
8506 i386_debug_reg_state.
8507 (amd64_linux_new_fork): New function.
8508 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
8509 linux_nat_new_fork hook, and i386_forget_process as
8510 linux_nat_forget_process hook.
8511 * i386-linux-nat.c (update_debug_registers_callback):
8513 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8515 (i386_linux_prepare_to_resume): Pass the lwp's pid to
8516 i386_debug_reg_state.
8517 (i386_linux_new_fork): New function.
8518 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
8519 linux_nat_new_fork hook, and i386_forget_process as
8520 linux_nat_forget_process hook.
8521 * i386-nat.c (i386_init_dregs): Delete.
8522 (i386_inferior_data, struct i386_inferior_data):
8524 (struct i386_process_info): New.
8525 (i386_process_list): New global.
8526 (i386_find_process_pid, i386_add_process, i386_process_info_get):
8528 (i386_inferior_data_get): Delete.
8529 (i386_process_info_get): New function.
8530 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
8531 (i386_forget_process): New function.
8532 (i386_cleanup_dregs): Rewrite.
8533 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
8534 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
8535 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8536 (i386_remove_hw_breakpoint): Adjust to pass the current process id
8537 to i386_debug_reg_state.
8538 (i386_use_watchpoints): Don't register inferior data.
8539 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
8541 (i386_forget_process): Declare.
8542 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
8543 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
8545 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
8546 (add_initial_lwp): New, factored out from ...
8547 (add_lwp): ... this. Don't check the number of lwps before
8548 calling linux_nat_new_thread.
8549 (linux_nat_iterate_watchpoint_lwps): Delete.
8550 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
8551 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
8553 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
8555 (linux_nat_kill, linux_nat_mourn_inferior): Call
8556 linux_nat_forget_process.
8557 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8558 (linux_nat_forget_process): New functions.
8559 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
8561 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
8562 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
8564 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8565 (linux_nat_forget_process): New declarations.
8567 * amd64fbsd-nat.c (super_mourn_inferior): New global.
8568 (amd64fbsd_mourn_inferior): New function.
8569 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
8570 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
8572 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8574 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
8577 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8579 * aarch64-linux-nat.c (debug_reg_change_callback)
8580 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
8583 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8585 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
8588 2013-02-13 Pedro Alves <palves@redhat.com>
8589 Hafiz Abid Qadeer <abidh@codesourcery.com>
8591 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
8593 2013-02-12 Tom Tromey <tromey@redhat.com>
8596 * c-exp.y (lex_one_token): Initialize other fields of yylval on
8598 (classify_inner_name): Remove 'first_name' argument, add
8599 'context'. Remove unused variable.
8600 (yylex): Explicitly maintain the context type. Exit loop earlier
8601 if NAME result is seen.
8603 2013-02-12 Pedro Alves <palves@redhat.com>
8605 * amd64-darwin-tdep.c: Add (C) after Copyright.
8606 * cli/cli-cmds.h: Ditto.
8607 * cli/cli-decode.c: Ditto.
8608 * cli/cli-decode.h: Ditto.
8609 * cli/cli-dump.c: Ditto.
8610 * cli/cli-dump.h: Ditto.
8611 * cli/cli-interp.c: Ditto.
8612 * cli/cli-logging.c: Ditto.
8613 * cli/cli-script.c: Ditto.
8614 * cli/cli-script.h: Ditto.
8615 * cli/cli-setshow.c: Ditto.
8616 * cli/cli-setshow.h: Ditto.
8617 * cli/cli-utils.c: Ditto.
8618 * cli/cli-utils.h: Ditto.
8619 * config/alpha/nm-osf3.h: Ditto.
8620 * config/djgpp/djconfig.sh: Ditto.
8621 * config/i386/nm-fbsd.h: Ditto.
8622 * config/i386/nm-i386gnu.h: Ditto.
8623 * config/nm-linux.h: Ditto.
8624 * config/nm-nto.h: Ditto.
8625 * config/rs6000/nm-rs6000.h: Ditto.
8626 * config/sparc/nm-sol2.h: Ditto.
8627 * darwin-nat-info.c: Ditto.
8630 * gdb-demangle.h: Ditto.
8631 * i386-darwin-nat.c: Ditto.
8632 * i386-darwin-tdep.c: Ditto.
8633 * linux-fork.h: Ditto.
8634 * m32c-tdep.c: Ditto.
8635 * microblaze-linux-tdep.c: Ditto.
8636 * microblaze-rom.c: Ditto.
8637 * microblaze-tdep.c: Ditto.
8638 * microblaze-tdep.h: Ditto.
8639 * mips-linux-tdep.h: Ditto.
8640 * ppc-ravenscar-thread.c: Ditto.
8641 * ppc-ravenscar-thread.h: Ditto.
8642 * prologue-value.c: Ditto.
8643 * prologue-value.h: Ditto.
8644 * ravenscar-thread.c: Ditto.
8645 * ravenscar-thread.h: Ditto.
8646 * sparc-ravenscar-thread.c: Ditto.
8647 * sparc-ravenscar-thread.h: Ditto.
8648 * tilegx-linux-tdep.c: Ditto.
8649 * unwind_stop_reasons.def: Ditto.
8650 * windows-nat.h: Ditto.
8651 * xtensa-linux-tdep.c: Ditto.
8652 * xtensa-xtregs.c: Ditto.
8653 * regformats/regdat.sh: Ditto.
8654 * regformats/regdef.h: Ditto.
8656 2013-02-12 Pedro Alves <palves@redhat.com>
8658 * break-catch-sig.c: Update copyright years.
8660 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
8662 Add support for a destructor for ui_out data and use it to
8663 provide a ui_out destructor.
8664 * ui-out.h: Declare the new ui_out destructor.
8665 (ui_out_impl): Add a field for data destructor in ui_out_impl.
8666 * ui-out.c (default_data_destroy): Add a default data destructor
8668 (default_ui_out_impl): Set the new data_destroy field to
8669 default_data_destroy
8670 (uo_data_destroy): Local function which invokes the data
8671 destructor if present.
8672 (clear_table): Local function which clears the table data of a
8674 (ui_out_destroy): Public function which frees a ui_out object.
8675 (ui_out_table_end): Use the new clear_table function.
8676 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
8678 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
8681 2013-02-11 Doug Evans <dje@google.com>
8683 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
8684 (printf_decfloat): New function. Broken out from ui_printf.
8685 Remove unnecessary code to shift the entire format string down.
8686 (printf_pointer): New function.
8687 (ui_printf): Code to print C strings, wide C strings, decfloats,
8688 and pointers moved to separate functions.
8690 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
8692 * valops.c (value_assign): Handling bitfield offset in
8693 `lval_internalvar_component' case.
8695 2013-02-08 Doug Evans <dje@google.com>
8697 * common/format.c (parse_format_string): Fix whitespace.
8699 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
8701 * stack.c (return_command): Work around uninitialized variable
8704 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
8706 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
8707 number of the registers from 36 to 34.
8709 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8711 * NEWS: Mention new AArch64 native and target support.
8713 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
8715 * MAINTAINERS (Write After Approval): Add myself.
8717 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
8718 Marcus Shawcroft <marcus.shawcroft@arm.com>
8719 Nigel Stephens <nigel.stephens@arm.com>
8720 Yufeng Zhang <yufeng.zhang@arm.com>
8722 * aarch64-linux-nat.c: New file.
8723 * config/aarch64/linux.mh: New file.
8724 * configure.host: Add AArch64.
8725 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
8727 2013-02-07 Doug Evans <dje@google.com>
8729 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
8730 disassemble command.
8732 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
8734 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
8735 set_gdbarch_fetch_tls_load_module_address.
8737 2013-02-06 David S. Miller <davem@davemloft.net>
8739 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
8740 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8741 * value.c (struct_return_convention): New function.
8742 (using_struct_return): Implement in terms of struct_return_convention.
8743 * value.h (struct_return_convention): Declare.
8744 * stack.c (return_command): Allow successful overriding of the return
8745 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
8747 2013-02-06 Tom Tromey <tromey@redhat.com>
8749 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
8750 outside of TRY_CATCH.
8752 2013-02-06 Yao Qi <yao@codesourcery.com>
8754 * mi/mi-interp.c: Include "tracepoint.h".
8755 (mi_tsv_modified): Declare.
8756 (mi_tsv_created, mi_tsv_deleted): Update declaration.
8757 (mi_interpreter_init): Call observer_attach_tsv_modified.
8758 (mi_tsv_modified): New.
8759 (mi_tsv_created, mi_tsv_deleted): Update.
8760 * tracepoint.c (trace_variable_command): Call
8761 observer_notify_tsv_modified if the initial value of tsv is
8763 (delete_trace_state_variable): Call
8764 observer_notify_tsv_deleted earlier.
8765 (trace_variable_command): Caller update.
8766 (create_tsv_from_upload): Likewise.
8767 * observer.sh: Declare "struct trace_state_variable".
8769 * NEWS: Mention the new MI notification "=tsv-modified".
8771 2013-02-05 Doug Evans <dje@google.com>
8773 * completer.c (location_completer): Fix typo in comment.
8775 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8777 * breakpoint.c (add_location_to_breakpoint): Insert the location with
8780 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
8782 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
8783 Refactor if statement to avoid trailing || operator.
8785 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
8787 * NEWS: Add PowerPC FreeBSD as a new native configuration.
8789 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
8791 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
8792 * configure.host: Add powerpc*-*-freebsd* target.
8793 * configure.tgt: Add target info for powerpc*-*-freebsd*.
8794 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
8795 * config/powerpc/fbsd.mh: New file.
8797 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
8798 Denys Vlasenko <dvlasenk@redhat.com>
8799 Pedro Alves <palves@redhat.com>
8801 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
8802 (struct elf_internal_linux_prpsinfo): Forward declare.
8803 * gdbarch.h, gdbarch.c: Regenerate.
8804 * linux-tdep.c: Include `cli/cli-utils.h'.
8805 (linux_fill_prpsinfo): New function.
8806 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
8807 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
8808 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
8809 depending on gdbarch pointer bitness.
8810 * ppc-linux-tdep.c: Include elf-bfd.h.
8811 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
8814 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8815 Marcus Shawcroft <marcus.shawcroft@arm.com>
8816 Nigel Stephens <nigel.stephens@arm.com>
8817 Yufeng Zhang <yufeng.zhang@arm.com>
8819 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
8821 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8822 Marcus Shawcroft <marcus.shawcroft@arm.com>
8823 Nigel Stephens <nigel.stephens@arm.com>
8824 Yufeng Zhang <yufeng.zhang@arm.com>
8826 * aarch64-newlib-tdep.c: New file.
8827 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
8829 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
8830 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
8831 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
8832 * osabi.c (gdb_osabi_names): Add "Newlib".
8834 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8835 Marcus Shawcroft <marcus.shawcroft@arm.com>
8836 Nigel Stephens <nigel.stephens@arm.com>
8837 Yufeng Zhang <yufeng.zhang@arm.com>
8839 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
8840 (ALLDEPFILES): Add aarch64-linux-tdep.c.
8841 * aarch64-linux-tdep.c: New file.
8842 * aarch64-linux-tdep.h: New file.
8843 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
8844 * configure.tgt: Add aarch64-none-linux-gnu.
8846 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
8847 Marcus Shawcroft <marcus.shawcroft@arm.com>
8848 Nigel Stephens <nigel.stephens@arm.com>
8849 Yufeng Zhang <yufeng.zhang@arm.com>
8851 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
8852 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
8853 (ALLDEPFILES): Add aarch64-tdep.c.
8854 * aarch64-tdep.c: New file.
8855 * aarch64-tdep.h: New file.
8856 * configure.tgt: Add AArch64.
8857 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
8858 (aarch64-expedite): New definition.
8859 * features/aarch64-core.xml: New file.
8860 * features/aarch64-fpu.xml: New file.
8861 * features/aarch64-without-fpu.c: New file (generated).
8862 * features/aarch64-without-fpu.xml: New file.
8863 * features/aarch64.c: New file (generated).
8864 * features/aarch64.xml: New file.
8865 * regformats/aarch64-without-fpu.dat: New file (generated).
8866 * regformats/aarch64.dat: New file (generated).
8868 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8870 * contrib/expect-read1.c: New file.
8871 * contrib/expect-read1.sh: New file.
8873 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8875 * dwarf2read.c (file_file_name): New function with code from
8877 (file_full_name): Move most of the code to file_file_name.
8878 (macro_start_file): Rename variable full_name to file_name and use
8879 file_file_name for it. Add comp_dir parameter to new_macro_table.
8880 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
8881 macro_source_file->filename access by macro_source_fullname call.
8882 * macroscope.c (_initialize_macroscope): Update the new_macro_table
8884 * macrotab.c (struct macro_table): New field comp_dir.
8885 (macro_include): New variables link_fullname and source_fullname.
8886 Replace any macro_source_file->filename access by macro_source_fullname
8888 (macro_lookup_inclusion): Remove the partial filenames checking code.
8889 (check_for_redefinition): New variables source_fullname and
8890 found_key_fullname. Replace any macro_source_file->filename access by
8891 macro_source_fullname call.
8892 (macro_undef): New variables source_fullname and key_fullname. Replace
8893 any macro_source_file->filename access by macro_source_fullname call.
8894 (macro_lookup_definition): New variables retval and source_fullname.
8895 Replace any macro_source_file->filename access by macro_source_fullname
8897 (foreach_macro): New variable key_fullname. Replace any
8898 macro_source_file->filename access by macro_source_fullname call.
8899 (foreach_macro_in_scope): New variable datum_fullname. Replace any
8900 macro_source_file->filename access by macro_source_fullname call.
8901 (new_macro_table): Add parameter comp_dir. Initialize T with it.
8902 (macro_source_fullname): New function.
8903 * macrotab.h (struct macro_source_file): Extent the filename field
8905 (new_macro_table): New parameter comp_dir, add a comment for it.
8906 (macro_source_fullname): new declaration.
8908 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8910 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
8911 this_real_name to outer block. Use it also for
8912 compare_filenames_for_search.
8913 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
8914 with dw2_get_real_path for file_matcher, considering also
8915 BASENAMES_MAY_DIFFER.
8916 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
8918 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8920 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
8921 to the file_matcher parameter. Pass 0 to it.
8922 (dwarf2_create_include_psymtab): Copy also DIRNAME.
8923 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
8924 NULL psymtab_to_fullname result.
8925 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
8926 an expected filename instead.
8927 (expand_symtabs_matching_via_partial): Add basenames parameter to the
8928 file_matcher parameter. Call also psymtab_to_fullname, after newly
8929 considering BASENAMES_MAY_DIFFER.
8930 * source.c (rewrite_source_path): Remove static.
8931 * source.h (rewrite_source_path): New declaration.
8932 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
8933 the expand_symtabs_matching field. Comment it.
8934 * symtab.c (file_matches): New function comment. Add parameter
8935 basenames, implement it.
8936 (search_symbols_file_matches): Add basenames parameter. Update the
8937 file_matches caller.
8938 (search_symbols): Match FILES also against symtab_to_fullname.
8939 Optimize it for BASENAMES_MAY_DIFFER.
8941 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8943 * source.c (print_source_lines_base): Print for TUI also "fullname".
8944 * tui/tui-data.c (init_content_element): Change tui_locator_element
8946 * tui/tui-data.h (struct tui_locator_element): Likewise.
8947 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
8948 tui_update_locator_filename calls to tui_update_locator_fullname.
8949 Replace symtab->filename refererence by symtab_to_fullname call.
8950 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
8951 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
8952 field to full_name. Replace symtab->filename refererence by
8953 symtab_to_fullname call.
8954 (tui_show_symtab_source): Rename parameter to fullname. Change
8955 tui_locator_element field to full_name.
8956 * tui/tui-stack.c: Include source.h.
8957 (tui_set_locator_filename): Rename the declaration to ...
8958 (tui_set_locator_fullname): ... here. Rename its parameter to
8959 fullname, updates its comment.
8960 (tui_set_locator_info): Rename its parameter to fullname.
8961 (tui_set_locator_filename): Rename the definition to ...
8962 (tui_set_locator_fullname): ... here. Rename its parameter to
8963 fullname, updates its comment. Change tui_locator_element field to
8965 (tui_set_locator_info): Rename its parameter to fullname.
8966 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
8967 (tui_update_locator_filename): Rename to ...
8968 (tui_update_locator_fullname): ... here. Rename callee to
8969 tui_set_locator_fullname.
8970 (tui_show_frame_info): Replace symtab->filename refererence by
8971 symtab_to_fullname call.
8972 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
8973 (tui_update_locator_fullname): ... here.
8974 * tui/tui-winsource.c (tui_display_main): Rename the callee to
8975 tui_update_locator_fullname. Replace symtab->filename refererence by
8976 symtab_to_fullname call.
8977 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
8978 Rename the callee to tui_update_locator_fullname.
8979 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
8981 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8983 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
8984 by symtab_to_filename_for_display calls.
8985 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
8986 (clear_command): New variable sal_fullname, initialize it. Replace
8987 compare_filenames_for_search by filename_cmp with sal_fullname.
8988 (say_where, update_static_tracepoint): Replace symtab->filename
8989 refererences by symtab_to_filename_for_display calls.
8990 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
8992 * dwarf2read.c: Include source.h.
8993 (fixup_go_packaging): Replace symtab->filename refererences by
8994 symtab_to_filename_for_display calls.
8995 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
8996 Replace symtab->filename refererences by symtab_to_filename_for_display
8998 (create_sals_line_offset, convert_linespec_to_sals): New variable
8999 fullname, initialize it, replace symtab->filename reference by the
9001 * linux-fork.c: Include source.h.
9002 (info_checkpoints_command): Replace symtab->filename refererences by
9003 symtab_to_filename_for_display calls.
9004 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
9005 by symtab_to_filename_for_display calls.
9006 * mdebugread.c: Include source.h.
9007 (psymtab_to_symtab_1): Replace symtab->filename refererences by
9008 symtab_to_filename_for_display calls.
9009 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
9010 (mi_cmd_file_list_exec_source_files): Likewise.
9011 * printcmd.c: Include source.h.
9012 (build_address_symbolic): Replace symtab->filename refererences by
9013 symtab_to_filename_for_display calls.
9014 * psymtab.c (partial_map_symtabs_matching_filename)
9015 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
9016 with psymtab_to_fullname.
9017 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
9018 by symtab_to_filename_for_display calls.
9019 (stpy_get_filename): New variable filename, initialize it, use instead
9020 of symtab->filename refererences.
9021 (salpy_str): Make variable filename const char *. Replace
9022 symtab->filename refererences by symtab_to_filename_for_display calls.
9023 * skip.c: Include source.h and filenames.h.
9024 (skip_file_command): Remove const from the symtab variable. Replace
9025 symtab->filename refererences by symtab_to_fullname call.
9026 (function_name_is_marked_for_skip): New variables searched_for_fullname
9027 and fullname. Use them to search also with symtab's fullname.
9028 * source.c (find_source_lines): Replace symtab->filename refererences
9029 by symtab_to_filename_for_display calls.
9030 (print_source_lines_base): New variable filename, use it instead of
9031 symtab->filename. Replace symtab->filename refererences by
9032 symtab_to_filename_for_display calls.
9033 (line_info, forward_search_command): Replace symtab->filename
9034 refererences by symtab_to_filename_for_display calls.
9035 (reverse_search_command): Replace symtab->filename refererences by
9036 symtab_to_filename_for_display calls. New variable filename for it.
9037 * stack.c (frame_info): Likewise.
9038 * symmisc.c: Include source.h.
9039 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
9040 (maintenance_info_symtabs): Replace symtab->filename refererences by
9041 symtab_to_filename_for_display calls.
9042 * symtab.c (iterate_over_some_symtabs): Call
9043 compare_filenames_for_search also with symtab_to_fullname.
9044 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
9045 symtab->filename refererences by symtab_to_filename_for_display calls.
9046 (find_line_symtab): Replace symtab->filename refererences by
9047 symtab_to_filename_for_display calls.
9048 (file_matches): Replace filename_cmp by compare_filenames_for_search.
9049 (print_symbol_info): Make the last parameter const char *. New
9050 variable s_filename. Use it in the function.
9051 (symtab_symbol_info): Make the last_filename variable const char *.
9052 Replace symtab->filename refererences by symtab_to_filename_for_display
9054 (rbreak_command): New variable fullname. Use it. Replace
9055 symtab->filename refererence by symtab_to_filename_for_display call.
9056 * tracepoint.c (set_traceframe_context, trace_find_line_command)
9057 (print_one_static_tracepoint_marker): Replace symtab->filename
9058 refererences by symtab_to_filename_for_display calls.
9059 * tui/tui-source.c (tui_set_source_content): New variables filename and
9060 s_filename. Replace symtab->filename refererences by this variable.
9061 Replace other symtab->filename refererences by
9062 symtab_to_filename_for_display calls.
9064 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
9065 Jan Kratochvil <jan.kratochvil@redhat.com>
9067 Add a new variable that controls a way in which filenames are
9069 * NEWS (set filename-display): New entry.
9070 * source.c (filename_display_basename, filename_display_relative)
9071 (filename_display_absolute, filename_display_kind_names)
9072 (filename_display_string, show_filename_display_string)
9073 (symtab_to_filename_for_display): New.
9074 (_initialize_source): Added initialization of 'filename-display'
9076 * source.h (symtab_to_filename_for_display): Added declaration.
9077 * stack.c (print_frame): Added new variable and calling of a new
9078 function and condition with this variable. Changed third argument of
9079 calling of a function.
9081 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9083 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
9084 Rename field reference filename to fullname.
9085 * tui/tui-data.h (struct tui_source_info): Rename field filename to
9086 fullname. New comment for it.
9087 * tui/tui-source.c (tui_set_source_content): Rename field reference
9088 filename to fullname. Initialize field by symtab_to_fullname now.
9089 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
9090 reference filename to fullname. Use symtab_to_fullname during
9093 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9096 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
9097 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
9098 filename to fullname. Rename variable this_name to this_fullname.
9099 Lowercase FILENAME_CMP call.
9100 (dw2_find_symbol_file): New comment for the returned string.
9101 (dwarf2_gdb_index_functions): Rename the function to
9102 dw2_expand_symtabs_with_fullname.
9103 * psymtab.c (read_psymtabs_with_filename): Rename to ...
9104 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
9106 (psym_functions): Rename the function to read_psymtabs_with_fullname.
9107 * symfile.h (struct quick_symbol_functions): Rename field
9108 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
9109 parameter filename to fullname. Document returned string meaning for
9111 * symtab.c (find_line_symtab): Rename the called function to
9112 expand_symtabs_with_fullname.
9114 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9117 * breakpoint.c (clear_command): Remove variable is_abs, unify the
9118 call of filename_cmp with compare_filenames_for_search.
9119 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
9120 is_abs, unify the call of FILENAME_CMP with
9121 compare_filenames_for_search. New gdb_asserts for real_path and name.
9122 Unify the call of compare_filenames_for_search with FILENAME_CMP.
9123 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
9124 * symfile.h (struct quick_symbol_functions): Extend the comment for
9125 map_symtabs_matching_filename.
9126 * symtab.c (compare_filenames_for_search): Remove the function comment
9127 relative path requirement. Handle absolute filenames, with a comment.
9128 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
9129 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
9130 real_path and name. Unify the call of compare_filenames_for_search
9132 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
9134 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9137 * breakpoint.c (print_breakpoint_location): Replace bp_location field
9138 source_file references by symtab field references. Remove variables
9140 (momentary_breakpoint_from_master, add_location_to_breakpoint):
9141 (clear_command, say_where): Replace bp_location field source_file
9142 references by symtab field references.
9143 (bp_location_dtor): Remove the source_file reference.
9144 (update_static_tracepoint): Replace bp_location field source_file
9145 references by symtab field references.
9146 (breakpoint_free_objfile): New function.
9147 * breakpoint.h (struct bp_location): Extend the comment for line_number.
9148 Replace the field source_file by field symtab, extend its comment.
9149 (breakpoint_free_objfile): New declaration.
9150 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
9151 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
9152 field source_file references by symtab field references.
9154 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9156 Replace xfullpath calls by gdb_realpath calls.
9157 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
9159 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
9160 Remove it from the iterate_over_some_symtabs call.
9161 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
9162 Remove it from the dw2_map_expand_apply calls, remove a block handling
9164 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
9165 Remove it from the iterate_over_some_symtabs call.
9166 (partial_map_symtabs_matching_filename): Remove parameter full_path.
9167 Remove it from the partial_map_expand_apply calls, remove a block
9168 handling it. Drop gdb_realpath call and cleanups from the real_path
9170 * source.c (openp): Drop the comment part about xfullpath. Replace
9171 xfullpath calls by gdb_realpath calls.
9172 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
9173 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
9174 from method map_symtabs_matching_filename and its comment.
9175 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
9177 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
9178 remove it also from the function comment, remove a block handling it.
9179 Drop gdb_realpath call and cleanups from the real_path handling.
9180 (iterate_over_symtabs): Drop variable full_path and its use.
9181 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
9182 * utils.c (xfullpath): Remove.
9183 * utils.h (xfullpath): Remove.
9185 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
9187 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
9188 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
9189 (ALLDEPFILES): Add ppc64-tdep.c.
9190 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
9191 ppc64-tdep.o to gdb_target_obs.
9192 * ppc64-tdep.h: New file.
9193 * ppc64-tdep.c: New file.
9194 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
9195 ppc-linux-tdep.c to here.
9196 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
9197 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
9198 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
9199 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
9200 from ppc-linux-tdep.c to here.
9201 (ppc64_convert_from_func_ptr_addr): Rename from
9202 ppc64_linux_convert_from_func_ptr_addr to
9203 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
9206 (read_insn): Move from ppc-linux-tdep.c to here.
9207 (insns_match_pattern, insn_d_field, insn_ds_field): Move
9208 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
9209 * ppc-linux-tdep.c: Include ppc64-tdep.h.
9210 Removed above functions.
9211 (ppc_linux_init_abi): Adjust.
9213 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9215 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
9217 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
9219 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
9221 2013-02-01 Pedro Alves <palves@redhat.com>
9223 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
9224 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
9226 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9228 * elfread.c (elf_symfile_read): Limit separate debug info additions to
9229 files with no separate debug info.
9230 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
9231 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
9232 only for files with no separate debug info.
9234 2013-01-31 Tom Tromey <tromey@redhat.com>
9236 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
9238 (struct jit_program_space_data): Rename from jit_inferior_data.
9240 (get_jit_program_space_data): Rename from get_jit_inferior_data.
9241 Change return type. Attach data to program space.
9242 (jit_program_space_data_cleanup): Rename from
9243 jit_inferior_data_cleanup; change argument type.
9244 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
9246 (jit_register_code): Update.
9247 (jit_update_inferior_cache): Remove.
9248 (jit_breakpoint_deleted): Get jit data from the location's program
9250 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
9251 'ps_data', change type.
9252 (jit_inferior_init, jit_breakpoint_re_set_internal)
9253 (jit_event_handler): Update.
9254 (free_objfile_data): Get data from objfile's program space.
9255 (_initialize_jit): Update.
9257 2013-01-31 Tom Tromey <tromey@redhat.com>
9260 * jit.c (struct jit_inferior_data) <cached_code_address,
9261 jit_breakpoint>: New fields.
9262 (jit_breakpoint_re_set_internal): Fix logging. Only create
9263 breakpoint if cached address has changed.
9264 (jit_update_inferior_cache, jit_breakpoint_deleted): New
9266 (_initialize_jit): Register breakpoint deleted observer.
9268 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9270 * infrun.c (handle_syscall_event): Remove unused gdbarch.
9271 (save_infcall_suspend_state): Ifdef out unused inf.
9272 (restore_infcall_suspend_state): Ifdef out unused inf.
9273 * jit.c (jit_register_code): Remove unused i, b, inf_data.
9274 (jit_frame_sniffer): Remove unused inf_data.
9276 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9278 * c-exp.y (classify_inner_name): Remove unused type.
9279 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
9280 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
9282 (c_get_string): Remove unused kind.
9283 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
9285 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9287 * charset.c (intermediate_encoding): Remove unused i.
9288 * completer.c (signal_completer): Remove unused i.
9289 * continuations.c (discard_my_continuations_1): Remove unused
9291 * corelow.c (core_close): Remove unuseD name.
9292 (get_core_siginfo): Remove unused pid.
9293 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
9295 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
9296 (loclist_describe_location): Remove unused first.
9297 * event-top.c (command_line_handler): Remove unused got_eof.
9298 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
9299 (resize_section_table): Remove unused old_value.
9300 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
9301 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
9302 * i386-tdep.c (i386_process_record): Remove unused rex.
9303 * infcmd.c (get_return_value): Remove unused uiout.
9304 * jv-lang.c (type_from_class): Remove unused is_array.
9305 * jv-valprint.c (java_val_print): Remove unused i.
9306 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
9307 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
9308 * m2-typeprint.c (m2_print_type): Remove unused code.
9309 * macroexp.c (get_character_constant): Remove unused body_start.
9310 (macro_stringify): Remove unused result.
9311 * objc-lang.c (find_methods): Remove unused gdbarch.
9312 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
9313 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
9314 * stack.c (print_frame_args): Remove unused summary.
9315 * thread.c (thread_apply_command): Remove unused p.
9316 * valarith.c (value_x_unop): Remove unused mangle_ptr.
9317 * valops.c (search_struct_method): Remove unused skip.
9318 * valprint.c (generic_val_print): Remove unused byte_order.
9319 * varobj.c (varobj_update): Remove unused changed.
9320 * cli/cli-cmds.c (complete_command): Remove unused next_item.
9321 (alias_command): Remove unused c.
9322 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
9323 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
9325 (mi_cmd_data_write_memory): Remove unused word_format.
9326 (mi_cmd_data_write_memory_bytes): Remove unused r.
9327 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
9329 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
9330 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
9333 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9335 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
9336 * symtab.c (iterate_over_symtabs): Remove unused s.
9337 (find_pc_sect_symtab): Remove unused pspAce.
9338 (find_pc_sect_line): Remove unused alt_symtab.
9339 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
9340 (completion_list_add_name): Remove unused newsize.
9342 2013-01-31 Tom Tromey <tromey@redhat.com>
9345 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
9348 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9350 * target.c (target_read_string): Remove unused origlen.
9352 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9354 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
9355 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
9356 * ax-general.c (ax_print): Remove unused is_float.
9357 * blockframe.c (block_innermost_frame): Remove unused start, end.
9358 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
9360 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
9362 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
9363 (svr4_read_so_list): Remove unused lmo.
9364 * solib-target.c (solib_target_relocate_section_addresses): Remove
9367 2013-01-30 Tom Tromey <tromey@redhat.com>
9369 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
9371 2013-01-30 Tom Tromey <tromey@redhat.com>
9373 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
9374 * utils.c (gnu_debuglink_crc32): Remove.
9375 * utils.h (gnu_debuglink_crc32): Don't declare.
9377 2013-01-30 Tom Tromey <tromey@redhat.com>
9379 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
9380 (read_structure_type, read_enumeration_type): Remove cast.
9382 2013-01-30 Tom Tromey <tromey@redhat.com>
9384 * dwarf2read.c (read_namespace_type): Remove cast.
9385 (read_typedef): Likewise.
9387 2013-01-29 Tom Tromey <tromey@redhat.com>
9389 * dwarf2read.c (free_dwo_file): Remove assert.
9391 2013-01-29 Tom Tromey <tromey@redhat.com>
9393 * value.c (deprecated_set_value_modifiable): Remove.
9394 * value.h (deprecated_set_value_modifiable): Remove.
9396 2013-01-28 Doug Evans <dje@google.com>
9398 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
9399 to addresses from dwo files.
9401 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
9403 * valops.c (find_overload_match): Remove unused argument 'lax'.
9404 * value.h: Remove unused argument 'lax' from the declaration of
9405 find_overload_match.
9406 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
9407 to find_overload_match.
9408 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
9409 argument to find_overload_match.
9411 2013-01-25 Tom Tromey <tromey@redhat.com>
9413 * dwarf2read.c (processing_has_namespace_info): Remove.
9414 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
9415 (process_die, read_func_scope, dwarf2_start_symtab)
9416 (new_symbol_full): Update.
9418 2013-01-25 Tom Tromey <tromey@redhat.com>
9420 * cp-namespace.c (cp_set_block_scope): Remove.
9421 * cp-support.h (cp_set_block_scope): Remove.
9422 * dbxread.c: Include block.h.
9423 (cp_set_block_scope): New function.
9424 (process_one_symbol): Update.
9425 * dwarf2read.c (read_func_scope): Use block_set_scope.
9427 2013-01-25 Pedro Alves <palves@redhat.com>
9429 * remote.c (add_current_inferior_and_thread): Tweak comment.
9431 2013-01-25 Tom Tromey <tromey@redhat.com>
9433 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
9434 (cp_add_using_directive): Add 'copy_names' argument.
9435 * cp-support.h (cp_add_using_directive): Update.
9436 (struct using_direct) <import_src, import_dest, alias,
9437 declaration>: Now const.
9438 * dwarf2read.c (read_import_statement): Use obconcat.
9439 Don't copy names passed to cp_add_using_directive.
9441 2013-01-25 Tom Tromey <tromey@redhat.com>
9443 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
9445 2013-01-25 Pedro Alves <palves@redhat.com>
9447 * remote.c (stop_reply_extract_thread): New.
9448 (add_current_inferior_and_thread): New parameter 'wait_status'.
9450 (remote_start_remote): Pass wait status to
9451 add_current_inferior_and_thread.
9452 (extended_remote_run): Update comment.
9453 (extended_remote_create_inferior_1): Pass wait status to
9454 add_current_inferior_and_thread.
9456 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
9457 Ulrich Weigand <uweigand@de.ibm.com>
9459 * valarith.c (value_vector_widen): New function for replicating a
9460 scalar into a vector.
9461 (value_binop): Use value_vector_widen to widen scalar to vector
9462 rather than casting, this better matches gcc C behaviour.
9463 * valops.c (value_casst): Update logic for casting between vector
9464 types, and for casting from scalar to vector, try to match gcc C
9466 * value.h (value_vector_widen): Declare.
9467 * opencl-lang.c (opencl_value_cast): New opencl specific casting
9468 function, handle special case for casting scalar to vector.
9469 (opencl_relop): Use opencl_value_cast.
9470 (evaluate_subexp_opencl): Use opencl_value_cast instead of
9471 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
9472 in order to use opencl_value_cast.
9474 2013-01-25 Yao Qi <yao@codesourcery.com>
9476 * event-loop.c: Include "queue.h".
9477 (gdb_event_p): New typedef.
9478 (DECLARE_QUEUE_P): Use.
9479 (DEFINE_QUEUE_P): Use.
9480 (async_queue_event): Remove.
9481 (gdb_event_xfree): New.
9482 (initialize_event_loop): New.
9483 (process_event): Use QUEUE macros.
9484 (event_queue): Remove.
9485 (gdb_wait_for_event): Caller update.
9486 (check_async_event_handlers): Likewise.
9487 (poll_timers): Likewise.
9488 * event-loop.h (initialize_event_loop): Declare.
9489 * event-loop.c (gdb_event_xfree): New.
9490 * top.c (gdb_init): Call initialize_event_loop.
9492 2013-01-25 Yao Qi <yao@codesourcery.com>
9494 * event-loop.c (async_queue_event): Remove one parameter
9495 'position'. Remove code handling 'position' == TAIL.
9496 (gdb_wait_for_event): Caller update.
9497 (check_async_event_handlers): Caller update.
9498 (poll_timers): Caller update.
9499 * event-loop.h (enum queue_position): Remove.
9501 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
9503 * MAINTAINERS: Update my email.
9505 2013-01-25 Yao Qi <yao@codesourcery.com>
9507 * main.c (print_gdb_help): Remove "--epoch" from the help
9510 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
9512 * symtab.c (skip_prologue_using_sal): Consider a file
9513 change the same as an increased line number
9515 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9517 * MAINTAINERS (Write After Approval): Add myself to the list.
9519 2013-01-24 Tom Tromey <tromey@redhat.com>
9521 * ada-lang.h (ada_decode_symbol): Make return type const.
9522 * ada-lang.c (ada_decode_symbol): Likewise.
9524 2013-01-23 Doug Evans <dje@google.com>
9526 * linespec.c (find_linespec_symbols): Make static.
9528 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
9530 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
9531 type on float conversion for complex type.
9533 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
9535 Add a new class gdb.Architecture which exposes GDB's
9536 internal representation of architecture via GDB Python API.
9537 * Makefile.in: Add entries corresponding to the new file
9539 * NEWS (Python Scripting): Add entries for the new class
9540 gdb.Architecture and the new method gdb.Frame.architecture.
9541 * python/py-arch.c: Implement gdb.Architecture class.
9542 * python/py-frame.c (frapy_arch): Implement the method
9543 gdb.Frame.architecture().
9544 (frame_object_methods): Add 'architecture' to the method table.
9545 * python/python-internal.h: Add declarations of new utility
9547 * python/python.c (_initialize_python): Initialize
9548 gdb.Architecture class.
9550 2013-01-23 Doug Evans <dje@google.com>
9552 Work around binutils/15021.
9553 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
9554 type_unit_group out of union s. All uses updated.
9555 (read_index_from_section): Watch for index version 8.
9556 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
9558 (write_psymtabs_to_index): Increment version number to 8.
9560 2013-01-22 Pedro Alves <palves@redhat.com>
9562 * annotate.c (breakpoint_changed): Skip if breakpoint is not
9565 2013-01-22 Pedro Alves <palves@redhat.com>
9567 * annotate.c (annotate_breakpoints_changed): Rename to ...
9568 (annotate_breakpoints_invalid): ... this. Make static.
9569 (breakpoint_changed): Adjust.
9570 (_initialize_annotate): Always install the observers. Install a
9571 "breakpoint_created" observer.
9572 * annotate.h (annotate_breakpoints_changed): Delete declaration.
9573 * breakpoint.c (set_breakpoint_condition)
9574 (breakpoint_set_commands, do_map_commands_command)
9575 (init_raw_breakpoint, clear_command, set_ignore_count)
9576 (enable_breakpoint_disp): No longer call
9577 annotate_breakpoints_changed.
9579 2013-01-22 Pedro Alves <palves@redhat.com>
9581 * annotate.c: Include "inferior.h".
9582 (frames_invalid_emitted)
9583 (breakpoints_invalid_emitted): New globals.
9584 (async_background_execution_p): New function.
9585 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
9586 emitting the annotation if it has already been emitted.
9587 (annotate_display_prompt): New function.
9588 * annotate.h (annotate_display_prompt): New declaration.
9589 * event-top.c: Include annotate.h.
9590 (display_gdb_prompt): Call annotate_display_prompt.
9592 2013-01-22 Pedro Alves <palves@redhat.com>
9594 * annotate.c (ignore_count_changed): Delete.
9595 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
9596 (annotate_ignore_count_change): Delete.
9597 (annotate_stopped): Don't emit a delayed breakpoints-changed
9599 * annotate.h (annotate_ignore_count_change): Delete.
9600 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
9601 annotate_ignore_count_change.
9603 2013-01-22 Tom Tromey <tromey@redhat.com>
9605 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
9606 require_rvalue for a register location.
9608 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
9610 * breakpoint.c (print_one_breakpoint_location): Add MI
9611 field 'thread-groups' when printing a breakpoint.
9612 (output_thread_groups): New function.
9614 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
9616 * python/lib/gdb/commands/explore.py
9617 (CompoundExplorer.explore_expr): Correct the name of a method
9619 (ExploreTypeCommand.invoke): Add a missing 'return'.
9621 2013-01-21 Tom Tromey <tromey@redhat.com>
9623 * gdb_obstack.h (obconcat): Move declaration here, from...
9624 * symfile.h (obconcat): ... here.
9625 * gdb_obstack.c: New file.
9626 (obconcat): Move from...
9627 * symfile.c (obconcat): ... here.
9628 * Makefile.in (SFILES): Add gdb_obstack.c.
9629 (COMMON_OBS): Add gdb_obstack.o.
9631 2013-01-21 Tom Tromey <tromey@redhat.com>
9633 * symfile.h (obsavestring): Don't declare.
9634 * symfile.c (obsavestring): Remove.
9635 * ada-exp.y: Use obstack_copy0, not obsavestring.
9636 * ada-lang.c: Use obstack_copy0, not obsavestring.
9637 * coffread.c: Use obstack_copy0, not obsavestring.
9638 * cp-namespace.c: Use obstack_copy0, not obsavestring.
9639 * dbxread.c: Use obstack_copy0, not obsavestring.
9640 * dwarf2read.c: Use obstack_copy0, not obsavestring.
9641 * jit.c: Use obstack_copy0, not obsavestring.
9642 * mdebugread.c: Use obstack_copy0, not obsavestring.
9643 * psymtab.c: Use obstack_copy0, not obsavestring.
9644 * stabsread.c: Use obstack_copy0, not obsavestring.
9645 * xcoffread.c: Use obstack_copy0, not obsavestring.
9647 2013-01-21 Tom Tromey <tromey@redhat.com>
9649 * dwarf2read.c (fixup_go_packaging): Save package name
9651 * gdbtypes.c (init_type): Don't copy name.
9653 2013-01-21 Tom Tromey <tromey@redhat.com>
9655 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
9657 (struct attribute) <u.str>: Now const.
9658 (struct fnfieldlist) <name>: Now const.
9659 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
9660 (partial_die_parent_scope): Make return type const.
9661 (partial_die_full_name, add_partial_symbol): Update.
9662 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
9664 (find_file_and_directory): Make 'name' and 'comp_dir' const.
9665 (read_file_scope, read_func_scope, dwarf2_add_field)
9666 (dwarf2_add_member_fn, read_structure_type)
9667 (process_enumeration_scope, read_array_type, read_module_type)
9668 (read_base_type, read_subrange_type): Update.
9669 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
9670 (new_symbol_full, guess_full_die_structure_name): Update.
9671 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
9672 (dwarf2_name): Return const type.
9673 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
9676 2013-01-21 Tom Tromey <tromey@redhat.com>
9678 * gdbtypes.c (init_type): Make 'name' const.
9679 * gdbtypes.h (init_type): Update.
9681 2013-01-21 Tom Tromey <tromey@redhat.com>
9683 * buildsym.c (patch_subfile_names): Use set_last_source_file.
9684 (start_symtab): Make 'name' and 'dirname' const. Use
9685 set_last_source_file.
9686 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
9687 (last_source_file): Define. Now static.
9688 (set_last_source_file, get_last_source_file): New functions.
9689 * buildsym.h (last_source_file): Don't declare.
9690 (start_symtab): Update.
9691 (set_last_source_file, get_last_source_file): Declare.
9692 * coffread.c (complete_symtab): Use set_last_source_file.
9693 (coff_end_symtab): Likewise.
9694 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
9695 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
9696 set_last_source_file.
9697 (process_one_symbol): Use get_last_source_file.
9698 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
9699 (psymtab_to_symtab_1): Use get_last_source_file.
9700 * xcoffread.c (process_linenos): Use get_last_source_file.
9701 (complete_symtab): Use set_last_source_file.
9702 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
9703 (scan_xcoff_symtab): Use set_last_source_file.
9705 2013-01-21 Tom Tromey <tromey@redhat.com>
9707 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
9708 (symbol_set_names): Remove casts. Handle field const-ness.
9710 2013-01-21 Tom Tromey <tromey@redhat.com>
9712 * dwarf2read.c (new_symbol_full): Remove cast.
9713 * symtab.c (symbol_set_demangled_name): Make 'name' const.
9714 * symtab.h (symbol_set_demangled_name): Update.
9716 2013-01-21 Tom Tromey <tromey@redhat.com>
9718 * main.c (captured_main): Call bfd_init.
9720 2013-01-21 Tom Tromey <tromey@redhat.com>
9722 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
9723 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
9724 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
9727 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9729 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
9731 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9733 Fix gdb.fortran/common-block.exp crash in PIE mode.
9734 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
9736 * f-valprint.c (info_common_command_for_block): Expect
9737 LOC_COMMON_BLOCK in gdb_assert.
9738 * symtab.h (struct general_symbol_info): Update comment for the
9739 common_block member.
9740 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
9741 (enum address_class): New member LOC_COMMON_BLOCK.
9743 2013-01-18 David Blaikie <dblaikie@gmail.com>
9745 * MAINTAINERS (Write After Approval): Add "David Blaikie".
9747 2013-01-18 Tom Tromey <tromey@redhat.com>
9750 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
9751 Call require_rvalue.
9753 2013-01-18 Yao Qi <yao@codesourcery.com>
9755 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
9756 (dbx_read_symtab): New declaration.
9757 (dbx_psymtab_to_symtab): Delete.
9758 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
9759 Rename parameter PST to SELF. Exchanged two parameters.
9760 (start_psymtab): Caller update.
9761 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
9762 (dwarf2_read_symtab): New declaration.
9763 (dwarf2_psymtab_to_symtab): Delete.
9764 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
9765 Rename parameter PST to SELF. Exchanged two parameters.
9766 (create_partial_symtab): Caller update.
9767 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
9768 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
9769 Rename parameter PST to SELF. Exchanged two parameters.
9770 (parse_partial_symbols, new_psymtab): Caller update.
9771 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
9773 * psymtab.c (psymtab_to_symtab): Caller update.
9774 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
9775 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
9776 Rename parameter PST to SELF. Exchanged two parameters.
9777 (xcoff_start_psymtab): Caller update.
9779 2013-01-18 Yao Qi <yao@codesourcery.com>
9781 * infrun.c (proceed): Rename local variable 'oneproc' to
9784 2013-01-17 Doug Evans <dje@google.com>
9786 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
9787 (dw2_build_type_unit_groups): Delete. All uses updated.
9789 * symtab.h (struct symbol_search): Add comment.
9791 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9793 * symtab.c (compare_filenames_for_search): New comment for
9796 2013-01-17 Tom Tromey <tromey@redhat.com>
9798 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
9800 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9802 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
9803 initialize it by existing make_cleanup. Call new do_cleanups.
9805 2013-01-17 Tom Tromey <tromey@redhat.com>
9807 * cp-abi.c (cp_abi_completer): New function.
9808 (_initialize_cp_abi): Set completer for "set cp-abi".
9810 2013-01-17 Tom Tromey <tromey@redhat.com>
9812 * mem-break.c: Remove obsolete comment.
9813 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
9815 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9817 * jit.c (jit_reader_load_command): Interpret the jit reader name
9818 as an absolute path if it begins with a forward slash.
9820 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
9824 * jit.c (finalize_symtab): Ensure that only the global block has a
9827 2013-01-17 Pedro Alves <palves@redhat.com>
9829 * acinclude.m4: Include ../config/plugins.m4,
9830 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
9831 * Makefile.in (aclocal_m4_deps): Update.
9832 * aclocal.m4: Renegerate.
9834 2013-01-16 Doug Evans <dje@google.com>
9836 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
9838 2013-01-16 Pedro Alves <palves@redhat.com>
9839 Tom Tromey <tromey@redhat.com>
9842 * NEWS: Add "catch signal".
9843 * breakpoint.c (base_breakpoint_ops): No longer static.
9844 (bpstat_explains_signal): New function.
9845 (init_catchpoint): No longer static.
9846 (base_breakpoint_explains_signal): New function.
9847 (base_breakpoint_ops): Initialize new field.
9848 * breakpoint.h (enum bpstat_signal_value): New.
9849 (struct breakpoint_ops) <explains_signal>: New field.
9850 (bpstat_explains_signal): Remove macro, declare as function.
9851 (base_breakpoint_ops, init_catchpoint): Declare.
9852 * break-catch-sig.c: New file.
9853 * inferior.h (signal_catch_update): Declare.
9854 * infrun.c (signal_catch): New global.
9855 (handle_syscall_event): Update for change to
9856 bpstat_explains_signal.
9857 (handle_inferior_event): Likewise. Always handle random signals
9859 (signal_cache_update): Check signal_catch.
9860 (signal_catch_update): New function.
9861 (_initialize_infrun): Initialize signal_catch.
9862 * Makefile.in (SFILES): Add break-catch-sig.c.
9863 (COMMON_OBS): Add break-catch-sig.o.
9865 2013-01-16 Tom Tromey <tromey@redhat.com>
9867 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
9868 (print_one_catch_solib, print_one_catch_syscall)
9869 (print_one_catch_exec, print_one_exception_catchpoint): Emit
9872 2013-01-16 Yao Qi <yao@codesourcery.com>
9874 * printcmd.c (current_display_number): Make it static.
9876 2013-01-16 Yao Qi <yao@codesourcery.com>
9878 * infcmd.c (step_once): Don't check '!single_inst' as it was
9881 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9883 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
9885 2013-01-14 Tom Tromey <tromey@redhat.com>
9887 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
9889 * command.h (add_setshow_string_noescape_cmd): Update.
9890 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
9891 (complete_set_gnutarget): New function.
9892 (_initialize_core): Set the "set gnutarget" completer.
9894 2013-01-14 Tom Tromey <tromey@redhat.com>
9897 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
9898 (c_type_print_modifier): Likewise.
9899 * dwarf2read.c (read_tag_restrict_type): New function.
9900 (read_type_die_1): Handle DW_TAG_restrict_type.
9901 * gdbtypes.c (make_restrict_type): New function.
9902 (recursive_dump_type): Handle TYPE_RESTRICT.
9903 * gdbtypes.h (enum type_flag_values): Renumber.
9904 (enum type_instance_flag_value): Add
9905 TYPE_INSTANCE_FLAG_RESTRICT.
9906 (TYPE_RESTRICT): New macro.
9907 (make_restrict_type): Declare.
9909 2013-01-14 Tom Tromey <tromey@redhat.com>
9912 * psymtab.c (struct psymtab_state): New.
9913 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
9915 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
9916 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
9918 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
9919 Pedro Alves <palves@redhat.com>
9923 * remote.c (remote_threads_info): Make a copy of the reply from
9924 qfThreadInfo and use that instead of rs->buf.
9926 2013-01-14 Yao Qi <yao@codesourcery.com>
9928 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
9929 (dbx_psymtab_to_symtab): Likewise.
9930 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
9931 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
9932 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
9934 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9936 * parse.c (parse_exp_in_context): New variable inner_chain. Call
9937 make_cleanup_restore_current_language. Call set_language. Move
9938 OLD_CHAIN and INNER_CHAIN cleanups.
9939 * utils.c (do_restore_current_language)
9940 (make_cleanup_restore_current_language): New functions.
9941 * utils.h (make_cleanup_restore_current_language): New declaration.
9943 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9945 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
9948 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
9949 non-existing files if FILENAME is already absolute.
9951 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9953 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
9954 fputs_filtered. Append trailing newline.
9956 2013-01-11 Yao Qi <yao@codesourcery.com>
9957 Stan Shebs <stan@codesourcery.com>
9959 * psymtab.c (init_psymbol_list): Clarify the comment.
9961 2013-01-11 Yao Qi <yao@codesourcery.com>
9963 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
9964 (update_dprintf_command_list): Assert that 'printf_line' is
9965 non-null. Remove condition check.
9967 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9970 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
9972 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
9974 * tui/tui-source.h (tui_source_is_displayed): Likewise.
9976 2013-01-09 Anthony Green <green@moxielogic.com>
9978 * cp-abi.c (cplus_print_vtable): Don't return value from void
9980 * ada-lang.c (re_set_catch_assert): Ditto.
9982 2013-01-09 Doug Evans <dje@google.com>
9984 * symfile.h (quick_symbol_functions): Delete member
9985 pre_expand_symtabs_matching. All uses removed.
9986 * dwarf2read.c (dw2_lookup_symbol): Implement.
9987 (dw2_do_expand_symtabs_matching): Delete.
9988 (dw2_pre_expand_symtabs_matching): Delete.
9989 (struct dw2_symtab_iterator): New type.
9990 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
9991 (dw2_expand_symtabs_for_function): Rewrite.
9992 (dwarf2_gdb_index_functions): Update.
9993 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
9994 (psym_functions): Update.
9996 2013-01-09 Tom Tromey <tromey@redhat.com>
9998 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
9999 * configure: Rebuild.
10000 * configure.ac: Add somread.o to the build if BFD has SOM
10002 * somread.c: Include som/aout.h, not syms.h.
10003 (som_symtab_read): Use som_external_symbol_dictionary_record.
10004 Unpack records manually.
10005 (_initialize_somread): Declare.
10007 2012-01-08 Mike Frysinger <vapier@gentoo.org>
10009 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
10010 Cast return_address to 64bits.
10012 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
10014 * printcmd.c: Remove define of function output_command.
10015 * tracepoint.c: Remove extern of function output_command.
10016 * valprint.h: (output_command): New extern.
10018 2013-01-07 Tom Tromey <tromey@redhat.com>
10020 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
10022 (objc_language_defn): Use c_printchar, c_printstr,
10025 2013-01-07 Tom Tromey <tromey@redhat.com>
10029 * ada-valprint.c (printstr, print_field_values): Remove
10031 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
10033 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
10035 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
10036 * main.c (captured_main): Remove "epoch" argument.
10037 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
10038 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
10039 * p-valprint.c (pascal_object_print_value_fields): Remove
10041 * printcmd.c (print_command_1): Remove 'inspect' argument.
10042 (print_command, call_command): Update.
10043 (inspect_command): Remove.
10044 (_initialize_printcmd): Make "inspect" an alias for "print".
10045 * top.c (epoch_interface): Remove.
10046 * top.h (epoch_interface): Remove.
10047 * valprint.c (user_print_options): Update.
10048 (print_converted_chars_to_obstack): Remove "inspect_it" code.
10049 * valprint.h (struct value_print_options) <inspect_it>: Remove
10052 2013-01-04 Tom Tromey <tromey@redhat.com>
10054 * valprint.h (read_string): Add 'extern'.
10056 2013-01-07 Joel Brobecker <brobecker@adacore.com>
10058 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
10059 used to decide whether to define darwin_read_dyld_info or not.
10061 2013-01-03 Pierre Muller <muller@sourceware.org>
10063 * main.c (relocate_gdb_directory): Avoid calling stat function
10066 2013-01-03 Yao Qi <yao@codesourcery.com>
10068 * psymtab.c (fixup_psymbol_section): Update declaration.
10069 (fixup_psymbol_section): Remove code returning value.
10071 2013-01-03 Yao Qi <yao@codesourcery.com>
10073 * symtab.h: Remove some out of date comments.
10074 (enum exception_event_kind): Move it ...
10075 * breakpoint.c: ... here.
10077 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
10080 * darwin-nat.c (darwin_read_dyld_info): Only build if
10081 TASK_DYLD_INFO_COUNT is defined.
10082 (darwin_xfer_partial): Call darwin_read_dyld_info only if
10083 TASK_DYLD_INFO_COUNT is defined.
10085 2013-01-02 Tom Tromey <tromey@redhat.com>
10087 * symfile.h (struct ecoff_debug_hack): Remove.
10088 * objfiles.c: Don't include mdebugread.h.
10090 2013-01-02 Tom Tromey <tromey@redhat.com>
10092 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
10093 * configure.ac: Check for Mach-O support in BFD. Update
10095 * configure: Rebuild.
10097 2013-01-02 Tom Tromey <tromey@redhat.com>
10099 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
10100 * configure.ac: Use GDB_AC_CHECK_BFD.
10101 * configure: Rebuild.
10103 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
10105 * MAINTAINERS: Update my email.
10107 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10109 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
10111 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10113 * rs6000-nat.c (bss_data_overlap): New function.
10114 (vmap_symtab): Use it to adjust the .bss section's offset.
10116 2013-01-01 Joel Brobecker <brobecker@adacore.com>
10118 Update year range in copyright notice of all files.
10120 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
10122 * top.c (print_gdb_version): Update copyright year.
10124 For older changes see ChangeLog-2012.
10130 version-control: never