1 2013-08-09 Pedro Alves <palves@redhat.com>
3 * cli/cli-dump.c: Don't include cli/cli-dump.h.
4 (scan_expression_with_cleanup, scan_filename_with_cleanup)
5 (fopen_with_cleanup, add_dump_command): Make static.
6 * cli/cli-dump.h: Delete file.
7 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
10 2013-08-09 Pedro Alves <palves@redhat.com>
12 * tracepoint.c (tfile_start): Show tilde-expanded filename in
15 2013-08-09 Pedro Alves <palves@redhat.com>
17 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
20 2013-08-09 Pedro Alves <palves@redhat.com>
22 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
23 (gcore_command): Use tilde_expand here, and when showing the
24 filename to the user, show the expanded version.
26 2013-08-09 Yao Qi <yao@codesourcery.com>
28 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
31 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
33 * gcore.c (create_gcore_bfd): Use tilde_expand.
35 2013-08-08 Yao Qi <yao@codesourcery.com>
37 * frame.h (read_frame_local): Declare.
38 * mi/mi-cmd-stack.c (list_args_or_locals): Call
40 * stack.c (read_frame_local): New.
42 2013-08-08 Yao Qi <yao@codesourcery.com>
44 * mi/mi-cmd-stack.c: Update comments to function
47 2013-08-07 Tom Tromey <tromey@redhat.com>
50 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
51 (process_psymtab_comp_unit_reader): Use it.
52 (process_psymtab_comp_unit): Update. Add "pretend_language"
54 (dwarf2_build_psymtabs_hard): Update.
55 (scan_partial_symbols): Pass CU's language to
56 process_psymtab_comp_unit.
58 2013-08-07 Tom Tromey <tromey@redhat.com>
60 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
61 (dwarf2_gdb_index_functions): Update.
62 * psymtab.c (find_symbol_file_from_partial): Remove.
63 (psym_functions): Update.
64 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
67 2013-08-07 Tom Tromey <tromey@redhat.com>
69 * symfile.c (set_initial_language): Look up "main" symbol
71 * symtab.c (find_main_filename): Remove.
72 * symtab.h (find_main_filename): Remove.
74 2013-08-07 Tom Tromey <tromey@redhat.com>
76 * dwarf2read.c (recursively_compute_inclusions): Add
77 "immediate_parent" argument. Set symtab's "user" field
79 (compute_symtab_includes): Update.
81 2013-08-07 Tom Tromey <tromey@redhat.com>
83 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
84 when adding label symbols.
86 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
87 Ulrich Weigand <uweigand@de.ibm.com>
89 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
90 * configure.host (powerpc64-*-aix*): Likewise.
92 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
93 Ulrich Weigand <uweigand@de.ibm.com>
95 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
97 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
98 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
99 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
100 * configure.ac: Check for ptrace64.
101 * configure, config.in: Regenerate.
103 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
104 Ulrich Weigand <uweigand@de.ibm.com>
106 * aixthread.c: Call ptrace64 instead of ptracex if defined.
107 Call ptrace64 instead of ptrace if defined.
108 Add macro addr_ptr to take care of ptrace address argument.
109 (pdc_read_regs): Likewise.
110 (pdc_write_regs): Likewise.
111 (aix_thread_resume): Likewise.
112 (fetch_regs_kernel_thread): Likewise.
113 (store_regs_kernel_thread): Likewise.
115 2013-08-07 Anton Blanchard <anton@samba.org>
117 * MAINTAINERS: Add myself to Write After Approval.
119 2013-08-05 Tom Tromey <tromey@redhat.com>
121 * aix-thread.c (_initialize_aix_thread): Use
122 complete_target_initialization.
123 * bsd-uthread.c (_initialize_bsd_uthread): Use
124 complete_target_initialization.
125 * dec-thread.c (_initialize_dec_thread): Use
126 complete_target_initialization.
127 * ravenscar-thread.c (_initialize_ravenscar): Use
128 complete_target_initialization.
129 * sol-thread.c (_initialize_sol_thread): Use
130 complete_target_initialization.
131 * spu-multiarch.c (_initialize_spu_multiarch): Use
132 complete_target_initialization.
134 2013-08-05 Tom Tromey <tromey@redhat.com>
136 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
137 * ada-lang.c (ada_lookup_simple_minsym): Return
138 bound_minimal_symbol.
139 * ada-lang.h (ada_lookup_simple_minsym): Update.
140 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
141 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
142 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
143 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
144 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
145 * minsyms.c (msymbol_objfile): Remove.
146 (lookup_minimal_symbol_internal): New function, from
147 lookup_minimal_symbol.
148 (lookup_minimal_symbol): Rewrite using
149 lookup_minimal_symbol_internal.
150 (lookup_bound_minimal_symbol): New function.
151 * minsyms.h (msymbol_objfile): Remove.
152 (lookup_bound_minimal_symbol): Declare.
153 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
154 * parse.c (write_exp_msymbol): Change parameter to a
155 bound_minimal_symbol.
156 (write_dollar_variable): Use lookup_bound_minimal_symbol.
157 * parser-defs.h (write_exp_msymbol): Update.
158 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
159 * symfile.c (simple_read_overlay_table): Use
160 lookup_bound_minimal_symbol.
161 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
162 (search_symbols): Likewise.
163 (print_msymbol_info): Take a bound_minimal_symbol argument.
164 (symtab_symbol_info, rbreak_command): Update.
165 * symtab.h (struct symbol_search) <msymbol>: Change type
166 to bound_minimal_symbol.
167 * valops.c (find_function_in_inferior): Use
168 lookup_bound_minimal_symbol.
169 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
171 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
174 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
176 (async_cleanup_sigint_signal_handler): ... this.
177 (initialize_sigint_signal_handler): Remove declaration.
178 (handle_remote_sigint): Rename the declaration to ...
179 (async_handle_remote_sigint): ... this.
180 (handle_remote_sigint_twice): Rename the declaration to ...
181 (async_handle_remote_sigint_twice): ... this.
182 (async_remote_interrupt, async_remote_interrupt_twice)
183 (remote_interrupt): Remove the declarations.
184 (remote_interrupt_twice): Rename the declaration ...
185 (sync_remote_interrupt_twice): ... this.
186 (sigint_remote_twice_token): Rename the variable to ...
187 (async_sigint_remote_twice_token): ... this.
188 (sigint_remote_token): Rename the variable to ...
189 (async_sigint_remote_token): ... this.
190 (initialize_sigint_signal_handler): Rename the function to ...
191 (async_initialize_sigint_signal_handler): ... this. Update the name
193 (handle_remote_sigint): Rename the function to ...
194 (async_handle_remote_sigint): ... this. Update the names inside.
195 (handle_remote_sigint_twice): Rename the function to ...
196 (async_handle_remote_sigint_twice): ... this. Update the names inside.
197 (cleanup_sigint_signal_handler): Rename the function to ...
198 (async_cleanup_sigint_signal_handler): ... this.
199 (remote_interrupt): Rename the function to ...
200 (sync_remote_interrupt): this. Update the names inside.
201 (remote_interrupt_twice): Rename the function to ...
202 (sync_remote_interrupt_twice): this. Update the names inside.
203 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
204 (_initialize_remote): Update the names inside.
206 2013-08-02 Tom Tromey <tromey@redhat.com>
209 * breakpoint.c (update_watchpoint, watchpoint_check)
210 (watch_command_1): Update.
211 * eval.c (fetch_subexp_value): Add "preserve_errors"
213 * ppc-linux-nat.c (check_condition): Update.
214 * value.h (fetch_subexp_value): Update.
216 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
218 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
221 2013-08-01 Doug Evans <dje@google.com>
224 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
225 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
226 Add assert of sig_entry->dwo_unit == NULL.
227 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
228 had already been read.
229 (read_signatured_type): Set per_cu.tu_read.
232 * valops.c (value_struct_elt): Add missing call to check_typedef.
233 (value_find_oload_method_list): Ditto.
235 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
236 effectively, struct symbol_search **.
237 (make_cleanup_free_search_symbols): Change arg to struct
238 symbol_search **. All callers updated.
239 (compare_search_syms): Compare symtab file name and block as well.
240 (search_symbols_equal): New function.
241 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
242 New args new_head, new_tail. Result is now void. Remove dups after
244 (search_symbols): Sort all found symbols once, after all have been
245 found, and remove duplicates. Simplify cleanup tracking of result.
246 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
248 Further workarounds for binutils/15021.
249 * dwarf2read.c (recursively_compute_inclusions): Change type of result
250 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
251 Watch for duplicate symtabs coming from type units.
252 (compute_symtab_includes): Update call to
253 recursively_compute_inclusions. Build vector of included symtabs
255 * symtab.h (symtab_ptr): New typedef.
256 (DEF_VEC_P (symtab_ptr)): New VEC type.
257 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
260 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
262 * cli/cli-script.c (script_from_file): Remove use of
264 * main.c (captured_main): Remove use of error_pre_print and
266 * utils.c (error_pre_print, quit_pre_print): Remove.
267 * utils.h (error_pre_print, quit_pre_print): Likewise.
269 2013-08-01 Yao Qi <yao@codesourcery.com>
271 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
273 (mi_cmd_stack_list_variables): Likewise.
275 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
277 * exceptions.c (deprecated_throw_reason): Remove.
278 * exceptions.h (deprecated_throw_reason): Remove.
280 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
282 * remote-mips.c (mips_error): Replace use of
283 deprecated_throw_reason with throw_verror. Use the error message
284 passed to mips_error as the error message for throw_verror.
286 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
288 * monitor.c (monitor_interrupt_query): Replace use of
289 deprecated_throw_reason with quit.
290 * nto-procfs.c (interrupt_query): Likewise.
291 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
292 * remote-mips.c (mips_kill): Likewise.
293 * remote.c (interrupt_query): Likewise.
295 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
297 * utils.c (internal_verror): Replace use of deprecated_throw_reason
300 2013-07-31 Pedro Alves <pedro@codesourcery.com>
301 Yao Qi <yao@codesourcery.com>
303 * tracepoint.c (trace_dump_command): Select the current frame.
305 2013-07-30 Doug Evans <dje@google.com>
307 * dwarf2read.c (process_queue): Add type signature to debug output.
309 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
311 * value.c (value_fetch_lazy): Mark optimized out values as such
312 rather than raising an error.
314 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
316 * value.c (value_fetch_lazy): Ensure parent value is not lazy
317 before checking which bits of the parent, not the child, value are
320 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
323 * top.c: Include "filenames.h".
324 (set_history_filename): New function.
325 (init_main): Install it as set hook of the "set history filename"
328 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
330 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
332 (dwarf2_const_value_data): Constify struct attribute parameter.
333 (dwarf2_const_value): Constify struct attribute parameter.
334 (dwarf2_const_value_attr): Constify struct attribute parameter.
335 (lookup_die_type): Constify struct attribute parameter.
336 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
337 (follow_die_ref_or_sig): Constify struct attribute parameter.
338 (follow_die_ref): Constify struct attribute parameter.
339 (follow_die_sig): Constify struct attribute parameter.
340 (get_DW_AT_signature_type): Constify struct attribute parameter.
341 (get_type_unit_group): Constify struct attribute parameter.
342 (fill_in_loclist_baton): Constify struct attribute parameter.
343 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
344 (type_unit_group): Constify struct attribute parameter.
346 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
348 * dwarf2read.c (attr_form_is_block): Make argument const.
349 (attr_form_is_section_offset): Make argument const.
350 (attr_form_is_constant): Make argument const.
351 (attr_form_is_ref): Make argument const.
353 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
355 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
357 (attr_form_is_ref): Moved below attr_form_is_constant.
359 2013-07-29 Doug Evans <dje@google.com>
361 * main.c (captured_command_loop): Tweak comment.
363 * target.c (target_async_permitted_1): Fix comment.
365 * symtab.c (iterate_over_some_symtabs): Add comment.
367 * symtab.c (iterate_over_some_symtabs): Fix indentation.
369 2013-07-27 Yao Qi <yao@codesourcery.com>
371 * NEWS: Mention that GDBserver now supports hardware
372 watchpoints on the MIPS GNU/Linux target.
374 2013-07-27 Yao Qi <yao@codesourcery.com>
376 * Makefile.in (HFILES_NO_SRCDIR): Add
377 common/mips-linux-watch.h.
378 (mips-linux-watch.o): New rule.
379 * common/mips-linux-watch.c: New.
380 * common/mips-linux-watch.h: New.
381 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
382 * mips-linux-nat.c: Include mips-linux-watch.h.
383 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
384 to common/mips-linux-watch.h.
385 (MAX_DEBUG_REGISTER): Likewise.
386 (enum pt_watch_style): Likewise.
387 (struct mips32_watch_regs): Likewise.
388 (struct mips64_watch_regs): Likewise.
389 (struct pt_watch_regs): Likewise.
390 (struct mips_watchpoint): Likewise.
391 (mips_linux_watch_get_irw_mask): Move to
392 common/mips-linux-watch.c.
393 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
394 (mips_linux_watch_get_watchlo): Likewise.
395 (mips_linux_watch_set_watchlo): Likewise.
396 (mips_linux_watch_get_watchhi): Likewise.
397 (mips_linux_watch_set_watchhi): Likewise.
398 (mips_linux_read_watch_registers): Likewise.
399 (mips_linux_watch_type_to_irw): Likewise.
400 (mips_linux_stopped_data_address, fill_mask): Likewise.
401 (mips_linux_watch_try_one_watch): Likewise.
402 (mips_linux_watch_populate_regs): Likewise.
404 2013-07-27 Yao Qi <yao@codesourcery.com>
406 * mips-linux-nat.c (get_irw_mask): Rename to ...
407 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
408 'set' to 'n'. Update function comment. All callers changed.
409 (get_reg_mask): Rename parameter 'set' to 'n'. Update
410 function comment. All callers changed.
411 (get_num_valid): Rename to ...
412 (mips_linux_watch_get_num_valid): ... this. Rename parameter
413 'set' to 'n'. Update function comment. All callers changed.
414 (get_watchlo): Rename to ...
415 (mips_linux_watch_get_watchlo): ... this. Rename parameter
416 'set' to 'n'. Update function comment. All callers changed.
417 (set_watchlo): Rename to ...
418 (mips_linux_watch_set_watchlo): ... this. Rename parameter
419 'set' to 'n'. Update function comment. All callers changed.
420 (get_watchhi): Rename to ...
421 (mips_linux_watch_get_watchhi): ... this. Update function
422 comment. All callers changed.
423 (set_watchhi): Rename to ...
424 (mips_linux_watch_set_watchhi): ... this. Update function
425 comment. All callers changed.
426 (mips_linux_read_watch_registers): Update function comment.
427 Add new parameters 'lwpid', 'watch_readback', and
428 'watch_readback_valid'. Update.
429 (type_to_irw): Rename to ...
430 (mips_linux_watch_type_to_irw): ... this. Update function
431 comment. All callers changed.
432 (fill_mask): Update function comment.
433 (try_one_watch): Rename to ...
434 (mips_linux_watch_try_one_watch): ... this. Change the type
435 of parameter 'irw' from 'unsigned' to 'uint32_t'.
436 (populate_regs_from_watches): Rename to ...
437 (mips_linux_watch_populate_regs): ... this. Add parameter
438 'current_watches'. All callers changed.
440 2013-07-27 Yao Qi <yao@codesourcery.com>
442 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
444 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
445 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
446 (struct pt_watch_regs): Likewise.
447 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
448 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
449 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
450 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
451 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
453 2013-07-27 Yao Qi <yao@codesourcery.com>
455 * breakpoint.h: Include break-common.h.
456 (enum target_hw_bp_type): Move to ...
457 * common/break-common.h: ... here. New.
459 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
461 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
462 process group regardless of having tty on stdin.
464 2013-07-25 Doug Evans <dje@google.com>
466 * linux-fork.h (detach_fork): Delete.
468 2013-07-25 Tom Tromey <tromey@redhat.com>
470 PR remote/15256, PR remote/15266:
471 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
472 * monitor.c (monitor_detach): Use unpush_target.
473 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
474 * remote-mips.c (mips_detach): Use unpush_target. Don't
476 * remote-sim.c (gdbsim_detach): Use unpush_target.
477 * target.c (pop_target): Remove.
478 (pop_all_targets_above): Don't call target_close.
479 (target_close): Assert that the target is unpushed.
480 * target.h (pop_target): Don't declare.
481 * tracepoint.c (tfile_open): Use unpush_target.
483 2013-07-25 Tom Tromey <tromey@redhat.com>
485 * linux-thread-db.c (init_thread_db_ops): Call
486 complete_target_initialization.
487 (_initialize_thread_db): Don't call add_target.
488 * target.c (complete_target_initialization): New function.
489 (add_target_with_completer): Call it.
490 * target.h (complete_target_initialization): Declare.
492 2013-07-25 Mark Kettenis <kettenis@gnu.org>
494 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
495 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
496 (HPPANBSD_SIZEOF_GREGS): New define.
497 (hppaobsd_supply_gregset): Handle additional registers.
498 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
499 we provide more registers now.
500 (hppabsd_supply_gregset): Supply additional registers.
501 (hppabsd_collect_gregset): Collect additional registers.
503 2013-07-25 Mark Kettenis <kettenis@gnu.org>
505 * hppabsd-tdep.c: Include "dwarf2-frame.h".
506 (hppabsd_dwarf2_frame_init_reg): New function.
507 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
509 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
511 * mi/mi-main.c (output_register): Make MI 'r' format use standard
512 'z' format code. Remove error for optimized out values, standard
513 code will handle these fine.
515 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
517 * NEWS: Mention new 'z' formatter.
518 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
519 (_initialize_printcmd): Mention 'z' formatter in help text of the
522 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
524 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
527 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
529 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
530 interface can evaluate arguments. Fallback to the old mode if it
532 (create_exception_master_breakpoint): Likewise.
533 * elfread.c (elf_can_evaluate_probe_arguments): New function.
534 (struct sym_probe_fns elf_probe_fns): Export function above to the
536 * probe.c (can_evaluate_probe_arguments): New function.
537 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
539 (can_evaluate_probe_arguments): New function prototype.
540 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
541 probe interface can evaluate arguments. Fallback to the old mode
543 * stap-probe.c (stap_get_probe_argument_count): Check if probe
544 interface can evaluate arguments. Warning the user if it cannot.
545 (stap_can_evaluate_probe_arguments): New function.
546 (struct probe_ops stap_probe_ops): Export function above to the
548 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
549 New function pointer.
551 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
553 * Makefile.in (SFILES): Add common/target-common.c.
554 Add common/target-common.h to headers.
555 (COMMON_OBS): Add target-common.o.
556 (target-common.o): New target.
557 * linux-nat.h (resume_kind): Move to common/target-common.h.
558 * target.c (target_waitstatus_to_string): Move to
559 common/target-common.c.
560 * target.h: Include target-common.h.
561 (target_waitkind): Move to common/target-common.h.
562 (target_waitstatus): Likewise.
563 (TARGET_WNOHANG): Likewise.
564 * common/target-common.c: New file.
565 * common/target-common.h: New file.
567 2013-07-24 Doug Evans <dje@google.com>
569 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
572 2013-07-23 Yao Qi <yao@codesourcery.com>
574 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
576 (i386_stack_tramp_frame_sniffer): Caller update.
577 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
578 parameter 'gdbarch' and 'target'.
579 (i386_linux_core_read_description): Caller update.
580 * amd64-linux-tdep.c (amd64_linux_core_read_description):
582 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
585 2013-07-23 Tom Tromey <tromey@redhat.com>
587 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
590 2013-07-22 Doug Evans <dje@google.com>
592 * exec.h (remove_target_sections): Delete arg abfd.
593 * exec.c (exec_close): Update call to remove_target_sections.
594 (remove_target_sections): Delete arg abfd.
595 * solib.c (update_solib_list): Ditto.
596 (reload_shared_libraries_1): Ditto.
597 (clear_solib): Ditto, and unconditionally call remove_target_sections.
598 * target.h (struct target_section): Rename key to owner.
601 2013-07-22 Tom Tromey <tromey@redhat.com>
603 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
605 2013-07-22 Tom Tromey <tromey@redhat.com>
607 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
608 Simplify cleanup handling.
610 2013-07-22 Tom Tromey <tromey@redhat.com>
612 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
615 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
617 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
618 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
619 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
621 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
623 * top.c (print_gdb_version): Add help, apropos description and
624 url to online documentation.
626 2013-07-19 Hui Zhu <hui@codesourcery.com>
629 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
631 2013-07-19 Yao Qi <yao@codesourcery.com>
633 * target.c (update_current_target): Change the default action
634 of 'to_traceframe_info' from tcomplain to return_zero.
635 * target.h (struct target_ops) <to_traceframe_info>: Add more
637 * valops.c (read_value_memory): Call
638 traceframe_available_memory unconditionally.
640 2013-07-18 Yao Qi <yao@codesourcery.com>
642 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
643 if the name is prefixed by "__imp_" or "_imp_", look for minimal
644 symbol without prefix. If found, set its type to
645 'mst_solib_trampoline'.
647 2013-07-17 Doug Evans <dje@google.com>
649 * NEWS: Mention "set print raw frame-arguments".
650 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
651 * stack.c (print_raw_frame_arguments): New static global.
652 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
653 (_initialize_stack): New command "set/show print raw frame-arguments".
654 * valprint.c (setprintrawlist, showprintrawlist): New globals.
655 (set_print_raw, show_print_raw): New functions.
656 (_initialize_valprint): New prefix command "set/show print raw".
657 * valprint.h (value_print_options): Improve comments.
659 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
660 of all *list variables.
662 * gdbcmd.h (togglelist): Delete.
663 * cli/cli-cmds.c (togglelist): Delete.
664 (init_cmd_lists): Update.
665 * cli/cli-cmds.h (togglelist): Delete.
667 2013-07-17 Tom Tromey <tromey@redhat.com>
669 * dwarf2read.c (dwarf2_per_objfile_free): Clear
672 2013-07-16 Doug Evans <dje@google.com>
674 * nto-tdep.c (nto_relocate_section_addresses): Update,
675 target_section.bfd deleted.
676 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
677 * s390-tdep.c (s390_load): Ditto.
678 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
680 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
682 * common/format.c (parse_format_string): Add checks for NULL
683 character before calling strchr.
685 2013-07-16 Doug Evans <dje@google.com>
687 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
688 temp_pathname argument.
689 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
690 when opening the file fails.
692 * target.h (struct target_section): Delete member bfd.
693 All users updated to use the_bfd_section->owner instead.
694 * exec.c (add_to_section_table): Assert bfd is expected value.
695 Remove initialization of target_section.bfd.
696 (remove_target_sections): Update.
697 (section_table_available_memory): Update.
698 (section_table_xfer_memory_partial): Update.
699 (print_section_info): Update.
700 (exec_set_section_address): Update.
701 * record-full.c (record_full_core_xfer_partial): Update.
702 * solib-svr4.c (svr4_relocate_section_addresses): Update.
703 * solib-target.c (solib_target_relocate_section_addresses): Update.
704 * symfile.c (build_section_addr_info_from_section_table): Update.
705 * target.c (memory_xfer_live_readonly_partial): Update.
706 (memory_xfer_partial_1): Update.
708 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
710 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
711 now available for embedded (BookE) and server (BookS) processors,
712 correct mentions of 'booke' and adjust comments accordingly in order to
713 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
714 (have_ptrace_booke_interface): Rename function and variable
715 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
716 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
717 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
718 'hwdebug_point_cmp'. Update all uses.
719 (booke_find_thread_points_by_tid): Rename function
720 'booke_find_thread_points_by_tid' to
721 'hwdebug_find_thread_points_by_tid'. Update all uses.
722 (booke_insert_point): Rename function 'booke_insert_point' to
723 'hwdebug_insert_point'. Update all uses.
724 (booke_remove_point): Rename function 'booke_remove_point' to
725 'hwdebug_remove_point'. Update all uses.
727 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
729 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
730 numbers with enum values.
732 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
735 * thread.c (thread_apply_all_command): Check for valid threads
737 (thread_array_cleanup): New struct.
738 (set_thread_refcount): New function.
740 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
742 * infcmd.c (default_print_one_register_info): Reuse function
745 2013-07-10 Tom Tromey <tromey@redhat.com>
747 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
748 (ada-exp.o): New target.
750 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
752 * mt-tdep.c (mt_registers_info): Call
753 get_no_prettyformat_print_options instead of
754 get_raw_print_options (regression by last patch from Doug
757 2013-07-09 Pedro Alves <palves@redhat.com>
759 Checked in by Joel Brobecker <brobecker@adacore.com>.
760 * ada-lang.c (coerce_unspec_val_to_type): Use
761 value_optimized_out_const.
762 * value.c (value_optimized_out_const): New function.
763 * value.h (value_optimized_out_const): New declaration.
765 2013-07-09 Doug Evans <dje@google.com>
767 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
768 Enum values rename as well. All uses updated.
769 * valprint.h (value_print_options): Rename member pretty to
770 pretty format. Rename member prettyprint_arrays to
771 prettyformat_arrays. Rename member prettyprint_structs to
772 prettyformat_structs. All uses updated.
773 (get_no_prettyformat_print_options): Renamed from
774 get_raw_print_options.
775 * valprint.c (get_no_prettyformat_print_options): Renamed from
776 get_raw_print_options. All callers updated.
777 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
779 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
781 (_initialize_valprint): Improve help text for "set print pretty" and
784 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
786 * value.c (value_bits_valid): Revert previous change, and change
787 by Pedro on 2013-07-04, due to regressions in
788 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
790 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
791 Pedro Alves <palves@redhat.com>
793 * value.c (value_bits_valid): If the value is not lval_computed
794 or has no check validity handler then the answer is the
795 optimized_out flag, otherwise defer to the handler.
797 2013-07-06 Eli Zaretskii <eliz@gnu.org>
799 * top.c (print_gdb_configuration): Explain in output of
800 --configuration what does "relocatable" mean.
802 * main.c (print_gdb_help): Regroup options in the --help text.
803 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
804 the relevant discussions.
806 2013-07-06 Yao Qi <yao@codesourcery.com>
808 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
809 Remove parameter 'lsal'.
810 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
811 to inner block. Caller update.
812 (base_breakpoint_create_breakpoints_sal): Update.
813 (bkpt_create_breakpoints_sal): Likewise.
814 (tracepoint_create_breakpoints_sal): Likewise.
815 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
816 element 0 of vector 'canonical->sals'.
818 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
820 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
821 register number instead of the pseudo register one.
822 (rs6000_dwarf2_reg_to_regnum): Likewise.
824 2013-07-04 Pedro Alves <palves@redhat.com>
826 * findvar.c (value_of_register): Use allocate_optimized_out_value
827 if the register has been optimized out, instead of
828 set_value_optimized_out.
829 * frame-unwind.c (frame_unwind_got_optimized): Use
830 allocate_optimized_out_value.
832 2013-07-04 Pedro Alves <palves@redhat.com>
834 * value.c (value_bits_valid): If the value is not lval_computed,
835 or doesn't have a check_validity hook, assume the value is entirely
838 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
840 * stack.c (read_frame_arg): No longer fetch lazy values.
841 * value.c (value_optimized_out): If the value is not already
842 marked optimized out, and is lazy then fetch it.
843 (value_primitive_field): Move optimized out check to later in the
844 function, after we have loaded any lazy values.
845 (value_fetch_lazy): Use optimized out flag directly rather than
846 calling optimized_out method.
848 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
850 * valops.c: Don't include "user-regs.h".
851 (value_fetch_lazy): Moved to value.c.
852 * value.c: Include "user-regs.h".
853 (value_fetch_lazy): Moved from valops.c.
855 2013-07-04 Yao Qi <yao@codesourcery.com>
858 2013-06-27 Yao Qi <yao@codesourcery.com>
860 * common/create-version.sh: Update comments. Handle the case
861 that TARGET_ALIAS is empty.
863 2013-07-03 Pedro Alves <palves@redhat.com>
865 * Makefile.in (config.status): Depend on development.sh.
866 (aclocal_m4_deps): Add libmcheck.m4.
867 * acinclude.m4: Include libmcheck.m4.
868 * configure.ac: Source development.sh instead of setting
869 'development' here. --enable-libmcheck/--disable-libmcheck code
870 factored out to GDB_AC_LIBMCHECK. Run it.
871 * development.sh: New file.
872 * libmcheck.m4: New file.
873 * configure: Regenerate.
875 2013-07-02 Tom Tromey <tromey@redhat.com>
877 * contrib/ari/update-web-ari.sh: Update for version.in change.
879 2013-07-02 Tom Tromey <tromey@redhat.com>
881 * common/ptid.h: Comment fixes.
883 2013-07-01 Tom Tromey <tromey@redhat.com>
885 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
886 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
887 (dwarf2_read_index, create_all_comp_units): Update.
889 2013-07-01 Tom Tromey <tromey@redhat.com>
891 * configure.ac (build_warnings): Add -Wold-style-definition.
892 * configure: Rebuild.
893 * machoread.c (_initialize_machoread): Use "(void)".
894 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
897 2013-07-01 Tom Tromey <tromey@redhat.com>
899 * configure.ac (build_warnings): Add -Wold-style-declaration.
900 * configure: Rebuild.
901 * dsrec.c (make_srec): Use "static const", not "const static".
902 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
904 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
905 Use "static const", not "const static".
906 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
908 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
910 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
912 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
914 (v850_dbtrap_breakpoint_from_pc): Likewise.
915 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
918 2013-07-01 Tom Tromey <tromey@redhat.com>
920 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
921 * configure: Rebuild.
923 2013-07-01 Pedro Alves <palves@redhat.com>
925 * defs.h: Include "pathmax.h".
926 * utils.c: Don't include sys/param.h.
927 (gdb_realpath): Remove code that checks for MAXPATHLEN.
928 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
929 instead of MAXPATHLEN.
930 * solib-sunos.c: Don't include sys/param.h.
931 * xcoffread.c: Don't include sys/param.h.
932 * bsd-kvm.c: Don't include sys/param.h.
933 * darwin-nat.c: Don't include sys/param.h.
934 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
935 * darwin-nat-info.c: Don't include sys/param.h.
936 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
938 * i386obsd-nat.c: Don't include sys/param.h.
939 * inf-child.c: Don't include sys/param.h.
940 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
941 * linux-fork.c: Don't include sys/param.h.
942 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
943 * linux-nat.c: Don't include sys/param.h.
944 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
945 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
946 * m68klinux-nat.c: Don't include sys/param.h.
947 * nbsd-nat.c: Don't include sys/param.h.
948 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
949 * ppc-linux-nat.c: Don't include sys/param.h.
950 * rs6000-nat.c: Don't include sys/param.h.
951 * spu-linux-nat.c. Don't include sys/param.h.
952 * windows-nat.c: Don't include sys/param.h.
953 * xtensa-linux-nat.c: Don't include sys/param.h.
954 * config/i386/nm-fbsd.h: Don't include sys/param.h.
956 2013-07-01 Pedro Alves <palves@redhat.com>
958 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
959 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
960 * gnulib/aclocal.m4: Regenerate.
961 * gnulib/config.in: Regenerate.
962 * gnulib/configure: Regenerate.
963 * gnulib/import/pathmax.h: New file.
964 * gnulib/import/Makefile.am: Regenerate.
965 * gnulib/import/Makefile.in: Regenerate.
966 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
967 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
968 * gnulib/import/m4/pathmax.m4: New file.
970 2013-07-01 Pedro Alves <palves@redhat.com>
972 * configure.ac (GDBINIT): Define, depending on host.
973 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
974 * top.c (PATH_MAX): Delete fallback definition.
975 (GDBINIT_FILENAME): Delete.
976 (gdbinit): Reimplement as const char array set to the GDBINIT
978 * top.h (gdbinit): Make const.
979 * configure, config.in: Regenerate.
981 2013-07-01 Pedro Alves <palves@redhat.com>
983 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
984 * cli/cli-cmds.h (source_script): Likewise.
985 * exceptions.c (catch_command_errors_const): New function.
986 * exceptions.h (catch_command_errors_const): Declare.
987 * main.c (get_init_files): Make parameters const, and adjust.
988 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
989 'local_gdbinit' locals const. Adjust to use
990 catch_command_errors_const.
991 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
992 'local_gdbinit' locals const.
994 2013-07-01 Pedro Alves <palves@redhat.com>
996 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
997 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
998 * tracepoint.c: Don't check HAVE_UNISTD_H before including
1001 2013-07-01 Pedro Alves <palves@redhat.com>
1003 Import the "unistd" gnulib module.
1004 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
1005 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
1006 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
1007 import/m4/unistd_h.m4.
1008 * gnulib/aclocal.m4: Renenerate.
1009 * gnulib/config.in: Renenerate.
1010 * gnulib/configure: Renenerate.
1011 * gnulib/import/Makefile.am: Renenerate.
1012 * gnulib/import/Makefile.in: Renenerate.
1013 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
1014 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
1015 * gnulib/import/m4/off_t.m4: New file.
1016 * gnulib/import/m4/ssize_t.m4: New file.
1017 * gnulib/import/m4/sys_types_h.m4: New file.
1018 * gnulib/import/m4/unistd_h.m4: New file.
1019 * gnulib/import/sys_types.in.h: New file.
1020 * gnulib/import/unistd.c: New file.
1021 * gnulib/import/unistd.in.h: New file.
1023 2013-07-01 Pedro Alves <palves@redhat.com>
1025 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
1026 defined instead of checking HAVE_UNISTD_H.
1028 2013-07-01 Pedro Alves <palves@redhat.com>
1030 Reimport gnulib from scratch.
1031 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
1032 import/m4/onceonly.m4.
1033 * gnulib/aclocal.m4: Renegerate.
1034 * gnulib/config.in: Renegerate.
1035 * gnulib/configure: Renegerate.
1036 * gnulib/import/Makefile.in: Renegerate.
1037 * gnulib/import/extra/update-copyright: Renegerate.
1038 * gnulib/import/m4/onceonly.m4: Delete.
1040 2013-07-01 Pedro Alves <palves@redhat.com>
1042 * tui/tui-regs.c (pagination_enabled): Delete declaration.
1044 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1047 * remote.c (async_remote_interrupt_twice): Make it static.
1048 * remote.h (async_remote_interrupt_twice): Remove the declaration.
1050 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
1052 * ia64-linux-tdep.c: Include <ctype.h>.
1053 (ia64_linux_stap_is_single_operand): New function.
1054 (ia64_linux_init_abi): Initialize SystemTap related attributes.
1056 2013-06-28 Tom Tromey <tromey@redhat.com>
1058 * Makefile.in (version.c): Use version.in, not
1060 * common/create-version.sh: Likewise.
1061 * common/version.in: Move...
1062 * version.in: ...here.
1064 2013-06-28 Pedro Alves <palves@redhat.com>
1066 * infrun.c (set_observer_mode): Don't declare pagination_enabled
1068 * utils.h (pagination_enabled): Declare.
1070 2013-06-28 Pedro Alves <palves@redhat.com>
1072 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
1073 Move higher up in file.
1075 2013-06-28 Tom Tromey <tromey@redhat.com>
1077 * tracepoint.c (deprecated_readline_begin_hook)
1078 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
1081 2013-06-28 Pedro Alves <palves@redhat.com>
1084 * tui/tui-regs.c (tui_get_register): Fetch value contents before
1085 checking if they're available.
1086 * value.c (value_available_contents_eq): Change comment.
1087 * value.h (value_available_contents_eq): Expand comment.
1089 2013-06-27 Tom Tromey <tromey@redhat.com>
1091 * target.c (find_run_target): Remove.
1092 * target.h (find_run_target): Remove.
1094 2013-06-27 Tom Tromey <tromey@redhat.com>
1096 * corelow.c (core_gdbarch): Now static.
1098 2013-06-27 Tom Tromey <tromey@redhat.com>
1100 * target.c (target_struct_index): Remove.
1102 2013-06-27 Pedro Alves <palves@redhat.com>
1104 * infrun.c: Remove comment describing the 'stepping over runtime
1105 loader dynamic symbol resolution code' mechanism; moved to
1108 2013-06-27 Pedro Alves <palves@redhat.com>
1110 * exceptions.c (catch_command_errors): Remove spurious space.
1111 * exceptions.h (catch_command_errors): Second parameter is "arg",
1114 2013-06-27 Yao Qi <yao@codesourcery.com>
1116 * common/create-version.sh: Update comments. Handle the case
1117 that TARGET_ALIAS is empty.
1119 2013-06-26 Pedro Alves <palves@redhat.com>
1121 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
1124 2013-06-26 Pedro Alves <palves@redhat.com>
1126 * infrun.c: Update comments on stepping over runtime loader
1127 dynamic symbol resolution code.
1129 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
1131 * ax-gdb.h (union exp_element): Forward declare.
1132 * parser-defs.h: Include expression.h.
1134 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1136 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
1138 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
1140 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
1142 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
1144 Fix trace-status to output proper start-time and stop-time.
1145 * tracepoint.c (trace_status_command): Fix type of printf arg to
1146 prevent improper type conversion.
1147 (trace_status_mi): Likewise.
1149 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1151 * mips-tdep.c (mips_next_pc): Fix a typo.
1153 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1155 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
1157 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1158 Yao Qi <yao@codesourcery.com>
1160 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
1161 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
1162 * mi/mi-main.c (print_variable_or_computed): New function.
1163 (mi_cmd_trace_frame_collected): New function.
1164 * tracepoint.c (find_trace_state_variable_by_number): New.
1165 (struct traceframe_info): Move to tracepoint.h
1166 (struct collection_list): Likewise.
1167 (do_collect_symbol): Include locals and arguments in the
1168 collected variables list.
1169 (clear_collection_list): Clear wholly collected variables list
1170 and computed variables list.
1171 (append_exp): New function.
1172 (encode_actions_1): Include variables in the wholly
1173 collected variables list. Include memory ranges and
1174 full-fledged expressions in the computed expressions list.
1175 (encode_actions): Move some code to ...
1176 Return the cleanup chain.
1177 (encode_actions_rsp): ... here. New function.
1178 (get_traceframe_location, get_traceframe_info): Remove static.
1179 * tracepoint.h (struct memrange): Moved from tracepoint.c.
1180 (struct collection_list): Moved from tracepoint.c. Add two
1181 new fields 'wholly_collected' and 'computed'.
1182 (find_trace_state_variable_by_number): Declare.
1183 (encode_actions): Adjust declaration.
1184 (encode_actions_rsp): Declare.
1185 (get_traceframe_info, get_traceframe_location): Declare.
1187 * NEWS: Mention new MI command -trace-frame-collected.
1189 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1190 Yao Qi <yao@codesourcery.com>
1192 * ctf.c (ctf_traceframe_info): Push trace state variables
1193 present in the trace data into the traceframe info object.
1194 * breakpoint.c (DEF_VEC_I): Remove.
1195 * common/filestuff.c (DEF_VEC_I): Likewise.
1196 * dwarf2loc.c (DEF_VEC_I): Likewise.
1197 * mi/mi-main.c (DEF_VEC_I): Likewise.
1198 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
1199 * features/traceframe-info.dtd: Add tvar element and its
1201 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
1202 (build_traceframe_info): Push trace state variables present in
1203 the trace data into the traceframe info object.
1204 (traceframe_info_start_tvar): New function.
1205 (tvar_attributes): New.
1206 (traceframe_info_children): Add "tvar" element.
1207 * tracepoint.h (struct traceframe_info) <tvars>: New field.
1209 * NEWS: Mention the change in GDB and GDBserver.
1211 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1212 Yao Qi <yao@codesourcery.com>
1214 * tracepoint.c (trace_dump_command): Move code to ...
1215 (get_traceframe_location): ... here. New.
1217 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1218 Yao Qi <yao@codesourcery.com>
1220 * tracepoint.c (trace_dump_command): GDB emits an error
1221 instead of a warning when a traceframe is not selected.
1223 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1224 Yao Qi <yao@codesourcery.com>
1226 * tracepoint.c (tracepoint_list, stepping_list): Remove.
1227 (clear_collection_list): Free fields 'aexpre_list' and 'list'
1229 (do_clear_collection_list, init_collection_list): New.
1230 (encode_actions): Add local variables 'tracepoint_list' and
1231 'stepping_list'. Call init_collection_list and make cleanup
1232 which calls do_clear_collection_list. Don't call
1233 clear_collection_list.
1234 (_initialize_tracepoint): Delete references to
1235 'tracepoint_list' and 'stepping_list'.
1237 2013-06-25 Tom Tromey <tromey@redhat.com>
1239 * common/create-version.sh (date): Use "$", not "$$" in sed
1242 2013-06-25 Kevin Buettner <kevinb@redhat.com>
1244 * NEWS (New targets): Add entry for TI MSP430.
1246 2013-06-25 Yao Qi <yao@codesourcery.com>
1248 * remote.c (remote_start_remote): Move code to upload tsv
1251 2013-06-25 Yao Qi <yao@codesourcery.com>
1252 Hui Zhu <hui@codesourcery.com>
1253 Pedro Alves <palves@redhat.com>
1255 PR breakpoints/15075
1256 PR breakpoints/15434
1257 * breakpoint.c (bpstat_stop_status): Call
1258 b->ops->after_condition_true.
1259 (update_dprintf_command_list): Don't append "continue" command
1260 to the command list of dprintf breakpoint.
1261 (base_breakpoint_after_condition_true): New function.
1262 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
1263 (dprintf_after_condition_true): New function.
1264 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
1265 * breakpoint.h (breakpoint_ops): Add after_condition_true.
1267 2013-06-24 Kevin Buettner <kevinb@redhat.com>
1269 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
1270 (ALLDEPFILES): Add msp430-tdep.c.
1271 * configure.tgt (msp430*-*-elf): New target.
1272 * msp430-tdep.c: New file.
1274 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
1276 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
1277 microMIPS synthetic symbols.
1279 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
1281 * objfiles.h (pc_in_section): New prototype.
1282 (in_plt_section): Remove name argument, replace prototype with
1283 static inline function.
1284 * mips-tdep.h: Include "objfiles.h".
1285 (in_mips_stubs_section): New function.
1286 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
1287 in_solib_call_trampoline member.
1288 (hppa_in_solib_call_trampoline): Remove name argument.
1289 * objfiles.c (pc_in_section): New function.
1290 (in_plt_section): Remove function.
1291 * mips-linux-tdep.c: Include "objfiles.h".
1292 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
1293 name argument. Return 1 rather than the low 16-bit halfword of
1294 any instruction examined.
1295 (mips_linux_in_dynsym_resolve_code): Update
1296 mips_linux_in_dynsym_stub call accordingly.
1297 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
1298 rather than an equivalent hand-coded sequence.
1299 * hppa-hpux-tdep.c (in_opd_section): Remove function.
1300 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
1301 (hppa64_hpux_in_solib_call_trampoline): Likewise.
1302 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
1304 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
1305 on call to tdep->in_solib_call_trampoline.
1306 (hppa_in_solib_call_trampoline): Remove name argument, update
1307 according to in_plt_section change.
1308 (hppa_skip_trampoline_code): Update according to in_plt_section
1310 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
1311 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
1313 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
1314 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1315 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1316 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
1317 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
1318 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
1319 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
1320 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
1321 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
1322 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
1323 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
1324 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
1325 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
1327 2013-06-24 Joel Brobecker <brobecker@adacore.com>
1329 * common/create-version.sh: Fix expansion of $host_alias
1330 and $target_alias in generation of HOST_NAME and TARGET_NAME
1333 2013-06-24 Tom Tromey <tromey@redhat.com>
1335 * common/create-version.sh: New file.
1336 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
1338 (HFILES_NO_SRCDIR): Use common/version.h.
1339 * version.in: Move to ...
1340 * common/version.in: ... here. Replace date with "DATE".
1341 * version.h: Move to ...
1342 * common/version.h: ... here.
1344 2013-06-21 Joel Brobecker <brobecker@adacore.com>
1346 * gdb/gnulib/Makefile.in: Update date in copyright header.
1347 * gdb/gnulib/configure.ac: Ditto.
1348 * gdb/gnulib/update-gnulib.sh: Ditto.
1350 2013-06-21 Joel Brobecker <brobecker@adacore.com>
1352 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
1353 "gdb/gnulib/import".
1355 2013-06-21 Will Newton <will.newton@linaro.org>
1357 * doublest.c (ldfrexp): Remove function.
1358 (convert_doublest_to_floatformat): Call frexpl instead of
1361 2013-06-21 Will Newton <will.newton@linaro.org>
1363 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
1364 * gnulib/aclocal.m4: Regenerate.
1365 * gnulib/config.in: Regenerate.
1366 * gnulib/configure: Regenerate.
1367 * gnulib/import/Makefile.am: Update.
1368 * gnulib/import/Makefile.in: Update.
1369 * gnulib/import/m4/gnulib-cache.m4: Update.
1370 * gnulib/import/m4/gnulib-comp.m4: Update.
1371 * gnulib/import/float+.h: Import.
1372 * gnulib/import/float.c: Import.
1373 * gnulib/import/float.in.h: Import.
1374 * gnulib/import/fpucw.h: Import.
1375 * gnulib/import/frexp.c: Import.
1376 * gnulib/import/frexpl.c: Import.
1377 * gnulib/import/isnan.c: Import.
1378 * gnulib/import/isnand-nolibm.h: Import.
1379 * gnulib/import/isnand.c: Import.
1380 * gnulib/import/isnanl-nolibm.h: Import.
1381 * gnulib/import/isnanl.c: Import.
1382 * gnulib/import/itold.c: Import.
1383 * gnulib/import/m4/exponentd.m4: Import.
1384 * gnulib/import/m4/exponentl.m4: Import.
1385 * gnulib/import/m4/float_h.m4: Import.
1386 * gnulib/import/m4/fpieee.m4: Import.
1387 * gnulib/import/m4/frexp.m4: Import.
1388 * gnulib/import/m4/frexpl.m4: Import.
1389 * gnulib/import/m4/isnand.m4: Import.
1390 * gnulib/import/m4/isnanl.m4: Import.
1391 * gnulib/import/m4/math_h.m4: Import.
1392 * gnulib/import/math.c: Import.
1393 * gnulib/import/math.in.h: Import.
1395 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1397 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
1398 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
1399 signature_INTEL_edx comparisons.
1401 2013-06-20 Doug Evans <dje@google.com>
1404 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
1405 All callers updated.
1406 (open_dwp_file): If we can't find the dwp file, search the basename
1407 in debug-file-directory.
1409 * dwarf2read.c (struct dwp_file): Fix comment.
1410 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
1412 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
1415 2013-06-20 Yao Qi <yao@codesourcery.com>
1417 * breakpoint.c (create_breakpoint): Fix code indentation.
1419 2013-06-20 Yao Qi <yao@codesourcery.com>
1421 * breakpoint.c (create_breakpoints_sal_default): Remove
1422 parameter 'lsal'. Update declaration.
1423 (bkpt_create_breakpoints_sal): Caller update.
1424 (tracepoint_create_breakpoints_sal): Likewise.
1426 2013-06-20 Pedro Alves <pedro@codesourcery.com>
1427 Yao Qi <yao@codesourcery.com>
1429 * NEWS: Mention the new option '--skip-unavailable' of command
1430 -data-list-register-values.
1431 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
1432 --skip-unavailable option. Adjust to use output_register.
1433 (output_register): Add new 'skip_unavailable' parameter.
1436 2013-06-19 Mike Frysinger <vapier@gentoo.org>
1438 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
1439 common/i386-gcc-cpuid.h.
1440 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
1441 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
1442 Copy the latest version from upstream gcc.
1443 * common/linux-btrace.c: Include i386-cpuid.h.
1444 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
1446 (cpu_supports_btrace): Likewise.
1447 * go32-nat.c: Include i386-cpuid.h.
1448 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
1450 2013-06-19 Doug Evans <dje@google.com>
1452 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
1453 (get_section_index): Ditto.
1455 2013-06-19 Tom Tromey <tromey@redhat.com>
1457 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
1460 2013-06-18 Doug Evans <dje@google.com>
1462 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
1464 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
1465 Move test of cu_index closer to use. Print complaint if cu_index
1468 2013-06-18 Joel Brobecker <brobecker@adacore.com>
1470 * machoread.c (oso_vector): Delete this global.
1471 (macho_register_oso): Add new parameter "oso_vector_ptr".
1472 Use it instead of the "oso_vector" global.
1473 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
1474 (macho_symfile_read): Use a local oso_vector, to be free'ed
1475 at the end of this function, in place of the old "oso_vector"
1476 global. Update various function calls accordingly. Use one
1477 single cleanup chain for the entire function.
1479 2013-06-18 Joel Brobecker <brobecker@adacore.com>
1481 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
1482 DWARF2_PER_OBJFILE by uses of DATA instead.
1484 2013-06-18 Tom Tromey <tromey@redhat.com>
1486 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
1488 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
1489 Special case signals other than GDB_SIGNAL_TRAP.
1490 (explains_signal_watchpoint): New function.
1491 (base_breakpoint_explains_signal): Add 'sig' argument.
1492 (initialize_breakpoint_ops): Set 'explains_signal' method for
1494 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
1496 (bpstat_explains_signal): Likewise.
1497 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
1499 2013-06-18 Tom Tromey <tromey@redhat.com>
1501 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
1503 2013-06-18 Tom Tromey <tromey@redhat.com>
1505 * python/python.c (finish_python_initialization): Decref
1506 'pythondir' on failure path as well.
1508 2013-06-18 Tom Tromey <tromey@redhat.com>
1511 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
1512 after taking bits_to_skip into account. Sign extend byte_offset.
1513 * utils.h (gdb_sign_extend): Declare.
1514 * utils.c (gdb_sign_extend): New function.
1516 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1518 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
1520 2013-06-17 Pierre Muller <muller@sourceware.org>
1522 * corelow.c (core_open): Print GDB signal name instead of target
1525 2013-06-17 Mike Frysinger <vapier@gentoo.org>
1527 * .gitignore: Add /gcore.
1529 2013-06-13 Doug Evans <dje@google.com>
1531 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
1532 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
1534 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
1536 * stack.c (backtrace_command_1): Fix indentation.
1538 2013-06-11 Joel Brobecker <brobecker@adacore.com>
1540 * window-nat.c (thread_rec): Add missing empty line after
1541 local variable declaration.
1543 2013-06-11 Joel Brobecker <brobecker@adacore.com>
1545 * windows-nat.c (thread_rec): Revert format used to print
1546 error code returned by SuspendThread from %d back to %u.
1548 2013-06-11 Joel Brobecker <brobecker@adacore.com>
1550 * windows-nat.c (windows_continue): Add "0x" prefix for thread
1552 (get_windows_debug_event): Likewise, for all debug traces.
1554 2013-06-11 Joel Brobecker <brobecker@adacore.com>
1556 * window-nat.c (thread_rec): Add thread ID in SuspendThread
1559 2013-06-08 Pedro Alves <pedro@codesourcery.com>
1560 Yao Qi <yao@codesourcery.com>
1562 * mi/mi-main.c (get_register): Remove declaration.
1563 (output_register): Declare.
1564 (mi_cmd_data_list_register_values): Remove local variable
1565 'tuple_cleanup'. Move some code into output_register.
1566 (get_register): Renamed to ...
1567 (output_register): ... this. Output the register's
1568 "number" ui_out tuple here.
1570 2013-06-07 Pedro Alves <palves@redhat.com>
1572 * darwin-nat.c: Fix formating in copyright header.
1573 * darwin-nat.h: Likewise.
1574 * gnu-nat.c: Likewise.
1575 * machoread.c: Likewise.
1577 2013-06-07 Pedro Alves <palves@redhat.com>
1580 * regformats/regdat.sh: Output #include tdesc.h. Make globals
1581 static. Output a global target description pointer.
1582 (init_registers_${name}): Adjust to initialize a
1583 target description structure.
1585 2013-06-07 Will Newton <will.newton@linaro.org>
1587 * printcmd.c (build_address_symbolic): Call
1588 gdbarch_addr_bits_remove for text minimal symbols.
1590 2013-06-07 Will Newton <will.newton@linaro.org>
1592 * MAINTAINERS: Add myself to Write After Approval.
1594 2013-06-07 Yao Qi <yao@codesourcery.com>
1596 * tracepoint.c (start_tracing): Move code to ...
1597 (trace_reset_local_state): ... here. New.
1598 (disconnect_tracing): Don't call set_current_traceframe,
1599 set_tracepoint_num, and set_traceframe_context. Call
1600 trace_reset_local_state instead.
1601 (tfile_close): Call trace_reset_local_state.
1602 * ctf.c (ctf_close): Likewise.
1603 * remote.c (remote_close): Likewise.
1604 * tracepoint.h (trace_reset_local_state): Declare.
1606 2013-06-06 Doug Evans <dje@google.com>
1608 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
1609 and fix header docs.
1611 2013-06-05 Doug Evans <dje@google.com>
1612 Keith Seitz <keiths@redhat.com>
1615 * cp-namespace.c (find_symbol_in_baseclass): Call
1616 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
1617 Check result of call to lookup_symbol_static.
1618 Call lookup_static_symbol_aux unconditionally.
1619 Call check_typedef on base types before accessing them.
1620 (cp_lookup_nested_symbol): Fix comment.
1622 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
1624 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
1625 minimal symbols pointing to function descriptors.
1627 2013-06-05 Tom Tromey <tromey@redhat.com>
1629 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
1631 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
1632 Pedro Alves <palves@redhat.com>
1634 * remote.c (remote_wait_as): Restore signal handler before returning
1635 when GDB gets a notification.
1637 2013-06-04 Gary Benson <gbenson@redhat.com>
1640 * breakpoint.h (handle_solib_event): Moved function declaration
1642 * breakpoint.c (handle_solib_event): Moved function to solib.c.
1643 (bpstat_stop_status): Pass new argument to handle_solib_event.
1644 * solib.h (update_solib_breakpoints): New function declaration.
1645 (handle_solib_event): Moved function declaration from
1647 * solib.c (update_solib_breakpoints): New function.
1648 (handle_solib_event): Moved function from breakpoint.c.
1649 Updated to call solib_ops->handle_event if not NULL.
1650 * solist.h (target_so_ops): New fields "update_breakpoints" and
1652 * infrun.c (set_stop_on_solib_events): New function.
1653 (_initialize_infrun): Use the above for "set
1654 stop-on-solib-events".
1655 (handle_inferior_event): Pass new argument to handle_solib_event.
1656 * solib-svr4.c (probe.h): New include.
1657 (svr4_free_library_list): New forward declaration.
1658 (probe_action): New enum.
1659 (probe_info): New struct.
1660 (probe_info): New static variable.
1661 (NUM_PROBES): New definition.
1662 (svr4_info): New fields "using_xfer", "probes_table" and
1664 (free_probes_table): New function.
1665 (free_solib_list): New function.
1666 (svr4_pspace_data_cleanup): Free probes table and solib list.
1667 (svr4_copy_library_list): New function.
1668 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
1669 (svr4_read_so_list): New parameter "prev_lm".
1670 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
1671 (svr4_current_sos): New function.
1672 (probe_and_action): New struct.
1673 (hash_probe_and_action): New function.
1674 (equal_probe_and_action): Likewise.
1675 (register_solib_event_probe): Likewise.
1676 (solib_event_probe_at): Likewise.
1677 (solib_event_probe_action): Likewise.
1678 (solist_update_full): Likewise.
1679 (solist_update_incremental): Likewise.
1680 (disable_probes_interface_cleanup): Likewise.
1681 (svr4_handle_solib_event): Likewise.
1682 (svr4_update_solib_event_breakpoint): Likewise.
1683 (svr4_update_solib_event_breakpoints): Likewise.
1684 (svr4_create_solib_event_breakpoints): Likewise.
1685 (enable_break): Free probes table before creating breakpoints.
1686 Use svr4_create_solib_event_breakpoints to create breakpoints.
1687 (svr4_solib_create_inferior_hook): Free the solib list.
1688 (_initialize_svr4_solib): Initialise
1689 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
1691 2013-06-04 Gary Benson <gbenson@redhat.com>
1693 * target.h (target_ops): New field
1694 "to_augmented_libraries_svr4_read".
1695 (target_augmented_libraries_svr4_read): New macro.
1696 * target.c (update_current_target): Handle
1697 to_augmented_libraries_svr4_read.
1698 * remote.c (remote_state): New field
1699 "augmented_libraries_svr4_read".
1700 (remote_augmented_libraries_svr4_read_feature): New function.
1701 (remote_protocol_features): Add entry for
1702 "augmented-libraries-svr4-read".
1703 (remote_augmented_libraries_svr4_read): New function.
1704 (init_remote_ops): Initialize
1705 remote_ops.to_augmented_libraries_svr4_read.
1707 2013-06-04 Gary Benson <gbenson@redhat.com>
1711 2013-06-04 Gary Benson <gbenson@redhat.com>
1713 * objfiles.h (inhibit_section_map_updates): New function
1715 (resume_section_map_updates): Likewise.
1716 (resume_section_map_updates_cleanup): Likewise.
1717 * objfiles.c (objfile_pspace_info): Removed field
1718 "objfiles_changed_p". New fields "new_objfiles_available",
1719 "section_map_dirty" and "inhibit_updates".
1720 (allocate_objfile): Set new_objfiles_available.
1721 (free_objfile): Set section_map_dirty.
1722 (objfile_relocate1): Likewise.
1723 (in_plt_section): Likewise.
1724 (find_pc_section): Update the conditions under which the
1725 section map will be updated.
1726 (inhibit_section_map_updates): New function.
1727 (resume_section_map_updates): Likewise.
1728 (resume_section_map_updates_cleanup): Likewise.
1730 2013-06-04 Gary Benson <gbenson@redhat.com>
1732 * probe.h (get_probe_argument_count): New declaration.
1733 (evaluate_probe_argument): Likewise.
1734 * probe.c (get_probe_argument_count): New function.
1735 (evaluate_probe_argument): Likewise.
1736 (probe_safe_evaluate_at_pc): Use the above new functions.
1738 2013-06-04 Alan Modra <amodra@gmail.com>
1740 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1741 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
1742 (ppc_insns_match_pattern): Add frame param. Avoid multiple
1743 target mem reads on optional insns.
1744 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
1745 ppc_insns_match_pattern calls.
1746 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
1747 Add match for power7 thread safety insns, and new order of
1748 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
1749 invocation in comment, and update rest of comment.
1750 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
1751 PPC64_STANDARD_LINKAGE3_LEN): Delete.
1752 (ppc64_standard_linkage2_target): Update insn offsets.
1753 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
1754 stubs first. Update calls.
1756 2013-06-04 Yao Qi <yao@codesourcery.com>
1758 * solib.c (solib_find): Don't need dir separator if path has
1761 2013-06-03 Joel Brobecker <brobecker@adacore.com>
1763 Revert (indirectly causes a SIGSEGV):
1764 * machoread.c (macho_symfile_read): Assign first cleanup to
1767 2013-06-03 Yao Qi <yao@codesourcery.com>
1769 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
1770 mi-parse.c. Make them static.
1771 (mi_all_values): Likewise.
1772 (mi_parse_values_option): Move to mi-parse.c. Rename it to
1773 mi_parse_print_values. Make it external.
1774 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
1775 Remove the declarations.
1776 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
1777 * mi/mi-parse.h (mi_parse_print_values): Declare.
1778 * mi/mi-cmd-stack.c: Include mi-parse.h.
1779 (parse_print_values): Remove
1780 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
1781 of parse_print_values.
1782 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
1784 2013-05-31 Pedro Alves <pedro@codesourcery.com>
1785 Yao Qi <yao@codesourcery.com>
1787 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
1788 (encode_actions): Move code to ...
1789 (all_tracepoint_actions_and_cleanup): ... here. New.
1790 (trace_dump_command): Likewise.
1792 2013-05-30 Tom Tromey <tromey@redhat.com>
1794 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
1796 2013-05-30 Tom Tromey <tromey@redhat.com>
1798 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
1799 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
1800 'old_chain' argument. Add 'parser_result' argument.
1801 (gdb_xml_create_parser_and_cleanup): Remove old version.
1802 (gdb_xml_parse_quick): Update.
1803 (xml_process_xincludes): Update.
1804 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
1807 2013-05-30 Tom Tromey <tromey@redhat.com>
1809 * probe.c (collect_probes): Check arguments for NULL before
1810 calling compile_rx_or_error.
1811 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
1814 2013-05-30 Tom Tromey <tromey@redhat.com>
1816 * infrun.c (adjust_pc_after_break): Introduce an outer null
1819 2013-05-30 Tom Tromey <tromey@redhat.com>
1821 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
1823 2013-05-30 Tom Tromey <tromey@redhat.com>
1825 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
1826 for 'old_chain'. Do not check 'head' before processing
1829 2013-05-30 Tom Tromey <tromey@redhat.com>
1831 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
1834 2013-05-30 Tom Tromey <tromey@redhat.com>
1836 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
1837 inner scope. Unconditionally call do_cleanups.
1839 2013-05-30 Tom Tromey <tromey@redhat.com>
1841 * source.c (find_and_open_source): Call do_cleanups.
1843 2013-05-30 Tom Tromey <tromey@redhat.com>
1845 * linux-thread-db.c (thread_db_load_search): Unconditionally
1848 2013-05-30 Tom Tromey <tromey@redhat.com>
1850 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
1851 for 'cleanup'; instead use a later one.
1853 2013-05-30 Tom Tromey <tromey@redhat.com>
1855 * python/py-breakpoint.c (bppy_get_commands): Use
1856 explicit, unconditional return.
1857 * python/py-frame.c (frapy_read_var): Likewise.
1858 * python/python.c (gdbpy_decode_line): Likewise.
1860 2013-05-30 Tom Tromey <tromey@redhat.com>
1862 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
1863 do_cleanups on all return paths.
1865 2013-05-30 Tom Tromey <tromey@redhat.com>
1867 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
1869 2013-05-30 Tom Tromey <tromey@redhat.com>
1871 * stabsread.c (read_struct_type): Call do_cleanups along
1874 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
1876 * mips-linux-tdep.c: Adjust formatting throughout.
1878 2013-05-30 Tom Tromey <tromey@redhat.com>
1880 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
1881 along all return paths.
1883 2013-05-30 Tom Tromey <tromey@redhat.com>
1885 * symfile.c (find_separate_debug_file): Call do_cleanups
1886 along all return paths.
1888 2013-05-30 Tom Tromey <tromey@redhat.com>
1890 * symtab.c (search_symbols): Introduce a null cleanup for
1893 2013-05-30 Tom Tromey <tromey@redhat.com>
1895 * python/py-value.c (valpy_binop): Call do_cleanups before
1898 2013-05-30 Tom Tromey <tromey@redhat.com>
1900 * python/py-prettyprint.c (print_children): Remove extra
1903 2013-05-30 Tom Tromey <tromey@redhat.com>
1905 * python/py-frame.c (frapy_read_var): Call do_cleanups along
1908 2013-05-30 Tom Tromey <tromey@redhat.com>
1910 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
1911 along all return paths.
1913 2013-05-30 Tom Tromey <tromey@redhat.com>
1915 * cli/cli-logging.c (set_logging_redirect): Unconditionally
1918 2013-05-30 Tom Tromey <tromey@redhat.com>
1920 * varobj.c (c_value_of_root): Call do_cleanups along all
1923 2013-05-30 Tom Tromey <tromey@redhat.com>
1925 * tracepoint.c (trace_dump_command): Unconditionally call
1928 2013-05-30 Tom Tromey <tromey@redhat.com>
1930 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
1931 do_cleanups earlier.
1933 2013-05-30 Tom Tromey <tromey@redhat.com>
1935 * machoread.c (macho_symfile_read): Assign first cleanup to
1938 2013-05-30 Tom Tromey <tromey@redhat.com>
1940 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
1942 2013-05-30 Tom Tromey <tromey@redhat.com>
1944 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
1946 2013-05-30 Tom Tromey <tromey@redhat.com>
1948 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
1949 call discard_cleanups.
1950 (inf_ptrace_attach): Likewise.
1952 2013-05-30 Tom Tromey <tromey@redhat.com>
1954 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
1956 (mips_initialize): Likewise.
1957 (common_open): Call do_cleanups.
1959 2013-05-30 Tom Tromey <tromey@redhat.com>
1961 * utils.c (internal_vproblem): Call do_cleanups.
1963 2013-05-30 Tom Tromey <tromey@redhat.com>
1965 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
1967 2013-05-30 Tom Tromey <tromey@redhat.com>
1969 * cli/cli-script.c (setup_user_args): Don't return after error.
1971 2013-05-30 Tom Tromey <tromey@redhat.com>
1973 * somread.c (som_symtab_read): Call do_cleanups.
1975 2013-05-30 Tom Tromey <tromey@redhat.com>
1977 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
1979 2013-05-30 Tom Tromey <tromey@redhat.com>
1981 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
1982 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
1983 * interps.c (interpreter_exec_cmd): Call do_cleanups.
1984 * source.c (show_substitute_path_command): Call do_cleanups.
1985 (unset_substitute_path_command, set_substitute_path_command):
1987 * symfile.c (load_command): Call do_cleanups.
1989 2013-05-30 Tom Tromey <tromey@redhat.com>
1991 * contrib/cleanup_check.py: New file.
1992 * contrib/gcc-with-excheck: Add option parsing.
1994 2013-05-30 Joel Brobecker <brobecker@adacore.com>
1996 * windows-nat.c (windows_delete_thread): Add missing space
1999 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
2001 * inferior.c (top level): Include tilde.h.
2002 (add_inferior_command): Call tilde_expand on the value of 'exec'
2005 2013-05-30 Pedro Alves <pedro@codesourcery.com>
2006 Yao Qi <yao@codesourcery.com>
2008 * tracepoint.c (encode_actions_1): Remove parameter 't'.
2010 (encode_actions): Likewise.
2011 * remote.c (remote_download_tracepoint): Caller update.
2012 * tracepoint.h (encode_actions): Update declaration.
2014 2013-05-30 Pedro Alves <palves@redhat.com>
2016 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
2019 2013-05-30 Yao Qi <yao@codesourcery.com>
2021 * remote.c (remote_check_symbols): Remove unused parameter
2024 (remote_start_remote, remote_new_objfile): Caller update.
2026 2013-05-30 Yao Qi <yao@codesourcery.com>
2028 * mi/mi-cmds.c (mi_cmds): Define MI command
2029 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
2032 2013-05-29 Pedro Alves <palves@redhat.com>
2034 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
2035 (remote_insert_watchpoint, remote_remove_watchpoint)
2036 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
2037 (remote_verify_memory, compare_sections_command)
2038 (remote_search_memory): Set the general process/thread on the
2041 2013-05-29 Pedro Alves <palves@redhat.com>
2043 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
2044 (_initialize_aarch64_tdep): Don't call
2045 initialize_tdesc_aarch64_without_fpu.
2046 * features/Makefile (WHICH): Remove reference to
2047 aarch64-without-fpu.
2048 * features/aarch64-without-fpu.c: Delete file.
2049 * regformats/aarch64-without-fpu.dat: Delete file.
2051 2013-05-28 Yao Qi <yao@codesourcery.com>
2053 * tracepoint.c (stringify_collection_list): Remove parameter
2055 (encode_actions): Caller update. Remove local variables.
2057 2013-05-24 Yao Qi <yao@codesourcery.com>
2059 * tracepoint.c (TFILE_PID): Remove.
2060 (tfile_open): Don't add thread and inferior.
2061 (tfile_close): Don't set 'inferior_ptid'. Don't call
2062 exit_inferior_silent.
2063 (tfile_thread_alive): Remove.
2064 (init_tfile_ops): Don't set field 'to_thread_alive' of
2067 2013-05-23 Doug Evans <dje@google.com>
2069 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
2071 2013-05-23 Pedro Alves <palves@redhat.com>
2073 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
2074 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
2075 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
2076 Only define if HAVE_SOCKETS is defined.
2077 * configure.ac: Check for sys/socket.h.
2078 * config.in, configure: Regenerate.
2080 2013-05-23 Pedro Alves <palves@redhat.com>
2082 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
2083 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
2084 printing uint32_t variables.
2086 2013-05-23 Pedro Alves <palves@redhat.com>
2088 * NEWS: Mention GDBserver range stepping support.
2090 2013-05-23 Yao Qi <yao@codesourcery.com>
2091 Pedro Alves <palves@redhat.com>
2093 * gdbthread.h (struct thread_control_state) <may_range_step>: New
2095 * infcmd.c (step_once, until_next_command): Enable range stepping.
2096 * infrun.c (displaced_step_prepare): Disable range stepping.
2097 (resume): Disable range stepping if stepping over a breakpoint or
2098 we have software watchpoints. If range stepping is enabled,
2099 assert the thread is in the stepping range.
2100 (clear_proceed_status_thread): Clear may_range_step.
2101 (handle_inferior_event): Disable range stepping as soon as we know
2102 the thread that hit the event. Re-enable it whenever we're going
2103 to step with a step range.
2104 * remote.c (struct vCont_action_support) <r>: New field.
2105 (use_range_stepping): New global.
2106 (remote_vcont_probe): Handle 'r' action.
2107 (append_resumption): Append an 'r' action if the thread may range
2109 (show_range_stepping): New function.
2110 (set_range_stepping): New function.
2111 (_initialize_remote): Call add_setshow_boolean_cmd to register the
2112 'set range-stepping' and 'show range-stepping' commands.
2113 * NEWS: Mention range stepping, the new vCont;r action, and the
2114 new "set/show range-stepping" commands.
2116 2013-05-23 Yao Qi <yao@codesourcery.com>
2117 Pedro Alves <palves@redhat.com>
2119 * remote.c (struct vCont_action_support): New struct.
2120 (struct remote_state) <support_vCont_t>: Remove field.
2121 <vCont_actions_support>: New field.
2122 (remote_vcont_probe, remote_stop_ns): Update.
2124 2013-05-23 Yao Qi <yao@codesourcery.com>
2125 Pedro Alves <palves@redhat.com>
2127 * gdbthread.h (pc_in_thread_step_range): New declaration.
2128 * thread.c (pc_in_thread_step_range): New function.
2129 * infrun.c (handle_inferior_event): Use it.
2131 2013-05-23 Joel Brobecker <brobecker@adacore.com>
2133 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
2136 2013-05-22 Keith Seitz <keiths@redhat.com>
2138 * ada-lang.c (is_known_support_routine): Add explicit free of
2139 'func_name' from find_frame_funname.
2140 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
2141 for func_name from find_frame_funname.
2142 * python/py-frame.c (frapy_name): Add explicit free of
2143 'name' from find_frame_funname.
2144 * stack.c (find_frame_funname): Add comment explaining that
2145 funcp must be freed by the caller.
2146 Return copy of symbol names instead of pointers.
2147 (print_frame): Add a cleanup for 'funname' from
2149 * stack.h (find_frame_funname): Remove "const" from
2150 'funname' parameter.
2152 2013-05-22 Tom Tromey <tromey@redhat.com>
2155 * c-valprint.c (c_value_print): Use value_addr for
2156 references. Convert back to reference type with value_ref.
2158 2013-05-22 Eli Zaretskii <eliz@gnu.org>
2160 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
2161 unloaded DLL, it will be done by handle_solib_event. See
2162 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
2165 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
2167 * ui-out.c: Create typedef ui_out_level_p and define vector
2168 operations for that type.
2169 (struct ui_out): Use a vector instead of an array.
2170 (current_level): Return level from a vector.
2171 (push_level): Create a level in a vector.
2172 (pop_level): Delete a level in a vector.
2173 (ui_out_new): Create initial level zero level, and store in a
2175 (ui_out_destroy): Add vector cleanup.
2177 2013-05-22 Pedro Alves <palves@redhat.com>
2179 * python/python-internal.h (gdb_Py_DECREF): Tag with
2180 "ARI: editCase function".
2182 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
2184 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
2186 2013-05-21 Pedro Alves <palves@redhat.com>
2188 * python/py-prettyprint.c (apply_val_pretty_printer): Check
2189 whether PRINTER is NULL before installing a Py_DECREF cleanup.
2190 * python/py-utils.c (py_decref): Don't check for NULL before
2193 2013-05-21 Pedro Alves <palves@redhat.com>
2195 * python/py-utils.c (py_decref): Remove extra braces.
2196 (gdb_pymodule_addobject): Remove extra braces.
2197 * python-internal.h (gdb_Py_DECREF): New static inline function.
2198 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
2200 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2202 * breakpoints.c (detach_breakpoints): Do not
2203 detach breakpoints locations with loc_type bp_loc_other.
2205 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2207 Workaround Python 2.6.
2208 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
2211 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2213 Code cleanup: constification.
2214 * solib.c (solib_ops): Make return type and ops variable type const.
2215 (set_solib_ops): Make the new_ops parameter and ops variable const.
2216 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
2217 (solib_add, solib_keep_data_in_core, clear_solib)
2218 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2219 (reload_shared_libraries, solib_global_lookup): Make the ops variable
2221 * solib.h (set_solib_ops): Make the new_ops parameter const.
2223 2013-05-21 Joel Brobecker <brobecker@adacore.com>
2225 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
2227 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
2228 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
2229 (SYSTEM_GDBINIT_FILES): New variables.
2230 (all): Add stamp-system-gdbinit.
2231 (stamp-system-gdbinit): New rule.
2232 (clean-system-gdbinit, install-system-gdbinit)
2233 (uninstall-system-gdbinit): New rules. Make them .PHONY.
2234 (install-only): Add dependency on install-system-gdbinit.
2235 (uninstall): Add dependency on uninstall-system-gdbinit.
2236 (clean): Add dependency on clean-system-gdbinit.
2237 * system-gdbinit/elinos.py: New file.
2238 * system-gdbinit/wrs-linux.py: New file.
2240 2013-05-21 Joel Brobecker <brobecker@adacore.com>
2242 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
2244 2013-05-21 Hui Zhu <hui@codesourcery.com>
2246 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
2247 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
2248 * mi/mi-cmd-break.c (ctype.h): New include.
2249 (gdb_obstack.h): New include.
2250 (mi_argv_to_format, mi_cmd_break_insert_1): New.
2251 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
2252 (mi_cmd_dprintf_insert): New.
2253 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
2254 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
2256 2013-05-20 Tom Tromey <tromey@redhat.com>
2258 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
2260 2013-05-20 Tom Tromey <tromey@redhat.com>
2262 * python/py-value.c (valpy_get_dynamic_type): Simplify
2263 dynamic_type assignment. Use Py_XINCREF.
2265 2013-05-20 Tom Tromey <tromey@redhat.com>
2267 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
2269 2013-05-20 Tom Tromey <tromey@redhat.com>
2271 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
2272 (gdbpy_selected_frame): Move object-construction code
2275 2013-05-20 Tom Tromey <tromey@redhat.com>
2277 * python/py-arch.c (gdbpy_initialize_arch): Use
2278 gdb_pymodule_addobject.
2279 * python/py-block.c (gdbpy_initialize_blocks): Use
2280 gdb_pymodule_addobject.
2281 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
2282 gdb_pymodule_addobject.
2283 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
2284 gdb_pymodule_addobject.
2285 * python/py-event.c (gdbpy_initialize_event_generic): Use
2286 gdb_pymodule_addobject.
2287 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
2288 gdb_pymodule_addobject.
2289 * python/py-evts.c (add_new_registry): Use
2290 gdb_pymodule_addobject.
2291 (gdbpy_initialize_py_events): Likewise.
2292 * python/py-finishbreakpoint.c
2293 (gdbpy_initialize_finishbreakpoints): Use
2294 gdb_pymodule_addobject.
2295 * python/py-frame.c (gdbpy_initialize_frames): Use
2296 gdb_pymodule_addobject.
2297 * python/py-function.c (gdbpy_initialize_functions): Use
2298 gdb_pymodule_addobject.
2299 * python/py-inferior.c (gdbpy_initialize_inferior): Use
2300 gdb_pymodule_addobject.
2301 * python/py-infthread.c (gdbpy_initialize_thread): Use
2302 gdb_pymodule_addobject.
2303 * python/py-objfile.c (gdbpy_initialize_objfile): Use
2304 gdb_pymodule_addobject.
2305 * python/py-param.c (gdbpy_initialize_parameters): Use
2306 gdb_pymodule_addobject.
2307 * python/py-progspace.c (gdbpy_initialize_pspace): Use
2308 gdb_pymodule_addobject.
2309 * python/py-symbol.c (gdbpy_initialize_symbols): Use
2310 gdb_pymodule_addobject.
2311 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
2312 gdb_pymodule_addobject.
2313 * python/py-type.c (gdbpy_initialize_types): Use
2314 gdb_pymodule_addobject.
2315 * python/py-utils.c (gdb_pymodule_addobject): New function.
2316 * python/py-value.c (gdbpy_initialize_values): Use
2317 gdb_pymodule_addobject.
2318 * python/python-internal.h (gdb_pymodule_addobject): Declare.
2319 * python/python.c (_initialize_python): Use
2320 gdb_pymodule_addobject.
2322 2013-05-20 Tom Tromey <tromey@redhat.com>
2324 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
2325 * python/py-param.c (get_set_value, get_show_value): Use
2327 * python/python.c (start_type_printers, apply_type_printers):
2328 Use explicit decrefs.
2330 2013-05-20 Tom Tromey <tromey@redhat.com>
2332 * python/py-evts.c (gdbpy_initialize_py_events): Don't
2335 2013-05-20 Tom Tromey <tromey@redhat.com>
2337 * python/python.c (gdbpy_run_events): Decref the result
2338 of PyObject_CallObject.
2340 2013-05-20 Tom Tromey <tromey@redhat.com>
2342 * python/py-symtab.c (set_sal): Use
2343 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
2344 (symtab_and_line_to_sal_object): Update.
2346 2013-05-20 Tom Tromey <tromey@redhat.com>
2348 * python/py-param.c (compute_enum_values): Decref 'item'.
2350 2013-05-20 Tom Tromey <tromey@redhat.com>
2352 * mi/mi-main.c: Include python-internal.h.
2353 (mi_cmd_list_features): Check gdb_python_initialized.
2354 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
2355 (python_inferior_exit, python_new_objfile, add_thread_object)
2356 (delete_thread_object, py_free_inferior): Check
2357 gdb_python_initialized.
2358 * python/py-prettyprint.c (apply_val_pretty_printer): Check
2359 gdb_python_initialized.
2360 * python/py-type.c (save_objfile_types): Check
2361 gdb_python_initialized.
2362 * python/python-internal.h (gdb_python_initialized): Declare.
2363 * python/python.c (ensure_python_env): Throw exception if
2364 Python not initialized.
2365 (before_prompt_hook, source_python_script_for_objfile)
2366 (start_type_printers, apply_type_printers,
2367 free_type_printers): Check gdb_python_initialized.
2368 * varobj.c (varobj_get_display_hint)
2369 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
2370 (install_new_value_visualizer, varobj_set_visualizer)
2371 (value_get_print_value): Check gdb_python_initialized.
2373 2013-05-20 Tom Tromey <tromey@redhat.com>
2375 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
2377 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
2378 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
2380 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
2382 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
2384 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
2386 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
2387 init function to return 'int'.
2388 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
2389 Return 'int'. Check errors.
2390 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
2392 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
2393 Return 'int'. Check errors.
2394 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
2396 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
2398 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
2400 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
2402 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
2404 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
2406 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
2408 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
2410 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
2412 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
2414 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
2416 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
2418 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
2420 * python/python-internal.h (gdbpy_initialize_auto_load,
2421 gdbpy_initialize_values, gdbpy_initialize_frames,
2422 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
2423 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
2424 gdbpy_initialize_blocks, gdbpy_initialize_types,
2425 gdbpy_initialize_functions, gdbpy_initialize_pspace,
2426 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
2427 gdbpy_initialize_finishbreakpoints,
2428 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
2429 gdbpy_initialize_thread, gdbpy_initialize_inferior,
2430 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
2431 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
2432 gdbpy_initialize_signal_event,
2433 gdbpy_initialize_breakpoint_event,
2434 gdbpy_initialize_continue_event,
2435 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
2436 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
2437 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2438 * python/python.c (gdb_python_initialized): New global.
2439 (gdbpy_initialize_events): Return 'int'. Check errors.
2440 (_initialize_python): Check errors. Set
2441 gdb_python_initialized.
2443 2013-05-20 Tom Tromey <tromey@redhat.com>
2445 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
2446 Decref the reslut of PyObject_CallMethod.
2448 2013-05-20 Tom Tromey <tromey@redhat.com>
2450 * python/py-event.c (gdbpy_initialize_event_generic): Return
2451 early if PyType_Ready fails.
2453 2013-05-20 Tom Tromey <tromey@redhat.com>
2455 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
2456 as 'default' in the switch.
2458 2013-05-20 Tom Tromey <tromey@redhat.com>
2460 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
2461 get_addr_from_python calls out of TRY_CATCH.
2462 (infpy_write_memory, infpy_search_memory): Likewise.
2463 * python/py-utils.c (get_addr_from_python): Return negative
2464 value on error. Use TRY_CATCH.
2465 * python/python-internal.h (get_addr_from_python): Use
2466 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2468 2013-05-20 Tom Tromey <tromey@redhat.com>
2470 * python/py-event.c (evpy_emit_event): Decref the
2471 result of PyObject_CallFunctionObjArgs.
2473 2013-05-20 Tom Tromey <tromey@redhat.com>
2475 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
2478 2013-05-20 Tom Tromey <tromey@redhat.com>
2480 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
2482 2013-05-20 Tom Tromey <tromey@redhat.com>
2484 * python/py-event.h (gdbpy_initialize_event_generic): Use
2485 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2486 * python/py-evts.c (add_new_registry): Use
2487 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2488 * python/python-internal.h
2489 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
2491 2013-05-20 Tom Tromey <tromey@redhat.com>
2493 * python/py-arch.c (archpy_disassemble): Update.
2494 * python/py-type.c (typy_get_composite, typy_lookup_typename)
2495 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
2496 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
2497 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
2499 (GDB_PY_HANDLE_EXCEPTION): Update.
2500 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
2502 2013-05-20 Tom Tromey <tromey@redhat.com>
2504 * python/python-internal.h (events_object_type): Remove.
2506 2013-05-20 Tom Tromey <tromey@redhat.com>
2508 * python/py-event.h (evpy_emit_event): Use
2509 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2510 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2513 2013-05-20 Tom Tromey <tromey@redhat.com>
2515 * py-evtregistry.c (create_event_object): Decref
2516 eventregistry_object if PyList_New fails.
2518 2013-05-20 Tom Tromey <tromey@redhat.com>
2520 * py-cmd.c (gdbpy_string_to_argv): Check result of
2523 2013-05-20 Tom Tromey <tromey@redhat.com>
2525 * python/python.c (before_prompt_hook): Add cleanup to
2528 2013-05-20 Tom Tromey <tromey@redhat.com>
2530 * python/py-function.c (fnpy_init): Decref result of
2531 PyObject_GetAttrString.
2533 2013-05-20 Tom Tromey <tromey@redhat.com>
2535 * python/py-threadevent.c (get_event_thread): Use
2536 CPYCHECKER_RETURNS_BORROWED_REF.
2537 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2539 (pspace_to_pspace_object, objfile_to_objfile_object)
2540 (find_thread_object): Use it.
2542 2013-05-20 Tom Tromey <tromey@redhat.com>
2544 * python/py-arch.c (arch_object_type): Use
2545 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2546 * python/py-block.c (block_syms_iterator_object_type):
2547 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2548 * python/py-bpevent.c (breakpoint_event_object_type):
2549 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2550 * python/py-cmd.c (cmdpy_object_type): Use
2551 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2552 * python/py-continueevent.c (continue_event_object_type):
2553 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2554 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
2555 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2556 * python/py-events.h (thread_event_object_type):
2557 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2558 * python/py-evtregistry.c (eventregistry_object_type): Use
2559 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2560 * python/py-exitedevent.c (exited_event_object_type):
2561 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2562 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
2563 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2564 * python/py-function.c (fnpy_object_type): Use
2565 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2566 * python/py-inferior.c (inferior_object_type, membuf_object_type):
2567 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2568 * python/py-infthread.c (thread_object_type): Use
2569 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2570 * python/py-lazy-string.c (lazy_string_object_type):
2571 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2572 * python/py-newobjfileevent.c (new_objfile_event_object_type):
2573 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2574 * python/py-objfile.c (objfile_object_type): Use
2575 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2576 * python/py-param.c (parmpy_object_type):
2577 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2578 * python/py-progspace.c (pspace_object_type):
2579 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2580 * python/py-signalevent.c (signal_event_object_type):
2581 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2582 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
2583 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2584 * python/py-type.c (type_object_type, field_object_type)
2585 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2586 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
2588 (value_object_type, block_object_type, symbol_object_type)
2589 (event_object_type, stop_event_object_type, breakpoint_object_type)
2590 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2592 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
2594 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
2595 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
2597 2013-05-20 Doug Evans <dje@google.com>
2599 When reading CU, stay in DWO. Be more tolerent of bad debug info.
2601 * dwarf2read.c (struct dwarf2_per_cu_data): New member
2602 reading_dwo_directly.
2603 (struct signatured_type): New member dwo_unit.
2604 (struct die_reader_specs): New member comp_dir.
2605 (create_signatured_type_table_from_index): Use malloc for
2606 all_type_units instead of objfile's obstack.
2607 (create_all_type_units): Ditto.
2608 (fill_in_sig_entry_from_dwo_entry): New function.
2609 (add_type_unit): New function.
2610 (lookup_dwo_signatured_type): New function.
2611 (lookup_dwp_signatured_type): New function.
2612 (lookup_signatured_type): New arg cu. All callers updated.
2613 (init_cu_die_reader): Initialize comp_dir.
2614 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
2615 Change assert of matching type signatures to call error on mismatch.
2616 (lookup_dwo_unit): Add assert.
2617 (init_tu_and_read_dwo_dies): New function.
2618 (init_cutu_and_read_dies): Call it.
2619 (build_type_unit_groups): Handle case of no type unit groups created.
2620 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
2621 (lookup_dwo_cutu): Tweak complaint.
2622 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
2623 (dwarf2_per_objfile_free): Free all_type_units.
2625 2013-05-20 Joel Brobecker <brobecker@adacore.com>
2627 * windows-nat.c (handle_unload_dll): Add missing empty line.
2629 2013-05-20 Joel Brobecker <brobecker@adacore.com>
2631 * dwarf2read.c (prototyped_function_p): New function.
2632 (read_subroutine_type): Use it.
2634 2013-05-20 Joel Brobecker <brobecker@adacore.com>
2636 * rs6000-aix-tdep.c: De-indent some example code provided
2639 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
2641 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
2642 region is ok for a hardware watchpoint using the new ptrace interface
2645 2013-05-17 Doug Evans <dje@google.com>
2647 * NEWS: Mention new maintenance commands check-symtabs, and
2648 expand-symtabs, and renamed check-psymtabs.
2649 * psymtab.c (maintenance_check_psymtabs): Renamed from
2650 maintenance_check_symtabs. Only process already-expanded symbol
2652 (_initialize_psymtab): Update.
2653 * symmisc.c (maintenance_check_symtabs): New function.
2654 (maintenance_expand_name_matcher): New function
2655 (maintenance_expand_file_matcher): New function
2656 (maintenance_expand_symtabs): New function.
2657 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
2660 2013-05-17 Tom Tromey <tromey@redhat.com>
2662 * python/py-inferior.c (infpy_read_memory): Don't call
2663 PyErr_SetString if PyObject_New fails.
2664 * python/py-frame.c (frame_info_to_frame_object): Don't call
2665 PyErr_SetString if PyObject_New fails.
2667 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
2669 * acinclude.m4: Add check for dlopen in libdl.
2670 * configure.ac: Ditto.
2671 * configure: Regenerate.
2673 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
2675 * frame.c (frame_stash): Convert to htab.
2676 (frame_addr_hash): New function.
2677 (frame_addr_hash_eq): New function.
2678 (frame_stash_create): Convert function to create
2680 (frame_stash_add): Convert function to add an entry to a hash
2682 (frame_stash_find): Convert function to search the hash table.
2683 (frame_stash_invalidate): Convert function to empty the hash
2685 (get_frame_id): Only add to stash if a frame_id is created.
2686 (_initialize_frame): Call frame_stash_create.
2688 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
2690 * configure.ac: Ensure MIG is available when building for GNU Hurd
2692 * configure: Regenerate.
2694 2013-05-16 Joel Brobecker <brobecker@adacore.com>
2696 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
2698 2013-05-16 Joel Brobecker <brobecker@adacore.com>
2700 * ada-lang.c (ada_make_symbol_completion_list): Make sure
2701 all cleanups are done before returning from this function.
2703 2013-05-15 Joel Brobecker <brobecker@adacore.com>
2705 * utils.h: #include "exceptions.h".
2706 (enum errors): Remove partial declaration.
2708 2013-05-15 Joel Brobecker <brobecker@adacore.com>
2710 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
2711 * gdbarch.h, gdbarch.c: Regenerate.
2712 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
2715 * rs6000-aix-tdep.h: New file.
2716 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
2717 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
2719 (struct field_info, struct ld_info_desc): New types.
2720 (ld_info32_desc, ld_info64_desc): New static constants.
2721 (struct ld_info): New type.
2722 (rs6000_aix_extract_ld_info): New function.
2723 (rs6000_aix_shared_library_to_xml): Likewise.
2724 (rs6000_aix_ld_info_to_xml): Likewise.
2725 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2726 (rs6000_aix_init_osabi): Add call to
2727 set_gdbarch_core_xfer_shared_libraries_aix.
2728 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
2729 Remove "xml-utils.h" include.
2730 (LdInfo): Delete typedef.
2731 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
2733 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
2734 Adjust code accordingly.
2735 (rs6000_core_ldinfo): Delete, folded into
2736 rs6000_aix_core_xfer_shared_libraries_aix.
2737 (rs6000_xfer_shared_library): Delete.
2738 (rs6000_xfer_shared_libraries): Reimplement.
2740 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
2742 * record.c (record_goto_cmdlist): New.
2743 (cmd_record_goto): Split into this ...
2744 (cmd_record_goto_begin): ... this
2745 (cmd_record_goto_end): ... and this.
2746 (_initialize_record): Change "record goto" to prefix command.
2747 Add commands for "record goto begin" and "record goto end".
2748 Add an alias for "record goto start" to "record goto begin".
2750 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2752 * linespec.c (convert_linespec_to_sals): New comment for
2753 SOURCE_FILENAME assignment.
2755 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2757 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
2760 2013-05-14 Tom Tromey <tromey@redhat.com>
2762 * eval.c (parse_and_eval_long): Make 'exp' const.
2763 * value.h (parse_and_eval_long): Update.
2765 2013-05-14 Tom Tromey <tromey@redhat.com>
2767 * ui-file.c (gdb_fopen): Make arguments const.
2768 * ui-file.h (gdb_fopen): Make arguments const.
2770 2013-05-14 Tom Tromey <tromey@redhat.com>
2772 * remote.c (remote_set_trace_notes): Make arguments const.
2773 * target.c (update_current_target): Update cast.
2774 * target.h (to_set_trace_notes): Make arguments const.
2776 2013-05-14 Tom Tromey <tromey@redhat.com>
2778 * go32-nat.c (go32_terminal_info): Make 'args' const.
2779 * inferior.h (child_terminal_info): Update.
2780 * inflow.c (child_terminal_info): Make 'args' const.
2781 * target.c (default_terminal_info): Make 'args' const.
2782 (debug_to_terminal_save_ours): Likewise.
2783 * target.h (struct target_ops) <to_terminal_info>: Make argument
2786 2013-05-13 Tom Tromey <tromey@redhat.com>
2788 * gcore.c (create_gcore_bfd): Make 'filename' const.
2789 * gcore.h (create_gcore_bfd): Make 'filename' const.
2790 * record-full.c (record_full_save): Make 'recfilename' const.
2791 * target.c (target_save_record): Make 'filename' const.
2792 * target.h (struct target_ops) <to_save_record>: Make 'filename'
2794 (target_save_record): Likewise.
2796 2013-05-13 Tom Tromey <tromey@redhat.com>
2799 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
2800 ranges section has been read.
2802 2013-05-13 Tom Tromey <tromey@redhat.com>
2805 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
2806 STRUCTOP_PTR>: Return a not_lval value for
2807 EVAL_AVOID_SIDE_EFFECTS.
2808 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
2809 for EVAL_AVOID_SIDE_EFFECTS.
2811 2013-05-13 Joel Brobecker <brobecker@adacore.com>
2813 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
2814 floating point registers to register type before storing
2816 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
2819 2013-05-10 Joel Brobecker <brobecker@adacore.com>
2820 Tom Tromey <tromey@redhat.com>
2822 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2824 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2826 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
2827 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
2828 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
2829 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
2831 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
2832 Tom Tromey <tromey@redhat.com>
2835 * configure: Rebuild.
2836 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
2839 2013-05-10 Pedro Alves <palves@redhat.com>
2841 * remote.c (_initialize_remote): Fix spelling of
2842 qXfer:traceframe-info:read packet in packet config command.
2844 2013-05-10 David Taylor <dtaylor@emc.com>
2848 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
2849 "QTro" at start of packet.
2851 2013-05-10 Joel Brobecker <brobecker@adacore.com>
2853 * solib-aix.c (solib_aix_relocate_section_addresses):
2854 For the .bss section action, apply the same offset as
2857 2013-05-10 Joel Brobecker <brobecker@adacore.com>
2859 * solib-aix.c (solib_aix_relocate_section_addresses):
2860 Remove FIXME comment.
2862 2013-05-10 Joel Brobecker <brobecker@adacore.com>
2865 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2866 New functions, directly copied from sparc-sol-thread.c.
2867 * sparc-sol-thread.c: Delete.
2868 * configure.ac: Remove code handling sparc-solaris-thread.c.
2869 * configure: Regenerate.
2871 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
2873 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
2875 (backtrace_command): Add "no-filters" option parsing.
2876 (_initialize_stack): Alter help to reflect "no-filters" option.
2877 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
2878 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
2879 (py-frame.o): Add target
2880 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
2882 * python/python.h: Add new frame filter constants, and flag enum.
2883 (apply_frame_filter): Add definition.
2884 * python/python.c (apply_frame_filter): New non-Python
2886 * python/py-utils.c (py_xdecref): New function.
2887 (make_cleanup_py_xdecref): Ditto.
2888 * python/py-objfile.c: Declare frame_filters dictionary.
2889 (objfpy_dealloc): Add frame_filters dealloc.
2890 (objfpy_new): Initialize frame_filters attribute.
2891 (objfile_to_objfile_object): Ditto.
2892 (objfpy_get_frame_filters): New function.
2893 (objfpy_set_frame_filters): New function.
2894 * python/py-progspace.c: Declare frame_filters dictionary.
2895 (pspy_dealloc): Add frame_filters dealloc.
2896 (pspy_new): Initialize frame_filters attribute.
2897 (pspacee_to_pspace_object): Ditto.
2898 (pspy_get_frame_filters): New function.
2899 (pspy_set_frame_filters): New function.
2900 * python/py-framefilter.c: New file.
2901 * python/lib/gdb/command/frame_filters.py: New file.
2902 * python/lib/gdb/frames.py: New file.
2903 * python/lib/gdb/__init__.py: Initialize global frame_filters
2905 * python/lib/gdb/FrameDecorator.py: New file.
2906 * python/lib/gdb/FrameIterator.py: New file.
2907 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
2908 * mi/mi-cmds.h: Declare.
2909 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
2910 --no-frame-filter logic, and Python frame filter logic.
2911 (stack_enable_frame_filters): New function.
2912 (parse_no_frame_option): Ditto.
2913 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
2915 (mi_cmd_stack_list_locals): Ditto.
2916 (mi_cmd_stack_list_args): Ditto.
2917 (mi_cmd_stack_list_variables): Ditto.
2918 * NEWS: Add frame filter note.
2920 2013-05-09 Doug Evans <dje@google.com>
2922 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
2923 All callers updated.
2924 (syms_from_objfile): Ditto. Make static.
2925 (symbol_file_add_with_addrs): Renamed from
2926 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
2927 num_offsets. All callers updated.
2928 * symfile.h (syms_from_objfile): Delete.
2930 * symfile.c (decrement_reading_symtab): Add assert.
2931 (increment_reading_symtab): Ditto.
2933 2013-05-09 Joel Brobecker <brobecker@adacore.com>
2935 * source.c (forward_search_command): Replace call to getc
2937 (reverse_search_command): Likewise.
2939 2013-05-08 Doug Evans <dje@google.com>
2941 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
2944 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2946 * sol-thread.c (info_cb): Factorize the code a little.
2948 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2950 * sol-thread.c (info_cb): Rework the output of the "maintenance
2951 info sol-threads" command a bit.
2953 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2955 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
2956 Replace ti.ti_startfunc by ti.ti_pc.
2958 2013-05-08 Joel Brobecker <brobecker@adacore.com>
2960 * solib-aix.c (solib_aix_free_library_list): New function
2961 for the case where HAVE_LIBEXPAT is not defined.
2963 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2965 PR breakpoints/15413:
2966 * breakpoint.c (condition_completer): Simplify the code to
2967 disconsider multiple locations of breakpoints when completing the
2968 "condition" command.
2970 2013-05-07 Pierre Muller <muller@sourceware.org>
2972 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
2973 instead of <sys/wait.h>.
2975 2013-05-07 Pierre Muller <muller@sourceware.org>
2977 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
2978 trailing new line from warning message.
2980 2013-05-07 Pierre Muller <muller@sourceware.org>
2982 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
2983 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
2985 2013-05-07 Joel Brobecker <brobecker@adacore.com>
2987 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
2988 error message (ARI fix).
2990 2013-05-07 Joel Brobecker <brobecker@adacore.com>
2992 * features/library-list-aix.dtd: Replace library-list by
2994 * rs6000-nat.c: Replace library-list by library-list-aix
2996 * solib-aix.c: Likewise.
2998 2013-05-07 Joel Brobecker <brobecker@adacore.com>
3000 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
3001 Renames TARGET_OBJECT_AIX_LIBRARIES.
3002 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
3003 TARGET_OBJECT_LIBRARIES_AIX throughout.
3004 * solib-aix.c: Likwise.
3006 2013-05-07 Yao Qi <yao@codesourcery.com>
3008 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
3009 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
3011 2013-05-07 Yao Qi <yao@codesourcery.com>
3013 * solib-dsbt.c (enable_break): Declare.
3014 (dsbt_current_sos): Remove call to enable_break2.
3015 (enable_break2): Rename to enable_break. Set solib breakpoint
3016 on '_dl_debug_state'.
3017 (enable_break): Remove.
3019 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
3021 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
3022 debug state prior to replicating existing hardware watchpoints or
3025 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3027 * gcore.c (gcore_create_callback): Ignore sections with
3028 separate_debug_objfile_backlink != NULL.
3030 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
3031 Andrew Jenner <andrew@codesourcery.com>
3032 Chung-Lin Tang <cltang@codesourcery.com>
3033 Julian Brown <julian@codesourcery.com>
3035 Based on the nios2-elf port from Altera Corporation.
3037 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
3039 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
3040 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
3041 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
3042 * nios2-tdep.h: New.
3043 * nios2-tdep.c: New.
3044 * nios2-linux-tdep.c: New.
3045 * features/Makefile (WHICH): Add nios2-linux.
3046 (nios2-linux-expedite): Set.
3047 * features/nios2-cpu.xml: New.
3048 * features/nios2.xml: New.
3049 * features/nios2-linux.xml: New.
3050 * features/nios2.c: New (autogenerated).
3051 * features/nios2-linux.c: New (autogenerated).
3052 * regformats/nios2-linux.dat: New (autogenerated).
3053 * NEWS (Changes since GDB 7.6): Add new Nios II targets
3056 2013-05-06 Doug Evans <dje@google.com>
3058 * symfile.c: Whitespace cleanup.
3060 * solist.h (struct target_so_ops): New member clear_so.
3061 * solib-svr4.c (svr4_clear_so): New function.
3062 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
3063 * solib.c (clear_so): Renamed from free_so_symbols.
3064 All callers updated. Call target clear_so if it exists.
3066 2013-05-06 Tom Tromey <tromey@redhat.com>
3068 * ada-lang.c (ada_value_primitive_packed_val): Don't
3070 * value.c (set_value_parent): Incref the new parent and decref
3072 (value_copy, value_primitive_field): Use set_value_parent.
3074 2013-05-06 Tom Tromey <tromey@redhat.com>
3076 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
3077 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
3079 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
3080 * dwarf2read.c (write_constant_as_bytes)
3081 (dwarf2_fetch_constant_bytes): New functions.
3083 2013-05-06 Tom Tromey <tromey@redhat.com>
3085 * dwarf2read.c (dwarf2_const_value_data): Remove unused
3087 (dwarf2_const_value_attr): Update.
3089 2013-05-06 Tom Tromey <tromey@redhat.com>
3091 * somread.c (som_symfile_offsets): Add 'const' to addrs.
3092 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
3093 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
3096 2013-05-06 Tom Tromey <tromey@redhat.com>
3098 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
3101 2013-05-06 Doug Evans <dje@google.com>
3103 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
3104 * stabsread.h (process_one_symbol): Update declaration.
3105 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
3106 * elfread.c (elf_symfile_relocate_probe): Ditto.
3107 * psymtab.c (relocate_psymtabs): Ditto.
3108 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
3109 (objfile_relocate): Ditto.
3110 * objfiles.h (objfile_relocate): Update declaration.
3111 * symfile.c (relative_addr_info_to_section_offsets): Constify
3113 (default_symfile_offsets): Ditto.
3114 (syms_from_objfile_1): Constify offsets parameter.
3115 (syms_from_objfile): Ditto.
3116 (symbol_file_add_with_addrs_or_offsets): Ditto.
3117 (symfile_map_offsets_to_segments): Constify data parameter.
3118 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
3119 delta parameters of member relocate.
3120 (struct sym_probe_fns): Constify new_offsets,
3121 delta parameters of member sym_relocate_probe.
3122 (struct sym_fns): Constify section_addr_info parameter of member
3124 (relative_addr_info_to_section_offsets): Update declaration.
3125 (default_symfile_offsets): Ditto.
3126 (syms_from_objfile): Ditto.
3127 (symfile_map_offsets_to_segments): Ditto.
3129 * symfile.c (syms_from_objfile_1): Use correct section count when
3130 objfile->sf == NULL.
3132 2013-05-06 Mike Frysinger <vapier@gentoo.org>
3134 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
3136 2013-05-06 Doug Evans <dje@google.com>
3138 * psympriv.h (struct partial_symtab): Augment comment for member
3141 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3143 Reimplement shared library support on ppc-aix...
3144 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
3145 * features/library-list-aix.dtd: New file.
3146 * solib-aix.h, solib-aix.c: New file.
3147 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
3148 (rs6000_find_toc_address_hook): Delete.
3149 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
3150 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
3151 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
3153 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
3154 (vmap_symtab, fixup_breakpoints): Delete.
3155 (rs6000_xfer_shared_libraries): New function.
3156 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
3157 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
3158 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
3159 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
3160 (rs6000_xfer_shared_library): New function.
3161 (find_toc_address): Delete.
3162 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
3163 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
3164 * xcoffread.c (record_minimal_symbol): Reloate symbol address
3165 before creating minimal symbol. Adjust function description
3167 (scan_xcoff_symtab): Replace call to
3168 prim_record_minimal_symbol_and_info by call to
3169 record_minimal_symbol.
3170 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
3171 around default_symfile_offsets.
3172 * configure.tgt: Add solib-aix.o to gdb_target_obs for
3173 powerpc-aix targets.
3174 * config/rs6000/nm-rs6000.h: Delete.
3175 * config/powerpc/aix.mh (NAT_FILE): Delete.
3176 (NATDEPFILES): Remove xcoffsolib.o.
3177 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
3178 (ALL_TARGET_OBS): Add solib-aix.o.
3179 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
3180 config/rs6000/nm-rs6000.h. Add solib-aix.h.
3181 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
3182 * xcoffsolib.h, xcoffsolib.c: Delete.
3184 * solib.c (reload_shared_libraries): Remove reference to
3185 SOLIB_CREATE_INFERIOR_HOOK.
3186 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
3187 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
3188 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
3190 * corelow.c (deprecated_core_resize_section_table): Delete.
3191 * exec.c: Remove include of xcoffsolib.h".
3192 (map_vmap, vmap): Delete.
3193 (exec_close_1): Remove references to vmap.
3194 (exec_file_attach): Remove vmap handling code, and reference
3195 to DEPRECATED_IBM6000_TARGET.
3196 (bfdsec_to_vmap): Delete.
3197 (exec_files_info): Remove block of code handling VMAP.
3198 * infcmd.c (post_create_inferior): Remove reference to
3199 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
3200 * infrun.c (follow_exec): Remove reference to
3201 SOLIB_CREATE_INFERIOR_HOOK.
3202 * stack.c (print_frame): Remove reference to PC_SOLIB.
3203 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
3204 (dsbt_relocate_main_executable): Likewise.
3205 * solib-frv.c (frv_current_sos): Likewise.
3207 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3209 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
3210 to target_write_memory and target_read_memory.
3212 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3214 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
3215 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
3217 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3219 * darwin-nat.c: Replace all "%x" instances in format strings
3220 into "0x%x" throughout.
3222 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3224 * darwin-nat.c (darwin_mourn_inferior): Replace call to
3225 gdb_assert by call to MACH_CHECK_ERROR.
3226 (darwin_attach_pid): Raise an error rather than a failed
3227 assertion when various system calls failed. Report a warning
3228 instead of raising a failed assertion when PREV_NOT is not NULL
3229 after call to mach_port_request_notification.
3230 (darwin_ptrace_me): Raise an error rather than a failed
3231 assertion when read returns nonzero.
3233 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3235 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
3237 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3239 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
3241 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3243 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
3244 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
3245 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
3246 a stale cleanup. Fix double free of NAME.
3248 2013-05-04 Eli Zaretskii <eliz@gnu.org>
3250 * windows-nat.c (windows_delete_thread): Accept an additional
3251 argument, the thread's exit code, and announce thread death when
3252 print_thread_events is non-zero and we are deleting a thread that
3253 is not the main thread.
3254 (get_windows_debug_event): Pass thread exit code to
3255 windows_delete_thread.
3257 2013-05-03 Kevin Buettner <kevinb@redhat.com>
3259 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
3260 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
3261 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
3262 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
3263 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
3264 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
3265 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
3266 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
3267 (gdbarch_tdep): New struct.
3268 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
3270 (v850e3v5_register_name): New function.
3271 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
3272 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
3273 code handling the struct return conventions for the RH850 ABI.
3275 (v850_eight_byte_align_p): New function.
3276 (v850_push_call_dummy): Push structs by value, not by reference
3277 for the RH850 ABI. Add support for eight byte alignment.
3278 (v850_dbtrap_breakpoint_from_pc): New function.
3279 (v850_gdbarch_init): Add ABI detection code. Register
3280 v850e3v5_register_name for the v850e3v5 architecture. Set the
3281 number of registers for v850e3v5. Register
3282 v850_dbtrap_breakpoint_from_pc as appropriate.
3283 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
3285 2013-05-03 Doug Evans <dje@google.com>
3287 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
3288 of bfd_count_sections.
3289 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
3290 * symfile.c (default_symfile_offsets): Ditto.
3291 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
3292 one entry, not bfd_count_sections entries.
3294 2013-05-03 Kevin Buettner <kevinb@redhat.com>
3296 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
3297 `save' and `restore' register groups. Don't include SPL
3298 or SPH in these groups.
3299 (rl78_dwarf_reg_to_regnum): Adjust mapping for
3300 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
3301 RL78_ES_REGNUM, and RL78_CS_REGNUM.
3302 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
3303 dwarf2_append_unwinders().
3305 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3307 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
3308 ignore SIGINT and SIGTRAP in case these internal signals are
3311 2013-05-01 Joel Brobecker <brobecker@adacore.com>
3313 * darwin-nat.c (darwin_read_write_inferior): Change types
3314 of parameters rdaddr and wraddr to "gdb_byte *". Change type
3315 of copy_count to "mach_msg_type_number_t".
3316 (darwin_read_dyld_info): Change type of parameter
3317 rdaddr to "gdb_byte *".
3319 2013-05-01 Joel Brobecker <brobecker@adacore.com>
3321 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
3322 of &info->load_map from "char *" to "gdb_byte *".
3324 2013-05-01 Joel Brobecker <brobecker@adacore.com>
3326 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
3327 from "char *" to "gdb_byte *".
3328 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
3330 2013-04-30 Doug Evans <dje@google.com>
3332 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
3333 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
3334 DWO stub. If DWO isn't found, just use stub.
3335 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
3337 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
3338 calling init_cutu_and_read_dies.
3340 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
3342 * target-descriptions.c (maint_print_c_tdesc_cmd):
3343 Add case to parse structures as register types and
3346 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
3348 * MAINTAINERS (Write After Approval): Add myself to the list.
3350 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3352 * sol-thread.c (rw_common): Change type of parameter "buf"
3354 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
3355 rw_common to "gdb_byte *" instead of "char *".
3357 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3359 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
3360 of local variable msym to const struct bound_minimal_symbol.
3361 Adjust use accordingly.
3362 [ti.ti_state == TD_THR_SLEEP]: Likewise.
3364 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
3366 * i386gnu-nat.c (CREG_OFFSET): New macro.
3367 (creg_offset): New array.
3368 (CREG_ADDR): Use creg_offset instead of reg_offset.
3370 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3372 * mep-tdep.c (mep_write_pc): Delete.
3373 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
3374 Add call to set_gdbarch_pc_regnum.
3376 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3378 * common/filestuff.c: Replace #include <dirent.h> by
3379 #include "gdb_dirent.h".
3381 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3383 * common/filestuff.c: Replace #include <sys/stat.h> by
3384 #include "gdb_stat.h".
3386 2013-04-29 Pierre Muller <muller@sourceware.org>
3388 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
3389 editCase function rule.
3390 (get_DW_AT_signature_type): Likewise.
3392 2013-04-29 Joel Brobecker <brobecker@adacore.com>
3394 * m32r-tdep.c (m32r_write_pc): Delete.
3395 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
3396 Add call to set_gdbarch_pc_regnum.
3398 2013-04-29 Pierre Muller <muller@sourceware.org>
3400 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
3402 2013-04-29 Joel Brobecker <brobecker@adacore.com>
3404 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
3406 2013-04-28 Yao Qi <yao@codesourcery.com>
3408 * solib-dsbt.c (fetch_loadmap): Re-indent.
3409 (displacement_from_map, enable_break2): Likewise.
3410 (dsbt_relocate_section_addresses): Likewise.
3412 2013-04-26 Joel Brobecker <brobecker@adacore.com>
3416 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
3419 * dwarf2read.c (process_full_comp_unit): Always create a static
3422 2013-04-25 Hui Zhu <hui@codesourcery.com>
3424 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
3425 to loc->cmd_bytecode.
3427 2013-04-24 Doug Evans <dje@google.com>
3429 * dwarf2read.c (setup_type_unit_groups): Fix comment.
3431 2013-04-22 Keith Seitz <keiths@redhat.com>
3433 * tracepoint.c (trace_save): Call the writer's start method.
3435 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
3438 * cli/cli-decode.c (lookup_command): Show an error if there is no space
3441 2013-04-23 Tom Tromey <tromey@redhat.com>
3443 * common/filestuff.c: Check USE_WIN32API before including
3445 (HAVE_F_GETFD): New define.
3446 (mark_cloexec): Check HAVE_F_GETFD.
3447 (gdb_open_cloexec): Change 'mode' to unsigned long.
3448 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
3449 (gdb_pipe_cloexec): Check HAVE_PIPE.
3450 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
3453 2013-04-23 Hui Zhu <hui@codesourcery.com>
3456 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
3458 2013-04-23 Hui Zhu <hui@codesourcery.com>
3461 * breakpoint.c (dprintf_print_recreate): New.
3462 (save_breakpoints): Let it not save dprintf commands.
3463 (initialize_breakpoint_ops): Set dprintf_print_recreate.
3465 2013-04-22 Tom Tromey <tromey@redhat.com>
3468 * Makefile.in (SFILES): Add filestuff.c
3469 (COMMON_OBS): Add filestuff.o.
3470 (filestuff.o): New target.
3471 * auto-load.c (auto_load_objfile_script_1): Use
3473 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
3474 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
3475 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
3476 * common/agent.c (gdb_connect_sync_socket): Use
3478 * common/filestuff.c: New file.
3479 * common/filestuff.h: New file.
3480 * common/linux-osdata.c (linux_common_core_of_thread)
3481 (command_from_pid, commandline_from_pid, print_source_lines)
3482 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3483 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
3485 * common/linux-procfs.c (linux_proc_get_int)
3486 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
3487 * config.in, configure: Rebuild.
3488 * configure.ac: Don't check for sys/socket.h. Check for
3490 * corelow.c (core_open): Use gdb_open_cloexec.
3491 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
3492 * fork-child.c (fork_inferior): Call close_most_fds.
3493 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
3494 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
3495 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
3496 Use gdb_fopen_cloexec.
3497 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
3499 (linux_async_pipe): Use gdb_pipe_cloexec.
3500 * remote-fileio.c (remote_fileio_func_open): Use
3502 * remote.c (remote_file_put, remote_file_get): Use
3504 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
3506 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
3507 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
3508 * solib.c (solib_find): Use gdb_open_cloexec.
3509 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
3510 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
3511 (tfile_open): Use gdb_open_cloexec.
3512 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
3513 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
3514 * xml-support.c (xml_fetch_content_from_file): Use
3516 * main.c (captured_main): Call notice_open_fds.
3518 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
3520 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
3521 'char *' to 'gdb_byte *'.
3522 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
3525 2013-04-22 Yao Qi <yao@codesourcery.com>
3527 * infrun.c: Fix typo in comment.
3529 2013-04-22 Andrew Haley <aph@redhat.com>
3531 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
3534 2013-04-20 Yao Qi <yao@codesourcery.com>
3536 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
3537 'char *' to 'gdb_byte *'. Cast the return value of
3538 'bt_ctf_get_char_array' to 'gdb_byte *'.
3540 2013-04-19 Pedro Alves <palves@redhat.com>
3542 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
3544 * configure: Regenerate.
3546 2013-04-19 Pedro Alves <palves@redhat.com>
3548 * ser-tcp.c (net_read_prim): Cast second argument to recv to
3551 2013-04-19 Pedro Alves <palves@redhat.com>
3553 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
3554 Change type of 'myaddr' parameter to gdb_byte pointer.
3555 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
3556 to 'long long' pointer instead of to 'unsigned long long'.
3557 (monitor_write_memory_block, monitor_read_memory_single)
3558 (monitor_read_memory): Change type of 'myaddr' parameter to
3561 2013-04-19 Pedro Alves <palves@redhat.com>
3563 * record.c (validate_history_size): Make parameter 'setting'
3566 2013-04-19 Pedro Alves <palves@redhat.com>
3568 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
3571 2013-04-19 Pedro Alves <palves@redhat.com>
3573 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
3576 2013-04-19 Pedro Alves <palves@redhat.com>
3578 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
3579 * ada-tasks.c (read_fat_string_value): Likewise.
3581 2013-04-19 Pedro Alves <palves@redhat.com>
3583 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
3584 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
3585 'offset', and adjust.
3587 2013-04-19 Pedro Alves <palves@redhat.com>
3589 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
3590 (read_index_from_section): Add cast to 'char *'.
3592 2013-04-19 Pedro Alves <palves@redhat.com>
3594 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
3596 2013-04-19 Pedro Alves <palves@redhat.com>
3598 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
3600 2013-04-19 Pedro Alves <palves@redhat.com>
3602 * record-full.c (record_full_get_bookmark): Change local 'ret'
3603 type to char * and add cast to gdb_byte *.
3604 (record_full_goto_bookmark): Handle 'bookmark' argument as a
3606 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
3608 2013-04-19 Pedro Alves <palves@redhat.com>
3610 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
3611 * python/py-prettyprint.c (print_string_repr): Change type of
3612 'output' local to char *. Add cast to gdb_byte * in
3613 LA_PRINT_STRING call.
3614 (print_children): Change type of 'output' local to char *.
3615 * python/py-value.c (valpy_string): Add cast to const char * in
3616 PyUnicode_Decode call.
3618 2013-04-19 Pedro Alves <palves@redhat.com>
3620 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
3621 and change its type to 'const char *'. Adjust.
3622 (mips_send_packet): Add cast to 'char *', and remove cast to
3624 (mips_receive_packet): Remove cast to 'unsigned char *'.
3625 (mips_load_srec): Use bfd_byte.
3626 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
3627 (pmon_checkset): Make 'value' parameter unsigned.
3629 2013-04-19 Pedro Alves <palves@redhat.com>
3631 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
3633 2013-04-19 Pedro Alves <palves@redhat.com>
3635 * remote.c (remote_write_bytes_aux, compare_sections_command)
3637 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
3638 (remote_hostio_readlink, remote_bfd_iovec_pread)
3639 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
3640 binary buffer, and char when buffer is used as string.
3641 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
3642 (trace_save, tfile_open, traceframe_walk_blocks)
3643 (tfile_fetch_registers): Likewise.
3645 2013-04-19 Pedro Alves <palves@redhat.com>
3647 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
3648 buffer and size_t size. Adjust.
3649 * ser-base.h (ser_base_write): Adjust.
3650 * ser-go32.c (cnts): Change type to size_t.
3651 (dos_write): Change prototype -- take 'void *'
3652 buffer and size_t size. Adjust.
3653 (dos_info): Print elements of 'cnts' as unsigned long.
3654 * serial.c (serial_write): Likewise.
3655 * serial.h (serial_write): Adjust.
3656 (struct serial_ops) <write>: Change prototype -- take 'void *'
3657 buffer and size_t size. Adjust.
3659 2013-04-19 Pedro Alves <palves@redhat.com>
3661 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
3663 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
3665 2013-04-19 Pedro Alves <palves@redhat.com>
3667 * alpha-tdep.c (alpha_extract_return_value): Use
3668 regcache_cooked_read_unsigned to read 'v0'.
3670 2013-04-19 Pedro Alves <palves@redhat.com>
3672 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
3673 parameters 'at', 'as' and 'offset' to uint32_t.
3675 2013-04-19 Pedro Alves <palves@redhat.com>
3677 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
3678 'is64' to signed 'int'.
3680 2013-04-19 Pedro Alves <palves@redhat.com>
3682 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
3685 2013-04-19 Pedro Alves <palves@redhat.com>
3687 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
3688 'insnbuf' buffer type to unsigned int[].
3690 2013-04-19 Pedro Alves <palves@redhat.com>
3692 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
3694 2013-04-19 Pedro Alves <palves@redhat.com>
3696 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
3699 2013-04-19 Pedro Alves <palves@redhat.com>
3701 * alpha-tdep.c (heuristic_fence_post): Change type to int.
3702 (alpha_heuristic_proc_start): Adjust to check -1 instead of
3704 * mips-tdep.c (heuristic_fence_post): Change type to int.
3705 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
3707 2013-04-19 Pedro Alves <palves@redhat.com>
3709 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
3710 (struct gdbarch_tdep) <cris_version>: Make unsigned.
3711 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
3713 2013-04-19 Pedro Alves <palves@redhat.com>
3715 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
3716 it to get a string view of the byte buffer.
3717 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
3718 type to gdb_byte *. Adjust.
3719 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
3720 Change local to char *.
3721 * solib-darwin.c (find_program_interpreter): Change return type to
3723 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
3724 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
3725 * solib-frv.c (enable_break2): Change local 'buf' to char *.
3726 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
3727 * solib-svr4.c (find_program_interpreter): Change return type to
3729 (enable_break): Change local 'interp_name' to char *.
3730 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
3731 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
3732 (spu_pseudo_register_write_spu): Use char for string buffer.
3734 (info_spu_event_command, info_spu_signal_command): Add casts to
3737 2013-04-19 Pedro Alves <palves@redhat.com>
3739 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
3741 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
3742 * ada-lang.c (ada_value_assign): Use gdb_byte.
3743 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
3744 (alphanbsd_sigtramp_offset): Use gdb_byte.
3745 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
3746 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
3747 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
3748 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
3749 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
3750 * arm-tdep.c (arm_stub_unwind_sniffer)
3751 (arm_displaced_init_closure): Use gdb_byte.
3752 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
3753 (arm_default_thumb_le_breakpoint)
3754 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
3755 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
3756 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
3757 * arm-wince-tdep.c (arm_wince_le_breakpoint)
3758 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
3759 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
3760 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
3761 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
3762 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
3763 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
3764 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
3765 (cris_store_return_value, cris_extract_return_value): Use
3767 (constraint): Change type of parameter to char * from signed
3768 char*. Use gdb_byte.
3769 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
3770 of local buffer to gdb_byte *.
3771 * dwarf2read.c (read_index_from_section): Use gdb_byte.
3772 (create_dwp_hash_table): Change type of locals to gdb_byte *.
3773 (add_address_entry): Change type of local buffer to gdb_byte[].
3774 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
3775 (frv_push_dummy_call): Use gdb_byte.
3776 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
3777 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
3778 (hppa_hpux_supply_save_state): Use gdb_byte.
3779 * hppa-tdep.c (hppa32_push_dummy_call)
3780 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
3781 * ia64-tdep.c (extract_bit_field, replace_bit_field)
3782 (slotN_contents, replace_slotN_contents): Change type of parameter
3784 (fetch_instruction, ia64_pseudo_register_write)
3785 (ia64_register_to_value, ia64_value_to_register)
3786 (ia64_extract_return_value, ia64_store_return_value)
3787 (ia64_push_dummy_call): Use gdb_byte.
3788 * m32c-tdep.c (m32c_return_value): Remove cast.
3789 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
3790 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
3792 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
3793 * mn10300-tdep.c (mn10300_store_return_value)
3794 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
3796 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
3797 (moxie_process_record): Remove casts.
3798 * ppc-ravenscar-thread.c (supply_register_at_address)
3799 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
3800 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
3801 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
3802 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
3803 * remote.c (compare_sections_command): Use gdb_byte.
3804 * score-tdep.c (score7_free_memblock): Change type of parameter to
3806 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
3807 gdb_byte *. Use gdb_byte.
3808 (sh_push_dummy_call_fpu): Use gdb_byte.
3809 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
3810 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
3811 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
3812 Change parameter type to 'gdb_byte *'. Use gdb_byte.
3813 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
3814 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
3815 (sh64_store_return_value, sh64_register_convert_to_virtual):
3816 Change parameter type to 'gdb_byte *'. Use gdb_byte.
3817 (sh64_pseudo_register_write): Use gdb_byte.
3818 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
3819 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
3821 (irix_current_sos): Use gdb_byte.
3822 * solib-som.c (som_current_sos): Use gdb_byte.
3823 * sparc-ravenscar-thread.c (supply_register_at_address)
3824 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
3825 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
3826 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
3827 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
3829 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
3831 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
3832 * xstormy16-tdep.c (xstormy16_extract_return_value)
3833 (xstormy16_store_return_value): Change parameter type to
3834 'gdb_byte *'. Adjust.
3835 (xstormy16_push_dummy_call): Use gdb_byte.
3836 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
3837 (call0_analyze_prologue, execute_code): Use gdb_byte.
3839 2013-04-19 Vladimir Kargov <kargov@gmail.com>
3840 Pedro Alves <palves@redhat.com>
3842 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
3845 2013-04-17 Doug Evans <dje@google.com>
3847 * dwarf2read.c (struct signatured_type): New member type.
3848 (struct attribute): Replace member signatured_type with signature.
3849 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
3850 (read_call_site_scope): Call follow_die_ref instead of
3851 follow_die_ref_or_sig.
3852 (read_structure_type): Rewrite handling of signatured types.
3853 (read_enumeration_type): Ditto.
3854 (read_attribute_value): Update.
3855 (build_error_marker_type): New function.
3856 (lookup_die_type): Add assert. Rewrite handling of signatured types.
3857 Don't call error for bad types, just build an error marker type.
3858 (dump_die_shallow): Update.
3859 (follow_die_sig_1): Renamed from follow_die_sig.
3860 Don't call error for bad types, instead return NULL.
3861 (follow_die_sig): New function.
3862 (get_signatured_type, get_DW_AT_signature_type): New functions.
3864 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
3866 * aarch64-tdep.c (aarch64_write_pc): Removed.
3867 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
3870 2013-04-17 Yao Qi <yao@codesourcery.com>
3872 * top.c (print_gdb_configuration): Print configure-time
3873 parameter on using libbabeltrace or not.
3875 2013-04-16 Pedro Alves <palves@redhat.com>
3877 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
3879 2013-04-16 Pedro Alves <palves@redhat.com>
3881 * common/glibc_thread_db.h: Update from upstream glibc
3882 (git 568035b7874a099087b77f7bba3e36a1173787b0).
3884 2013-04-16 Pedro Alves <palves@redhat.com>
3886 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
3887 * common/glibc_thread_db.h: ... this new file ...
3888 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
3890 2013-04-16 Will Newton <will.newton@gmail.com>
3891 Pedro Alves <palves@redhat.com>
3895 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
3896 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
3899 2013-04-16 Pedro Alves <palves@redhat.com>
3900 Eli Zaretskii <eliz@gnu.org>
3902 * NEWS: Mention "set foo unlimited".
3904 2013-04-15 Doug Evans <dje@google.com>
3906 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
3907 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
3908 (create_dwo_cu_reader): Renamed from
3909 create_dwo_debug_info_hash_table_reader.
3910 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
3911 Remove support for multiple CUs in a DWO file.
3912 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
3914 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
3916 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
3917 (create_dwo_in_dwp): Ditto.
3919 2013-04-15 Tom Tromey <tromey@redhat.com>
3921 * NEWS: Move recent entries into "since 7.6" section.
3923 2013-04-15 Tom Tromey <tromey@redhat.com>
3927 * break-catch-throw.c (struct exception_catchpoint)
3928 <exception_rx, pattern>: New fields.
3929 (fetch_probe_arguments, dtor_exception_catchpoint)
3930 (check_status_exception_catchpoint)
3931 (print_one_detail_exception_catchpoint): New functions.
3932 (handle_gnu_v3_exceptions): Add "except_rx" argument.
3933 Compile regular expression if needed.
3934 (extract_exception_regexp): New function.
3935 (catch_exception_command_1): Use extract_exception_regexp.
3936 (compute_exception): Use fetch_probe_arguments.
3937 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
3938 and check_status fields.
3939 * cp-abi.c (cplus_typename_from_type_info): New function.
3940 * cp-abi.h (cplus_typename_from_type_info): Declare.
3941 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
3942 * gdb_regex.h (compile_rx_or_error): Declare.
3943 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
3945 (init_gnuv3_ops): Set get_type_from_type_info field.
3946 * probe.c (compile_rx_or_error): Move...
3947 * utils.c (compile_rx_or_error): ... here.
3949 2013-04-15 Tom Tromey <tromey@redhat.com>
3953 * break-catch-throw.c (compute_exception): New function.
3954 (exception_funcs): New global.
3955 (_initialize_break_catch_throw): Create $_exception.
3956 * cp-abi.c (cplus_type_from_type_info): New function.
3957 * cp-abi.h (cplus_type_from_type_info): Declare.
3958 (struct cp_abi_ops) <get_type_from_type_info>: New field.
3959 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
3960 (gnuv3_get_type_from_type_info): New functions.
3961 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
3963 2013-04-15 Tom Tromey <tromey@redhat.com>
3965 * break-catch-throw.c (struct exception_names): New.
3966 (exception_functions): Change type.
3967 (re_set_exception_catchpoint): Look for SDT probes.
3969 2013-04-15 Tom Tromey <tromey@redhat.com>
3972 * break-catch-throw.c (exception_functions): New global.
3973 (gnu_v3_exception_catchpoint_ops): Move earlier.
3974 (struct exception_catchpoint): New.
3975 (classify_exception_breakpoint): Rewrite.
3976 (re_set_exception_catchpoint): New function.
3977 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
3978 Allocate a struct exception_catchpoint.
3979 (catch_exception_command_1): Update.
3980 (initialize_throw_catchpoint_ops): Set 're_set' method.
3982 2013-04-15 Tom Tromey <tromey@redhat.com>
3984 * Makefile.in (SFILES): Add break-catch-throw.c
3985 (COMMON_OBS): Add break-catch-throw.o.
3986 * break-catch-throw.c: New file.
3987 * breakpoint.c: Move exception-catching code to new file.
3988 (ep_parse_optional_if_clause): No longer static.
3989 * breakpoint.h (ep_parse_optional_if_clause): Declare.
3991 2013-04-15 Tom Tromey <tromey@redhat.com>
3995 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
3996 * c-exp.y (TYPEID): New token.
3997 (exp): Add new TYPEID productions.
3998 (ident_tokens): Add "typeid".
3999 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
4000 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
4001 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
4002 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
4003 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
4005 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
4006 (build_std_type_info_type, gnuv3_get_typeid_type)
4007 (gnuv3_get_typeid): New functions.
4008 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
4009 new fields on ABI object.
4010 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
4011 * std-operator.def (OP_TYPEID): New.
4013 2013-04-15 Tom Tromey <tromey@redhat.com>
4015 * elfread.c (elf_symtab_read): Install versioned symbol under
4016 unversioned name as well.
4018 2013-04-15 Tom Tromey <tromey@redhat.com>
4021 * c-lang.c (cplus_language_defn): Use gdb_demangle.
4022 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
4023 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
4024 (gdb_demangle): New function.
4025 * cp-support.h (gdb_demangle): Declare.
4026 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
4027 (dwarf2_name): Use gdb_demangle.
4028 * gdbtypes.c (check_stub_method): Use gdb_demangle.
4029 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
4031 (gnuv3_print_method_ptr): Use gdb_demangle.
4032 * jv-lang.c (java_demangle): Use gdb_demangle.
4033 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
4034 * language.c (unk_lang_demangle): Use gdb_demangle.
4035 * symtab.c (symbol_find_demangled_name)
4036 (demangle_for_lookup): Use gdb_demangle.
4038 2013-04-15 Tom Tromey <tromey@redhat.com>
4042 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
4044 (classify_exception_breakpoint): New function.
4045 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4046 (print_mention_exception_catchpoint)
4047 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
4048 (catch_exception_command_1): Handle "rethrow" catchpoint.
4049 (catch_rethrow_command): New function.
4050 (_initialize_breakpoint): Add "catch rethrow" command.
4052 2013-04-15 Pierre Muller <muller@sourceware.org>
4054 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
4055 set_gdbarch_write_pc as deprecated anymore.
4057 2013-04-15 Joel Brobecker <brobecker@adacore.com>
4059 * spu-tdep.c (spu_write_pc): Add empty line after local variable
4062 2013-04-13 Yao Qi <yao@codesourcery.com>
4064 * ctf.c (_initialize_ctf): Include "completer.h".
4065 Call add_target_with_completer instead of add_target.
4067 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4069 Fix GDB regression related to PR binutils/14813.
4070 * jit.c (mem_bfd_iovec_close): Return 0 for success.
4071 * minidebug.c (lzma_close): Add return value comment.
4072 * remote.c (remote_bfd_iovec_close): Return 0 for success.
4073 * solib-spu.c (spu_bfd_iovec_close): Likewise.
4074 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
4076 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4078 * config.in: Regenerate.
4080 2013-04-12 Tom Tromey <tromey@redhat.com>
4082 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
4084 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
4085 (struct die_reader_specs) <buffer>: Likewise.
4086 (die_reader_func_ftype): Make 'info_ptr' const.
4087 (struct line_header) <include_dirs, statement_program_start,
4088 statement_program_end>: Now const.
4089 (struct file_entry) <name>: Likewise.
4090 (struct partial_die_info) <sibling>: Likewise.
4091 (struct dwarf_block) <data>: Likewise.
4092 (dwarf2_read_section): Remove cast.
4093 (dwarf2_get_section_info): Make 'bufp' const.
4094 (read_index_from_section): Constify.
4095 (dw2_get_file_names_reader): Make 'info_ptr' const.
4096 (dw2_get_primary_filename_reader): Likewise.
4097 (read_comp_unit_head): Make 'info_ptr' and return type const.
4098 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
4100 (read_abbrev_offset): Constify.
4101 (dwarf2_create_include_psymtab): Make 'name' const.
4102 (create_debug_types_hash_table): Update.
4103 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
4104 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
4106 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
4107 (load_partial_comp_unit_reader): Make 'info_ptr' const.
4108 (read_comp_units_from_section): Constify.
4109 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
4110 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
4112 (dwarf2_compute_name, setup_type_unit_groups): Constify.
4113 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
4114 (create_dwp_hash_table, dwarf2_ranges_read)
4115 (dwarf2_record_block_ranges): Constify.
4116 (read_die_and_children, read_die_and_siblings_1)
4117 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
4119 (read_full_die_1, read_full_die): Make 'info_ptr' const.
4120 (abbrev_table_read_table): Constify.
4121 (load_partial_dies): Make 'info_ptr' const.
4122 (read_partial_die, read_attribute_value, read_attribute): Make
4123 'info_ptr' and return type const.
4124 (read_address, read_initial_length)
4125 (read_checked_initial_length_and_offset, read_offset)
4126 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
4128 (read_direct_string): Make 'buf' and return type const.
4129 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
4130 (read_indirect_string): Make return type const.
4131 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
4132 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
4134 (read_str_index): Make return type const.
4135 (add_include_dir): Make 'include_dir' const.
4136 (add_file_name): Make 'name' const.
4137 (dwarf_decode_line_header): Constify.
4138 (psymtab_include_file_name): Make return type const.
4139 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
4140 (dwarf2_start_subfile): Make 'filename' const.
4141 (dwarf2_const_value_attr): Make 'bytes' const.
4142 (read_signatured_type_reader): Make 'info_ptr' const.
4143 (decode_locdesc): Constify.
4144 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
4146 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
4147 'mac_end', and return type const.
4148 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
4149 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
4151 (per_cu_header_read_in): Constify.
4152 * symfile.h (dwarf2_get_section_info): Update.
4154 2013-04-12 Tom Tromey <tromey@redhat.com>
4156 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
4158 2013-04-12 Eli Zaretskii <eliz@gnu.org>
4160 * NEWS: Mention "show configuration", --configuration.
4161 * top.c (print_gdb_configuration): New function, displays the
4162 details about GDB configure-time parameters.
4163 (print_gdb_version): Mention "show configuration".
4164 * cli/cli-cmds.c (show_configuration): New function.
4165 (_initialize_cli_cmds): Add the "show configuration" command.
4166 * main.c (captured_main) <print_configuration>: New static var.
4167 <long_options>: Use it.
4168 If --configuration was given, call print_gdb_configuration.
4170 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4171 Pedro Alves <palves@redhat.com>
4173 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
4174 (generated_files): Add gcore.
4175 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
4176 HAVE_NATIVE_GCORE_HOST.
4178 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
4179 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
4180 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
4181 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
4182 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
4183 Add HAVE_NATIVE_GCORE_HOST.
4184 * configure: Regenerate.
4185 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
4186 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
4187 AC_CONFIG_FILES for gcore.
4188 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
4190 * gdb_gcore.sh: Rename to ...
4191 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
4192 and GCORE_TRANSFORM_NAME substitutions.
4194 Fix parsing tabs in ${gdb_target_obs}.
4195 * configure.tgt (gdb_have_gcore): Replace case with for and if.
4197 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4199 * remote.c (unpush_and_perror): Add output message final dot.
4201 2013-04-11 Yao Qi <yao@codesourcery.com>
4203 * tracepoint.c (tfile_interp_line): Fit parameters line and
4206 2013-04-10 Joel Brobecker <brobecker@adacore.com>
4208 * solib.c (solib_map_sections): Remove code overwriting
4209 SO->SO_NAME with the bfd's filename.
4211 2013-04-10 Pedro Alves <palves@redhat.com>
4213 * cli/cli-decode.c (integer_unlimited_completer): New function.
4214 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
4215 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
4217 * cli/cli-setshow.c: Include "cli/cli-utils.h".
4218 (is_unlimited_literal): New function.
4219 (do_set_command): Handle literal "unlimited" arguments.
4220 * frame.c (_initialize_frame) <set backtrace limit>: Document
4222 * printcmd.c (_initialize_printcmd) <set print
4223 max-symbolic-offset>: Add help text.
4224 * record-full.c (_initialize_record_full) <set record full
4225 insn-number-max>: Likewise.
4226 * record.c (_initialize_record) <set record
4227 instruction-history-size, set record function-call-history-size>:
4229 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
4231 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
4233 * source.c (_initialize_source) <set listsize>: Add help text.
4234 * utils.c (initialize_utils) <set height, set width>: Likewise.
4235 <set pagination>: Mention "set height unlimited".
4236 * valprint.c (_initialize_valprint) <set print elements, set print
4237 repeats>: Document "unlimited".
4239 2013-04-10 Pedro Alves <palves@redhat.com>
4241 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
4242 instead of disconnect_tracing.
4243 * infcmd.c (detach_command, disconnect_command): Call
4244 query_if_trace_running. Adjust.
4245 * top.c: Include "tracepoint.h".
4246 (quit_target): Delete. Contents moved ...
4247 (quit_force): ... here. Wrap each stage of teardown in
4248 TRY_CATCH. Call disconnect_tracing before detaching.
4250 2013-04-10 Hui Zhu <hui@codesourcery.com>
4251 Yao Qi <yao@codesourcery.com>
4253 * configure.ac: Check libbabeltrace is installed.
4254 * config.in: Regenerate.
4255 * configure: Regenerate.
4256 * Makefile.in (LIBBABELTRACE): New.
4257 (CLIBS): Add LIBBABELTRACE.
4258 * ctf.c: Include "exec.h".
4259 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
4260 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
4261 (ctf_save_metadata_header): Define new type aliases in
4263 (ctf_write_header): Define event type "tsv_def" and "tp_def"
4264 in metadata. Start a new faked packet for trace status.
4265 (ctf_write_status): Write trace status to CTF.
4266 (ctf_write_uploaded_tsv): Write TSV to CTF.
4267 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
4268 (ctf_write_definition_end): End the faked packet.
4270 (ctx, ctf_iter, trace_dirname): New.
4271 (start_pos): New variable.
4272 (ctf_destroy, ctf_open_dir, ctf_open): New.
4273 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
4275 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
4276 (ctf_fetch_registers, ctf_xfer_partial): New.
4277 (ctf_get_trace_state_variable_value): New.
4278 (ctf_get_tpnum_from_frame_event): New.
4279 (ctf_get_traceframe_address): New.
4280 (ctf_trace_find, ctf_has_stack): New.
4281 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
4282 (ctf_get_trace_status, ctf_read_status): New.
4283 (_initialize_ctf): New.
4284 * tracepoint.c (get_tracepoint_number): New
4285 (get_uploaded_tsv): Remove 'static'.
4286 (struct traceframe_info, trace_regblock_size): Move it to ...
4287 * tracepoint.h: ... here.
4288 (get_tracepoint_number): Declare it.
4289 (get_uploaded_tsv): Declare it.
4291 * NEWS: Mention new configure option.
4293 2013-04-10 Pedro Alves <palves@redhat.com>
4294 Hui Zhu <hui@codesourcery.com>
4296 * breakpoint.c (dprintf_re_set): New.
4297 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
4300 2013-04-09 Joel Brobecker <brobecker@adacore.com>
4302 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
4303 Remove solib-svr4.o from the list.
4305 2013-04-09 Joel Brobecker <brobecker@adacore.com>
4307 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
4308 Use gdb_assert_not_reached instead of invalid boolean expression.
4310 2013-04-09 Pedro Alves <palves@redhat.com>
4312 * remote.c (unpush_and_perror): New function.
4313 (readchar, remote_serial_write): Use it.
4315 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
4317 * NEWS: Mention new btrace RSP packets.
4319 2013-04-08 Tom Tromey <tromey@redhat.com>
4321 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
4324 2013-04-08 Tom Tromey <tromey@redhat.com>
4326 * maint.c (print_bfd_section_info): Print the section index.
4327 * symmisc.c (dump_msymbols): Print the section index.
4329 2013-04-08 Tom Tromey <tromey@redhat.com>
4332 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
4333 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
4334 * breakpoint.c (resolve_sal_pc): Update.
4335 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4336 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
4337 (minsym_lookup_iterator_cb): Use it.
4338 (default_read_var_value): Update.
4339 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
4341 * infcmd.c (jump_command): Update.
4342 * linespec.c (minsym_found): Update.
4343 * maint.c (maintenance_translate_address): Update.
4344 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
4345 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
4346 * parse.c (write_exp_msymbol): Update.
4347 * printcmd.c (address_info): Update.
4348 * psymtab.c (find_pc_sect_psymbol): Update.
4349 (fixup_psymbol_section): Check SYMBOL_SECTION, not
4351 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
4352 Don't initialize SYMBOL_OBJ_SECTION.
4353 * spu-tdep.c (spu_catch_start): Update.
4354 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
4355 * symmisc.c (dump_msymbols, print_symbol): Update.
4356 * symtab.c (fixup_section): Don't set 'obj_section'. Change
4357 how fallback section is computed.
4358 (fixup_symbol_section): Update.
4359 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
4361 (allocate_symbol, initialize_symbol, allocate_template_symbol):
4362 Initialize SYMBOL_SECTION.
4363 * symtab.h (struct general_symbol_info) <section>: Update comment.
4364 <obj_section>: Remove.
4365 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
4366 (SYMBOL_OBJFILE): New macro.
4368 2013-04-08 Tom Tromey <tromey@redhat.com>
4370 * coffread.c (record_minimal_symbol): Update.
4371 * dbxread.c (record_minimal_symbol): Update.
4372 * elfread.c (record_minimal_symbol): Update.
4373 * machoread.c (macho_symtab_add_minsym): Update.
4374 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
4376 * minsyms.c (prim_record_minimal_symbol): Update.
4377 (prim_record_minimal_symbol_full): Remove 'bfd_section'
4379 (prim_record_minimal_symbol_and_info): Likewise.
4380 * minsyms.h (prim_record_minimal_symbol_full)
4381 (prim_record_minimal_symbol_and_info): Update.
4382 * symtab.c (allocate_symbol, initialize_symbol)
4383 (allocate_template_symbol): Initialize SYMBOL_SECTION.
4384 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
4387 2013-04-08 Tom Tromey <tromey@redhat.com>
4390 * solib-som.c (som_solib_section_offsets): Use BFD section
4391 indices. Set offsets for all sections.
4392 * somread.c (som_symtab_read): Compute BFD section for
4393 symbol. Use prim_record_minimal_symbol_and_info.
4394 (som_symfile_read): Fix comment.
4395 (struct find_section_offset_arg): New.
4396 (find_section_offset, set_section_index): New functions.
4397 (som_symfile_offsets): Use set_section_index to compute
4400 2013-04-08 Tom Tromey <tromey@redhat.com>
4402 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
4403 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
4404 gdb_bfd_section_index.
4405 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
4407 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
4409 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
4411 * objfiles.c (add_to_objfile_sections_full): New function.
4412 (add_to_objfile_sections): Use it.
4413 (build_section_table): Rewrite.
4414 (objfile_relocate1): Use gdb_bfd_section_index. Update.
4415 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
4416 (struct objfile) <sections>: Update comment.
4417 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
4419 (ALL_OBJSECTIONS): Use it.
4420 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
4421 * solib-frv.c (frv_relocate_main_executable): Update.
4422 * solib-target.c (solib_target_relocate_section_addresses):
4423 Use gdb_bfd_section_index.
4424 * symfile.c (build_section_addr_info_from_section_table):
4425 Use gdb_bfd_section_index.
4426 (build_section_addr_info_from_bfd, place_section): Likewise.
4427 * symtab.c (fixup_section): Update.
4428 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
4430 2013-04-08 Tom Tromey <tromey@redhat.com>
4432 * minsyms.h (struct bound_minimal_symbol): New.
4433 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
4434 Remove objfile argument.
4435 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
4436 Return bound_minimal_symbol.
4437 * minsyms.c (lookup_minimal_symbol_by_pc_1)
4438 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
4439 Return bound_minimal_symbol.
4440 (in_gnu_ifunc_stub): Update.
4441 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
4442 Remove 'objfile_p' argument.
4443 (lookup_solib_trampoline_symbol_by_pc): Update.
4444 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
4445 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
4446 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
4447 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
4448 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
4449 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
4450 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
4451 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
4452 stack.c, symtab.c, tui/tui-disasm.c: Update.
4454 2013-04-08 Tom Tromey <tromey@redhat.com>
4456 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
4457 Use symbol's obstack, not an objfile.
4458 * coffread.c (process_coff_symbol): Update.
4459 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
4460 * jv-lang.c (add_class_symbol): Update.
4461 * mdebugread.c (new_symbol): Update.
4462 * minsyms.c (prim_record_minimal_symbol_full)
4463 (terminate_minimal_symbol_table): Update.
4464 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
4465 * stabsread.c (define_symbol, read_enum_type): Update.
4466 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
4467 Handle Ada specially.
4468 (symbol_set_language): Add 'obstack' argument.
4469 (symbol_set_names): Update.
4470 (symbol_natural_name, symbol_demangled_name): Always use
4472 * symtab.h (struct general_symbol_info)
4473 <language_specific::obstack>: New field.
4474 <ada_mangled>: New field.
4475 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
4476 (symbol_set_language): Update.
4478 2013-04-08 Tom Tromey <tromey@redhat.com>
4480 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
4481 Take an obstack, not an objfile.
4482 (symbol_set_names): Update.
4483 * symtab.h (symbol_set_demangled_name): Update.
4485 2013-04-08 Tom Tromey <tromey@redhat.com>
4487 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
4489 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
4490 (read_func_scope): Call allocate_template_symbol.
4491 (new_symbol_full): Call allocate_symbol.
4492 * jit.c (finalize_symtab): Call allocate_symbol.
4493 * jv-lang.c (add_class_symbol): Call allocate_symbol.
4494 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
4495 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4496 (common_block_end): Call allocate_symbol.
4497 * symtab.c (allocate_symbol, initialize_symbol)
4498 (allocate_template_symbol): New functions.
4499 * symtab.c (allocate_symbol, initialize_symbol)
4500 (allocate_template_symbol): Declare.
4501 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
4503 2013-04-08 Pedro Alves <palves@redhat.com>
4504 Keith Seitz <keiths@redhat.com>
4506 * breakpoint.c (create_breakpoint): Rename
4507 "parse_condition_and_thread" parameter to "parse_arg". Update
4508 describing comment. If !PARSE_ARG, then error out if ARG is not
4509 the empty string after extracting the location.
4510 * breakpoint.h (create_breakpoint): Rename
4511 "parse_condition_and_thread" parameter to "parse_arg".
4513 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
4515 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
4517 2013-04-07 Yao Qi <yao@codesourcery.com>
4519 * remote.c (remote_trace_find): Change type of parameters 'addr1'
4520 and 'addr2' to CORE_ADDR.
4521 * target.c (update_current_target): Update.
4522 * target.h (struct target_ops) <to_trace_find>: Change parameter
4524 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
4525 'addr2' to CORE_ADDR.
4526 (tfile_trace_find): Likewise.
4527 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
4528 Change local variable 'addr' to type CORE_ADDR.
4529 * tracepoint.h (tfind_1): Update declaration.
4531 2013-04-06 Eli Zaretskii <eliz@gnu.org>
4533 * windows-nat.c (windows_get_absolute_argv0): Move from here...
4534 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
4537 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
4539 * main.h (windows_get_absolute_argv0): ...to here.
4541 2013-04-05 Doug Evans <dje@google.com>
4543 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
4544 (read_cutu_die_from_dwo): Add comments.
4545 (read_structure_type): Update comment.
4546 (read_enumeration_type, read_namespace_type): Update comment.
4547 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
4549 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4551 Convert man pages to texinfo, new gdbinit.5 texinfo page.
4552 * Makefile.in (gdb.z): Remove.
4553 (install-only): Remove $(man1dir) and gdb.1 installation.
4556 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4558 Fix compatibility with Linux kernel 3.8.3.
4559 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
4560 to more inner block. Remove parsing of NUMBER from outer block.
4561 Parse NUMBER only if KEYWORD has been identified.
4563 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4565 Fix variable name shadowing.
4566 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
4567 filename to mapsfilename and update its uses.
4569 2013-04-05 Eli Zaretskii <eliz@gnu.org>
4571 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
4572 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
4573 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
4574 details of the problem.
4576 2013-04-04 Pedro Alves <palves@redhat.com>
4577 Hui Zhu <hui@codesourcery.com>
4579 * breakpoint.c (validate_commands_for_breakpoint): If validating a
4580 tracepoint, reset its STEP_COUNT and call validate_actionline.
4582 2013-04-03 Doug Evans <dje@google.com>
4584 * dwarf2read.c (read_die_and_siblings_1): Renamed from
4585 read_die_and_siblings.
4586 (read_die_and_siblings): New function.
4587 (read_cutu_die_from_dwo): Dump die if requested.
4588 (read_die_and_children): Call read_full_die_1 and
4589 read_die_and_siblings_1.
4590 (read_full_die): Dump die if requested.
4592 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
4594 * dwarf2read.c (struct dwo_file): New member comp_dir.
4595 Rename member name to dwo_name. All uses updated.
4596 (hash_dwo_file): Include comp_dir in computation.
4597 (eq_dwo_file): Ditto.
4598 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
4599 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
4601 * psymtab.c (read_psymtabs_with_fullname): Don't call
4602 psymtab_to_fullname if the basenames are different.
4604 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4606 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
4607 New entry about "fullname" presence.
4609 2013-04-03 Pedro Alves <palves@redhat.com>
4611 * NEWS: Mention x86_64/Cygwin as new native configuration.
4613 2013-04-02 Doug Evans <dje@google.com>
4615 * dwarf2read.c (read_structure_type): Fix typo in comment.
4617 2013-04-02 Pedro Alves <palves@redhat.com>
4619 * NEWS: Mention "set/show debug aarch64", "set/show debug
4620 coff-pe-read" and "set/show debug mach-o".
4622 2013-04-02 Pedro Alves <palves@redhat.com>
4624 * NEWS: Mention "set/show remote trace-buffer-size-packet".
4626 2013-04-02 Eli Zaretskii <eliz@gnu.org>
4628 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
4629 gdb_string.h is now in common/.
4631 2013-04-02 Pedro Alves <palves@redhat.com>
4633 * NEWS: Move "set debug notification" and "set trace-buffer-size"
4634 under "New options".
4636 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4640 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
4642 2013-04-02 Pedro Alves <palves@redhat.com>
4646 * remote.c (send_interrupt_sequence): Use remote_serial_write.
4647 (remote_serial_write): New function.
4648 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
4650 2013-04-01 Jiong Wang <jiwang@tilera.com>
4652 * NEWS: Mention TILE-Gx in "New native configurations" and
4653 "New targets" sections.
4655 2013-04-01 Doug Evans <dje@google.com>
4657 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
4658 (process_enumeration_scope): Simplify.
4660 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
4662 (struct signatured_type): ... to here.
4663 (sig_type_ptr): New typedef.
4664 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
4665 out of union 't'. All uses updated.
4666 (dw2_get_file_names_reader): Assert not called for a type unit.
4667 (dw2_get_file_names): Assert not called for a type unit or type
4669 (build_type_psymtabs_reader): Assert called for a type unit.
4670 (build_type_psymtab_dependencies): Assert called for a type unit group.
4672 * dwarf2read.c (free_dwo_file): Add comment.
4673 (dwarf2_per_objfile_free): Unref dwp bfd.
4675 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
4677 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
4678 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
4679 (read_pe_exported_syms): Remove unused 'exportix'.
4680 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
4681 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
4682 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
4684 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
4686 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
4687 (print_it_watchpoint): Remove unused 'bl'.
4688 (say_where): Remove unused 'uiout'.
4689 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
4690 (bkpt_breakpoint_hit): Remove unused 'b'.
4691 (internal_bkpt_print_it): Remove unused 'uiout'.
4692 * buildsym.c (augment_type_symtab): Remove unused 'i'.
4694 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
4696 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
4697 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
4699 2013-03-29 Doug Evans <dje@google.com>
4701 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
4702 Delete arg is_dwp. All callers updated.
4703 (open_dwp_file): New function.
4704 (open_and_init_dwp_file): Call it.
4705 (get_dwp_file): New function.
4706 (lookup_dwo_cutu): Call it.
4708 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
4709 unnecessary, cleanup.
4711 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
4713 * dwarf2read.c (read_cutu_die_from_dwo): New function.
4714 (lookup_dwo_unit): New function.
4715 (init_cutu_and_read_dies): Move DWO handling to new functions.
4717 * dwarf2read.c (struct signatured_type): Tweak comment.
4718 (struct dwo_unit): Tweak comment.
4719 (create_debug_types_hash_table): Tweak comment. Reformat long line.
4720 (create_dwo_debug_info_hash_table): Tweak comment.
4721 (dwarf2_per_cu_offset_and_type): Tweak comment.
4723 * dwarf2read.c (lookup_signatured_type): Remove complaint about
4724 missing .debug_types section.
4726 2013-03-29 Yao Qi <yao@codesourcery.com>
4728 * corelow.c: Include "completer.h".
4729 (_initialize_corelow): Call add_target_with_completer with
4730 argument 'filename_completer'.
4731 * tracepoint.c: Likewise.
4732 * exec.c (_initialize_exec): Likewise.
4733 * target.c (add_target): Rename to ...
4734 (add_target_with_completer): ... this. Call set_cmd_completer
4735 if parameter completer is not NULL.
4737 * target.h: Include "command.h".
4738 (add_target_with_completer): Declare it.
4740 2013-03-28 Joel Brobecker <brobecker@adacore.com>
4742 * coffread.c (is_import_fixup_symbol): New function.
4743 (record_minimal_symbol): Use is_import_fixup_symbol to
4744 detect import fixup symbols, and discard them.
4746 2013-03-28 Doug Evans <dje@google.com>
4748 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
4749 types hash table until we know we need it.
4751 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
4754 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
4755 All callers updated.
4756 (dw2_print_stats): Print #read CUs too.
4757 (dump_die_shallow): Print signatured types better.
4759 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
4760 info_or_types_section to section. All uses updated.
4761 (struct dwo_unit): Ditto.
4763 2013-03-28 Pedro Alves <palves@redhat.com>
4765 * NEWS (New options): New section.
4766 (New options): Mention set/show remote trace-status-packet.
4767 * remote.c (PACKET_qTStatus): New enumeration value.
4768 (remote_get_trace_status): Skip sending qTStatus if the packet is
4769 disabled. Use packet_ok.
4770 (_initialize_remote): Register a configuration command for
4773 2013-03-28 Doug Evans <dje@google.com>
4775 * symfile.c (find_separate_debug_file): Add comment.
4776 (terminate_after_last_dir_separator): Tweak comment.
4778 * dwarf2read.c (create_partial_symtab): Add forward decl.
4779 (create_partial_symtab): Move to be closer to other psymtab functions.
4780 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
4782 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
4783 (compute_symtab_includes): Remove unnecessary forward declaration.
4784 (die_needs_namespace): Add comment marking group of functions for
4785 dwarf2 name computation.
4787 * typeprint.c (_initialize_typeprint): Improve type help text.
4789 * python/python.c (finish_python_initialization): Provide suggestion
4790 for how to tell gdb to find its python files.
4792 2013-03-28 Pedro Alves <palves@redhat.com>
4796 * source.c (_initialize_source): Change back "set listsize" to an
4799 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
4802 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
4804 2013-03-27 Pedro Alves <palves@redhat.com>
4806 * top.c (history_size): Rename to ...
4807 (history_size_setshow_var): ... this. Add comment.
4808 (show_commands): Use readline's 'history_length' instead of
4809 computing the history length by calling history_get in a loop.
4810 (set_history_size_command): Error out for sizes over INT_MAX.
4811 Restore previous history size on invalid size.
4812 (init_history): If HISTSIZE is negative, leave the history size as
4814 (init_main): Adjust.
4816 2013-03-27 Pedro Alves <palves@redhat.com>
4818 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
4819 coff_pe_read" command to "set debug coff-pe-read".
4821 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
4823 * record.c (command_size_to_target_size): Fix size comparison.
4824 Change parameter type from pointer to integer to integer.
4827 2013-03-27 Pierre Muller <muller@sourceware.org>
4829 * windows-nat.c (handle_output_debug_string): Avoid typecast
4830 from integer of different size warning.
4832 2013-03-26 Joel Brobecker <brobecker@adacore.com>
4834 * windows-nat.c (handle_output_debug_string): Add empty line
4835 after local block variable definition.
4837 2013-03-26 Pedro Alves <palves@redhat.com>
4839 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
4840 (net_open): Make 'polls' local unsigned.
4842 2013-03-26 Pedro Alves <palves@redhat.com>
4844 * remote.c (_initialize_remote): Make "set remoteaddresssize"
4845 a zuinteger command instead of uinteger.
4847 2013-03-26 Pedro Alves <palves@redhat.com>
4849 * record-full.c (record_full_insn_num): Make it unsigned.
4850 (record_full_check_insn_num, record_full_message)
4851 (record_full_registers_change, record_full_xfer_partial): Remove
4852 record_full_insn_max_num check (it's always != 0).
4853 (record_full_info, record_full_restore): Use %u as format string.
4854 (): Use %u as format string.
4855 (set_record_full_insn_max_num): Remove record_full_insn_max_num
4856 check (it's always != 0).
4858 2013-03-26 Pedro Alves <palves@redhat.com>
4860 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
4861 and "set dcache size" commands zuinteger instead of uinteger.
4863 2013-03-26 Pedro Alves <palves@redhat.com>
4865 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
4866 command zuinteger instead of uinteger.
4868 2013-03-26 Pedro Alves <palves@redhat.com>
4870 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
4871 zuinteger instead of uinteger.
4873 2013-03-26 Pedro Alves <palves@redhat.com>
4875 * record.c (record_insn_history_size_setshow_var)
4876 (record_call_history_size_setshow_var): New globals.
4877 (command_size_to_target_size): New function.
4878 (cmd_record_insn_history, cmd_record_call_history): Use
4879 command_size_to_target_size instead of cast.
4880 (validate_history_size, set_record_insn_history_size)
4881 (set_record_call_history_size): New functions.
4882 (_initialize_record): Install set_record_insn_history_size and
4883 set_record_call_history_size as "set" hooks of "set record
4884 instruction-history-size" and "set record
4885 function-call-history-size".
4887 2013-03-26 Pedro Alves <palves@redhat.com>
4889 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
4890 use with history_max_entries use. Remove FIXME note.
4892 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
4894 * record-btrace.c (record_btrace_close): Call
4895 record_btrace_auto_disable.
4897 2013-03-25 Joel Brobecker <brobecker@adacore.com>
4899 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
4901 2013-03-25 Doug Evans <dje@google.com>
4903 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
4905 2013-03-25 Tom Tromey <tromey@redhat.com>
4908 * c-exp.y (exp): Add new productions for destructors after '.' and
4910 (write_destructor_name): New function.
4912 2013-03-25 Tom Tromey <tromey@redhat.com>
4915 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
4916 value_struct_elt, not lookup_struct_elt_type.
4917 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4918 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
4919 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
4921 2013-03-25 Yao Qi <yao@codesourcery.com>
4923 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
4924 instead of '_mkdir'.
4926 2013-03-23 Eli Zaretskii <eliz@gnu.org>
4928 * windows-nat.c (windows_get_absolute_argv0): New function.
4929 * windows-nat.h: Add its prototype.
4931 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
4932 Use IS_DIR_SEPARATOR instead of looking for a character inside
4933 SLASH_STRING. Include filenames.h.
4934 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
4935 relocate_gdb_directory works when passed gdb_program_name.
4936 Include windows-nat.h.
4938 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4940 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
4941 * remote.c (trace_error): Remove the special handling of '2'.
4942 (readchar) <SERIAL_EOF>
4943 (readchar) <SERIAL_ERROR>
4944 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
4945 (remote_get_trace_status): Call throw_exception if EX is
4947 * utils.c (perror_with_name): Rename to ...
4948 (throw_perror_with_name): ... here. New parameter errcode, describe it
4949 in the function comment.
4950 (perror_with_name): New function wrapper.
4951 * utils.h (enum errors): New stub declaration.
4952 (throw_perror_with_name): New declaration.
4954 2013-03-22 Pedro Alves <palves@redhat.com>
4955 Yao Qi <yao@codesourcery.com>
4956 Mark Kettenis <kettenis@gnu.org>
4958 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
4959 Don't let the user set the value to UINT_MAX directly.
4960 <var_integer>: Don't let the user set the value to INT_MAX
4963 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4965 * remote.c (remote_unpush_target): New function.
4966 (remote_open_1): Remove two pop_target calls, update one comment, add
4967 comment to target_preopen call. Replace pop_target call by
4968 remote_unpush_target call.
4969 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
4970 pop_target calls by remote_unpush_target calls.
4972 2013-03-22 Pedro Alves <palves@redhat.com>
4974 * linux-nat.c (linux_child_follow_fork): Don't call
4975 linux_enable_event_reporting.
4976 (linux_handle_extended_wait): Don't call
4977 linux_enable_event_reporting.
4979 2013-03-22 Pedro Alves <palves@redhat.com>
4981 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
4982 use it to rewrite the trampoline buffers with type gdb_byte[], and
4983 undefine the macro. Remove char* cast.
4985 2013-03-21 Doug Evans <dje@google.com>
4987 New commands "mt set per-command {space,time,symtab} {on,off}".
4989 * event-top.c: #include "maint.h".
4990 * main.c: #include "maint.h".
4991 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
4992 timeval-utils.h, maint.h, cli/cli-setshow.h.
4993 (per_command_time, per_command_space): New static globals.
4994 (per_command_symtab): New static global.
4995 (per_command_setlist, per_command_showlist): New static globals.
4996 (struct cmd_stats): Move here from utils.c.
4997 (set_per_command_time): Renamed from set_display_time in utils.c
4998 and moved here. All callers updated.
4999 (set_per_command_space): Renamed from set_display_space in utils.c
5000 and moved here. All callers updated.
5001 (count_symtabs_and_blocks): New function.
5002 (report_command_stats): Moved here from utils.c. Add support for
5003 printing symtab stats. Only print data if enabled before command
5005 (make_command_stats_cleanup): Ditto.
5006 (sert_per_command_cmd, show_per_command_cmd): New functions.
5007 (_initialize_maint_cmds): Add new commands
5008 mt set per-command {space,time,symtab} {on,off}.
5009 * maint.h: New file.
5010 * top.c: #include "maint.h".
5011 * utils.c (reset_prompt_for_continue_wait_time): New function.
5012 (get_prompt_for_continue_wait_time): New function.
5013 * utils.h (reset_prompt_for_continue_wait_time): Declare
5014 (get_prompt_for_continue_wait_time): Declare.
5015 (make_command_stats_cleanup): Moved to maint.h.
5016 (set_display_time, set_display_space): Moved to maint.h and renamed
5017 to set_per_command_time, set_per_command_space.
5018 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
5019 parse_binary_operation and made non-static. Don't call error,
5020 just return an error marker. All callers updated.
5021 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
5023 2013-03-21 Tom Tromey <tromey@redhat.com>
5025 * symfile.c (alloc_section_addr_info): Update header. Don't set
5026 'num_sections' field.
5027 (build_section_addr_info_from_section_table): Set 'num_sections'.
5028 (build_section_addr_info_from_bfd): Likewise.
5029 (build_section_addr_info_from_objfile): Remove dead loop
5031 (free_section_addr_info): Unconditionally call xfree.
5032 (relative_addr_info_to_section_offsets, addrs_section_sort)
5033 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
5035 (syms_from_objfile_1): Remove dead 'if' condition. Check
5037 (add_symbol_file_command): Set 'num_sections'.
5038 * symfile-mem.c (symbol_file_add_from_memory): Set
5040 * somread.c (som_symfile_offsets): Remove dead loop condition.
5041 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
5042 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
5044 2013-03-21 Tom Tromey <tromey@redhat.com>
5046 * tracepoint.h (decode_agent_options): Add 'trace_string'
5048 * tracepoint.c (decode_agent_options): Add 'trace_string'
5050 (validate_actionline): Update.
5051 (collect_symbol): Add 'trace_string' argument.
5052 (struct add_local_symbols_data) <trace_string>: New field.
5053 (do_collect_symbol): Update.
5054 (add_local_symbols): Add 'trace_string' argument.
5055 (encode_actions_1): Update.
5056 (trace_dump_actions): Update.
5057 * dwarf2loc.c (access_memory): Update.
5058 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
5059 * ax-general.c (new_agent_expr): Update.
5060 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
5061 (gen_trace_for_return_address): Add argument.
5062 (trace_kludge, trace_string_kludge): Remove.
5063 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
5064 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
5065 (gen_trace_for_var): Add 'trace_string' argument.
5066 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
5067 (gen_printf, agent_eval_command_one): Update.
5069 2013-03-21 Tom Tromey <tromey@redhat.com>
5072 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
5073 Handle FILENAME token.
5075 2013-03-21 Tom Tromey <tromey@redhat.com>
5077 * c-exp.y (YYPRINT): Define.
5078 (c_print_token): New function.
5080 2013-03-21 Tom Tromey <tromey@redhat.com>
5082 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
5084 2013-03-21 Yao Qi <yao@codesourcery.com>
5086 * ctf.c: Include "gdb_stat.h".
5087 [USE_WIN32API]: New macro 'mkdir'.
5088 (ctf_start): Use permission bits macros if they are defined.
5090 2013-03-20 Keith Seitz <keiths@redhat.com>
5092 * breakpoint.h (struct breakpoint): Add comment to
5093 extra_string indicating that this member is mallod'd.
5094 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
5096 2013-03-20 Pedro Alves <palves@redhat.com>
5100 * cli/cli-setshow.c (do_set_command)
5101 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
5102 the result of parsing the command argument. Throw error if the
5103 value is greater than UINT_MAX. Print the invalid value with
5105 <var_integer, var_zinteger>: Use LONGEST for variable holding the
5106 result of parsing the command argument. Throw error if the value
5107 is greater than INT_MAX, not greater or equal. Also throw error
5108 if the value is less than INT_MIN. Print the invalid value with
5110 <var_zuinteger_unlimited>: Throw error if the value is greater
5111 than INT_MAX, not greater or equal.
5112 (do_show_command) <var_integer, var_zinteger,
5113 var_zuinteger_unlimited>: Use %d for printing int, not %u.
5115 2013-03-20 Tom Tromey <tromey@redhat.com>
5117 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
5119 * dwarf2read.c (read_func_scope): Remove old FIXME.
5120 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
5122 * findvar.c (symbol_read_needs_frame, default_read_var_value):
5123 Unconditionally call via computed ops, if possible.
5124 * printcmd.c (address_info): Unconditionally call via computed ops,
5126 * stack.c (read_frame_arg): Unconditionally call via computed ops,
5128 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
5129 * tracepoint.c (scope_info): Unconditionally call via computed ops,
5132 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5133 Tom Tromey <tromey@redhat.com>
5136 * coffread.c (coff_register_index): New global.
5137 (process_coff_symbol, coff_read_enum_type): Set
5138 SYMBOL_ACLASS_INDEX.
5139 (_initialize_coffread): Initialize new global.
5140 * dwarf2loc.c (locexpr_find_frame_base_location)
5141 (dwarf2_block_frame_base_locexpr_funcs)
5142 (loclist_find_frame_base_location)
5143 (dwarf2_block_frame_base_loclist_funcs): New.
5144 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
5145 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
5146 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
5147 (dwarf2_block_frame_base_loclist_funcs): New.
5148 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
5149 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
5151 (read_func_scope): Update.
5152 (fixup_go_packaging, mark_common_block_symbol_computed)
5153 (var_decode_location, new_symbol_full, dwarf2_const_value):
5154 Set SYMBOL_ACLASS_INDEX.
5155 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
5156 (_initialize_dwarf2_read): Initialize new globals.
5157 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
5158 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
5159 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
5161 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
5162 (_initialize_mdebugread): Initialize new globals.
5163 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
5164 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
5165 (stab_register_index, stab_regparm_index): New globals.
5166 (define_symbol, read_enum_type, common_block_end): Set
5167 SYMBOL_ACLASS_INDEX.
5168 (_initialize_stabsread): Initialize new globals.
5169 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
5171 (MAX_SYMBOL_IMPLS): New define.
5172 (register_symbol_computed_impl, register_symbol_block_impl)
5173 (register_symbol_register_impl)
5174 (initialize_ordinary_address_classes): New functions.
5175 (_initialize_symtab): Call initialize_ordinary_address_classes.
5176 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
5177 (struct symbol_impl): New.
5178 (SYMBOL_ACLASS_BITS): New define.
5179 (struct symbol) <aclass, ops>: Remove fields.
5180 <aclass_index>: New field.
5181 (symbol_impls): Declare.
5182 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
5183 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
5184 (register_symbol_computed_impl, register_symbol_block_impl)
5185 (register_symbol_register_impl): Declare.
5186 (struct symbol_computed_ops): Add location_has_loclist.
5187 (struct symbol_block_ops): New.
5188 (SYMBOL_BLOCK_OPS): New.
5189 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
5191 2013-03-20 Tom Tromey <tromey@redhat.com>
5193 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
5194 (print_partial_symbols, recursively_search_psymtabs): Use
5197 2013-03-20 Pierre Muller <muller@sourceware.org>
5199 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
5200 addtion, subtraction, multiplication and division binary operator.
5202 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5205 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
5206 * bsd-kvm.c (bsd_kvm_close): Likewise.
5207 * bsd-uthread.c (bsd_uthread_close): Likewise.
5208 * corelow.c (core_close): Likewise.
5209 (core_close_cleanup): Remove parameter quitting from a caller.
5210 * event-top.c (async_disconnect): Likewise.
5211 * exec.c (exec_close_1): Remove parameter quitting.
5212 * go32-nat.c (go32_close): Likewise.
5213 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
5214 parameter quitting from a caller.
5215 * mips-linux-nat.c (super_close): Remove parameter quitting from the
5217 (mips_linux_close): Remove parameter quitting. Remove parameter
5218 quitting from a caller.
5219 * monitor.c (monitor_close): Remove parameter quitting.
5220 * monitor.h (monitor_close): Likewise.
5221 * record-btrace.c (record_btrace_close): Likewise.
5222 * record-full.c (record_full_close): Likewise.
5223 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
5224 it also from fprintf_unfiltered.
5225 * remote-mips.c (mips_close): Remove parameter quitting.
5226 (mips_detach): Remove parameter quitting from a caller.
5227 * remote-sim.c (gdbsim_close): Remove parameter quitting.
5228 (gdbsim_close): Remove duplicate function comment. Remove parameter
5229 quitting and remove it also from printf_filtered.
5230 * remote.c (remote_close): Remove parameter quitting.
5231 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
5232 * target.c (update_current_target): Remove parameter int from to_close
5234 (push_target, unpush_target, pop_target): Remove parameter quitting from
5236 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
5237 Remove parameter quitting from a caller.
5238 (target_preopen): Remove parameter quitting from a caller.
5239 (target_close): Remove parameter quitting. Remove parameter quitting
5240 from a caller two times. Remove parameter quitting also from
5242 * target.h (struct target_ops): Remove parameter quitting and as int
5243 from fields to_xclose and to_close.
5244 (extern struct target_ops current_target):
5245 (target_close, pop_all_targets): Remove parameter quitting. Update the
5247 (pop_all_targets_above): Remove parameter quitting.
5248 * top.c (quit_target): Remove parameter quitting from a caller.
5249 * tracepoint.c (tfile_close): Remove parameter quitting.
5250 * windows-nat.c (windows_close): Remove parameter quitting.
5252 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
5254 * windows-nat.c (handle_output_debug_string): Replace call
5255 to string_to_core_addr with call to strtoull.
5257 2013-03-20 Yao Qi <yao@codesourcery.com>
5259 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
5260 and write it to CTF metadata.
5262 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
5264 * windows-nat.c (handle_output_debug_string): Change type of n to
5265 SIZE_T to avoid crash on 64 bit systems.
5267 2013-03-17 Eli Zaretskii <eliz@gnu.org>
5269 * python/python-internal.h (HAVE_SNPRINTF)
5270 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
5271 about redefinition of snprintf by pyerrors.h.
5273 2013-03-15 Steve Ellcey <sellcey@mips.com>
5275 * remote-sim.c (sim_command_completer): Make char arguments const.
5277 2013-03-15 Tom Tromey <tromey@redhat.com>
5280 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
5282 2013-03-14 Tom Tromey <tromey@redhat.com>
5284 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
5286 (get_file_crc): Move from symfile.c.
5287 (gdb_bfd_crc): New function.
5288 * gdb_bfd.h (gdb_bfd_crc): Declare.
5289 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
5290 * symfile.c (get_file_crc): Move to gdb_bfd.c.
5291 (separate_debug_file_exists): Use gdb_bfd_crc.
5293 2013-03-14 Tom Tromey <tromey@redhat.com>
5295 * symfile.c (get_debug_link_info): Remove.
5296 (find_separate_debug_file_by_debuglink): Use
5297 bfd_get_debug_link_info.
5299 2013-03-14 Tom Tromey <tromey@redhat.com>
5301 * symtab.c (error_in_psymtab_expansion): New function.
5302 (lookup_symbol_aux_quick)
5303 (basic_lookup_transparent_type_quick): Remove "last resort"
5304 code. Use error_in_psymtab_expansion.
5306 2013-03-14 Doug Evans <dje@google.com>
5307 Jan Kratochvil <jan.kratochvil@redhat.com>
5309 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
5310 any successful compare_filenames_for_search or FILENAME_CMP.
5311 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
5312 * symtab.c (iterate_over_some_symtabs): Likewise.
5314 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5316 * source.c (print_source_lines_base): Make a local copy of
5319 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
5320 Jan Kratochvil <jan.kratochvil@redhat.com>
5322 * source.c (print_source_lines_base): Suppress "file" for TUI.
5324 2013-03-14 Keith Seitz <keiths@redhat.com>
5325 Alan Matsuoka <alanm@redhat.com>
5329 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
5331 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
5334 2013-03-14 Yao Qi <yao@codesourcery.com>
5336 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
5337 status to tfile if trace is stopped by command 'tstop'.
5339 2013-03-14 Yao Qi <yao@codesourcery.com>
5341 * tracepoint.c (tfile_write_status): Write trace notes and user
5342 name into tfile if they are not NULL.
5344 2013-03-14 Hui Zhu <hui@codesourcery.com>
5345 Yao Qi <yao@codesourcery.com>
5347 * Makefile.in (REMOTE_OBS): Add ctf.o.
5348 (SFILES): Add ctf.c.
5349 (HFILES_NO_SRCDIR): Add ctf.h.
5350 * ctf.c, ctf.h: New files.
5351 * tracepoint.c: Include 'ctf.h'.
5352 (collect_pseudocommand): Remove static.
5353 (trace_save_command): Parse option "-ctf".
5354 Produce different trace file writers per option.
5355 Adjust output message.
5356 (trace_save_tfile, trace_save_ctf): New.
5357 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
5358 * mi/mi-main.c: Include 'ctf.h'.
5359 (mi_cmd_trace_save): Handle option '-ctf'. Call either
5360 trace_save_tfile or trace_save_ctf.
5361 * NEWS: Mention these changes.
5363 2013-03-14 Yao Qi <yao@codesourcery.com>
5365 * tracepoint.c (trace_file_writer_xfree): New.
5366 (struct tfile_writer_data): New.
5367 (tfile_dtor, tfile_can_target_save, tfile_start): New.
5368 (tfile_write_header, tfile_write_regblock_type): New.
5369 (tfile_write_status, tfile_write_uploaded_tsv): New.
5370 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
5371 (tfile_write_raw_data, (tfile_end): New.
5372 (tfile_write_ops): New global variable.
5373 (TRACE_WRITE_R_BLOCK): New macro.
5374 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
5375 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
5376 (TRACE_WRITE_V_BLOCK): New macro.
5377 (trace_save): Add extra one parameter WRITER. Make it static.
5378 Use WRITER to writer trace.
5379 (tfile_trace_file_writer_new): New.
5380 (trace_save_command): Caller update.
5381 (trace_save_tfile): Write trace data in TFILE format.
5382 * tracepoint.h (struct trace_frame_write_ops): New.
5383 (struct trace_file_write_ops): New.
5384 (struct trace_file_writer): New.
5385 (trace_save): Remove its declaration.
5386 (trace_save_tfile): Declare it.
5387 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
5388 instead of trace_save.
5390 2013-03-13 Pedro Alves <palves@redhat.com>
5392 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
5394 2013-03-13 Pedro Alves <palves@redhat.com>
5396 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
5398 * demangle.c (current_demangling_style_string): Make it const.
5399 (set_demangling_command): Assert the demangling style is known.
5400 Remove all handling of unknown styles. Set
5401 'current_demangling_style_string' to an element of the
5402 demangling_style_names array.
5403 (set_demangling_style): Delete.
5404 (_initialize_demangler): Set current_demangling_style_string to the
5405 element of the demangling_style_names array that corresponds to
5406 the default demangling style. Remove FIXME note. Don't call
5407 set_demangling_style.
5408 * gdb-demangle.h (set_demangling_style): Remove declaration.
5410 2013-03-13 Pedro Alves <palves@redhat.com>
5412 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
5414 (ada_make_symbol_completion_list): Make "text0" parameter const.
5415 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
5416 * breakpoint.c (condition_completer): Make "text" and "word"
5417 parameters const. Adjust.
5418 (check_tracepoint_command): Adjust to validate_actionline
5420 (catch_syscall_completer): Make "text" and "word" parameters
5422 * cli/cli-cmds.c (show_user): Make "comname" local const.
5423 (valid_command_p): Make "command" parameter const.
5424 (alias_command): Make "alias_prefix" and "command_prefix" locals
5426 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
5427 (add_alias_cmd): Make "name" and "oldname" parameters const.
5428 Adjust. No longer make copy of OLDNAME.
5429 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
5430 (add_setshow_cmd_full, add_setshow_enum_cmd)
5431 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5432 (add_setshow_filename_cmd, add_setshow_string_cmd)
5433 (add_setshow_string_noescape_cmd)
5434 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
5435 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
5436 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
5437 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
5438 Make "name" parameter const.
5439 (help_cmd): Rename "command" parameter to "arg". New const local
5441 (find_cmd): Make "command" parameter const.
5442 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
5443 deprecated_cmd_warning prototype change.
5444 (undef_cmd_error): Make "cmdtype" parameter const.
5445 (lookup_cmd): Make "line" parameter const.
5446 (deprecated_cmd_warning): Change type of "text" parameter to
5447 pointer to const char, from pointer to pointer to char. Adjust.
5448 (lookup_cmd_composition): Make "text" parameter const.
5449 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
5451 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
5453 * cli/cli-script.c (validate_comname): Make "tem" local const.
5454 (define_command): New const local "tem_c". Use it in calls to
5456 (document_command): Make "tem" and "comfull" locals const.
5457 (show_user_1): Make "prefix" and "name" parameters const.
5458 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
5460 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
5461 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
5462 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
5463 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
5464 (complete_on_enum, add_setshow_enum_cmd)
5465 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5466 (add_setshow_filename_cmd, add_setshow_string_cmd)
5467 (add_setshow_string_noescape_cmd)
5468 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
5469 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
5470 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
5471 Change prototypes, constifying strings.
5472 * completer.c (noop_completer, filename_completer): Make "text"
5473 and "prefix" parameters const.
5474 (location_completer, expression_completer)
5475 (complete_line_internal): Make "text" and "prefix" parameters
5477 (command_completer, signal_completer): Make "text" and "prefix"
5479 * completer.h (noop_completer, filename_completer)
5480 (expression_completer, location_completer, command_completer)
5481 (signal_completer): Change prototypes.
5482 * corefile.c (complete_set_gnutarget): Make "text" and "word"
5484 * cp-abi.c (cp_abi_completer): Likewise.
5485 * expression.h (parse_expression_for_completion): Change
5487 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
5489 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
5490 * infrun.c (handle_completer): Make "text" and "word" parameters
5492 * interps.c (interpreter_completer): Make "text" and "word"
5494 * language.h (struct language_defn)
5495 <la_make_symbol_completion_list>: Make "text" and "word"
5497 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
5498 (parse_exp_in_context): Rename to ...
5499 (parse_exp_in_context_1): ... this.
5500 (parse_exp_in_context): Reimplement, with const hack from
5502 (parse_expression_for_completion): Make "string" parameter const.
5503 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
5504 to pointer to const char. Adjust.
5505 (print_command_1): Make "exp" parameter const.
5506 (output_command): Rename to ...
5507 (output_command_const): ... this. Make "exp" parameter const.
5508 (output_command): Reimplement.
5509 (x_command): Adjust.
5510 (display_command): Rename "exp" parameter to "arg". New "exp"
5511 local, const version of "arg".
5512 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
5513 "cmd_name" local const.
5514 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
5516 (cmdpy_completer): Make "text" and "word" parameters const.
5517 (gdbpy_parse_command_name): Make "prefix_text2" local const.
5518 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
5520 * remote.c (_initialize_remote): Make "cmd_name" local const.
5521 * symtab.c (language_search_unquoted_string): Make "text" and "p"
5522 parameters const. Adjust.
5523 (completion_list_add_fields): Make "sym_text", "text" and "word"
5525 (struct add_name_data) <sym_text, text, word>: Make fields const.
5526 (default_make_symbol_completion_list_break_on): Make "text" and
5527 "word" parameters const. Adjust locals.
5528 (default_make_symbol_completion_list)
5529 (make_symbol_completion_list, make_symbol_completion_type)
5530 (make_symbol_completion_list_fn): Make "text" and "word"
5532 (make_file_symbol_completion_list): Make "text", "word" and
5533 "srcfile" parameters const. Adjust locals.
5534 (add_filename_to_list): Make "text" and "word" parameters const.
5535 (struct add_partial_filename_data) <text, word>: Make fields
5537 (make_source_files_completion_list): Make "text" and "word"
5539 * symtab.h (default_make_symbol_completion_list_break_on)
5540 (default_make_symbol_completion_list, make_symbol_completion_list)
5541 (make_symbol_completion_type enum type_code)
5542 (make_symbol_completion_list_fn make_file_symbol_completion_list)
5543 (make_source_files_completion_list): Change prototype.
5544 * top.c (execute_command): Adjust to pass pointer to pointer to
5545 const char to lookup_cmd, and to deprecated_cmd_warning prototype
5547 (set_verbose): Make "cmdname" local const.
5548 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
5550 (validate_actionline): Make "line" parameter a pointer to const
5552 (encode_actions_1): Make "action_exp" local const, and adjust.
5553 (encode_actions): Adjust.
5554 (replace_comma): Delete.
5555 (trace_dump_actions): Make "action_exp" and "next_comma" locals
5556 const, and adjust. Don't frob the action string while splitting
5557 it at commas. Instead, make a copy of each split substring in
5559 (trace_dump_command): Adjust to validate_actionline prototype
5561 * tracepoint.h (decode_agent_options, decode_agent_options)
5562 (encode_actions, validate_actionline): Change prototypes.
5563 * valprint.h (output_command): Delete declaration.
5564 (output_command_const): Declare.
5565 * value.c (function_destroyer): Cast const away in xfree call.
5567 2013-03-13 Pedro Alves <palves@redhat.com>
5569 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
5570 rather than casting 'const char * const *' to 'const char **'.
5571 * ada-lex.l (processInt): Make "trailer" local const. Remove
5572 'const char **' cast.
5573 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
5574 locals, and use those as strtol output pointer, instead than doing
5575 invalid casts to from 'const char **' to 'char **'.
5576 (_initialize_demangle): Remove cast.
5577 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
5578 locals, and use those as strtol output pointer, instead than doing
5579 invalid casts to from 'const char **' to 'char **'.
5580 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
5582 * stap-probe.c (stap_parse_register_operand)
5583 (stap_parse_single_operand): Likewise.
5585 2013-03-13 Yao Qi <yao@codesourcery.com>
5587 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
5588 the last matched 'V' blcok in trace frame.
5590 2013-03-12 Joel Brobecker <brobecker@adacore.com>
5592 * NEWS: Create a new section for the next release branch.
5593 Rename the section of the current branch, now that it has
5596 2013-03-12 Joel Brobecker <brobecker@adacore.com>
5598 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
5599 * version.in: Bump version to 7.6.50.20130312-cvs.
5601 2013-03-12 Keith Seitz <keiths@redhat.com>
5603 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
5604 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
5605 Remove temporary copy of input string.
5606 (mi_execute_command_wrapper): Make "cmd" const.
5607 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
5608 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
5610 (mi_parse): Make "cmd" const.
5612 * mi/mi-parse.h (mi_parse): Make "cmd" const.
5614 2013-03-12 Keith Seitz <keiths@redhat.com>
5616 * ada-lang.c (ada_read_renaming_var_value): Pass const
5617 pointer to expression string to parse_exp_1.
5618 (create_excep_cond_exprs): Likewise.
5619 * ax-gdb.c (agent_eval_command_one): Likewise.
5620 (maint_agent_printf_command): Likewise.
5621 Constify much of the string handling/parsing.
5622 * breakpoint.c (set_breakpoint_condition): Pass const
5623 pointer to expression string to parse_exp_1.
5624 (update_watchpoint): Likewise.
5625 (parse_cmd_to_aexpr): Constify string handling.
5626 Pass const pointer to parse_exp_1.
5627 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
5628 (find_condition_and_thread): Likewise.
5630 (watch_command_1): Make "arg" const.
5631 Constify string handling.
5632 Copy the expression string instead of changing the input
5634 (update_breakpoint_location): Pass const pointer to
5636 * eval.c (parse_and_eval_address): Make "exp" const.
5637 (parse_to_comma_and_eval): Make "expp" const.
5638 (parse_and_eval): Make "exp" const.
5639 * expression.h (parse_expression): Make argument const.
5640 (parse_exp_1): Make first argument const.
5641 * findcmd.c (parse_find_args): Treat "args" as const.
5642 * linespec.c (parse_linespec): Pass const pointer to
5643 linespec_expression_to_pc.
5644 (linespec_expression_to_pc): Make "exp_ptr" const.
5645 * parse.c (parse_exp_1): Make "stringptr" const.
5646 Make a copy of the expression to pass to parse_exp_in_context until
5647 this whole interface can be constified.
5648 (parse_expression): Make "string" const.
5649 * printcmd.c (ui_printf): Treat "arg" as const.
5650 Handle const strings.
5651 * tracepoint.c (validate_actionline): Pass const pointer to
5652 all calls to parse_exp_1.
5653 (encode_actions_1): Likewise.
5654 * value.h (parse_to_comma_and_eval): Make argument const.
5655 (parse_and_eval_address): Likewise.
5656 (parse_and_eval): Likewise.
5657 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
5658 (varobj_set_value): Likewise.
5659 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
5660 constify string handling.
5661 Pass const pointers to parse_and_eval_address and
5662 parse_to_comman_and_eval.
5663 * cli/cli-utils.c (skip_to_space): Rename to ...
5664 (skip_to_space_const): ... this. Handle const strings.
5665 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
5666 skip_to_space_const.
5667 (skip_to_space_const): Declare.
5668 * common/format.c (parse_format_string): Make "arg" const.
5669 Handle const strings.
5670 * common/format.h (parse_format_string): Make "arg" const.
5671 * gdbserver/ax.c (ax_printf): Make "format" const.
5672 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
5673 of the expression string.
5675 2013-03-12 Hui Zhu <hui@codesourcery.com>
5677 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
5679 2013-03-12 Yao Qi <yao@codesourcery.com>
5680 Hui Zhu <hui@codesourcery.com>
5682 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
5683 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
5686 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
5688 * ada-lex.l (rules): Only recognize 'thread' as a
5689 delimiter when followed by numerals, as for c-exp.y.
5690 Use new rewind_to_char function to rewind the input for
5691 expression-delimiting tokens.
5692 (rewind_to_char): New function.
5694 2013-03-11 Pedro Alves <palves@redhat.com>
5695 Jan Kratochvil <jan.kratochvil@redhat.com>
5697 * configure: Regenerate.
5698 * configure.ac (check dynamic export flag): Link python test with
5701 2013-03-11 Doug Evans <dje@google.com>
5702 Keith Seitz <keiths@redhat.com>
5704 * linespec.c (find_linespec_symbols): Call find_function_symbols
5705 first, and then call lookup_prefix_sym/find_method.
5707 2013-03-11 Pedro Alves <palves@redhat.com>
5709 * charset.c (convert_between_encodings): Don't cast between
5710 different pointer to pointer types. Instead, make the 'inp' local
5711 be of the type iconv expects.
5712 (wchar_iterate): Don't cast between different pointer to pointer
5713 types. Instead, use new pointer local of the type iconv expects.
5714 * target.c (target_read_stralloc, target_fileio_read_stralloc):
5715 Add new local of type char pointer, and use it to get a
5716 char/string view of the byte buffer, instead of casting between
5717 pointer to pointer types.
5719 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5721 * remote.c (remote_set_trace_buffer_size): Move != operator
5722 to the start of next line to fix an ARI warning.
5724 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5726 * NEWS: Add record changes.
5728 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5730 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
5731 the instruction history disassembly.
5732 * disasm.c (dump_insns): Omit the pc prefix, if requested.
5733 * disasm.h (DISASSEMBLY_OMIT_PC): New.
5735 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5737 * Makefile.in (SFILES): Add record-btrace.c
5738 (COMMON_OBS): Add record-btrace.o
5739 * record-btrace.c: New.
5740 * objfiles.c: Include btrace.h.
5741 (free_objfile): call btrace_free_objfile.
5743 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5745 * target.c (target_call_history, target_call_history_from,
5746 target_call_history_range): New.
5747 * target.h (target_ops) <to_call_history, to_call_history_from,
5748 to_call_history_range>: New fields.
5749 (target_call_history, target_call_history_from,
5750 target_call_history_range): New declaration.
5751 * record.c (get_call_history_modifiers, cmd_record_call_history,
5752 record_call_history_size): New.
5753 (_initialize_record): Add the "record function-call-history" command.
5754 Add "set/show record function-call-history-size" commands.
5755 * record.h (record_print_flag): New.
5757 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5759 * target.h (target_ops) <to_insn_history, to_insn_history_from,
5760 to_insn_history_range>: New fields.
5761 (target_insn_history): New.
5762 (target_insn_history_from): New.
5763 (target_insn_history_range): New.
5764 * target.c (target_insn_history): New.
5765 (target_insn_history_from): New.
5766 (target_insn_history_range): New.
5767 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
5768 (record_insn_history_size): New.
5769 (get_insn_number): New.
5770 (get_context_size): New.
5772 (get_insn_history_modifiers): New.
5773 (cmd_record_insn_history): New.
5774 (_initialize_record): Add "set/show record instruction-history-size"
5775 command. Add "record instruction-history" command.
5777 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5779 * record.h (record_disconnect): New.
5780 (record_detach): New.
5781 (record_mourn_inferior): New.
5783 * record-full.c (record_disconnect, record_detach,
5784 record_mourn_inferior, record_kill): Move to...
5785 * record.c: ...here.
5788 (record_unpush): New.
5789 (cmd_record_stop): Call record_stop. Replace unpush_target
5790 call with record_unpush call.
5791 (record_disconnect, record_detach): Assert that the target
5792 is of record stratum. Call record_unpush, record_stop, and
5794 (record_mourn_inferior, record_kill): Assert that the target
5795 is of record stratum. Call record_unpush and DEBUG.
5797 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5799 * record-full.h, record-full.c (record_memory_query): Rename
5801 (record_full_memory_query): ...this. Update all users.
5802 (record_arch_list_add_reg): Rename to ...
5803 (record_full_arch_list_add_reg): ...this. Update all users.
5804 (record_arch_list_add_mem): Rename to ...
5805 (record_full_arch_list_add_mem): ...this. Update all users.
5806 (record_arch_list_add_end): Rename to ...
5807 (record_full_arch_list_add_end): ...this. Update all users.
5808 (record_gdb_operation_disable_set): Rename to ...
5809 (record_full_gdb_operation_disable_set): ...this.
5812 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5814 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
5815 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
5816 (RECORD_IS_REPLAY): Renamed to ...
5817 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
5818 (RECORD_FILE_MAGIC): Renamed to ...
5819 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
5820 (record_mem_entry): Renamed to ...
5821 (record_full_mem_entry): ... this. Updated all users.
5822 (record_reg_entry): Renamed to ...
5823 (record_full_reg_entry): ... this. Updated all users.
5824 (record_end_entry): Renamed to ...
5825 (record_full_end_entry): ... this. Updated all users.
5826 (record_type) <record_end, record_reg, record_mem>: Renamed
5828 (record_full_type) <record_full_end, record_full_reg,
5829 record_full_mem>: ... this. Updated all users.
5830 (record_entry): Renamed to ...
5831 (record_full_entry): ... this. Updated all users.
5832 (record_core_buf_entry): Renamed to ...
5833 (record_full_core_buf_entry): ... this. Updated all users.
5834 (record_core_regbuf): Renamed to ...
5835 (record_full_core_regbuf): ... this. Updated all users.
5836 (record_core_start): Renamed to ...
5837 (record_full_core_start): ... this. Updated all users.
5838 (record_core_end): Renamed to ...
5839 (record_full_core_end): ... this. Updated all users.
5840 (record_core_buf_list): Renamed to ...
5841 (record_full_core_buf_list): ... this. Updated all users.
5842 (record_first): Renamed to ...
5843 (record_full_first): ... this. Updated all users.
5844 (record_list): Renamed to ...
5845 (record_full_list): ... this. Updated all users.
5846 (record_arch_list_head): Renamed to ...
5847 (record_full_arch_list_head): ... this. Updated all users.
5848 (record_arch_list_tail): Renamed to ...
5849 (record_full_arch_list_tail): ... this. Updated all users.
5850 (record_stop_at_limit): Renamed to ...
5851 (record_full_stop_at_limit): ... this. Updated all users.
5852 (record_insn_max_num): Renamed to ...
5853 (record_full_insn_max_num): ... this. Updated all users.
5854 (record_insn_num): Renamed to ...
5855 (record_full_insn_num): ... this. Updated all users.
5856 (record_insn_count): Renamed to ...
5857 (record_full_insn_count): ... this. Updated all users.
5858 (record_ops): Renamed to ...
5859 (record_full_ops): ... this. Updated all users.
5860 (record_core_ops): Renamed to ...
5861 (record_full_core_ops): ... this. Updated all users.
5862 (set_record_cmdlist): Renamed to ...
5863 (set_record_full_cmdlist): ... this. Updated all users.
5864 (show_record_cmdlist): Renamed to ...
5865 (show_record_full_cmdlist): ... this. Updated all users.
5866 (record_cmdlist): Renamed to ...
5867 (record_full_cmdlist): ... this. Updated all users.
5868 (record_beneath_to_resume_ops): Renamed to ...
5869 (record_full_beneath_to_resume_ops): ... this. Updated all users.
5870 (record_beneath_to_resume): Renamed to ...
5871 (record_full_beneath_to_resume): ... this. Updated all users.
5872 (record_beneath_to_wait_ops): Renamed to ...
5873 (record_full_beneath_to_wait_ops): ... this. Updated all users.
5874 (record_beneath_to_wait): Renamed to ...
5875 (record_full_beneath_to_wait): ... this. Updated all users.
5876 (record_beneath_to_store_registers_ops): Renamed to ...
5877 (record_full_beneath_to_store_registers_ops): ... this.
5879 (record_beneath_to_store_registers): Renamed to ...
5880 (record_full_beneath_to_store_registers): ... this.
5882 (record_beneath_to_xfer_partial_ops): Renamed to ...
5883 (record_full_beneath_to_xfer_partial_ops): ... this.
5885 (record_beneath_to_xfer_partial): Renamed to ...
5886 (record_full_beneath_to_xfer_partial): ... this.
5888 (record_beneath_to_insert_breakpoint): Renamed to ...
5889 (record_full_beneath_to_insert_breakpoint): ... this.
5891 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
5892 (record_full_beneath_to_stopped_by_watchpoint): ... this.
5894 (record_beneath_to_stopped_data_address): Renamed to ...
5895 (record_full_beneath_to_stopped_data_address): ... this.
5897 (record_beneath_to_async): Renamed to ...
5898 (record_full_beneath_to_async): ... this. Updated all users.
5899 (record_goto_insn): Renamed to ...
5900 (record_full_goto_insn): ... this. Updated all users.
5901 (record_save): Renamed to ...
5902 (record_full_save): ... this. Updated all users.
5903 (record_reg_alloc): Renamed to ...
5904 (record_full_reg_alloc): ... this. Updated all users.
5905 (record_reg_release): Renamed to ...
5906 (record_full_reg_release): ... this. Updated all users.
5907 (record_mem_alloc): Renamed to ...
5908 (record_full_mem_alloc): ... this. Updated all users.
5909 (record_mem_release): Renamed to ...
5910 (record_full_mem_release): ... this. Updated all users.
5911 (record_end_alloc): Renamed to ...
5912 (record_full_end_alloc): ... this. Updated all users.
5913 (record_end_release): Renamed to ...
5914 (record_full_end_release): ... this. Updated all users.
5915 (record_entry_release): Renamed to ...
5916 (record_full_entry_release): ... this. Updated all users.
5917 (record_list_release): Renamed to ...
5918 (record_full_list_release): ... this. Updated all users.
5919 (record_list_release_following): Renamed to ...
5920 (record_full_list_release_following): ... this.
5922 (record_list_release_first): Renamed to ...
5923 (record_full_list_release_first): ... this. Updated all users.
5924 (record_arch_list_add): Renamed to ...
5925 (record_full_arch_list_add): ... this. Updated all users.
5926 (record_get_loc): Renamed to ...
5927 (record_full_get_loc): ... this. Updated all users.
5928 (record_check_insn_num): Renamed to ...
5929 (record_full_check_insn_num): ... this. Updated all users.
5930 (record_arch_list_cleanups): Renamed to ...
5931 (record_full_arch_list_cleanups): ... this. Updated all users.
5932 (record_message): Renamed to ...
5933 (record_full_message): ... this. Updated all users.
5934 (record_message_wrapper): Renamed to ...
5935 (record_full_message_wrapper): ... this. Updated all users.
5936 (record_message_wrapper_safe): Renamed to ...
5937 (record_full_message_wrapper_safe): ... this. Updated all users.
5938 (record_gdb_operation_disable): Renamed to ...
5939 (record_full_gdb_operation_disable): ... this. Updated all users.
5940 (record_hw_watchpoint): Renamed to ...
5941 (record_full_hw_watchpoint): ... this. Updated all users.
5942 (record_exec_insn): Renamed to ...
5943 (record_full_exec_insn): ... this. Updated all users.
5944 (record_restore): Renamed to ...
5945 (record_full_restore): ... this. Updated all users.
5946 (record_async_inferior_event_token): Renamed to ...
5947 (record_full_async_inferior_event_token): ... this.
5949 (record_async_inferior_event_handler): Renamed to ...
5950 (record_full_async_inferior_event_handler): ... this.
5952 (record_core_open_1): Renamed to ...
5953 (record_full_core_open_1): ... this. Updated all users.
5954 (record_open_1): Renamed to ...
5955 (record_full_open_1): ... this. Updated all users.
5956 (record_open): Renamed to ...
5957 (record_full_open): ... this. Updated all users.
5958 (record_close): Renamed to ...
5959 (record_full_close): ... this. Updated all users.
5960 (record_resume_step): Renamed to ...
5961 (record_full_resume_step): ... this. Updated all users.
5962 (record_resumed): Renamed to ...
5963 (record_full_resumed): ... this. Updated all users.
5964 (record_execution_dir): Renamed to ...
5965 (record_full_execution_dir): ... this. Updated all users.
5966 (record_resume): Renamed to ...
5967 (record_full_resume): ... this. Updated all users.
5968 (record_get_sig): Renamed to ...
5969 (record_full_get_sig): ... this. Updated all users.
5970 (record_sig_handler): Renamed to ...
5971 (record_full_sig_handler): ... this. Updated all users.
5972 (record_wait_cleanups): Renamed to ...
5973 (record_full_wait_cleanups): ... this. Updated all users.
5974 (record_wait_1): Renamed to ...
5975 (record_full_wait_1): ... this. Updated all users.
5976 (record_wait): Renamed to ...
5977 (record_full_wait): ... this. Updated all users.
5978 (record_stopped_by_watchpoint): Renamed to ...
5979 (record_full_stopped_by_watchpoint): ... this. Updated all users.
5980 (record_disconnect): Renamed to ...
5981 (record_full_disconnect): ... this. Updated all users.
5982 (record_detach): Renamed to ...
5983 (record_full_detach): ... this. Updated all users.
5984 (record_mourn_inferior): Renamed to ...
5985 (record_full_mourn_inferior): ... this. Updated all users.
5986 (record_kill): Renamed to ...
5987 (record_full_kill): ... this. Updated all users.
5988 (record_stopped_data_address): Renamed to ...
5989 (record_full_stopped_data_address): ... this. Updated all users.
5990 (record_registers_change): Renamed to ...
5991 (record_full_registers_change): ... this. Updated all users.
5992 (record_store_registers): Renamed to ...
5993 (record_full_store_registers): ... this. Updated all users.
5994 (record_xfer_partial): Renamed to ...
5995 (record_full_xfer_partial): ... this. Updated all users.
5996 (record_breakpoint): Renamed to ...
5997 (record_full_breakpoint): ... this. Updated all users.
5998 (record_breakpoint_p): Renamed to ...
5999 (record_full_breakpoint_p): ... this. Updated all users.
6000 (record_breakpoints): Renamed to ...
6001 (record_full_breakpoints): ... this. Updated all users.
6002 (record_sync_record_breakpoints): Renamed to ...
6003 (record_full_sync_record_breakpoints): ... this.
6005 (record_init_record_breakpoints): Renamed to ...
6006 (record_full_init_record_breakpoints): ... this.
6008 (record_insert_breakpoint): Renamed to ...
6009 (record_full_insert_breakpoint): ... this. Updated all users.
6010 (record_remove_breakpoint): Renamed to ...
6011 (record_full_remove_breakpoint): ... this. Updated all users.
6012 (record_can_execute_reverse): Renamed to ...
6013 (record_full_can_execute_reverse): ... this. Updated all users.
6014 (record_get_bookmark): Renamed to ...
6015 (record_full_get_bookmark): ... this. Updated all users.
6016 (record_goto_bookmark): Renamed to ...
6017 (record_full_goto_bookmark): ... this. Updated all users.
6018 (record_async): Renamed to ...
6019 (record_full_async): ... this. Updated all users.
6020 (record_can_async_p): Renamed to ...
6021 (record_full_can_async_p): ... this. Updated all users.
6022 (record_is_async_p): Renamed to ...
6023 (record_full_is_async_p): ... this. Updated all users.
6024 (record_execution_direction): Renamed to ...
6025 (record_full_execution_direction): ... this. Updated all users.
6026 (record_info): Renamed to ...
6027 (record_full_info): ... this. Updated all users.
6028 (record_delete): Renamed to ...
6029 (record_full_delete): ... this. Updated all users.
6030 (record_is_replaying): Renamed to ...
6031 (record_full_is_replaying): ... this. Updated all users.
6032 (record_goto_entry): Renamed to ...
6033 (record_full_goto_entry): ... this. Updated all users.
6034 (record_goto_begin): Renamed to ...
6035 (record_full_goto_begin): ... this. Updated all users.
6036 (record_goto_end): Renamed to ...
6037 (record_full_goto_end): ... this. Updated all users.
6038 (record_goto): Renamed to ...
6039 (record_full_goto): ... this. Updated all users.
6040 (init_record_ops): Renamed to ...
6041 (init_record_full_ops): ... this. Updated all users.
6042 (record_core_resume): Renamed to ...
6043 (record_full_core_resume): ... this. Updated all users.
6044 (record_core_kill): Renamed to ...
6045 (record_full_core_kill): ... this. Updated all users.
6046 (record_core_fetch_registers): Renamed to ...
6047 (record_full_core_fetch_registers): ... this. Updated all users.
6048 (record_core_prepare_to_store): Renamed to ...
6049 (record_full_core_prepare_to_store): ... this. Updated all users.
6050 (record_core_store_registers): Renamed to ...
6051 (record_full_core_store_registers): ... this. Updated all users.
6052 (record_core_xfer_partial): Renamed to ...
6053 (record_full_core_xfer_partial): ... this. Updated all users.
6054 (record_core_insert_breakpoint): Renamed to ...
6055 (record_full_core_insert_breakpoint): ... this. Updated all users.
6056 (record_core_remove_breakpoint): Renamed to ...
6057 (record_full_core_remove_breakpoint): ... this. Updated all users.
6058 (record_core_has_execution): Renamed to ...
6059 (record_full_core_has_execution): ... this. Updated all users.
6060 (init_record_core_ops): Renamed to ...
6061 (init_record_full_core_ops): ... this. Updated all users.
6062 (cmd_record_restore): Renamed to ...
6063 (cmd_record_full_restore): ... this. Updated all users.
6064 (record_save_cleanups): Renamed to ...
6065 (record_full_save_cleanups): ... this. Updated all users.
6066 (cmd_record_start): Renamed to ...
6067 (cmd_record_full_start): ... this. Updated all users.
6068 (set_record_insn_max_num): Renamed to ...
6069 (set_record_full_insn_max_num): ... this. Updated all users.
6070 (set_record_command): Renamed to ...
6071 (set_record_full_command): ... this. Updated all users.
6072 (show_record_command): Renamed to ...
6073 (show_record_full_command): ... this. Updated all users.
6074 (_initialize_record): Renamed to ...
6075 (_initialize_record_full): ... this. Updated all users.
6077 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6079 * record.h: Split into this and ...
6080 * record-full.h: ... this.
6081 * record.c: Split into this and ...
6082 * record-full.c: ... this.
6083 * target.h (target_ops): Add new fields to_info_record,
6084 to_save_record, to_delete_record, to_record_is_replaying,
6085 to_goto_record_begin, to_goto_record_end, to_goto_record.
6086 (target_info_record): New.
6087 (target_save_record): New.
6088 (target_supports_delete_record): New.
6089 (target_delete_record): New.
6090 (target_record_is_replaying): New.
6091 (target_goto_record_begin): New.
6092 (target_goto_record_end): New.
6093 (target_goto_record): New.
6094 * target.c (target_info_record): New.
6095 (target_save_record): New.
6096 (target_supports_delete_record): New.
6097 (target_delete_record): New.
6098 (target_record_is_replaying): New.
6099 (target_goto_record_begin): New.
6100 (target_goto_record_end): New.
6101 (target_goto_record): New.
6102 * record.h: Declare struct cmd_list_element.
6103 (record_cmdlist): New declaration.
6104 (set_record_cmdlist): New declaration.
6105 (show_record_cmdlist): New declaration.
6106 (info_record_cmdlist): New declaration.
6107 (cmd_record_goto): New declaration.
6108 * record.c: Remove unnecessary includes.
6110 (cmd_record_goto): Remove declaration.
6111 (record_cmdlist): Now extern. Initialize.
6112 (set_record_cmdlist): Now extern. Initialize.
6113 (show_record_cmdlist): Now extern. Initialize.
6114 (info_record_cmdlist): Now extern. Initialize.
6115 (find_record_target): New.
6116 (require_record_target): New.
6117 (cmd_record_start): Update.
6118 (cmd_record_delete): Remove target-specific code.
6119 Call target_delete_record.
6120 (cmd_record_stop): Unpush any record target.
6121 (set_record_insn_max_num): Move to record-full.c
6122 (set_record_command): Add comment.
6123 (show_record_command): Add comment.
6124 (info_record_command): Update comment.
6125 Remove target-specific code.
6126 Call the record target's to_info_record.
6127 (cmd_record_start): New.
6128 (cmd_record_goto): Now extern.
6129 Remove target-specific code.
6130 Call target_goto_begin, target_goto_end, or target_goto.
6131 (_initialize_record): Move record target ops initialization to
6133 Change "record" command help text.
6134 Move "record restore", "record set", and "record show" commands to
6136 * Makefile.in (SFILES): Add record-full.c.
6137 (HFILES_NO_SRCDIR): Add record-full.h.
6138 (COMMON_OBS): Add record-full.o.
6139 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
6140 * arm-tdep.c: Include record-full.h.
6141 * i386-linux-tdep.c: Include record-full.h instead of record.h.
6142 * i386-tdep.c: Include record-full.h.
6143 * infrun.c: Include record-full.h.
6144 * linux-record.c: Include record-full.h.
6145 * moxie-tdep.c: Include record-full.h.
6146 * record-full.c: Include record-full.h.
6147 Change module comment.
6148 (set_record_full_cmdlist): New.
6149 (show_record_full_cmdlist): New.
6150 (record_full_cmdlist): New.
6151 (record_goto_insn): New declaration.
6152 (record_save): New declaration.
6153 (record_check_insn_num): Change query string.
6155 (record_delete): New.
6156 (record_is_replaying): New.
6157 (record_goto_entry): New.
6158 (record_goto_begin): New.
6159 (record_goto_end): New.
6161 (init_record_ops): Update.
6162 (init_record_core_ops): Update.
6163 (cmd_record_save): Rename to record_save. Remove target and arg checks.
6164 (cmd_record_start): New.
6165 (set_record_insn_max_num): Moved from record.c
6166 (set_record_full_command): New.
6167 (show_record_full_command): New.
6168 (_initialize_record_full): New.
6170 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6172 * target.h (add_deprecated_target_alias): New.
6173 * target.c (add_deprecated_target_alias): New.
6175 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6177 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
6179 (linux_supports_btrace): Add kernel and
6181 (kernel_supports_btrace): New function.
6182 (cpu_supports_btrace): New function.
6183 (intel_supports_btrace): New function.
6185 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6187 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
6188 * remote.c: Include btrace.h.
6189 (struct btrace_target_info): New struct.
6190 (remote_supports_btrace): New function.
6191 (send_Qbtrace): New function.
6192 (remote_enable_btrace): New function.
6193 (remote_disable_btrace): New function.
6194 (remote_teardown_btrace): New function.
6195 (remote_read_btrace): New function.
6196 (init_remote_ops): Add btrace ops.
6197 (enum <unnamed>): Add btrace packets.
6198 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
6199 (_initialize_remote): Add packet configuration for branch tracing.
6201 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6203 * features/btrace.dtd: New file.
6204 * Makefile.in (XMLFILES): Add btrace.dtd.
6205 * btrace.h (parse_xml_btrace): New declaration.
6206 * btrace.c: Include xml-support.h.
6207 (parse_xml_btrace): New function.
6208 (parse_xml_btrace_block): New function.
6209 (block_attributes): New struct.
6210 (btrace_attributes): New struct.
6211 (btrace_children): New struct.
6212 (btrace_elements): New struct.
6214 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6216 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
6217 (amd64_linux_enable_btrace): New.
6218 (amd64_linux_disable_btrace): New.
6219 (amd64_linux_teardown_btrace): New.
6220 (_initialize_amd64_linux_nat): Initialize btrace ops.
6221 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
6222 (i386_linux_enable_btrace): New.
6223 (i386_linux_disable_btrace): New.
6224 (i386_linux_teardown_btrace): New.
6225 (_initialize_i386_linux_nat): Initialize btrace ops.
6226 * config/i386/linux.mh: Add linux-btrace.o.
6227 * config/i386/linux64.mh: Add linux-btrace.o.
6229 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6231 * common/linux_btrace.h: New file.
6232 * common/linux_btrace.c: New file.
6233 * Makefile.in (SFILES): Add btrace.c.
6234 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
6235 (COMMON_OBS): Add btrace.o.
6236 (linux-btrace.o): New rule.
6238 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6240 * target.h: Include btrace.h.
6241 (struct target_ops) <to_supports_btrace, to_enable_btrace,
6242 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
6243 * target.c (target_supports_btrace): New function.
6244 (target_enable_btrace): New function.
6245 (target_disable_btrace): New function.
6246 (target_teardown_btrace): New function.
6247 (target_read_btrace): New function.
6248 * btrace.h: New file.
6249 * btrace.c: New file.
6250 * Makefile.in: Add btrace.c.
6251 * gdbthread.h: Include btrace.h.
6252 (struct thread_info): Add btrace field.
6253 * thread.c: Include btrace.h.
6254 (clear_thread_inferior_resources): Call target_teardown_btrace.
6255 * common/btrace-common.h: New file.
6257 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6259 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
6260 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
6261 kill_status to outer block.
6263 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6265 Fix entry-values if the callee called a noreturn function.
6266 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6267 get_frame_address_in_block. Add new comment.
6269 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6271 Fix entry-values in C++ across CUs.
6272 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
6273 lookup_minimal_symbol. Add a comment.
6275 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
6278 2013-03-08 Yao Qi <yao@codesourcery.com>
6280 * tracepoint.c (_initialize_tracepoint): Indent the code.
6282 2013-03-08 Pedro Alves <palves@redhat.com>
6284 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
6285 (parse_find_args, find_command): Change type of pattern buffer
6286 locals to 'gdb_byte *'.
6288 2013-03-08 Stan Shebs <stan@codesourcery.com>
6289 Hafiz Abid Qadeer <abidh@codesourcery.com>
6291 * NEWS: Mention set and show trace-buffer-size commands.
6293 * target.h (struct target_ops): New method
6294 to_set_trace_buffer_size.
6295 (target_set_trace_buffer_size): New macro.
6296 * target.c (update_current_target): Set up new method.
6297 * tracepoint.c (trace_buffer_size): New global.
6298 (start_tracing): Send it to the target.
6299 (set_trace_buffer_size): New function.
6300 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
6301 * remote.c (remote_set_trace_buffer_size): New function.
6302 (_initialize_remote): Use it.
6303 (QTBuffer:size) New remote command.
6304 (PACKET_QTBuffer_size): New enum.
6305 (remote_protocol_features): Add an entry for
6306 PACKET_QTBuffer_size.
6308 2013-03-08 Tom Tromey <tromey@redhat.com>
6310 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
6313 2013-03-07 Pedro Alves <palves@redhat.com>
6315 * target.c (target_read_stralloc, target_fileio_read_alloc):
6316 *Cast pointer to 'gdb_byte *' in target call.
6318 2013-03-07 Pedro Alves <palves@redhat.com>
6320 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
6323 2013-03-07 Keith Seitz <keiths@redhat.com>
6325 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
6326 (trace_pass_command): Likewise.
6327 * cli/cli-cmds.c: Include cli/cli-utils.h.
6328 (source_command): Use skip-spaces.
6329 (disassemble_command): Likewise.
6330 * findcmd.c: Include cli/cli-utils.h.
6331 (parse_find_args): Use skip_spaces.
6332 * go32-nat.c: Include cli/cli-utils.h.
6333 (go32_sldt): Use skip_spaces.
6334 (go32_sgdt): Likewise.
6335 (go32_sidt): Likewise.
6336 (go32_pde): Likewise.
6337 (go32_pte): Likewise.
6338 (go32_pte_for_address): Likewise.
6339 * infcmd.c: Include cli/cli-utils.h.
6340 (registers_info): Use skip_spaces.
6341 * linux-tdep.c (read_mapping): Use skip_spaces_const.
6342 (linux_info_proc): Likewise.
6343 * linux-thread-db.c: Include cli/cli-utils.h.
6344 (info_auto_load_libthread_db): Use skip_spaces_const.
6345 * m32r-rom.c: Include cli/cli-utils.h.
6346 (m32r_upload_command): Use skip_spaces.
6347 * maint.c: Include cli/cli-utils.h.
6348 (maintenance_translate_address): Use skip_spaces.
6349 * mi/mi-parse.c: Include cli/cli-utils.h.
6350 (mi_parse_argv): Use skip_spaces.
6351 (mi_parse): Likewise.
6352 * minsyms.c: Include cli/cli-utils.h.
6353 (msymbol_hash_iw): Use skip_spaces_const.
6354 * objc-lang.c: Include cli/cli-utils.h.
6355 (parse_selector): Use skip_spaces.
6356 (parse_method): Likewise.
6357 * python/python.c: Include cli/cli-utils.h.
6358 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
6359 (python_command)[HAVE_PYTHON]: Likewise.
6360 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
6361 * remote-m32r-sdi.c: Include cli/cli-utils.h.
6362 (m32r_load): Use skip_spaces.
6363 * serial.c: Include cli/cli-utils.h.
6364 (serial_open): Use skip_spaces_const.
6365 * stack.c: Include cli/cli-utils.h.
6366 (parse_frame_specification_1): Use skip_spaces_const.
6367 * symfile.c: Include cli/cli-utils.h.
6368 (set_ext_lang_command): Use skip_spaces.
6369 * symtab.c: Include cli/cli-utils.h.
6370 (rbreak_command): Use skip_spaces.
6371 * thread.c (thread_name_command): Use skip_spaces.
6372 * tracepoint.c (validate_actionline): Use skip_spaces.
6373 (encode_actions_1): Likewise.
6374 (trace_find_range_command): Likewise.
6375 (trace_find_outside_command): Likewise.
6376 (trace_dump_actions): Likewise.
6378 2013-03-07 Pedro Alves <palves@redhat.com>
6380 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
6381 * expprint.c (print_subexp_standard): Likewise.
6382 * utils.c (host_char_to_target): Likewise.
6383 * valprint.c (generic_emit_char, generic_printstr): Likewise.
6384 * varobj.c (value_get_print_value): Change type of local to char*.
6385 Cast it gdb_byte * in call to language printer.
6387 2013-03-07 Pedro Alves <palves@redhat.com>
6389 * charset.c (struct wchar_iterator) <input>: Change type to 'const
6391 (make_wchar_iterator): Remove cast to char*.
6392 (wchar_iterate): Change type of local.
6394 2013-03-07 Pedro Alves <palves@redhat.com>
6396 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
6397 for 'regcache->register_status'.
6399 2013-03-07 Pedro Alves <palves@redhat.com>
6401 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
6404 2013-03-07 Pedro Alves <palves@redhat.com>
6406 * stap-probe.c (handle_stap_probe): Add cast to char*.
6408 2013-03-07 Pedro Alves <palves@redhat.com>
6410 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
6411 RECORD_MSGRCV>: Pass a signed variable to
6412 regcache_raw_read_signed, instead of an unsigned one.
6414 2013-03-07 Pedro Alves <palves@redhat.com>
6416 * remote-notif.c (notif_debug): Change type to int.
6417 * remote-notif.h (notif_debug): Likewise.
6419 2013-03-07 Pedro Alves <palves@redhat.com>
6421 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
6423 2013-03-07 Pedro Alves <palves@redhat.com>
6425 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
6426 * remote.h (hex2bin, bin2hex): ... here.
6427 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
6429 2013-03-07 Eli Zaretskii <eliz@gnu.org>
6431 * utils.c (initialize_utils): Improve doc strings of "set/show
6432 width", "set/show height", and "set/show pagination".
6434 2013-03-06 Keith Seitz <keiths@redhat.com>
6436 * ax-gdb.c (gen_printf): Make FORMAT const.
6437 * ax-gdb.h (gen_printf): Likewise.
6438 * ax-general.c (ax_string): Make STR const.
6439 * ax.h (ax_string): Likewise.
6441 2013-03-06 Doug Evans <dje@google.com>
6443 * elfread.c (elf_symfile_read): Move debugging printf to more
6446 2013-03-06 Pedro Alves <palves@redhat.com>
6448 * python/py-utils.c (target_string_to_unicode): Delete function.
6449 * python/python-internal.h (target_string_to_unicode): Delete
6452 2013-03-06 Pierre Muller <muller@sourceware.org>
6454 * linespec.c (get_current_search_block): ARI fix, use (void)
6455 for empty parameter list.
6457 2013-03-05 Doug Evans <dje@google.com>
6459 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
6460 of old ada_lookup_symbol_list. In !full_search case, don't
6462 (ada_lookup_symbol_list): Delete arg full_search, all callers
6463 updated. Call ada_lookup_symbol_list_worker.
6464 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
6465 * ada-lang.h (ada_lookup_symbol_list): Update.
6466 * language.h (language_defn): Update comment for
6467 la_iterate_over_symbols.
6468 * linespec.c (iterate_over_file_blocks): New function.
6469 (iterate_over_all_matching_symtabs): Call it.
6470 (lookup_prefix_sym): Ditto.
6471 (get_current_search_block): New function.
6472 (get_search_block): Delete.
6473 (find_label_symbols): Call get_current_search_block.
6474 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
6475 * symtab.c (iterate_over_symbols): Don't search superblocks.
6477 2013-03-05 Yao Qi <yao@codesourcery.com>
6479 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
6480 parameter VAR's type from "unsigned int" to "int".
6481 * command.h (var_zuinteger_unlimited): Update its comments.
6482 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
6484 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
6486 * NEWS: Mention new target x86_64-*-cygwin*.
6488 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
6490 * configure.host: Add x86_64-*-cygwin* as host.
6491 * configure.tgt: Add x86_64-*-cygwin* as target.
6492 * config/i386/cygwin64.mh: New file.
6494 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6496 * linespec.c (decode_line_2): Fix duplicate request off by two message.
6498 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6500 * linespec.c (struct linespec_canonical_name): New.
6501 (struct linespec_state): Change canonical_names type to it.
6502 (add_sal_to_sals): Change variable canonical_name to canonical. Change
6503 xrealloc element size. Initialize the different CANONICAL fields.
6504 (canonical_to_fullform): New.
6505 (filter_results): Use it. Add variables canonical, fullform and
6507 (struct decode_line_2_item, decode_line_2_compare_items): New.
6508 (decode_line_2): Remove variables iter and item_names, add variables
6509 items and items_count. Modify the code for these new variables.
6511 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
6513 * coff-pe-read.c (read_pe_exported_syms): Don't return without
6516 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
6518 * tracepoint.c (build_traceframe_info): Add code for byte order.
6520 2013-03-02 Kevin Buettner <kevinb@redhat.com>
6522 * v850-tdep.c: (v850e2_register_name): Revise system register
6523 names to match current V850E2M architecture specifications.
6524 Update register number enum comments too.
6526 2013-03-01 Jiong Wang <jiwang@tilera.com>
6527 Pedro Alves <palves@redhat.com>
6529 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
6531 (tilegx_skip_prologue): Limit prologue analysis to section end.
6533 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6535 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
6538 2013-03-01 Pedro Alves <palves@redhat.com>
6540 Use gdb_byte for bytes from the program being debugged.
6542 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
6543 Change type of local 'buf' to gdb_byte.
6544 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
6545 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
6546 * cris-tdep.c (cris_sigcontext_addr)
6547 (cris_sigtramp_frame_unwind_cache): Likewise.
6548 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
6549 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
6551 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
6552 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
6553 (hppa32_hpux_search_dummy_call_sequence)
6554 (hppa_hpux_supply_save_state): Likewise.
6555 * hppa-linux-tdep.c (insns_match_pattern)
6556 (hppa_linux_find_global_pointer): Likewise.
6557 * hppa-tdep.c (hppa_in_function_epilogue_p)
6558 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
6559 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
6560 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
6561 (i386fbsd_collect_uthread): Likewise.
6562 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
6563 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
6564 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
6565 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
6566 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
6567 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
6568 (ia64_libunwind_frame_prev_register)
6569 (ia64_libunwind_sigtramp_frame_this_id)
6570 (ia64_find_global_pointer_from_dynamic_section)
6571 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
6572 (ia64_unwind_pc): Likewise.
6573 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
6574 * m68hc11-tdep.c (m68hc11_push_dummy_call)
6575 (m68hc11_extract_return_value): Likewise.
6576 * m68klinux-nat.c (fetch_register, store_register): Likewise.
6577 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
6578 (mep_get_insn, mep_push_dummy_call): Likewise.
6579 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
6580 (mips_linux_in_dynsym_stub): Likewise.
6581 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
6582 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6583 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
6585 * remote-mips.c (mips_set_register): Likewise.
6586 * remote-sim.c (gdbsim_fetch_register): Likewise.
6587 * score-tdep.c (score7_fetch_inst): Change type of parameter
6588 'memblock' and local 'buf' to gdb_byte.
6589 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
6590 Change type of local 'buf' to gdb_byte. Adjust.
6591 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
6593 (score7_analyze_prologue): Change type of 'memblock' and
6594 'memblock_ptr' locals to gdb_byte*.
6595 * sh64-tdep.c (sh64_extract_return_value)
6596 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
6597 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
6598 * solib-pa64.c (pa64_solib_create_inferior_hook)
6599 (pa64_open_symbol_file_object): Remove local 'buf'.
6600 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
6601 (som_open_symbol_file_object): Likewise.
6602 * solib-spu.c (spu_current_sos): Likewise.
6603 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6604 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
6605 (spu_store_registers): Likewise.
6606 * target.c (debug_print_register): Likewise.
6607 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
6608 * xstormy16-tdep.c (xstormy16_store_return_value)
6609 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
6610 (xstormy16_find_jmp_table_entry): Likewise.
6612 2013-03-01 Jiong Wang <jiwang@tilera.com>
6614 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
6615 (tilegx_gdbarch_init): Install it.
6617 2013-02-28 Tom Tromey <tromey@redhat.com>
6619 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
6622 2013-02-28 Doug Evans <dje@google.com>
6624 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
6625 * python/python.c (gdbpy_find_pc_line): Ditto.
6627 2013-02-28 Tom Tromey <tromey@redhat.com>
6629 * contrib/excheck.py: New file.
6630 * contrib/exsummary.py: New file.
6631 * contrib/gcc-with-excheck: New file.
6633 2013-02-28 Tom Tromey <tromey@redhat.com>
6635 * python/python.c (gdbpy_print_stack): Call begin_line and
6636 fprintf_filtered inside TRY_CATCH.
6638 2013-02-28 Tom Tromey <tromey@redhat.com>
6640 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
6643 2013-02-28 Tom Tromey <tromey@redhat.com>
6645 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
6646 frame_object_to_frame_info inside TRY_CATCH.
6648 2013-02-28 Tom Tromey <tromey@redhat.com>
6650 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
6653 2013-02-28 Tom Tromey <tromey@redhat.com>
6655 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
6657 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
6659 * windows-nat.c: Throughout, fix format strings and casts of
6660 printf-like functions to avoid type related warnings on all
6662 (handle_output_debug_string): Fetch context information address
6663 from debug string using string_to_core_addr.
6665 2013-02-27 Jiong Wang <jiwang@tilera.com>
6667 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
6668 * regformats/reg-tilegx32.dat: New.
6670 2013-02-27 Jiong Wang <jiwang@tilera.com>
6672 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
6674 2013-02-27 Jiong Wang <jiwang@tilera.com>
6676 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
6678 2013-02-27 Yao Qi <yao@codesourcery.com>
6679 Pedro Alves <palves@redhat.com>
6681 * tracepoint.c (tfile_trace_find): For tfind
6682 pc/tp/range/outside, look for the next trace frame instead of
6683 always starting from frame 0.
6685 2013-02-26 Anthony Green <green@moxielogic.com>
6687 * configure.tgt: Add support for moxie-*-rtems* target.
6689 2013-02-25 Pedro Alves <palves@redhat.com>
6691 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
6694 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6696 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
6697 if $fp is used as the virtual frame pointer.
6699 2013-02-23 Alan Modra <amodra@gmail.com>
6701 * elfread.c (elf_symtab_read): Do not use udata.p here to find
6703 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
6704 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
6705 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
6706 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
6708 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6711 * elfread.c (build_id_bfd_get): Make the return type const.
6712 (build_id_verify): Make the check parameter const.
6713 (build_id_to_debug_filename): Make the build_id parameter and variable
6715 (find_separate_debug_file_by_buildid): Make the variable build_id const.
6717 2013-02-21 Alan Modra <amodra@gmail.com>
6719 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
6721 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
6723 Add a new method 'disassemble' to gdb.Architecture class.
6724 * python/py-arch.c (archpy_disassmble): Implementation of the
6725 new method gdb.Architecture.disassemble.
6726 (arch_object_methods): Add entry for the new method.
6728 2013-02-20 Jiong Wang <jiwang@tilera.com>
6730 * MAINTAINERS (Write After Approval): Add myself to the list.
6732 2013-02-19 Pedro Alves <palves@redhat.com>
6734 Garbage collect 'struct monitor_ops'::load_routine.
6736 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
6737 * monitor.c (monitor_load): No longer call
6738 current_monitor->load_routine.
6739 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
6740 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
6741 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
6743 2013-02-19 Pedro Alves <palves@redhat.com>
6747 Harmonize with generic_load.
6749 * monitor.c: Include "readline/readline.h".
6750 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
6751 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
6752 long/strtol for the 'load_offset' local. Error out if no argument
6753 is given or if too many arguments are given. Tilde expand the
6754 passed in file name.
6756 2013-02-19 Kai Tietz <ktietz@redhat.com>
6759 * symfile.c (load_section_data): Change type of load_offset
6761 (generic_load): User strtoulst instead of strtoul for conversion
6764 2013-02-19 Jiong Wang <jiwang@tilera.com>
6766 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
6767 for return address, "lr" register, saved on stack.
6768 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
6769 after we invoke tilegx_analyze_prologue.
6771 2013-02-19 Jiong Wang <jiwang@tilera.com>
6773 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
6775 2013-02-19 Jiong Wang <jiwang@tilera.com>
6777 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
6779 2013-02-19 Jiong Wang <jiwang@tilera.com>
6781 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
6782 (tilegx_write_pc): New function.
6783 (tilegx_cannot_reference_register): Return zero if REGNO
6784 is TILEGX_FAULTNUM_REGNUM.
6785 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
6786 (tilegx_register_name): Add handling of "faultnum" register.
6787 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
6788 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
6789 handling of TILEGX_FAULTNUM_REGNUM.
6790 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
6792 2013-02-19 Jiong Wang <jiwang@tilera.com>
6794 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
6795 should be aligned to 64bit.
6797 2013-02-19 Kai Tietz <ktietz@redhat.com>
6799 * windows-nat.c (windows_xfer_memory): Fix debug-output
6802 2013-02-19 Lei Liu <lei.liu2@windriver.com>
6804 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
6805 Don't check DSP register number if HAVE_DSP is not set.
6807 2013-02-19 Alan Modra <amodra@gmail.com>
6809 * elfread.c (struct build_id): Delete. Use struct elf_build_id
6810 throughout file instead.
6811 (build_id_bfd_get): Update to use new elf_tdata build_id field.
6812 Don't xmalloc return value.
6813 (build_id_verify): Similarly. Don't xfree.
6814 (build_id_to_debug_filename): Update.
6815 (find_separate_debug_file_by_buildid): Update, don't xfree.
6817 2013-02-18 Tom Tromey <tromey@redhat.com>
6820 * dwarf2read.c (read_subrange_type): Use result of
6823 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
6825 * frame.c: Remove one extra white space after #include
6828 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6830 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
6832 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6834 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
6835 and dir commands into an if block.
6837 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
6839 * python/py-breakpoint (struct pybp_code): Use int instead of
6842 2013-02-15 Pedro Alves <pedro@codesourcery.com>
6843 Hafiz Abid Qadeer <abidh@codesourcery.com>
6845 * NEWS: Mention new field "trace-file".
6846 * tracepoint.c (trace_status_mi): Output "trace-file" field.
6847 (tfile_open): Record the trace file's filename in the trace
6849 (tfile_files_info): Mention the name of the trace file.
6850 Check the "filename" field explicitely.
6851 (trace_status_command): Explicitely check "filename" field.
6852 (trace_find_command): Ditto.
6853 (trace_find_pc_command): Ditto.
6854 (trace_find_tracepoint_command): Ditto.
6855 (trace_find_line_command): Ditto.
6856 (trace_find_range_command): Ditto.
6857 (trace_find_outside_command): Ditto.
6858 * tracepoint.h (struct trace_status) <from_file>: Rename it
6859 to "filename" and make it hold the trace file's filename
6860 instead of a boolean.
6861 * remote.c (remote_get_trace_status): Initialize "filename"
6862 field with NULL instead of 0.
6864 2013-02-15 Yao Qi <yao@codesourcery.com>
6866 * remote.c: Fix a typo.
6868 2013-02-14 Pierre Muller <muller@sourceware.org>
6870 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
6872 2013-02-14 Pedro Alves <palves@redhat.com>
6874 * utils.c (savestring): Don't #undef it. Move function to
6875 common/common-utils.c.
6876 * common/common-utils.c: Include gdb_string.h.
6877 (savestring): Move here from utils.c.
6878 * common/common-utils.h (savestring): Declare.
6880 2013-02-14 Pedro Alves <palves@redhat.com>
6882 * utils.c (savestring): Rename parameter 'size' to 'len'.
6884 2013-02-14 Pedro Alves <palves@redhat.com>
6885 Yufeng Zhang <yufeng.zhang@arm.com>
6887 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
6888 (aarch64_inferior_data, struct aarch64_inferior_data):
6890 (struct aarch64_process_info): New.
6891 (aarch64_process_list): New global.
6892 (aarch64_find_process_pid, aarch64_add_process)
6893 (aarch64_process_info_get): New functions.
6894 (aarch64_inferior_data_get): Delete.
6895 (aarch64_process_info_get): New function.
6896 (aarch64_forget_process): New function.
6897 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
6898 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
6899 aarch64_get_debug_reg_state.
6900 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
6901 instead of linux_nat_iterate_watchpoint_lwps.
6902 (aarch64_linux_new_fork): New function.
6903 (aarch64_linux_child_post_startup_inferior): Use
6904 aarch64_forget_process instead of aarch64_init_debug_reg_state.
6905 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
6906 (aarch64_linux_remove_hw_breakpoint)
6907 (aarch64_handle_aligned_watchpoint)
6908 (aarch64_handle_unaligned_watchpoint)
6909 (aarch64_linux_insert_watchpoint)
6910 (aarch64_linux_remove_watchpoint)
6911 (aarch64_linux_stopped_data_address): Adjust to pass the current
6912 process id to aarch64_debug_reg_state.
6913 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
6914 linux_nat_new_fork hook, and aarch64_forget_process as
6915 linux_nat_forget_process hook; remove the call to
6916 register_inferior_data_with_cleanup.
6918 2013-02-14 Pedro Alves <palves@redhat.com>
6920 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
6921 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
6924 2013-02-14 Pedro Alves <pedro@codesourcery.com>
6925 Hafiz Abid Qadeer <abidh@codesourcery.com>
6927 * tracepoint.h (validate_trace_state_variable_name): Declare.
6928 * tracepoint.c (validate_trace_state_variable_name): New.
6929 (trace_variable_command): Parse the trace state variable's name
6930 without using parse_expression. Do several validations.
6931 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
6932 trace state variable's name with parse_expression. Validate it.
6934 2013-02-14 Yao Qi <yao@codesourcery.com>
6936 * infcmd.c (breakpoint_proceeded): Remove it.
6938 2013-02-14 Yao Qi <yao@codesourcery.com>
6940 * tracepoint.c (end_actions_pseudocommand): Make it static.
6941 (while_stepping_pseudocommand): Likewise.
6942 * tracepoint.h (end_actions_pseudocommand): Remove the
6944 (while_stepping_pseudocommand): Likewise.
6946 2013-02-14 Yao Qi <yao@codesourcery.com>
6948 * cli/cli-decode.c (help_cmd): Remove the declaration of
6950 (help_all): Likewise.
6952 2013-02-13 Pedro Alves <palves@redhat.com>
6954 * amd64-linux-nat.c (update_debug_registers_callback):
6956 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6958 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
6959 i386_debug_reg_state.
6960 (amd64_linux_new_fork): New function.
6961 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
6962 linux_nat_new_fork hook, and i386_forget_process as
6963 linux_nat_forget_process hook.
6964 * i386-linux-nat.c (update_debug_registers_callback):
6966 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6968 (i386_linux_prepare_to_resume): Pass the lwp's pid to
6969 i386_debug_reg_state.
6970 (i386_linux_new_fork): New function.
6971 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
6972 linux_nat_new_fork hook, and i386_forget_process as
6973 linux_nat_forget_process hook.
6974 * i386-nat.c (i386_init_dregs): Delete.
6975 (i386_inferior_data, struct i386_inferior_data):
6977 (struct i386_process_info): New.
6978 (i386_process_list): New global.
6979 (i386_find_process_pid, i386_add_process, i386_process_info_get):
6981 (i386_inferior_data_get): Delete.
6982 (i386_process_info_get): New function.
6983 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
6984 (i386_forget_process): New function.
6985 (i386_cleanup_dregs): Rewrite.
6986 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
6987 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
6988 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6989 (i386_remove_hw_breakpoint): Adjust to pass the current process id
6990 to i386_debug_reg_state.
6991 (i386_use_watchpoints): Don't register inferior data.
6992 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
6994 (i386_forget_process): Declare.
6995 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
6996 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
6998 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
6999 (add_initial_lwp): New, factored out from ...
7000 (add_lwp): ... this. Don't check the number of lwps before
7001 calling linux_nat_new_thread.
7002 (linux_nat_iterate_watchpoint_lwps): Delete.
7003 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
7004 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
7006 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
7008 (linux_nat_kill, linux_nat_mourn_inferior): Call
7009 linux_nat_forget_process.
7010 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7011 (linux_nat_forget_process): New functions.
7012 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
7014 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
7015 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
7017 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7018 (linux_nat_forget_process): New declarations.
7020 * amd64fbsd-nat.c (super_mourn_inferior): New global.
7021 (amd64fbsd_mourn_inferior): New function.
7022 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
7023 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
7025 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7027 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7030 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7032 * aarch64-linux-nat.c (debug_reg_change_callback)
7033 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
7036 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7038 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
7041 2013-02-13 Pedro Alves <palves@redhat.com>
7042 Hafiz Abid Qadeer <abidh@codesourcery.com>
7044 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
7046 2013-02-12 Tom Tromey <tromey@redhat.com>
7049 * c-exp.y (lex_one_token): Initialize other fields of yylval on
7051 (classify_inner_name): Remove 'first_name' argument, add
7052 'context'. Remove unused variable.
7053 (yylex): Explicitly maintain the context type. Exit loop earlier
7054 if NAME result is seen.
7056 2013-02-12 Pedro Alves <palves@redhat.com>
7058 * amd64-darwin-tdep.c: Add (C) after Copyright.
7059 * cli/cli-cmds.h: Ditto.
7060 * cli/cli-decode.c: Ditto.
7061 * cli/cli-decode.h: Ditto.
7062 * cli/cli-dump.c: Ditto.
7063 * cli/cli-dump.h: Ditto.
7064 * cli/cli-interp.c: Ditto.
7065 * cli/cli-logging.c: Ditto.
7066 * cli/cli-script.c: Ditto.
7067 * cli/cli-script.h: Ditto.
7068 * cli/cli-setshow.c: Ditto.
7069 * cli/cli-setshow.h: Ditto.
7070 * cli/cli-utils.c: Ditto.
7071 * cli/cli-utils.h: Ditto.
7072 * config/alpha/nm-osf3.h: Ditto.
7073 * config/djgpp/djconfig.sh: Ditto.
7074 * config/i386/nm-fbsd.h: Ditto.
7075 * config/i386/nm-i386gnu.h: Ditto.
7076 * config/nm-linux.h: Ditto.
7077 * config/nm-nto.h: Ditto.
7078 * config/rs6000/nm-rs6000.h: Ditto.
7079 * config/sparc/nm-sol2.h: Ditto.
7080 * darwin-nat-info.c: Ditto.
7083 * gdb-demangle.h: Ditto.
7084 * i386-darwin-nat.c: Ditto.
7085 * i386-darwin-tdep.c: Ditto.
7086 * linux-fork.h: Ditto.
7087 * m32c-tdep.c: Ditto.
7088 * microblaze-linux-tdep.c: Ditto.
7089 * microblaze-rom.c: Ditto.
7090 * microblaze-tdep.c: Ditto.
7091 * microblaze-tdep.h: Ditto.
7092 * mips-linux-tdep.h: Ditto.
7093 * ppc-ravenscar-thread.c: Ditto.
7094 * ppc-ravenscar-thread.h: Ditto.
7095 * prologue-value.c: Ditto.
7096 * prologue-value.h: Ditto.
7097 * ravenscar-thread.c: Ditto.
7098 * ravenscar-thread.h: Ditto.
7099 * sparc-ravenscar-thread.c: Ditto.
7100 * sparc-ravenscar-thread.h: Ditto.
7101 * tilegx-linux-tdep.c: Ditto.
7102 * unwind_stop_reasons.def: Ditto.
7103 * windows-nat.h: Ditto.
7104 * xtensa-linux-tdep.c: Ditto.
7105 * xtensa-xtregs.c: Ditto.
7106 * regformats/regdat.sh: Ditto.
7107 * regformats/regdef.h: Ditto.
7109 2013-02-12 Pedro Alves <palves@redhat.com>
7111 * break-catch-sig.c: Update copyright years.
7113 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
7115 Add support for a destructor for ui_out data and use it to
7116 provide a ui_out destructor.
7117 * ui-out.h: Declare the new ui_out destructor.
7118 (ui_out_impl): Add a field for data destructor in ui_out_impl.
7119 * ui-out.c (default_data_destroy): Add a default data destructor
7121 (default_ui_out_impl): Set the new data_destroy field to
7122 default_data_destroy
7123 (uo_data_destroy): Local function which invokes the data
7124 destructor if present.
7125 (clear_table): Local function which clears the table data of a
7127 (ui_out_destroy): Public function which frees a ui_out object.
7128 (ui_out_table_end): Use the new clear_table function.
7129 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
7131 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
7134 2013-02-11 Doug Evans <dje@google.com>
7136 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
7137 (printf_decfloat): New function. Broken out from ui_printf.
7138 Remove unnecessary code to shift the entire format string down.
7139 (printf_pointer): New function.
7140 (ui_printf): Code to print C strings, wide C strings, decfloats,
7141 and pointers moved to separate functions.
7143 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
7145 * valops.c (value_assign): Handling bitfield offset in
7146 `lval_internalvar_component' case.
7148 2013-02-08 Doug Evans <dje@google.com>
7150 * common/format.c (parse_format_string): Fix whitespace.
7152 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7154 * stack.c (return_command): Work around uninitialized variable
7157 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
7159 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
7160 number of the registers from 36 to 34.
7162 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
7164 * NEWS: Mention new AArch64 native and target support.
7166 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
7168 * MAINTAINERS (Write After Approval): Add myself.
7170 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
7171 Marcus Shawcroft <marcus.shawcroft@arm.com>
7172 Nigel Stephens <nigel.stephens@arm.com>
7173 Yufeng Zhang <yufeng.zhang@arm.com>
7175 * aarch64-linux-nat.c: New file.
7176 * config/aarch64/linux.mh: New file.
7177 * configure.host: Add AArch64.
7178 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
7180 2013-02-07 Doug Evans <dje@google.com>
7182 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
7183 disassemble command.
7185 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
7187 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
7188 set_gdbarch_fetch_tls_load_module_address.
7190 2013-02-06 David S. Miller <davem@davemloft.net>
7192 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
7193 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7194 * value.c (struct_return_convention): New function.
7195 (using_struct_return): Implement in terms of struct_return_convention.
7196 * value.h (struct_return_convention): Declare.
7197 * stack.c (return_command): Allow successful overriding of the return
7198 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7200 2013-02-06 Tom Tromey <tromey@redhat.com>
7202 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
7203 outside of TRY_CATCH.
7205 2013-02-06 Yao Qi <yao@codesourcery.com>
7207 * mi/mi-interp.c: Include "tracepoint.h".
7208 (mi_tsv_modified): Declare.
7209 (mi_tsv_created, mi_tsv_deleted): Update declaration.
7210 (mi_interpreter_init): Call observer_attach_tsv_modified.
7211 (mi_tsv_modified): New.
7212 (mi_tsv_created, mi_tsv_deleted): Update.
7213 * tracepoint.c (trace_variable_command): Call
7214 observer_notify_tsv_modified if the initial value of tsv is
7216 (delete_trace_state_variable): Call
7217 observer_notify_tsv_deleted earlier.
7218 (trace_variable_command): Caller update.
7219 (create_tsv_from_upload): Likewise.
7220 * observer.sh: Declare "struct trace_state_variable".
7222 * NEWS: Mention the new MI notification "=tsv-modified".
7224 2013-02-05 Doug Evans <dje@google.com>
7226 * completer.c (location_completer): Fix typo in comment.
7228 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7230 * breakpoint.c (add_location_to_breakpoint): Insert the location with
7233 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7235 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
7236 Refactor if statement to avoid trailing || operator.
7238 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
7240 * NEWS: Add PowerPC FreeBSD as a new native configuration.
7242 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
7244 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
7245 * configure.host: Add powerpc*-*-freebsd* target.
7246 * configure.tgt: Add target info for powerpc*-*-freebsd*.
7247 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
7248 * config/powerpc/fbsd.mh: New file.
7250 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
7251 Denys Vlasenko <dvlasenk@redhat.com>
7252 Pedro Alves <palves@redhat.com>
7254 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
7255 (struct elf_internal_linux_prpsinfo): Forward declare.
7256 * gdbarch.h, gdbarch.c: Regenerate.
7257 * linux-tdep.c: Include `cli/cli-utils.h'.
7258 (linux_fill_prpsinfo): New function.
7259 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
7260 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
7261 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
7262 depending on gdbarch pointer bitness.
7263 * ppc-linux-tdep.c: Include elf-bfd.h.
7264 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
7267 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7268 Marcus Shawcroft <marcus.shawcroft@arm.com>
7269 Nigel Stephens <nigel.stephens@arm.com>
7270 Yufeng Zhang <yufeng.zhang@arm.com>
7272 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
7274 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7275 Marcus Shawcroft <marcus.shawcroft@arm.com>
7276 Nigel Stephens <nigel.stephens@arm.com>
7277 Yufeng Zhang <yufeng.zhang@arm.com>
7279 * aarch64-newlib-tdep.c: New file.
7280 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
7282 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
7283 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
7284 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
7285 * osabi.c (gdb_osabi_names): Add "Newlib".
7287 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7288 Marcus Shawcroft <marcus.shawcroft@arm.com>
7289 Nigel Stephens <nigel.stephens@arm.com>
7290 Yufeng Zhang <yufeng.zhang@arm.com>
7292 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
7293 (ALLDEPFILES): Add aarch64-linux-tdep.c.
7294 * aarch64-linux-tdep.c: New file.
7295 * aarch64-linux-tdep.h: New file.
7296 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
7297 * configure.tgt: Add aarch64-none-linux-gnu.
7299 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7300 Marcus Shawcroft <marcus.shawcroft@arm.com>
7301 Nigel Stephens <nigel.stephens@arm.com>
7302 Yufeng Zhang <yufeng.zhang@arm.com>
7304 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
7305 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
7306 (ALLDEPFILES): Add aarch64-tdep.c.
7307 * aarch64-tdep.c: New file.
7308 * aarch64-tdep.h: New file.
7309 * configure.tgt: Add AArch64.
7310 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
7311 (aarch64-expedite): New definition.
7312 * features/aarch64-core.xml: New file.
7313 * features/aarch64-fpu.xml: New file.
7314 * features/aarch64-without-fpu.c: New file (generated).
7315 * features/aarch64-without-fpu.xml: New file.
7316 * features/aarch64.c: New file (generated).
7317 * features/aarch64.xml: New file.
7318 * regformats/aarch64-without-fpu.dat: New file (generated).
7319 * regformats/aarch64.dat: New file (generated).
7321 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7323 * contrib/expect-read1.c: New file.
7324 * contrib/expect-read1.sh: New file.
7326 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7328 * dwarf2read.c (file_file_name): New function with code from
7330 (file_full_name): Move most of the code to file_file_name.
7331 (macro_start_file): Rename variable full_name to file_name and use
7332 file_file_name for it. Add comp_dir parameter to new_macro_table.
7333 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
7334 macro_source_file->filename access by macro_source_fullname call.
7335 * macroscope.c (_initialize_macroscope): Update the new_macro_table
7337 * macrotab.c (struct macro_table): New field comp_dir.
7338 (macro_include): New variables link_fullname and source_fullname.
7339 Replace any macro_source_file->filename access by macro_source_fullname
7341 (macro_lookup_inclusion): Remove the partial filenames checking code.
7342 (check_for_redefinition): New variables source_fullname and
7343 found_key_fullname. Replace any macro_source_file->filename access by
7344 macro_source_fullname call.
7345 (macro_undef): New variables source_fullname and key_fullname. Replace
7346 any macro_source_file->filename access by macro_source_fullname call.
7347 (macro_lookup_definition): New variables retval and source_fullname.
7348 Replace any macro_source_file->filename access by macro_source_fullname
7350 (foreach_macro): New variable key_fullname. Replace any
7351 macro_source_file->filename access by macro_source_fullname call.
7352 (foreach_macro_in_scope): New variable datum_fullname. Replace any
7353 macro_source_file->filename access by macro_source_fullname call.
7354 (new_macro_table): Add parameter comp_dir. Initialize T with it.
7355 (macro_source_fullname): New function.
7356 * macrotab.h (struct macro_source_file): Extent the filename field
7358 (new_macro_table): New parameter comp_dir, add a comment for it.
7359 (macro_source_fullname): new declaration.
7361 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7363 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
7364 this_real_name to outer block. Use it also for
7365 compare_filenames_for_search.
7366 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
7367 with dw2_get_real_path for file_matcher, considering also
7368 BASENAMES_MAY_DIFFER.
7369 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
7371 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7373 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
7374 to the file_matcher parameter. Pass 0 to it.
7375 (dwarf2_create_include_psymtab): Copy also DIRNAME.
7376 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
7377 NULL psymtab_to_fullname result.
7378 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
7379 an expected filename instead.
7380 (expand_symtabs_matching_via_partial): Add basenames parameter to the
7381 file_matcher parameter. Call also psymtab_to_fullname, after newly
7382 considering BASENAMES_MAY_DIFFER.
7383 * source.c (rewrite_source_path): Remove static.
7384 * source.h (rewrite_source_path): New declaration.
7385 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
7386 the expand_symtabs_matching field. Comment it.
7387 * symtab.c (file_matches): New function comment. Add parameter
7388 basenames, implement it.
7389 (search_symbols_file_matches): Add basenames parameter. Update the
7390 file_matches caller.
7391 (search_symbols): Match FILES also against symtab_to_fullname.
7392 Optimize it for BASENAMES_MAY_DIFFER.
7394 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7396 * source.c (print_source_lines_base): Print for TUI also "fullname".
7397 * tui/tui-data.c (init_content_element): Change tui_locator_element
7399 * tui/tui-data.h (struct tui_locator_element): Likewise.
7400 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
7401 tui_update_locator_filename calls to tui_update_locator_fullname.
7402 Replace symtab->filename refererence by symtab_to_fullname call.
7403 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
7404 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
7405 field to full_name. Replace symtab->filename refererence by
7406 symtab_to_fullname call.
7407 (tui_show_symtab_source): Rename parameter to fullname. Change
7408 tui_locator_element field to full_name.
7409 * tui/tui-stack.c: Include source.h.
7410 (tui_set_locator_filename): Rename the declaration to ...
7411 (tui_set_locator_fullname): ... here. Rename its parameter to
7412 fullname, updates its comment.
7413 (tui_set_locator_info): Rename its parameter to fullname.
7414 (tui_set_locator_filename): Rename the definition to ...
7415 (tui_set_locator_fullname): ... here. Rename its parameter to
7416 fullname, updates its comment. Change tui_locator_element field to
7418 (tui_set_locator_info): Rename its parameter to fullname.
7419 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
7420 (tui_update_locator_filename): Rename to ...
7421 (tui_update_locator_fullname): ... here. Rename callee to
7422 tui_set_locator_fullname.
7423 (tui_show_frame_info): Replace symtab->filename refererence by
7424 symtab_to_fullname call.
7425 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
7426 (tui_update_locator_fullname): ... here.
7427 * tui/tui-winsource.c (tui_display_main): Rename the callee to
7428 tui_update_locator_fullname. Replace symtab->filename refererence by
7429 symtab_to_fullname call.
7430 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
7431 Rename the callee to tui_update_locator_fullname.
7432 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
7434 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7436 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
7437 by symtab_to_filename_for_display calls.
7438 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
7439 (clear_command): New variable sal_fullname, initialize it. Replace
7440 compare_filenames_for_search by filename_cmp with sal_fullname.
7441 (say_where, update_static_tracepoint): Replace symtab->filename
7442 refererences by symtab_to_filename_for_display calls.
7443 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
7445 * dwarf2read.c: Include source.h.
7446 (fixup_go_packaging): Replace symtab->filename refererences by
7447 symtab_to_filename_for_display calls.
7448 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
7449 Replace symtab->filename refererences by symtab_to_filename_for_display
7451 (create_sals_line_offset, convert_linespec_to_sals): New variable
7452 fullname, initialize it, replace symtab->filename reference by the
7454 * linux-fork.c: Include source.h.
7455 (info_checkpoints_command): Replace symtab->filename refererences by
7456 symtab_to_filename_for_display calls.
7457 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
7458 by symtab_to_filename_for_display calls.
7459 * mdebugread.c: Include source.h.
7460 (psymtab_to_symtab_1): Replace symtab->filename refererences by
7461 symtab_to_filename_for_display calls.
7462 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
7463 (mi_cmd_file_list_exec_source_files): Likewise.
7464 * printcmd.c: Include source.h.
7465 (build_address_symbolic): Replace symtab->filename refererences by
7466 symtab_to_filename_for_display calls.
7467 * psymtab.c (partial_map_symtabs_matching_filename)
7468 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
7469 with psymtab_to_fullname.
7470 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
7471 by symtab_to_filename_for_display calls.
7472 (stpy_get_filename): New variable filename, initialize it, use instead
7473 of symtab->filename refererences.
7474 (salpy_str): Make variable filename const char *. Replace
7475 symtab->filename refererences by symtab_to_filename_for_display calls.
7476 * skip.c: Include source.h and filenames.h.
7477 (skip_file_command): Remove const from the symtab variable. Replace
7478 symtab->filename refererences by symtab_to_fullname call.
7479 (function_name_is_marked_for_skip): New variables searched_for_fullname
7480 and fullname. Use them to search also with symtab's fullname.
7481 * source.c (find_source_lines): Replace symtab->filename refererences
7482 by symtab_to_filename_for_display calls.
7483 (print_source_lines_base): New variable filename, use it instead of
7484 symtab->filename. Replace symtab->filename refererences by
7485 symtab_to_filename_for_display calls.
7486 (line_info, forward_search_command): Replace symtab->filename
7487 refererences by symtab_to_filename_for_display calls.
7488 (reverse_search_command): Replace symtab->filename refererences by
7489 symtab_to_filename_for_display calls. New variable filename for it.
7490 * stack.c (frame_info): Likewise.
7491 * symmisc.c: Include source.h.
7492 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
7493 (maintenance_info_symtabs): Replace symtab->filename refererences by
7494 symtab_to_filename_for_display calls.
7495 * symtab.c (iterate_over_some_symtabs): Call
7496 compare_filenames_for_search also with symtab_to_fullname.
7497 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
7498 symtab->filename refererences by symtab_to_filename_for_display calls.
7499 (find_line_symtab): Replace symtab->filename refererences by
7500 symtab_to_filename_for_display calls.
7501 (file_matches): Replace filename_cmp by compare_filenames_for_search.
7502 (print_symbol_info): Make the last parameter const char *. New
7503 variable s_filename. Use it in the function.
7504 (symtab_symbol_info): Make the last_filename variable const char *.
7505 Replace symtab->filename refererences by symtab_to_filename_for_display
7507 (rbreak_command): New variable fullname. Use it. Replace
7508 symtab->filename refererence by symtab_to_filename_for_display call.
7509 * tracepoint.c (set_traceframe_context, trace_find_line_command)
7510 (print_one_static_tracepoint_marker): Replace symtab->filename
7511 refererences by symtab_to_filename_for_display calls.
7512 * tui/tui-source.c (tui_set_source_content): New variables filename and
7513 s_filename. Replace symtab->filename refererences by this variable.
7514 Replace other symtab->filename refererences by
7515 symtab_to_filename_for_display calls.
7517 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
7518 Jan Kratochvil <jan.kratochvil@redhat.com>
7520 Add a new variable that controls a way in which filenames are
7522 * NEWS (set filename-display): New entry.
7523 * source.c (filename_display_basename, filename_display_relative)
7524 (filename_display_absolute, filename_display_kind_names)
7525 (filename_display_string, show_filename_display_string)
7526 (symtab_to_filename_for_display): New.
7527 (_initialize_source): Added initialization of 'filename-display'
7529 * source.h (symtab_to_filename_for_display): Added declaration.
7530 * stack.c (print_frame): Added new variable and calling of a new
7531 function and condition with this variable. Changed third argument of
7532 calling of a function.
7534 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7536 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
7537 Rename field reference filename to fullname.
7538 * tui/tui-data.h (struct tui_source_info): Rename field filename to
7539 fullname. New comment for it.
7540 * tui/tui-source.c (tui_set_source_content): Rename field reference
7541 filename to fullname. Initialize field by symtab_to_fullname now.
7542 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
7543 reference filename to fullname. Use symtab_to_fullname during
7546 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7549 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
7550 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
7551 filename to fullname. Rename variable this_name to this_fullname.
7552 Lowercase FILENAME_CMP call.
7553 (dw2_find_symbol_file): New comment for the returned string.
7554 (dwarf2_gdb_index_functions): Rename the function to
7555 dw2_expand_symtabs_with_fullname.
7556 * psymtab.c (read_psymtabs_with_filename): Rename to ...
7557 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
7559 (psym_functions): Rename the function to read_psymtabs_with_fullname.
7560 * symfile.h (struct quick_symbol_functions): Rename field
7561 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
7562 parameter filename to fullname. Document returned string meaning for
7564 * symtab.c (find_line_symtab): Rename the called function to
7565 expand_symtabs_with_fullname.
7567 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7570 * breakpoint.c (clear_command): Remove variable is_abs, unify the
7571 call of filename_cmp with compare_filenames_for_search.
7572 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
7573 is_abs, unify the call of FILENAME_CMP with
7574 compare_filenames_for_search. New gdb_asserts for real_path and name.
7575 Unify the call of compare_filenames_for_search with FILENAME_CMP.
7576 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7577 * symfile.h (struct quick_symbol_functions): Extend the comment for
7578 map_symtabs_matching_filename.
7579 * symtab.c (compare_filenames_for_search): Remove the function comment
7580 relative path requirement. Handle absolute filenames, with a comment.
7581 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
7582 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
7583 real_path and name. Unify the call of compare_filenames_for_search
7585 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
7587 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7590 * breakpoint.c (print_breakpoint_location): Replace bp_location field
7591 source_file references by symtab field references. Remove variables
7593 (momentary_breakpoint_from_master, add_location_to_breakpoint):
7594 (clear_command, say_where): Replace bp_location field source_file
7595 references by symtab field references.
7596 (bp_location_dtor): Remove the source_file reference.
7597 (update_static_tracepoint): Replace bp_location field source_file
7598 references by symtab field references.
7599 (breakpoint_free_objfile): New function.
7600 * breakpoint.h (struct bp_location): Extend the comment for line_number.
7601 Replace the field source_file by field symtab, extend its comment.
7602 (breakpoint_free_objfile): New declaration.
7603 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
7604 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
7605 field source_file references by symtab field references.
7607 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7609 Replace xfullpath calls by gdb_realpath calls.
7610 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
7612 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
7613 Remove it from the iterate_over_some_symtabs call.
7614 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
7615 Remove it from the dw2_map_expand_apply calls, remove a block handling
7617 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
7618 Remove it from the iterate_over_some_symtabs call.
7619 (partial_map_symtabs_matching_filename): Remove parameter full_path.
7620 Remove it from the partial_map_expand_apply calls, remove a block
7621 handling it. Drop gdb_realpath call and cleanups from the real_path
7623 * source.c (openp): Drop the comment part about xfullpath. Replace
7624 xfullpath calls by gdb_realpath calls.
7625 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
7626 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
7627 from method map_symtabs_matching_filename and its comment.
7628 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
7630 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
7631 remove it also from the function comment, remove a block handling it.
7632 Drop gdb_realpath call and cleanups from the real_path handling.
7633 (iterate_over_symtabs): Drop variable full_path and its use.
7634 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
7635 * utils.c (xfullpath): Remove.
7636 * utils.h (xfullpath): Remove.
7638 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
7640 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
7641 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
7642 (ALLDEPFILES): Add ppc64-tdep.c.
7643 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
7644 ppc64-tdep.o to gdb_target_obs.
7645 * ppc64-tdep.h: New file.
7646 * ppc64-tdep.c: New file.
7647 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
7648 ppc-linux-tdep.c to here.
7649 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
7650 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
7651 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
7652 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
7653 from ppc-linux-tdep.c to here.
7654 (ppc64_convert_from_func_ptr_addr): Rename from
7655 ppc64_linux_convert_from_func_ptr_addr to
7656 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
7659 (read_insn): Move from ppc-linux-tdep.c to here.
7660 (insns_match_pattern, insn_d_field, insn_ds_field): Move
7661 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
7662 * ppc-linux-tdep.c: Include ppc64-tdep.h.
7663 Removed above functions.
7664 (ppc_linux_init_abi): Adjust.
7666 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
7668 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
7670 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
7672 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
7674 2013-02-01 Pedro Alves <palves@redhat.com>
7676 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
7677 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
7679 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7681 * elfread.c (elf_symfile_read): Limit separate debug info additions to
7682 files with no separate debug info.
7683 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
7684 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
7685 only for files with no separate debug info.
7687 2013-01-31 Tom Tromey <tromey@redhat.com>
7689 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
7691 (struct jit_program_space_data): Rename from jit_inferior_data.
7693 (get_jit_program_space_data): Rename from get_jit_inferior_data.
7694 Change return type. Attach data to program space.
7695 (jit_program_space_data_cleanup): Rename from
7696 jit_inferior_data_cleanup; change argument type.
7697 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
7699 (jit_register_code): Update.
7700 (jit_update_inferior_cache): Remove.
7701 (jit_breakpoint_deleted): Get jit data from the location's program
7703 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
7704 'ps_data', change type.
7705 (jit_inferior_init, jit_breakpoint_re_set_internal)
7706 (jit_event_handler): Update.
7707 (free_objfile_data): Get data from objfile's program space.
7708 (_initialize_jit): Update.
7710 2013-01-31 Tom Tromey <tromey@redhat.com>
7713 * jit.c (struct jit_inferior_data) <cached_code_address,
7714 jit_breakpoint>: New fields.
7715 (jit_breakpoint_re_set_internal): Fix logging. Only create
7716 breakpoint if cached address has changed.
7717 (jit_update_inferior_cache, jit_breakpoint_deleted): New
7719 (_initialize_jit): Register breakpoint deleted observer.
7721 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7723 * infrun.c (handle_syscall_event): Remove unused gdbarch.
7724 (save_infcall_suspend_state): Ifdef out unused inf.
7725 (restore_infcall_suspend_state): Ifdef out unused inf.
7726 * jit.c (jit_register_code): Remove unused i, b, inf_data.
7727 (jit_frame_sniffer): Remove unused inf_data.
7729 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7731 * c-exp.y (classify_inner_name): Remove unused type.
7732 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
7733 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
7735 (c_get_string): Remove unused kind.
7736 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
7738 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7740 * charset.c (intermediate_encoding): Remove unused i.
7741 * completer.c (signal_completer): Remove unused i.
7742 * continuations.c (discard_my_continuations_1): Remove unused
7744 * corelow.c (core_close): Remove unuseD name.
7745 (get_core_siginfo): Remove unused pid.
7746 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
7748 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
7749 (loclist_describe_location): Remove unused first.
7750 * event-top.c (command_line_handler): Remove unused got_eof.
7751 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
7752 (resize_section_table): Remove unused old_value.
7753 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
7754 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
7755 * i386-tdep.c (i386_process_record): Remove unused rex.
7756 * infcmd.c (get_return_value): Remove unused uiout.
7757 * jv-lang.c (type_from_class): Remove unused is_array.
7758 * jv-valprint.c (java_val_print): Remove unused i.
7759 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
7760 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
7761 * m2-typeprint.c (m2_print_type): Remove unused code.
7762 * macroexp.c (get_character_constant): Remove unused body_start.
7763 (macro_stringify): Remove unused result.
7764 * objc-lang.c (find_methods): Remove unused gdbarch.
7765 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
7766 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
7767 * stack.c (print_frame_args): Remove unused summary.
7768 * thread.c (thread_apply_command): Remove unused p.
7769 * valarith.c (value_x_unop): Remove unused mangle_ptr.
7770 * valops.c (search_struct_method): Remove unused skip.
7771 * valprint.c (generic_val_print): Remove unused byte_order.
7772 * varobj.c (varobj_update): Remove unused changed.
7773 * cli/cli-cmds.c (complete_command): Remove unused next_item.
7774 (alias_command): Remove unused c.
7775 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
7776 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
7778 (mi_cmd_data_write_memory): Remove unused word_format.
7779 (mi_cmd_data_write_memory_bytes): Remove unused r.
7780 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
7782 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
7783 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
7786 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7788 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
7789 * symtab.c (iterate_over_symtabs): Remove unused s.
7790 (find_pc_sect_symtab): Remove unused pspAce.
7791 (find_pc_sect_line): Remove unused alt_symtab.
7792 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
7793 (completion_list_add_name): Remove unused newsize.
7795 2013-01-31 Tom Tromey <tromey@redhat.com>
7798 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
7801 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7803 * target.c (target_read_string): Remove unused origlen.
7805 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7807 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
7808 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
7809 * ax-general.c (ax_print): Remove unused is_float.
7810 * blockframe.c (block_innermost_frame): Remove unused start, end.
7811 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
7813 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7815 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
7816 (svr4_read_so_list): Remove unused lmo.
7817 * solib-target.c (solib_target_relocate_section_addresses): Remove
7820 2013-01-30 Tom Tromey <tromey@redhat.com>
7822 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
7824 2013-01-30 Tom Tromey <tromey@redhat.com>
7826 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
7827 * utils.c (gnu_debuglink_crc32): Remove.
7828 * utils.h (gnu_debuglink_crc32): Don't declare.
7830 2013-01-30 Tom Tromey <tromey@redhat.com>
7832 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
7833 (read_structure_type, read_enumeration_type): Remove cast.
7835 2013-01-30 Tom Tromey <tromey@redhat.com>
7837 * dwarf2read.c (read_namespace_type): Remove cast.
7838 (read_typedef): Likewise.
7840 2013-01-29 Tom Tromey <tromey@redhat.com>
7842 * dwarf2read.c (free_dwo_file): Remove assert.
7844 2013-01-29 Tom Tromey <tromey@redhat.com>
7846 * value.c (deprecated_set_value_modifiable): Remove.
7847 * value.h (deprecated_set_value_modifiable): Remove.
7849 2013-01-28 Doug Evans <dje@google.com>
7851 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
7852 to addresses from dwo files.
7854 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
7856 * valops.c (find_overload_match): Remove unused argument 'lax'.
7857 * value.h: Remove unused argument 'lax' from the declaration of
7858 find_overload_match.
7859 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
7860 to find_overload_match.
7861 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
7862 argument to find_overload_match.
7864 2013-01-25 Tom Tromey <tromey@redhat.com>
7866 * dwarf2read.c (processing_has_namespace_info): Remove.
7867 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
7868 (process_die, read_func_scope, dwarf2_start_symtab)
7869 (new_symbol_full): Update.
7871 2013-01-25 Tom Tromey <tromey@redhat.com>
7873 * cp-namespace.c (cp_set_block_scope): Remove.
7874 * cp-support.h (cp_set_block_scope): Remove.
7875 * dbxread.c: Include block.h.
7876 (cp_set_block_scope): New function.
7877 (process_one_symbol): Update.
7878 * dwarf2read.c (read_func_scope): Use block_set_scope.
7880 2013-01-25 Pedro Alves <palves@redhat.com>
7882 * remote.c (add_current_inferior_and_thread): Tweak comment.
7884 2013-01-25 Tom Tromey <tromey@redhat.com>
7886 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7887 (cp_add_using_directive): Add 'copy_names' argument.
7888 * cp-support.h (cp_add_using_directive): Update.
7889 (struct using_direct) <import_src, import_dest, alias,
7890 declaration>: Now const.
7891 * dwarf2read.c (read_import_statement): Use obconcat.
7892 Don't copy names passed to cp_add_using_directive.
7894 2013-01-25 Tom Tromey <tromey@redhat.com>
7896 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
7898 2013-01-25 Pedro Alves <palves@redhat.com>
7900 * remote.c (stop_reply_extract_thread): New.
7901 (add_current_inferior_and_thread): New parameter 'wait_status'.
7903 (remote_start_remote): Pass wait status to
7904 add_current_inferior_and_thread.
7905 (extended_remote_run): Update comment.
7906 (extended_remote_create_inferior_1): Pass wait status to
7907 add_current_inferior_and_thread.
7909 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
7910 Ulrich Weigand <uweigand@de.ibm.com>
7912 * valarith.c (value_vector_widen): New function for replicating a
7913 scalar into a vector.
7914 (value_binop): Use value_vector_widen to widen scalar to vector
7915 rather than casting, this better matches gcc C behaviour.
7916 * valops.c (value_casst): Update logic for casting between vector
7917 types, and for casting from scalar to vector, try to match gcc C
7919 * value.h (value_vector_widen): Declare.
7920 * opencl-lang.c (opencl_value_cast): New opencl specific casting
7921 function, handle special case for casting scalar to vector.
7922 (opencl_relop): Use opencl_value_cast.
7923 (evaluate_subexp_opencl): Use opencl_value_cast instead of
7924 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
7925 in order to use opencl_value_cast.
7927 2013-01-25 Yao Qi <yao@codesourcery.com>
7929 * event-loop.c: Include "queue.h".
7930 (gdb_event_p): New typedef.
7931 (DECLARE_QUEUE_P): Use.
7932 (DEFINE_QUEUE_P): Use.
7933 (async_queue_event): Remove.
7934 (gdb_event_xfree): New.
7935 (initialize_event_loop): New.
7936 (process_event): Use QUEUE macros.
7937 (event_queue): Remove.
7938 (gdb_wait_for_event): Caller update.
7939 (check_async_event_handlers): Likewise.
7940 (poll_timers): Likewise.
7941 * event-loop.h (initialize_event_loop): Declare.
7942 * event-loop.c (gdb_event_xfree): New.
7943 * top.c (gdb_init): Call initialize_event_loop.
7945 2013-01-25 Yao Qi <yao@codesourcery.com>
7947 * event-loop.c (async_queue_event): Remove one parameter
7948 'position'. Remove code handling 'position' == TAIL.
7949 (gdb_wait_for_event): Caller update.
7950 (check_async_event_handlers): Caller update.
7951 (poll_timers): Caller update.
7952 * event-loop.h (enum queue_position): Remove.
7954 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
7956 * MAINTAINERS: Update my email.
7958 2013-01-25 Yao Qi <yao@codesourcery.com>
7960 * main.c (print_gdb_help): Remove "--epoch" from the help
7963 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
7965 * symtab.c (skip_prologue_using_sal): Consider a file
7966 change the same as an increased line number
7968 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7970 * MAINTAINERS (Write After Approval): Add myself to the list.
7972 2013-01-24 Tom Tromey <tromey@redhat.com>
7974 * ada-lang.h (ada_decode_symbol): Make return type const.
7975 * ada-lang.c (ada_decode_symbol): Likewise.
7977 2013-01-23 Doug Evans <dje@google.com>
7979 * linespec.c (find_linespec_symbols): Make static.
7981 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7983 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
7984 type on float conversion for complex type.
7986 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
7988 Add a new class gdb.Architecture which exposes GDB's
7989 internal representation of architecture via GDB Python API.
7990 * Makefile.in: Add entries corresponding to the new file
7992 * NEWS (Python Scripting): Add entries for the new class
7993 gdb.Architecture and the new method gdb.Frame.architecture.
7994 * python/py-arch.c: Implement gdb.Architecture class.
7995 * python/py-frame.c (frapy_arch): Implement the method
7996 gdb.Frame.architecture().
7997 (frame_object_methods): Add 'architecture' to the method table.
7998 * python/python-internal.h: Add declarations of new utility
8000 * python/python.c (_initialize_python): Initialize
8001 gdb.Architecture class.
8003 2013-01-23 Doug Evans <dje@google.com>
8005 Work around binutils/15021.
8006 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
8007 type_unit_group out of union s. All uses updated.
8008 (read_index_from_section): Watch for index version 8.
8009 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
8011 (write_psymtabs_to_index): Increment version number to 8.
8013 2013-01-22 Pedro Alves <palves@redhat.com>
8015 * annotate.c (breakpoint_changed): Skip if breakpoint is not
8018 2013-01-22 Pedro Alves <palves@redhat.com>
8020 * annotate.c (annotate_breakpoints_changed): Rename to ...
8021 (annotate_breakpoints_invalid): ... this. Make static.
8022 (breakpoint_changed): Adjust.
8023 (_initialize_annotate): Always install the observers. Install a
8024 "breakpoint_created" observer.
8025 * annotate.h (annotate_breakpoints_changed): Delete declaration.
8026 * breakpoint.c (set_breakpoint_condition)
8027 (breakpoint_set_commands, do_map_commands_command)
8028 (init_raw_breakpoint, clear_command, set_ignore_count)
8029 (enable_breakpoint_disp): No longer call
8030 annotate_breakpoints_changed.
8032 2013-01-22 Pedro Alves <palves@redhat.com>
8034 * annotate.c: Include "inferior.h".
8035 (frames_invalid_emitted)
8036 (breakpoints_invalid_emitted): New globals.
8037 (async_background_execution_p): New function.
8038 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
8039 emitting the annotation if it has already been emitted.
8040 (annotate_display_prompt): New function.
8041 * annotate.h (annotate_display_prompt): New declaration.
8042 * event-top.c: Include annotate.h.
8043 (display_gdb_prompt): Call annotate_display_prompt.
8045 2013-01-22 Pedro Alves <palves@redhat.com>
8047 * annotate.c (ignore_count_changed): Delete.
8048 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
8049 (annotate_ignore_count_change): Delete.
8050 (annotate_stopped): Don't emit a delayed breakpoints-changed
8052 * annotate.h (annotate_ignore_count_change): Delete.
8053 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
8054 annotate_ignore_count_change.
8056 2013-01-22 Tom Tromey <tromey@redhat.com>
8058 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
8059 require_rvalue for a register location.
8061 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
8063 * breakpoint.c (print_one_breakpoint_location): Add MI
8064 field 'thread-groups' when printing a breakpoint.
8065 (output_thread_groups): New function.
8067 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
8069 * python/lib/gdb/commands/explore.py
8070 (CompoundExplorer.explore_expr): Correct the name of a method
8072 (ExploreTypeCommand.invoke): Add a missing 'return'.
8074 2013-01-21 Tom Tromey <tromey@redhat.com>
8076 * gdb_obstack.h (obconcat): Move declaration here, from...
8077 * symfile.h (obconcat): ... here.
8078 * gdb_obstack.c: New file.
8079 (obconcat): Move from...
8080 * symfile.c (obconcat): ... here.
8081 * Makefile.in (SFILES): Add gdb_obstack.c.
8082 (COMMON_OBS): Add gdb_obstack.o.
8084 2013-01-21 Tom Tromey <tromey@redhat.com>
8086 * symfile.h (obsavestring): Don't declare.
8087 * symfile.c (obsavestring): Remove.
8088 * ada-exp.y: Use obstack_copy0, not obsavestring.
8089 * ada-lang.c: Use obstack_copy0, not obsavestring.
8090 * coffread.c: Use obstack_copy0, not obsavestring.
8091 * cp-namespace.c: Use obstack_copy0, not obsavestring.
8092 * dbxread.c: Use obstack_copy0, not obsavestring.
8093 * dwarf2read.c: Use obstack_copy0, not obsavestring.
8094 * jit.c: Use obstack_copy0, not obsavestring.
8095 * mdebugread.c: Use obstack_copy0, not obsavestring.
8096 * psymtab.c: Use obstack_copy0, not obsavestring.
8097 * stabsread.c: Use obstack_copy0, not obsavestring.
8098 * xcoffread.c: Use obstack_copy0, not obsavestring.
8100 2013-01-21 Tom Tromey <tromey@redhat.com>
8102 * dwarf2read.c (fixup_go_packaging): Save package name
8104 * gdbtypes.c (init_type): Don't copy name.
8106 2013-01-21 Tom Tromey <tromey@redhat.com>
8108 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
8110 (struct attribute) <u.str>: Now const.
8111 (struct fnfieldlist) <name>: Now const.
8112 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
8113 (partial_die_parent_scope): Make return type const.
8114 (partial_die_full_name, add_partial_symbol): Update.
8115 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
8117 (find_file_and_directory): Make 'name' and 'comp_dir' const.
8118 (read_file_scope, read_func_scope, dwarf2_add_field)
8119 (dwarf2_add_member_fn, read_structure_type)
8120 (process_enumeration_scope, read_array_type, read_module_type)
8121 (read_base_type, read_subrange_type): Update.
8122 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
8123 (new_symbol_full, guess_full_die_structure_name): Update.
8124 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
8125 (dwarf2_name): Return const type.
8126 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
8129 2013-01-21 Tom Tromey <tromey@redhat.com>
8131 * gdbtypes.c (init_type): Make 'name' const.
8132 * gdbtypes.h (init_type): Update.
8134 2013-01-21 Tom Tromey <tromey@redhat.com>
8136 * buildsym.c (patch_subfile_names): Use set_last_source_file.
8137 (start_symtab): Make 'name' and 'dirname' const. Use
8138 set_last_source_file.
8139 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
8140 (last_source_file): Define. Now static.
8141 (set_last_source_file, get_last_source_file): New functions.
8142 * buildsym.h (last_source_file): Don't declare.
8143 (start_symtab): Update.
8144 (set_last_source_file, get_last_source_file): Declare.
8145 * coffread.c (complete_symtab): Use set_last_source_file.
8146 (coff_end_symtab): Likewise.
8147 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
8148 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
8149 set_last_source_file.
8150 (process_one_symbol): Use get_last_source_file.
8151 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
8152 (psymtab_to_symtab_1): Use get_last_source_file.
8153 * xcoffread.c (process_linenos): Use get_last_source_file.
8154 (complete_symtab): Use set_last_source_file.
8155 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
8156 (scan_xcoff_symtab): Use set_last_source_file.
8158 2013-01-21 Tom Tromey <tromey@redhat.com>
8160 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
8161 (symbol_set_names): Remove casts. Handle field const-ness.
8163 2013-01-21 Tom Tromey <tromey@redhat.com>
8165 * dwarf2read.c (new_symbol_full): Remove cast.
8166 * symtab.c (symbol_set_demangled_name): Make 'name' const.
8167 * symtab.h (symbol_set_demangled_name): Update.
8169 2013-01-21 Tom Tromey <tromey@redhat.com>
8171 * main.c (captured_main): Call bfd_init.
8173 2013-01-21 Tom Tromey <tromey@redhat.com>
8175 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
8176 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
8177 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
8180 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8182 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
8184 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8186 Fix gdb.fortran/common-block.exp crash in PIE mode.
8187 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
8189 * f-valprint.c (info_common_command_for_block): Expect
8190 LOC_COMMON_BLOCK in gdb_assert.
8191 * symtab.h (struct general_symbol_info): Update comment for the
8192 common_block member.
8193 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
8194 (enum address_class): New member LOC_COMMON_BLOCK.
8196 2013-01-18 David Blaikie <dblaikie@gmail.com>
8198 * MAINTAINERS (Write After Approval): Add "David Blaikie".
8200 2013-01-18 Tom Tromey <tromey@redhat.com>
8203 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
8204 Call require_rvalue.
8206 2013-01-18 Yao Qi <yao@codesourcery.com>
8208 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
8209 (dbx_read_symtab): New declaration.
8210 (dbx_psymtab_to_symtab): Delete.
8211 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
8212 Rename parameter PST to SELF. Exchanged two parameters.
8213 (start_psymtab): Caller update.
8214 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
8215 (dwarf2_read_symtab): New declaration.
8216 (dwarf2_psymtab_to_symtab): Delete.
8217 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
8218 Rename parameter PST to SELF. Exchanged two parameters.
8219 (create_partial_symtab): Caller update.
8220 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
8221 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
8222 Rename parameter PST to SELF. Exchanged two parameters.
8223 (parse_partial_symbols, new_psymtab): Caller update.
8224 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
8226 * psymtab.c (psymtab_to_symtab): Caller update.
8227 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
8228 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
8229 Rename parameter PST to SELF. Exchanged two parameters.
8230 (xcoff_start_psymtab): Caller update.
8232 2013-01-18 Yao Qi <yao@codesourcery.com>
8234 * infrun.c (proceed): Rename local variable 'oneproc' to
8237 2013-01-17 Doug Evans <dje@google.com>
8239 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
8240 (dw2_build_type_unit_groups): Delete. All uses updated.
8242 * symtab.h (struct symbol_search): Add comment.
8244 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8246 * symtab.c (compare_filenames_for_search): New comment for
8249 2013-01-17 Tom Tromey <tromey@redhat.com>
8251 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
8253 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8255 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
8256 initialize it by existing make_cleanup. Call new do_cleanups.
8258 2013-01-17 Tom Tromey <tromey@redhat.com>
8260 * cp-abi.c (cp_abi_completer): New function.
8261 (_initialize_cp_abi): Set completer for "set cp-abi".
8263 2013-01-17 Tom Tromey <tromey@redhat.com>
8265 * mem-break.c: Remove obsolete comment.
8266 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
8268 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
8270 * jit.c (jit_reader_load_command): Interpret the jit reader name
8271 as an absolute path if it begins with a forward slash.
8273 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
8277 * jit.c (finalize_symtab): Ensure that only the global block has a
8280 2013-01-17 Pedro Alves <palves@redhat.com>
8282 * acinclude.m4: Include ../config/plugins.m4,
8283 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
8284 * Makefile.in (aclocal_m4_deps): Update.
8285 * aclocal.m4: Renegerate.
8287 2013-01-16 Doug Evans <dje@google.com>
8289 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
8291 2013-01-16 Pedro Alves <palves@redhat.com>
8292 Tom Tromey <tromey@redhat.com>
8295 * NEWS: Add "catch signal".
8296 * breakpoint.c (base_breakpoint_ops): No longer static.
8297 (bpstat_explains_signal): New function.
8298 (init_catchpoint): No longer static.
8299 (base_breakpoint_explains_signal): New function.
8300 (base_breakpoint_ops): Initialize new field.
8301 * breakpoint.h (enum bpstat_signal_value): New.
8302 (struct breakpoint_ops) <explains_signal>: New field.
8303 (bpstat_explains_signal): Remove macro, declare as function.
8304 (base_breakpoint_ops, init_catchpoint): Declare.
8305 * break-catch-sig.c: New file.
8306 * inferior.h (signal_catch_update): Declare.
8307 * infrun.c (signal_catch): New global.
8308 (handle_syscall_event): Update for change to
8309 bpstat_explains_signal.
8310 (handle_inferior_event): Likewise. Always handle random signals
8312 (signal_cache_update): Check signal_catch.
8313 (signal_catch_update): New function.
8314 (_initialize_infrun): Initialize signal_catch.
8315 * Makefile.in (SFILES): Add break-catch-sig.c.
8316 (COMMON_OBS): Add break-catch-sig.o.
8318 2013-01-16 Tom Tromey <tromey@redhat.com>
8320 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
8321 (print_one_catch_solib, print_one_catch_syscall)
8322 (print_one_catch_exec, print_one_exception_catchpoint): Emit
8325 2013-01-16 Yao Qi <yao@codesourcery.com>
8327 * printcmd.c (current_display_number): Make it static.
8329 2013-01-16 Yao Qi <yao@codesourcery.com>
8331 * infcmd.c (step_once): Don't check '!single_inst' as it was
8334 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8336 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
8338 2013-01-14 Tom Tromey <tromey@redhat.com>
8340 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
8342 * command.h (add_setshow_string_noescape_cmd): Update.
8343 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
8344 (complete_set_gnutarget): New function.
8345 (_initialize_core): Set the "set gnutarget" completer.
8347 2013-01-14 Tom Tromey <tromey@redhat.com>
8350 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
8351 (c_type_print_modifier): Likewise.
8352 * dwarf2read.c (read_tag_restrict_type): New function.
8353 (read_type_die_1): Handle DW_TAG_restrict_type.
8354 * gdbtypes.c (make_restrict_type): New function.
8355 (recursive_dump_type): Handle TYPE_RESTRICT.
8356 * gdbtypes.h (enum type_flag_values): Renumber.
8357 (enum type_instance_flag_value): Add
8358 TYPE_INSTANCE_FLAG_RESTRICT.
8359 (TYPE_RESTRICT): New macro.
8360 (make_restrict_type): Declare.
8362 2013-01-14 Tom Tromey <tromey@redhat.com>
8365 * psymtab.c (struct psymtab_state): New.
8366 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
8368 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
8369 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
8371 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
8372 Pedro Alves <palves@redhat.com>
8376 * remote.c (remote_threads_info): Make a copy of the reply from
8377 qfThreadInfo and use that instead of rs->buf.
8379 2013-01-14 Yao Qi <yao@codesourcery.com>
8381 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
8382 (dbx_psymtab_to_symtab): Likewise.
8383 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
8384 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
8385 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
8387 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8389 * parse.c (parse_exp_in_context): New variable inner_chain. Call
8390 make_cleanup_restore_current_language. Call set_language. Move
8391 OLD_CHAIN and INNER_CHAIN cleanups.
8392 * utils.c (do_restore_current_language)
8393 (make_cleanup_restore_current_language): New functions.
8394 * utils.h (make_cleanup_restore_current_language): New declaration.
8396 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8398 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
8401 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
8402 non-existing files if FILENAME is already absolute.
8404 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8406 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
8407 fputs_filtered. Append trailing newline.
8409 2013-01-11 Yao Qi <yao@codesourcery.com>
8410 Stan Shebs <stan@codesourcery.com>
8412 * psymtab.c (init_psymbol_list): Clarify the comment.
8414 2013-01-11 Yao Qi <yao@codesourcery.com>
8416 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
8417 (update_dprintf_command_list): Assert that 'printf_line' is
8418 non-null. Remove condition check.
8420 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8423 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
8425 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
8427 * tui/tui-source.h (tui_source_is_displayed): Likewise.
8429 2013-01-09 Anthony Green <green@moxielogic.com>
8431 * cp-abi.c (cplus_print_vtable): Don't return value from void
8433 * ada-lang.c (re_set_catch_assert): Ditto.
8435 2013-01-09 Doug Evans <dje@google.com>
8437 * symfile.h (quick_symbol_functions): Delete member
8438 pre_expand_symtabs_matching. All uses removed.
8439 * dwarf2read.c (dw2_lookup_symbol): Implement.
8440 (dw2_do_expand_symtabs_matching): Delete.
8441 (dw2_pre_expand_symtabs_matching): Delete.
8442 (struct dw2_symtab_iterator): New type.
8443 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
8444 (dw2_expand_symtabs_for_function): Rewrite.
8445 (dwarf2_gdb_index_functions): Update.
8446 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
8447 (psym_functions): Update.
8449 2013-01-09 Tom Tromey <tromey@redhat.com>
8451 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
8452 * configure: Rebuild.
8453 * configure.ac: Add somread.o to the build if BFD has SOM
8455 * somread.c: Include som/aout.h, not syms.h.
8456 (som_symtab_read): Use som_external_symbol_dictionary_record.
8457 Unpack records manually.
8458 (_initialize_somread): Declare.
8460 2012-01-08 Mike Frysinger <vapier@gentoo.org>
8462 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
8463 Cast return_address to 64bits.
8465 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
8467 * printcmd.c: Remove define of function output_command.
8468 * tracepoint.c: Remove extern of function output_command.
8469 * valprint.h: (output_command): New extern.
8471 2013-01-07 Tom Tromey <tromey@redhat.com>
8473 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
8475 (objc_language_defn): Use c_printchar, c_printstr,
8478 2013-01-07 Tom Tromey <tromey@redhat.com>
8482 * ada-valprint.c (printstr, print_field_values): Remove
8484 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
8486 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
8488 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
8489 * main.c (captured_main): Remove "epoch" argument.
8490 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
8491 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
8492 * p-valprint.c (pascal_object_print_value_fields): Remove
8494 * printcmd.c (print_command_1): Remove 'inspect' argument.
8495 (print_command, call_command): Update.
8496 (inspect_command): Remove.
8497 (_initialize_printcmd): Make "inspect" an alias for "print".
8498 * top.c (epoch_interface): Remove.
8499 * top.h (epoch_interface): Remove.
8500 * valprint.c (user_print_options): Update.
8501 (print_converted_chars_to_obstack): Remove "inspect_it" code.
8502 * valprint.h (struct value_print_options) <inspect_it>: Remove
8505 2013-01-04 Tom Tromey <tromey@redhat.com>
8507 * valprint.h (read_string): Add 'extern'.
8509 2013-01-07 Joel Brobecker <brobecker@adacore.com>
8511 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
8512 used to decide whether to define darwin_read_dyld_info or not.
8514 2013-01-03 Pierre Muller <muller@sourceware.org>
8516 * main.c (relocate_gdb_directory): Avoid calling stat function
8519 2013-01-03 Yao Qi <yao@codesourcery.com>
8521 * psymtab.c (fixup_psymbol_section): Update declaration.
8522 (fixup_psymbol_section): Remove code returning value.
8524 2013-01-03 Yao Qi <yao@codesourcery.com>
8526 * symtab.h: Remove some out of date comments.
8527 (enum exception_event_kind): Move it ...
8528 * breakpoint.c: ... here.
8530 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
8533 * darwin-nat.c (darwin_read_dyld_info): Only build if
8534 TASK_DYLD_INFO_COUNT is defined.
8535 (darwin_xfer_partial): Call darwin_read_dyld_info only if
8536 TASK_DYLD_INFO_COUNT is defined.
8538 2013-01-02 Tom Tromey <tromey@redhat.com>
8540 * symfile.h (struct ecoff_debug_hack): Remove.
8541 * objfiles.c: Don't include mdebugread.h.
8543 2013-01-02 Tom Tromey <tromey@redhat.com>
8545 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
8546 * configure.ac: Check for Mach-O support in BFD. Update
8548 * configure: Rebuild.
8550 2013-01-02 Tom Tromey <tromey@redhat.com>
8552 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
8553 * configure.ac: Use GDB_AC_CHECK_BFD.
8554 * configure: Rebuild.
8556 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
8558 * MAINTAINERS: Update my email.
8560 2013-01-01 Joel Brobecker <brobecker@adacore.com>
8562 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
8564 2013-01-01 Joel Brobecker <brobecker@adacore.com>
8566 * rs6000-nat.c (bss_data_overlap): New function.
8567 (vmap_symtab): Use it to adjust the .bss section's offset.
8569 2013-01-01 Joel Brobecker <brobecker@adacore.com>
8571 Update year range in copyright notice of all files.
8573 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
8575 * top.c (print_gdb_version): Update copyright year.
8577 For older changes see ChangeLog-2012.
8583 version-control: never