1 2013-08-14 Tom Tromey <tromey@redhat.com>
3 * remote.c (struct remote_state) <finished_object,
4 finished_annex, finished_offset>: New fields.
5 (remote_read_qxfer): Use remote_state fields; remove static
8 2013-08-14 Tom Tromey <tromey@redhat.com>
10 * remote.c (struct remote_state) <last_sent_step>:
12 (last_sent_step): Remove.
13 (remote_resume, remote_wait_as): Update.
15 2013-08-14 Tom Tromey <tromey@redhat.com>
17 * remote.c (struct remote_state) <last_sent_signal>:
19 (last_sent_signal): Remove.
20 (new_remote_state, remote_resume, remote_wait_as): Update.
22 2013-08-14 Tom Tromey <tromey@redhat.com>
24 * remote.c (struct remote_state) <last_program_signals_packet>:
26 (last_program_signals_packet): Remove.
27 (remote_program_signals, remote_open_1): Update.
29 2013-08-14 Tom Tromey <tromey@redhat.com>
31 * remote.c (struct remote_state) <last_pass_packet>:
33 (last_pass_packet): Remove.
34 (remote_pass_signals, remote_open_1): Update.
36 2013-08-14 Tom Tromey <tromey@redhat.com>
38 * remote.c (struct remote_state) <remote_traceframe_number>:
40 (remote_traceframe_number): Remove.
41 (new_remote_state, remote_open_1, set_remote_traceframe)
42 (remote_trace_find): Update.
44 2013-08-14 Tom Tromey <tromey@redhat.com>
46 * remote.c (struct remote_state) <general_thread, continue_thread>:
48 (general_thread, continue_thread): Remove.
49 (record_currthread, set_thread, set_general_process)
50 (remote_open_1, extended_remote_attach_1, remote_wait_as)
51 (extended_remote_mourn_1): Update.
53 2013-08-14 Tom Tromey <tromey@redhat.com>
55 * remote.c (struct remote_state) <remote_desc>: New field.
56 (remote_desc): Remove.
57 (remote_threads_info, remote_threads_extra_info, remote_close)
58 (send_interrupt_sequence, remote_start_remote, remote_open_1)
59 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
60 (remote_hostio_send_command, remote_file_put, remote_file_get)
61 (remote_file_delete, remote_can_async_p, remote_is_async_p)
62 (remote_async, remote_new_objfile, set_range_stepping): Update.
64 2013-08-14 Tom Tromey <tromey@redhat.com>
66 * remote.c (remote_state): Now a pointer.
67 (get_remote_state_raw): Update.
68 (new_remote_state): New function.
69 (_initialize_remote): Use new_remote_state.
71 2013-08-14 Tom Tromey <tromey@redhat.com>
73 * remote.c (remote_protocol_features): Now const.
75 2013-08-14 Tom Tromey <tromey@redhat.com>
77 * remote.c (crc32_table, crc32): Remove.
78 (remote_verify_memory): Use xcrc32.
80 2013-08-13 Sergio Durigan Junior <sergiodj@redhat.com>
82 * value.h (create_internalvar_type_lazy): Adjust prototype
85 2013-08-13 Andrew Burgess <aburgess@broadcom.com>
87 * common/format.c (parse_format_string): Don't allow '#' flag for
88 pointer arguments in format string.
90 2013-08-13 Pierre Muller <muller@sourceware.org>
92 * utils.c (init_page_info): Only call tgetnum function
93 if rl_get_screen_size did not return useful values.
95 2013-08-12 Ali Anwar <ali_anwar@codesourcery.com>
98 * linespec.c (linespec_parse_basic): Check for convenience
99 variable or history value while parsing.
101 2013-08-12 Sergio Durigan Junior <sergiodj@redhat.com>
103 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
105 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
106 different signals between the generic Linux kernel implementation
108 (avr_linux_gdb_signal_from_target): Delete.
109 (avr_linux_gdb_signal_to_target): Delete.
110 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
112 2013-08-09 Doug Evans <dje@google.com>
114 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
117 2013-08-09 Sergio Durigan Junior <sergiodj@redhat.com>
119 * linux-tdep.c: Define enum with generic signal numbers.
120 (linux_gdb_signal_from_target): New function.
121 (linux_gdb_signal_to_target): Likewise.
122 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
123 methods to the functions above.
124 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
125 (linux_gdb_signal_to_target): Likewise.
126 * alpha-linux-tdep.c: Define new enum with signals different
127 from generic Linux kernel.
128 (alpha_linux_gdb_signal_from_target): New function.
129 (alpha_linux_gdb_signal_to_target): Likewise.
130 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
131 with the functions mentioned above.
132 * avr-tdep.c: Define enum with differences between Linux kernel
134 (avr_linux_gdb_signal_from_target): New function.
135 (avr_linux_gdb_signal_to_target): Likewise.
136 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
137 the functions mentioned above.
138 * sparc-linux-tdep.c: Define enum with differences between SPARC
139 and generic Linux kernel signal numbers.
140 (sparc32_linux_gdb_signal_from_target): New function.
141 (sparc32_linux_gdb_signal_to_target): Likewise.
142 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
143 to the functions defined above.
144 * xtensa-linux-tdep.c: Define enum with differences between
145 Xtensa and Linux kernel generic signals.
146 (xtensa_linux_gdb_signal_from_target): New function.
147 (xtensa_linux_gdb_signal_to_target): Likewise.
148 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
149 to the functions defined above.
150 * mips-linux-tdep.c: Define enum with differences between
151 signals in MIPS and Linux kernel generic ones.
152 (mips_gdb_signal_to_target): New function.
153 (mips_gdb_signal_from_target): Redefine to use new enum, handle
154 only different signals from the Linux kernel generic.
155 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
156 the functions defined above.
157 * mips-linux-tdep.h (enum mips_signals): Remove.
159 2013-08-09 Pedro Alves <palves@redhat.com>
161 * avr-tdep.c (XMALLOC): Delete macro.
162 * cli/cli-dump.c (XMALLOC): Delete macro.
164 2013-08-09 Pedro Alves <palves@redhat.com>
166 * cli/cli-dump.c: Don't include cli/cli-dump.h.
167 (scan_expression_with_cleanup, scan_filename_with_cleanup)
168 (fopen_with_cleanup, add_dump_command): Make static.
169 * cli/cli-dump.h: Delete file.
170 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
173 2013-08-09 Pedro Alves <palves@redhat.com>
175 * tracepoint.c (tfile_start): Show tilde-expanded filename in
178 2013-08-09 Pedro Alves <palves@redhat.com>
180 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
183 2013-08-09 Pedro Alves <palves@redhat.com>
185 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
186 (gcore_command): Use tilde_expand here, and when showing the
187 filename to the user, show the expanded version.
189 2013-08-09 Yao Qi <yao@codesourcery.com>
191 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
194 2013-08-08 Azat Khuzhin <a3at.mail@gmail.com> (tiny change)
196 * gcore.c (create_gcore_bfd): Use tilde_expand.
198 2013-08-08 Yao Qi <yao@codesourcery.com>
200 * frame.h (read_frame_local): Declare.
201 * mi/mi-cmd-stack.c (list_args_or_locals): Call
203 * stack.c (read_frame_local): New.
205 2013-08-08 Yao Qi <yao@codesourcery.com>
207 * mi/mi-cmd-stack.c: Update comments to function
210 2013-08-07 Tom Tromey <tromey@redhat.com>
213 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
214 (process_psymtab_comp_unit_reader): Use it.
215 (process_psymtab_comp_unit): Update. Add "pretend_language"
217 (dwarf2_build_psymtabs_hard): Update.
218 (scan_partial_symbols): Pass CU's language to
219 process_psymtab_comp_unit.
221 2013-08-07 Tom Tromey <tromey@redhat.com>
223 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
224 (dwarf2_gdb_index_functions): Update.
225 * psymtab.c (find_symbol_file_from_partial): Remove.
226 (psym_functions): Update.
227 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
230 2013-08-07 Tom Tromey <tromey@redhat.com>
232 * symfile.c (set_initial_language): Look up "main" symbol
233 and use its language.
234 * symtab.c (find_main_filename): Remove.
235 * symtab.h (find_main_filename): Remove.
237 2013-08-07 Tom Tromey <tromey@redhat.com>
239 * dwarf2read.c (recursively_compute_inclusions): Add
240 "immediate_parent" argument. Set symtab's "user" field
242 (compute_symtab_includes): Update.
244 2013-08-07 Tom Tromey <tromey@redhat.com>
246 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
247 when adding label symbols.
249 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
250 Ulrich Weigand <uweigand@de.ibm.com>
252 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
253 * configure.host (powerpc64-*-aix*): Likewise.
255 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
256 Ulrich Weigand <uweigand@de.ibm.com>
258 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
260 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
261 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
262 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
263 * configure.ac: Check for ptrace64.
264 * configure, config.in: Regenerate.
266 2013-08-07 Raunaq Bathija <raunaq12@in.ibm.com>
267 Ulrich Weigand <uweigand@de.ibm.com>
269 * aixthread.c: Call ptrace64 instead of ptracex if defined.
270 Call ptrace64 instead of ptrace if defined.
271 Add macro addr_ptr to take care of ptrace address argument.
272 (pdc_read_regs): Likewise.
273 (pdc_write_regs): Likewise.
274 (aix_thread_resume): Likewise.
275 (fetch_regs_kernel_thread): Likewise.
276 (store_regs_kernel_thread): Likewise.
278 2013-08-07 Anton Blanchard <anton@samba.org>
280 * MAINTAINERS: Add myself to Write After Approval.
282 2013-08-05 Tom Tromey <tromey@redhat.com>
284 * aix-thread.c (_initialize_aix_thread): Use
285 complete_target_initialization.
286 * bsd-uthread.c (_initialize_bsd_uthread): Use
287 complete_target_initialization.
288 * dec-thread.c (_initialize_dec_thread): Use
289 complete_target_initialization.
290 * ravenscar-thread.c (_initialize_ravenscar): Use
291 complete_target_initialization.
292 * sol-thread.c (_initialize_sol_thread): Use
293 complete_target_initialization.
294 * spu-multiarch.c (_initialize_spu_multiarch): Use
295 complete_target_initialization.
297 2013-08-05 Tom Tromey <tromey@redhat.com>
299 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
300 * ada-lang.c (ada_lookup_simple_minsym): Return
301 bound_minimal_symbol.
302 * ada-lang.h (ada_lookup_simple_minsym): Update.
303 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
304 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
305 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
306 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
307 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
308 * minsyms.c (msymbol_objfile): Remove.
309 (lookup_minimal_symbol_internal): New function, from
310 lookup_minimal_symbol.
311 (lookup_minimal_symbol): Rewrite using
312 lookup_minimal_symbol_internal.
313 (lookup_bound_minimal_symbol): New function.
314 * minsyms.h (msymbol_objfile): Remove.
315 (lookup_bound_minimal_symbol): Declare.
316 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
317 * parse.c (write_exp_msymbol): Change parameter to a
318 bound_minimal_symbol.
319 (write_dollar_variable): Use lookup_bound_minimal_symbol.
320 * parser-defs.h (write_exp_msymbol): Update.
321 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
322 * symfile.c (simple_read_overlay_table): Use
323 lookup_bound_minimal_symbol.
324 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
325 (search_symbols): Likewise.
326 (print_msymbol_info): Take a bound_minimal_symbol argument.
327 (symtab_symbol_info, rbreak_command): Update.
328 * symtab.h (struct symbol_search) <msymbol>: Change type
329 to bound_minimal_symbol.
330 * valops.c (find_function_in_inferior): Use
331 lookup_bound_minimal_symbol.
332 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
334 2013-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
337 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
339 (async_cleanup_sigint_signal_handler): ... this.
340 (initialize_sigint_signal_handler): Remove declaration.
341 (handle_remote_sigint): Rename the declaration to ...
342 (async_handle_remote_sigint): ... this.
343 (handle_remote_sigint_twice): Rename the declaration to ...
344 (async_handle_remote_sigint_twice): ... this.
345 (async_remote_interrupt, async_remote_interrupt_twice)
346 (remote_interrupt): Remove the declarations.
347 (remote_interrupt_twice): Rename the declaration ...
348 (sync_remote_interrupt_twice): ... this.
349 (sigint_remote_twice_token): Rename the variable to ...
350 (async_sigint_remote_twice_token): ... this.
351 (sigint_remote_token): Rename the variable to ...
352 (async_sigint_remote_token): ... this.
353 (initialize_sigint_signal_handler): Rename the function to ...
354 (async_initialize_sigint_signal_handler): ... this. Update the name
356 (handle_remote_sigint): Rename the function to ...
357 (async_handle_remote_sigint): ... this. Update the names inside.
358 (handle_remote_sigint_twice): Rename the function to ...
359 (async_handle_remote_sigint_twice): ... this. Update the names inside.
360 (cleanup_sigint_signal_handler): Rename the function to ...
361 (async_cleanup_sigint_signal_handler): ... this.
362 (remote_interrupt): Rename the function to ...
363 (sync_remote_interrupt): this. Update the names inside.
364 (remote_interrupt_twice): Rename the function to ...
365 (sync_remote_interrupt_twice): this. Update the names inside.
366 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
367 (_initialize_remote): Update the names inside.
369 2013-08-02 Tom Tromey <tromey@redhat.com>
372 * breakpoint.c (update_watchpoint, watchpoint_check)
373 (watch_command_1): Update.
374 * eval.c (fetch_subexp_value): Add "preserve_errors"
376 * ppc-linux-nat.c (check_condition): Update.
377 * value.h (fetch_subexp_value): Update.
379 2013-08-02 Andrew Burgess <aburgess@broadcom.com>
381 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
384 2013-08-01 Doug Evans <dje@google.com>
387 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
388 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
389 Add assert of sig_entry->dwo_unit == NULL.
390 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
391 had already been read.
392 (read_signatured_type): Set per_cu.tu_read.
395 * valops.c (value_struct_elt): Add missing call to check_typedef.
396 (value_find_oload_method_list): Ditto.
398 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
399 effectively, struct symbol_search **.
400 (make_cleanup_free_search_symbols): Change arg to struct
401 symbol_search **. All callers updated.
402 (compare_search_syms): Compare symtab file name and block as well.
403 (search_symbols_equal): New function.
404 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
405 New args new_head, new_tail. Result is now void. Remove dups after
407 (search_symbols): Sort all found symbols once, after all have been
408 found, and remove duplicates. Simplify cleanup tracking of result.
409 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
411 Further workarounds for binutils/15021.
412 * dwarf2read.c (recursively_compute_inclusions): Change type of result
413 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
414 Watch for duplicate symtabs coming from type units.
415 (compute_symtab_includes): Update call to
416 recursively_compute_inclusions. Build vector of included symtabs
418 * symtab.h (symtab_ptr): New typedef.
419 (DEF_VEC_P (symtab_ptr)): New VEC type.
420 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
423 2013-08-01 Andrew Burgess <aburgess@broadcom.com>
425 * cli/cli-script.c (script_from_file): Remove use of
427 * main.c (captured_main): Remove use of error_pre_print and
429 * utils.c (error_pre_print, quit_pre_print): Remove.
430 * utils.h (error_pre_print, quit_pre_print): Likewise.
432 2013-08-01 Yao Qi <yao@codesourcery.com>
434 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
436 (mi_cmd_stack_list_variables): Likewise.
438 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
440 * exceptions.c (deprecated_throw_reason): Remove.
441 * exceptions.h (deprecated_throw_reason): Remove.
443 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
445 * remote-mips.c (mips_error): Replace use of
446 deprecated_throw_reason with throw_verror. Use the error message
447 passed to mips_error as the error message for throw_verror.
449 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
451 * monitor.c (monitor_interrupt_query): Replace use of
452 deprecated_throw_reason with quit.
453 * nto-procfs.c (interrupt_query): Likewise.
454 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
455 * remote-mips.c (mips_kill): Likewise.
456 * remote.c (interrupt_query): Likewise.
458 2013-07-31 Andrew Burgess <aburgess@broadcom.com>
460 * utils.c (internal_verror): Replace use of deprecated_throw_reason
463 2013-07-31 Pedro Alves <pedro@codesourcery.com>
464 Yao Qi <yao@codesourcery.com>
466 * tracepoint.c (trace_dump_command): Select the current frame.
468 2013-07-30 Doug Evans <dje@google.com>
470 * dwarf2read.c (process_queue): Add type signature to debug output.
472 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
474 * value.c (value_fetch_lazy): Mark optimized out values as such
475 rather than raising an error.
477 2013-07-30 Andrew Burgess <aburgess@broadcom.com>
479 * value.c (value_fetch_lazy): Ensure parent value is not lazy
480 before checking which bits of the parent, not the child, value are
483 2013-07-30 Muhammad Bilal <mbilal@codesorcery.com>
486 * top.c: Include "filenames.h".
487 (set_history_filename): New function.
488 (init_main): Install it as set hook of the "set history filename"
491 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
493 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
495 (dwarf2_const_value_data): Constify struct attribute parameter.
496 (dwarf2_const_value): Constify struct attribute parameter.
497 (dwarf2_const_value_attr): Constify struct attribute parameter.
498 (lookup_die_type): Constify struct attribute parameter.
499 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
500 (follow_die_ref_or_sig): Constify struct attribute parameter.
501 (follow_die_ref): Constify struct attribute parameter.
502 (follow_die_sig): Constify struct attribute parameter.
503 (get_DW_AT_signature_type): Constify struct attribute parameter.
504 (get_type_unit_group): Constify struct attribute parameter.
505 (fill_in_loclist_baton): Constify struct attribute parameter.
506 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
507 (type_unit_group): Constify struct attribute parameter.
509 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
511 * dwarf2read.c (attr_form_is_block): Make argument const.
512 (attr_form_is_section_offset): Make argument const.
513 (attr_form_is_constant): Make argument const.
514 (attr_form_is_ref): Make argument const.
516 2013-07-30 Sanimir Agovic <sanimir.agovic@intel.com>
518 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
520 (attr_form_is_ref): Moved below attr_form_is_constant.
522 2013-07-29 Doug Evans <dje@google.com>
524 * main.c (captured_command_loop): Tweak comment.
526 * target.c (target_async_permitted_1): Fix comment.
528 * symtab.c (iterate_over_some_symtabs): Add comment.
530 * symtab.c (iterate_over_some_symtabs): Fix indentation.
532 2013-07-27 Yao Qi <yao@codesourcery.com>
534 * NEWS: Mention that GDBserver now supports hardware
535 watchpoints on the MIPS GNU/Linux target.
537 2013-07-27 Yao Qi <yao@codesourcery.com>
539 * Makefile.in (HFILES_NO_SRCDIR): Add
540 common/mips-linux-watch.h.
541 (mips-linux-watch.o): New rule.
542 * common/mips-linux-watch.c: New.
543 * common/mips-linux-watch.h: New.
544 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
545 * mips-linux-nat.c: Include mips-linux-watch.h.
546 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
547 to common/mips-linux-watch.h.
548 (MAX_DEBUG_REGISTER): Likewise.
549 (enum pt_watch_style): Likewise.
550 (struct mips32_watch_regs): Likewise.
551 (struct mips64_watch_regs): Likewise.
552 (struct pt_watch_regs): Likewise.
553 (struct mips_watchpoint): Likewise.
554 (mips_linux_watch_get_irw_mask): Move to
555 common/mips-linux-watch.c.
556 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
557 (mips_linux_watch_get_watchlo): Likewise.
558 (mips_linux_watch_set_watchlo): Likewise.
559 (mips_linux_watch_get_watchhi): Likewise.
560 (mips_linux_watch_set_watchhi): Likewise.
561 (mips_linux_read_watch_registers): Likewise.
562 (mips_linux_watch_type_to_irw): Likewise.
563 (mips_linux_stopped_data_address, fill_mask): Likewise.
564 (mips_linux_watch_try_one_watch): Likewise.
565 (mips_linux_watch_populate_regs): Likewise.
567 2013-07-27 Yao Qi <yao@codesourcery.com>
569 * mips-linux-nat.c (get_irw_mask): Rename to ...
570 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
571 'set' to 'n'. Update function comment. All callers changed.
572 (get_reg_mask): Rename parameter 'set' to 'n'. Update
573 function comment. All callers changed.
574 (get_num_valid): Rename to ...
575 (mips_linux_watch_get_num_valid): ... this. Rename parameter
576 'set' to 'n'. Update function comment. All callers changed.
577 (get_watchlo): Rename to ...
578 (mips_linux_watch_get_watchlo): ... this. Rename parameter
579 'set' to 'n'. Update function comment. All callers changed.
580 (set_watchlo): Rename to ...
581 (mips_linux_watch_set_watchlo): ... this. Rename parameter
582 'set' to 'n'. Update function comment. All callers changed.
583 (get_watchhi): Rename to ...
584 (mips_linux_watch_get_watchhi): ... this. Update function
585 comment. All callers changed.
586 (set_watchhi): Rename to ...
587 (mips_linux_watch_set_watchhi): ... this. Update function
588 comment. All callers changed.
589 (mips_linux_read_watch_registers): Update function comment.
590 Add new parameters 'lwpid', 'watch_readback', and
591 'watch_readback_valid'. Update.
592 (type_to_irw): Rename to ...
593 (mips_linux_watch_type_to_irw): ... this. Update function
594 comment. All callers changed.
595 (fill_mask): Update function comment.
596 (try_one_watch): Rename to ...
597 (mips_linux_watch_try_one_watch): ... this. Change the type
598 of parameter 'irw' from 'unsigned' to 'uint32_t'.
599 (populate_regs_from_watches): Rename to ...
600 (mips_linux_watch_populate_regs): ... this. Add parameter
601 'current_watches'. All callers changed.
603 2013-07-27 Yao Qi <yao@codesourcery.com>
605 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
607 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
608 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
609 (struct pt_watch_regs): Likewise.
610 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
611 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
612 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
613 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
614 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
616 2013-07-27 Yao Qi <yao@codesourcery.com>
618 * breakpoint.h: Include break-common.h.
619 (enum target_hw_bp_type): Move to ...
620 * common/break-common.h: ... here. New.
622 2013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
624 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
625 process group regardless of having tty on stdin.
627 2013-07-25 Doug Evans <dje@google.com>
629 * linux-fork.h (detach_fork): Delete.
631 2013-07-25 Tom Tromey <tromey@redhat.com>
633 PR remote/15256, PR remote/15266:
634 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
635 * monitor.c (monitor_detach): Use unpush_target.
636 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
637 * remote-mips.c (mips_detach): Use unpush_target. Don't
639 * remote-sim.c (gdbsim_detach): Use unpush_target.
640 * target.c (pop_target): Remove.
641 (pop_all_targets_above): Don't call target_close.
642 (target_close): Assert that the target is unpushed.
643 * target.h (pop_target): Don't declare.
644 * tracepoint.c (tfile_open): Use unpush_target.
646 2013-07-25 Tom Tromey <tromey@redhat.com>
648 * linux-thread-db.c (init_thread_db_ops): Call
649 complete_target_initialization.
650 (_initialize_thread_db): Don't call add_target.
651 * target.c (complete_target_initialization): New function.
652 (add_target_with_completer): Call it.
653 * target.h (complete_target_initialization): Declare.
655 2013-07-25 Mark Kettenis <kettenis@gnu.org>
657 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
658 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
659 (HPPANBSD_SIZEOF_GREGS): New define.
660 (hppaobsd_supply_gregset): Handle additional registers.
661 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
662 we provide more registers now.
663 (hppabsd_supply_gregset): Supply additional registers.
664 (hppabsd_collect_gregset): Collect additional registers.
666 2013-07-25 Mark Kettenis <kettenis@gnu.org>
668 * hppabsd-tdep.c: Include "dwarf2-frame.h".
669 (hppabsd_dwarf2_frame_init_reg): New function.
670 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
672 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
674 * mi/mi-main.c (output_register): Make MI 'r' format use standard
675 'z' format code. Remove error for optimized out values, standard
676 code will handle these fine.
678 2013-07-25 Andrew Burgess <aburgess@broadcom.com>
680 * NEWS: Mention new 'z' formatter.
681 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
682 (_initialize_printcmd): Mention 'z' formatter in help text of the
685 2013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
687 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
690 2013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
692 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
693 interface can evaluate arguments. Fallback to the old mode if it
695 (create_exception_master_breakpoint): Likewise.
696 * elfread.c (elf_can_evaluate_probe_arguments): New function.
697 (struct sym_probe_fns elf_probe_fns): Export function above to the
699 * probe.c (can_evaluate_probe_arguments): New function.
700 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
702 (can_evaluate_probe_arguments): New function prototype.
703 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
704 probe interface can evaluate arguments. Fallback to the old mode
706 * stap-probe.c (stap_get_probe_argument_count): Check if probe
707 interface can evaluate arguments. Warning the user if it cannot.
708 (stap_can_evaluate_probe_arguments): New function.
709 (struct probe_ops stap_probe_ops): Export function above to the
711 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
712 New function pointer.
714 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
716 * Makefile.in (SFILES): Add common/target-common.c.
717 Add common/target-common.h to headers.
718 (COMMON_OBS): Add target-common.o.
719 (target-common.o): New target.
720 * linux-nat.h (resume_kind): Move to common/target-common.h.
721 * target.c (target_waitstatus_to_string): Move to
722 common/target-common.c.
723 * target.h: Include target-common.h.
724 (target_waitkind): Move to common/target-common.h.
725 (target_waitstatus): Likewise.
726 (TARGET_WNOHANG): Likewise.
727 * common/target-common.c: New file.
728 * common/target-common.h: New file.
730 2013-07-24 Doug Evans <dje@google.com>
732 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
735 2013-07-23 Yao Qi <yao@codesourcery.com>
737 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
739 (i386_stack_tramp_frame_sniffer): Caller update.
740 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
741 parameter 'gdbarch' and 'target'.
742 (i386_linux_core_read_description): Caller update.
743 * amd64-linux-tdep.c (amd64_linux_core_read_description):
745 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
748 2013-07-23 Tom Tromey <tromey@redhat.com>
750 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
753 2013-07-22 Doug Evans <dje@google.com>
755 * exec.h (remove_target_sections): Delete arg abfd.
756 * exec.c (exec_close): Update call to remove_target_sections.
757 (remove_target_sections): Delete arg abfd.
758 * solib.c (update_solib_list): Ditto.
759 (reload_shared_libraries_1): Ditto.
760 (clear_solib): Ditto, and unconditionally call remove_target_sections.
761 * target.h (struct target_section): Rename key to owner.
764 2013-07-22 Tom Tromey <tromey@redhat.com>
766 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
768 2013-07-22 Tom Tromey <tromey@redhat.com>
770 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
771 Simplify cleanup handling.
773 2013-07-22 Tom Tromey <tromey@redhat.com>
775 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
778 2013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
780 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
781 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
782 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
784 2013-07-22 Phil Muldoon <pmuldoon@redhat.com>
786 * top.c (print_gdb_version): Add help, apropos description and
787 url to online documentation.
789 2013-07-19 Hui Zhu <hui@codesourcery.com>
792 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
794 2013-07-19 Yao Qi <yao@codesourcery.com>
796 * target.c (update_current_target): Change the default action
797 of 'to_traceframe_info' from tcomplain to return_zero.
798 * target.h (struct target_ops) <to_traceframe_info>: Add more
800 * valops.c (read_value_memory): Call
801 traceframe_available_memory unconditionally.
803 2013-07-18 Yao Qi <yao@codesourcery.com>
805 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
806 if the name is prefixed by "__imp_" or "_imp_", look for minimal
807 symbol without prefix. If found, set its type to
808 'mst_solib_trampoline'.
810 2013-07-17 Doug Evans <dje@google.com>
812 * NEWS: Mention "set print raw frame-arguments".
813 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
814 * stack.c (print_raw_frame_arguments): New static global.
815 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
816 (_initialize_stack): New command "set/show print raw frame-arguments".
817 * valprint.c (setprintrawlist, showprintrawlist): New globals.
818 (set_print_raw, show_print_raw): New functions.
819 (_initialize_valprint): New prefix command "set/show print raw".
820 * valprint.h (value_print_options): Improve comments.
822 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
823 of all *list variables.
825 * gdbcmd.h (togglelist): Delete.
826 * cli/cli-cmds.c (togglelist): Delete.
827 (init_cmd_lists): Update.
828 * cli/cli-cmds.h (togglelist): Delete.
830 2013-07-17 Tom Tromey <tromey@redhat.com>
832 * dwarf2read.c (dwarf2_per_objfile_free): Clear
835 2013-07-16 Doug Evans <dje@google.com>
837 * nto-tdep.c (nto_relocate_section_addresses): Update,
838 target_section.bfd deleted.
839 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
840 * s390-tdep.c (s390_load): Ditto.
841 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
843 2013-07-16 Andrew Burgess <aburgess@broadcom.com>
845 * common/format.c (parse_format_string): Add checks for NULL
846 character before calling strchr.
848 2013-07-16 Doug Evans <dje@google.com>
850 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
851 temp_pathname argument.
852 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
853 when opening the file fails.
855 * target.h (struct target_section): Delete member bfd.
856 All users updated to use the_bfd_section->owner instead.
857 * exec.c (add_to_section_table): Assert bfd is expected value.
858 Remove initialization of target_section.bfd.
859 (remove_target_sections): Update.
860 (section_table_available_memory): Update.
861 (section_table_xfer_memory_partial): Update.
862 (print_section_info): Update.
863 (exec_set_section_address): Update.
864 * record-full.c (record_full_core_xfer_partial): Update.
865 * solib-svr4.c (svr4_relocate_section_addresses): Update.
866 * solib-target.c (solib_target_relocate_section_addresses): Update.
867 * symfile.c (build_section_addr_info_from_section_table): Update.
868 * target.c (memory_xfer_live_readonly_partial): Update.
869 (memory_xfer_partial_1): Update.
871 2013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
873 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
874 now available for embedded (BookE) and server (BookS) processors,
875 correct mentions of 'booke' and adjust comments accordingly in order to
876 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
877 (have_ptrace_booke_interface): Rename function and variable
878 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
879 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
880 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
881 'hwdebug_point_cmp'. Update all uses.
882 (booke_find_thread_points_by_tid): Rename function
883 'booke_find_thread_points_by_tid' to
884 'hwdebug_find_thread_points_by_tid'. Update all uses.
885 (booke_insert_point): Rename function 'booke_insert_point' to
886 'hwdebug_insert_point'. Update all uses.
887 (booke_remove_point): Rename function 'booke_remove_point' to
888 'hwdebug_remove_point'. Update all uses.
890 2013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
892 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
893 numbers with enum values.
895 2013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
898 * thread.c (thread_apply_all_command): Check for valid threads
900 (thread_array_cleanup): New struct.
901 (set_thread_refcount): New function.
903 2013-07-11 Andrew Burgess <aburgess@broadcom.com>
905 * infcmd.c (default_print_one_register_info): Reuse function
908 2013-07-10 Tom Tromey <tromey@redhat.com>
910 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
911 (ada-exp.o): New target.
913 2013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
915 * mt-tdep.c (mt_registers_info): Call
916 get_no_prettyformat_print_options instead of
917 get_raw_print_options (regression by last patch from Doug
920 2013-07-09 Pedro Alves <palves@redhat.com>
922 Checked in by Joel Brobecker <brobecker@adacore.com>.
923 * ada-lang.c (coerce_unspec_val_to_type): Use
924 value_optimized_out_const.
925 * value.c (value_optimized_out_const): New function.
926 * value.h (value_optimized_out_const): New declaration.
928 2013-07-09 Doug Evans <dje@google.com>
930 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
931 Enum values rename as well. All uses updated.
932 * valprint.h (value_print_options): Rename member pretty to
933 pretty format. Rename member prettyprint_arrays to
934 prettyformat_arrays. Rename member prettyprint_structs to
935 prettyformat_structs. All uses updated.
936 (get_no_prettyformat_print_options): Renamed from
937 get_raw_print_options.
938 * valprint.c (get_no_prettyformat_print_options): Renamed from
939 get_raw_print_options. All callers updated.
940 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
942 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
944 (_initialize_valprint): Improve help text for "set print pretty" and
947 2013-07-09 Andrew Burgess <aburgess@broadcom.com>
949 * value.c (value_bits_valid): Revert previous change, and change
950 by Pedro on 2013-07-04, due to regressions in
951 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
953 2013-07-08 Andrew Burgess <aburgess@broadcom.com>
954 Pedro Alves <palves@redhat.com>
956 * value.c (value_bits_valid): If the value is not lval_computed
957 or has no check validity handler then the answer is the
958 optimized_out flag, otherwise defer to the handler.
960 2013-07-06 Eli Zaretskii <eliz@gnu.org>
962 * top.c (print_gdb_configuration): Explain in output of
963 --configuration what does "relocatable" mean.
965 * main.c (print_gdb_help): Regroup options in the --help text.
966 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
967 the relevant discussions.
969 2013-07-06 Yao Qi <yao@codesourcery.com>
971 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
972 Remove parameter 'lsal'.
973 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
974 to inner block. Caller update.
975 (base_breakpoint_create_breakpoints_sal): Update.
976 (bkpt_create_breakpoints_sal): Likewise.
977 (tracepoint_create_breakpoints_sal): Likewise.
978 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
979 element 0 of vector 'canonical->sals'.
981 2013-07-05 Luis Machado <lgustavo@codesourcery.com>
983 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
984 register number instead of the pseudo register one.
985 (rs6000_dwarf2_reg_to_regnum): Likewise.
987 2013-07-04 Pedro Alves <palves@redhat.com>
989 * findvar.c (value_of_register): Use allocate_optimized_out_value
990 if the register has been optimized out, instead of
991 set_value_optimized_out.
992 * frame-unwind.c (frame_unwind_got_optimized): Use
993 allocate_optimized_out_value.
995 2013-07-04 Pedro Alves <palves@redhat.com>
997 * value.c (value_bits_valid): If the value is not lval_computed,
998 or doesn't have a check_validity hook, assume the value is entirely
1001 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
1003 * stack.c (read_frame_arg): No longer fetch lazy values.
1004 * value.c (value_optimized_out): If the value is not already
1005 marked optimized out, and is lazy then fetch it.
1006 (value_primitive_field): Move optimized out check to later in the
1007 function, after we have loaded any lazy values.
1008 (value_fetch_lazy): Use optimized out flag directly rather than
1009 calling optimized_out method.
1011 2013-07-04 Andrew Burgess <aburgess@broadcom.com>
1013 * valops.c: Don't include "user-regs.h".
1014 (value_fetch_lazy): Moved to value.c.
1015 * value.c: Include "user-regs.h".
1016 (value_fetch_lazy): Moved from valops.c.
1018 2013-07-04 Yao Qi <yao@codesourcery.com>
1021 2013-06-27 Yao Qi <yao@codesourcery.com>
1023 * common/create-version.sh: Update comments. Handle the case
1024 that TARGET_ALIAS is empty.
1026 2013-07-03 Pedro Alves <palves@redhat.com>
1028 * Makefile.in (config.status): Depend on development.sh.
1029 (aclocal_m4_deps): Add libmcheck.m4.
1030 * acinclude.m4: Include libmcheck.m4.
1031 * configure.ac: Source development.sh instead of setting
1032 'development' here. --enable-libmcheck/--disable-libmcheck code
1033 factored out to GDB_AC_LIBMCHECK. Run it.
1034 * development.sh: New file.
1035 * libmcheck.m4: New file.
1036 * configure: Regenerate.
1038 2013-07-02 Tom Tromey <tromey@redhat.com>
1040 * contrib/ari/update-web-ari.sh: Update for version.in change.
1042 2013-07-02 Tom Tromey <tromey@redhat.com>
1044 * common/ptid.h: Comment fixes.
1046 2013-07-01 Tom Tromey <tromey@redhat.com>
1048 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
1049 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
1050 (dwarf2_read_index, create_all_comp_units): Update.
1052 2013-07-01 Tom Tromey <tromey@redhat.com>
1054 * configure.ac (build_warnings): Add -Wold-style-definition.
1055 * configure: Rebuild.
1056 * machoread.c (_initialize_machoread): Use "(void)".
1057 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
1060 2013-07-01 Tom Tromey <tromey@redhat.com>
1062 * configure.ac (build_warnings): Add -Wold-style-declaration.
1063 * configure: Rebuild.
1064 * dsrec.c (make_srec): Use "static const", not "const static".
1065 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
1067 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
1068 Use "static const", not "const static".
1069 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
1071 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
1073 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
1075 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
1077 (v850_dbtrap_breakpoint_from_pc): Likewise.
1078 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
1081 2013-07-01 Tom Tromey <tromey@redhat.com>
1083 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
1084 * configure: Rebuild.
1086 2013-07-01 Pedro Alves <palves@redhat.com>
1088 * defs.h: Include "pathmax.h".
1089 * utils.c: Don't include sys/param.h.
1090 (gdb_realpath): Remove code that checks for MAXPATHLEN.
1091 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
1092 instead of MAXPATHLEN.
1093 * solib-sunos.c: Don't include sys/param.h.
1094 * xcoffread.c: Don't include sys/param.h.
1095 * bsd-kvm.c: Don't include sys/param.h.
1096 * darwin-nat.c: Don't include sys/param.h.
1097 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1098 * darwin-nat-info.c: Don't include sys/param.h.
1099 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
1101 * i386obsd-nat.c: Don't include sys/param.h.
1102 * inf-child.c: Don't include sys/param.h.
1103 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
1104 * linux-fork.c: Don't include sys/param.h.
1105 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
1106 * linux-nat.c: Don't include sys/param.h.
1107 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
1108 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
1109 * m68klinux-nat.c: Don't include sys/param.h.
1110 * nbsd-nat.c: Don't include sys/param.h.
1111 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
1112 * ppc-linux-nat.c: Don't include sys/param.h.
1113 * rs6000-nat.c: Don't include sys/param.h.
1114 * spu-linux-nat.c. Don't include sys/param.h.
1115 * windows-nat.c: Don't include sys/param.h.
1116 * xtensa-linux-nat.c: Don't include sys/param.h.
1117 * config/i386/nm-fbsd.h: Don't include sys/param.h.
1119 2013-07-01 Pedro Alves <palves@redhat.com>
1121 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
1122 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
1123 * gnulib/aclocal.m4: Regenerate.
1124 * gnulib/config.in: Regenerate.
1125 * gnulib/configure: Regenerate.
1126 * gnulib/import/pathmax.h: New file.
1127 * gnulib/import/Makefile.am: Regenerate.
1128 * gnulib/import/Makefile.in: Regenerate.
1129 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
1130 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
1131 * gnulib/import/m4/pathmax.m4: New file.
1133 2013-07-01 Pedro Alves <palves@redhat.com>
1135 * configure.ac (GDBINIT): Define, depending on host.
1136 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
1137 * top.c (PATH_MAX): Delete fallback definition.
1138 (GDBINIT_FILENAME): Delete.
1139 (gdbinit): Reimplement as const char array set to the GDBINIT
1141 * top.h (gdbinit): Make const.
1142 * configure, config.in: Regenerate.
1144 2013-07-01 Pedro Alves <palves@redhat.com>
1146 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
1147 * cli/cli-cmds.h (source_script): Likewise.
1148 * exceptions.c (catch_command_errors_const): New function.
1149 * exceptions.h (catch_command_errors_const): Declare.
1150 * main.c (get_init_files): Make parameters const, and adjust.
1151 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
1152 'local_gdbinit' locals const. Adjust to use
1153 catch_command_errors_const.
1154 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
1155 'local_gdbinit' locals const.
1157 2013-07-01 Pedro Alves <palves@redhat.com>
1159 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
1160 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
1161 * tracepoint.c: Don't check HAVE_UNISTD_H before including
1164 2013-07-01 Pedro Alves <palves@redhat.com>
1166 Import the "unistd" gnulib module.
1167 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
1168 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
1169 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
1170 import/m4/unistd_h.m4.
1171 * gnulib/aclocal.m4: Renenerate.
1172 * gnulib/config.in: Renenerate.
1173 * gnulib/configure: Renenerate.
1174 * gnulib/import/Makefile.am: Renenerate.
1175 * gnulib/import/Makefile.in: Renenerate.
1176 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
1177 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
1178 * gnulib/import/m4/off_t.m4: New file.
1179 * gnulib/import/m4/ssize_t.m4: New file.
1180 * gnulib/import/m4/sys_types_h.m4: New file.
1181 * gnulib/import/m4/unistd_h.m4: New file.
1182 * gnulib/import/sys_types.in.h: New file.
1183 * gnulib/import/unistd.c: New file.
1184 * gnulib/import/unistd.in.h: New file.
1186 2013-07-01 Pedro Alves <palves@redhat.com>
1188 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
1189 defined instead of checking HAVE_UNISTD_H.
1191 2013-07-01 Pedro Alves <palves@redhat.com>
1193 Reimport gnulib from scratch.
1194 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
1195 import/m4/onceonly.m4.
1196 * gnulib/aclocal.m4: Renegerate.
1197 * gnulib/config.in: Renegerate.
1198 * gnulib/configure: Renegerate.
1199 * gnulib/import/Makefile.in: Renegerate.
1200 * gnulib/import/extra/update-copyright: Renegerate.
1201 * gnulib/import/m4/onceonly.m4: Delete.
1203 2013-07-01 Pedro Alves <palves@redhat.com>
1205 * tui/tui-regs.c (pagination_enabled): Delete declaration.
1207 2013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1210 * remote.c (async_remote_interrupt_twice): Make it static.
1211 * remote.h (async_remote_interrupt_twice): Remove the declaration.
1213 2013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
1215 * ia64-linux-tdep.c: Include <ctype.h>.
1216 (ia64_linux_stap_is_single_operand): New function.
1217 (ia64_linux_init_abi): Initialize SystemTap related attributes.
1219 2013-06-28 Tom Tromey <tromey@redhat.com>
1221 * Makefile.in (version.c): Use version.in, not
1223 * common/create-version.sh: Likewise.
1224 * common/version.in: Move...
1225 * version.in: ...here.
1227 2013-06-28 Pedro Alves <palves@redhat.com>
1229 * infrun.c (set_observer_mode): Don't declare pagination_enabled
1231 * utils.h (pagination_enabled): Declare.
1233 2013-06-28 Pedro Alves <palves@redhat.com>
1235 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
1236 Move higher up in file.
1238 2013-06-28 Tom Tromey <tromey@redhat.com>
1240 * tracepoint.c (deprecated_readline_begin_hook)
1241 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
1244 2013-06-28 Pedro Alves <palves@redhat.com>
1247 * tui/tui-regs.c (tui_get_register): Fetch value contents before
1248 checking if they're available.
1249 * value.c (value_available_contents_eq): Change comment.
1250 * value.h (value_available_contents_eq): Expand comment.
1252 2013-06-27 Tom Tromey <tromey@redhat.com>
1254 * target.c (find_run_target): Remove.
1255 * target.h (find_run_target): Remove.
1257 2013-06-27 Tom Tromey <tromey@redhat.com>
1259 * corelow.c (core_gdbarch): Now static.
1261 2013-06-27 Tom Tromey <tromey@redhat.com>
1263 * target.c (target_struct_index): Remove.
1265 2013-06-27 Pedro Alves <palves@redhat.com>
1267 * infrun.c: Remove comment describing the 'stepping over runtime
1268 loader dynamic symbol resolution code' mechanism; moved to
1271 2013-06-27 Pedro Alves <palves@redhat.com>
1273 * exceptions.c (catch_command_errors): Remove spurious space.
1274 * exceptions.h (catch_command_errors): Second parameter is "arg",
1277 2013-06-27 Yao Qi <yao@codesourcery.com>
1279 * common/create-version.sh: Update comments. Handle the case
1280 that TARGET_ALIAS is empty.
1282 2013-06-26 Pedro Alves <palves@redhat.com>
1284 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
1287 2013-06-26 Pedro Alves <palves@redhat.com>
1289 * infrun.c: Update comments on stepping over runtime loader
1290 dynamic symbol resolution code.
1292 2013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
1294 * ax-gdb.h (union exp_element): Forward declare.
1295 * parser-defs.h: Include expression.h.
1297 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1299 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
1301 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
1303 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
1305 2013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
1307 Fix trace-status to output proper start-time and stop-time.
1308 * tracepoint.c (trace_status_command): Fix type of printf arg to
1309 prevent improper type conversion.
1310 (trace_status_mi): Likewise.
1312 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1314 * mips-tdep.c (mips_next_pc): Fix a typo.
1316 2013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
1318 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
1320 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1321 Yao Qi <yao@codesourcery.com>
1323 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
1324 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
1325 * mi/mi-main.c (print_variable_or_computed): New function.
1326 (mi_cmd_trace_frame_collected): New function.
1327 * tracepoint.c (find_trace_state_variable_by_number): New.
1328 (struct traceframe_info): Move to tracepoint.h
1329 (struct collection_list): Likewise.
1330 (do_collect_symbol): Include locals and arguments in the
1331 collected variables list.
1332 (clear_collection_list): Clear wholly collected variables list
1333 and computed variables list.
1334 (append_exp): New function.
1335 (encode_actions_1): Include variables in the wholly
1336 collected variables list. Include memory ranges and
1337 full-fledged expressions in the computed expressions list.
1338 (encode_actions): Move some code to ...
1339 Return the cleanup chain.
1340 (encode_actions_rsp): ... here. New function.
1341 (get_traceframe_location, get_traceframe_info): Remove static.
1342 * tracepoint.h (struct memrange): Moved from tracepoint.c.
1343 (struct collection_list): Moved from tracepoint.c. Add two
1344 new fields 'wholly_collected' and 'computed'.
1345 (find_trace_state_variable_by_number): Declare.
1346 (encode_actions): Adjust declaration.
1347 (encode_actions_rsp): Declare.
1348 (get_traceframe_info, get_traceframe_location): Declare.
1350 * NEWS: Mention new MI command -trace-frame-collected.
1352 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1353 Yao Qi <yao@codesourcery.com>
1355 * ctf.c (ctf_traceframe_info): Push trace state variables
1356 present in the trace data into the traceframe info object.
1357 * breakpoint.c (DEF_VEC_I): Remove.
1358 * common/filestuff.c (DEF_VEC_I): Likewise.
1359 * dwarf2loc.c (DEF_VEC_I): Likewise.
1360 * mi/mi-main.c (DEF_VEC_I): Likewise.
1361 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
1362 * features/traceframe-info.dtd: Add tvar element and its
1364 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
1365 (build_traceframe_info): Push trace state variables present in
1366 the trace data into the traceframe info object.
1367 (traceframe_info_start_tvar): New function.
1368 (tvar_attributes): New.
1369 (traceframe_info_children): Add "tvar" element.
1370 * tracepoint.h (struct traceframe_info) <tvars>: New field.
1372 * NEWS: Mention the change in GDB and GDBserver.
1374 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1375 Yao Qi <yao@codesourcery.com>
1377 * tracepoint.c (trace_dump_command): Move code to ...
1378 (get_traceframe_location): ... here. New.
1380 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1381 Yao Qi <yao@codesourcery.com>
1383 * tracepoint.c (trace_dump_command): GDB emits an error
1384 instead of a warning when a traceframe is not selected.
1386 2013-06-26 Pedro Alves <pedro@codesourcery.com>
1387 Yao Qi <yao@codesourcery.com>
1389 * tracepoint.c (tracepoint_list, stepping_list): Remove.
1390 (clear_collection_list): Free fields 'aexpre_list' and 'list'
1392 (do_clear_collection_list, init_collection_list): New.
1393 (encode_actions): Add local variables 'tracepoint_list' and
1394 'stepping_list'. Call init_collection_list and make cleanup
1395 which calls do_clear_collection_list. Don't call
1396 clear_collection_list.
1397 (_initialize_tracepoint): Delete references to
1398 'tracepoint_list' and 'stepping_list'.
1400 2013-06-25 Tom Tromey <tromey@redhat.com>
1402 * common/create-version.sh (date): Use "$", not "$$" in sed
1405 2013-06-25 Kevin Buettner <kevinb@redhat.com>
1407 * NEWS (New targets): Add entry for TI MSP430.
1409 2013-06-25 Yao Qi <yao@codesourcery.com>
1411 * remote.c (remote_start_remote): Move code to upload tsv
1414 2013-06-25 Yao Qi <yao@codesourcery.com>
1415 Hui Zhu <hui@codesourcery.com>
1416 Pedro Alves <palves@redhat.com>
1418 PR breakpoints/15075
1419 PR breakpoints/15434
1420 * breakpoint.c (bpstat_stop_status): Call
1421 b->ops->after_condition_true.
1422 (update_dprintf_command_list): Don't append "continue" command
1423 to the command list of dprintf breakpoint.
1424 (base_breakpoint_after_condition_true): New function.
1425 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
1426 (dprintf_after_condition_true): New function.
1427 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
1428 * breakpoint.h (breakpoint_ops): Add after_condition_true.
1430 2013-06-24 Kevin Buettner <kevinb@redhat.com>
1432 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
1433 (ALLDEPFILES): Add msp430-tdep.c.
1434 * configure.tgt (msp430*-*-elf): New target.
1435 * msp430-tdep.c: New file.
1437 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
1439 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
1440 microMIPS synthetic symbols.
1442 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
1444 * objfiles.h (pc_in_section): New prototype.
1445 (in_plt_section): Remove name argument, replace prototype with
1446 static inline function.
1447 * mips-tdep.h: Include "objfiles.h".
1448 (in_mips_stubs_section): New function.
1449 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
1450 in_solib_call_trampoline member.
1451 (hppa_in_solib_call_trampoline): Remove name argument.
1452 * objfiles.c (pc_in_section): New function.
1453 (in_plt_section): Remove function.
1454 * mips-linux-tdep.c: Include "objfiles.h".
1455 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
1456 name argument. Return 1 rather than the low 16-bit halfword of
1457 any instruction examined.
1458 (mips_linux_in_dynsym_resolve_code): Update
1459 mips_linux_in_dynsym_stub call accordingly.
1460 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
1461 rather than an equivalent hand-coded sequence.
1462 * hppa-hpux-tdep.c (in_opd_section): Remove function.
1463 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
1464 (hppa64_hpux_in_solib_call_trampoline): Likewise.
1465 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
1467 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
1468 on call to tdep->in_solib_call_trampoline.
1469 (hppa_in_solib_call_trampoline): Remove name argument, update
1470 according to in_plt_section change.
1471 (hppa_skip_trampoline_code): Update according to in_plt_section
1473 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
1474 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
1476 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
1477 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1478 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1479 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
1480 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
1481 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
1482 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
1483 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
1484 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
1485 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
1486 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
1487 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
1488 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
1490 2013-06-24 Joel Brobecker <brobecker@adacore.com>
1492 * common/create-version.sh: Fix expansion of $host_alias
1493 and $target_alias in generation of HOST_NAME and TARGET_NAME
1496 2013-06-24 Tom Tromey <tromey@redhat.com>
1498 * common/create-version.sh: New file.
1499 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
1501 (HFILES_NO_SRCDIR): Use common/version.h.
1502 * version.in: Move to ...
1503 * common/version.in: ... here. Replace date with "DATE".
1504 * version.h: Move to ...
1505 * common/version.h: ... here.
1507 2013-06-21 Joel Brobecker <brobecker@adacore.com>
1509 * gdb/gnulib/Makefile.in: Update date in copyright header.
1510 * gdb/gnulib/configure.ac: Ditto.
1511 * gdb/gnulib/update-gnulib.sh: Ditto.
1513 2013-06-21 Joel Brobecker <brobecker@adacore.com>
1515 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
1516 "gdb/gnulib/import".
1518 2013-06-21 Will Newton <will.newton@linaro.org>
1520 * doublest.c (ldfrexp): Remove function.
1521 (convert_doublest_to_floatformat): Call frexpl instead of
1524 2013-06-21 Will Newton <will.newton@linaro.org>
1526 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
1527 * gnulib/aclocal.m4: Regenerate.
1528 * gnulib/config.in: Regenerate.
1529 * gnulib/configure: Regenerate.
1530 * gnulib/import/Makefile.am: Update.
1531 * gnulib/import/Makefile.in: Update.
1532 * gnulib/import/m4/gnulib-cache.m4: Update.
1533 * gnulib/import/m4/gnulib-comp.m4: Update.
1534 * gnulib/import/float+.h: Import.
1535 * gnulib/import/float.c: Import.
1536 * gnulib/import/float.in.h: Import.
1537 * gnulib/import/fpucw.h: Import.
1538 * gnulib/import/frexp.c: Import.
1539 * gnulib/import/frexpl.c: Import.
1540 * gnulib/import/isnan.c: Import.
1541 * gnulib/import/isnand-nolibm.h: Import.
1542 * gnulib/import/isnand.c: Import.
1543 * gnulib/import/isnanl-nolibm.h: Import.
1544 * gnulib/import/isnanl.c: Import.
1545 * gnulib/import/itold.c: Import.
1546 * gnulib/import/m4/exponentd.m4: Import.
1547 * gnulib/import/m4/exponentl.m4: Import.
1548 * gnulib/import/m4/float_h.m4: Import.
1549 * gnulib/import/m4/fpieee.m4: Import.
1550 * gnulib/import/m4/frexp.m4: Import.
1551 * gnulib/import/m4/frexpl.m4: Import.
1552 * gnulib/import/m4/isnand.m4: Import.
1553 * gnulib/import/m4/isnanl.m4: Import.
1554 * gnulib/import/m4/math_h.m4: Import.
1555 * gnulib/import/math.c: Import.
1556 * gnulib/import/math.in.h: Import.
1558 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1560 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
1561 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
1562 signature_INTEL_edx comparisons.
1564 2013-06-20 Doug Evans <dje@google.com>
1567 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
1568 All callers updated.
1569 (open_dwp_file): If we can't find the dwp file, search the basename
1570 in debug-file-directory.
1572 * dwarf2read.c (struct dwp_file): Fix comment.
1573 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
1575 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
1578 2013-06-20 Yao Qi <yao@codesourcery.com>
1580 * breakpoint.c (create_breakpoint): Fix code indentation.
1582 2013-06-20 Yao Qi <yao@codesourcery.com>
1584 * breakpoint.c (create_breakpoints_sal_default): Remove
1585 parameter 'lsal'. Update declaration.
1586 (bkpt_create_breakpoints_sal): Caller update.
1587 (tracepoint_create_breakpoints_sal): Likewise.
1589 2013-06-20 Pedro Alves <pedro@codesourcery.com>
1590 Yao Qi <yao@codesourcery.com>
1592 * NEWS: Mention the new option '--skip-unavailable' of command
1593 -data-list-register-values.
1594 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
1595 --skip-unavailable option. Adjust to use output_register.
1596 (output_register): Add new 'skip_unavailable' parameter.
1599 2013-06-19 Mike Frysinger <vapier@gentoo.org>
1601 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
1602 common/i386-gcc-cpuid.h.
1603 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
1604 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
1605 Copy the latest version from upstream gcc.
1606 * common/linux-btrace.c: Include i386-cpuid.h.
1607 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
1609 (cpu_supports_btrace): Likewise.
1610 * go32-nat.c: Include i386-cpuid.h.
1611 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
1613 2013-06-19 Doug Evans <dje@google.com>
1615 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
1616 (get_section_index): Ditto.
1618 2013-06-19 Tom Tromey <tromey@redhat.com>
1620 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
1623 2013-06-18 Doug Evans <dje@google.com>
1625 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
1627 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
1628 Move test of cu_index closer to use. Print complaint if cu_index
1631 2013-06-18 Joel Brobecker <brobecker@adacore.com>
1633 * machoread.c (oso_vector): Delete this global.
1634 (macho_register_oso): Add new parameter "oso_vector_ptr".
1635 Use it instead of the "oso_vector" global.
1636 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
1637 (macho_symfile_read): Use a local oso_vector, to be free'ed
1638 at the end of this function, in place of the old "oso_vector"
1639 global. Update various function calls accordingly. Use one
1640 single cleanup chain for the entire function.
1642 2013-06-18 Joel Brobecker <brobecker@adacore.com>
1644 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
1645 DWARF2_PER_OBJFILE by uses of DATA instead.
1647 2013-06-18 Tom Tromey <tromey@redhat.com>
1649 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
1651 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
1652 Special case signals other than GDB_SIGNAL_TRAP.
1653 (explains_signal_watchpoint): New function.
1654 (base_breakpoint_explains_signal): Add 'sig' argument.
1655 (initialize_breakpoint_ops): Set 'explains_signal' method for
1657 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
1659 (bpstat_explains_signal): Likewise.
1660 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
1662 2013-06-18 Tom Tromey <tromey@redhat.com>
1664 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
1666 2013-06-18 Tom Tromey <tromey@redhat.com>
1668 * python/python.c (finish_python_initialization): Decref
1669 'pythondir' on failure path as well.
1671 2013-06-18 Tom Tromey <tromey@redhat.com>
1674 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
1675 after taking bits_to_skip into account. Sign extend byte_offset.
1676 * utils.h (gdb_sign_extend): Declare.
1677 * utils.c (gdb_sign_extend): New function.
1679 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1681 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
1683 2013-06-17 Pierre Muller <muller@sourceware.org>
1685 * corelow.c (core_open): Print GDB signal name instead of target
1688 2013-06-17 Mike Frysinger <vapier@gentoo.org>
1690 * .gitignore: Add /gcore.
1692 2013-06-13 Doug Evans <dje@google.com>
1694 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
1695 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
1697 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
1699 * stack.c (backtrace_command_1): Fix indentation.
1701 2013-06-11 Joel Brobecker <brobecker@adacore.com>
1703 * window-nat.c (thread_rec): Add missing empty line after
1704 local variable declaration.
1706 2013-06-11 Joel Brobecker <brobecker@adacore.com>
1708 * windows-nat.c (thread_rec): Revert format used to print
1709 error code returned by SuspendThread from %d back to %u.
1711 2013-06-11 Joel Brobecker <brobecker@adacore.com>
1713 * windows-nat.c (windows_continue): Add "0x" prefix for thread
1715 (get_windows_debug_event): Likewise, for all debug traces.
1717 2013-06-11 Joel Brobecker <brobecker@adacore.com>
1719 * window-nat.c (thread_rec): Add thread ID in SuspendThread
1722 2013-06-08 Pedro Alves <pedro@codesourcery.com>
1723 Yao Qi <yao@codesourcery.com>
1725 * mi/mi-main.c (get_register): Remove declaration.
1726 (output_register): Declare.
1727 (mi_cmd_data_list_register_values): Remove local variable
1728 'tuple_cleanup'. Move some code into output_register.
1729 (get_register): Renamed to ...
1730 (output_register): ... this. Output the register's
1731 "number" ui_out tuple here.
1733 2013-06-07 Pedro Alves <palves@redhat.com>
1735 * darwin-nat.c: Fix formating in copyright header.
1736 * darwin-nat.h: Likewise.
1737 * gnu-nat.c: Likewise.
1738 * machoread.c: Likewise.
1740 2013-06-07 Pedro Alves <palves@redhat.com>
1743 * regformats/regdat.sh: Output #include tdesc.h. Make globals
1744 static. Output a global target description pointer.
1745 (init_registers_${name}): Adjust to initialize a
1746 target description structure.
1748 2013-06-07 Will Newton <will.newton@linaro.org>
1750 * printcmd.c (build_address_symbolic): Call
1751 gdbarch_addr_bits_remove for text minimal symbols.
1753 2013-06-07 Will Newton <will.newton@linaro.org>
1755 * MAINTAINERS: Add myself to Write After Approval.
1757 2013-06-07 Yao Qi <yao@codesourcery.com>
1759 * tracepoint.c (start_tracing): Move code to ...
1760 (trace_reset_local_state): ... here. New.
1761 (disconnect_tracing): Don't call set_current_traceframe,
1762 set_tracepoint_num, and set_traceframe_context. Call
1763 trace_reset_local_state instead.
1764 (tfile_close): Call trace_reset_local_state.
1765 * ctf.c (ctf_close): Likewise.
1766 * remote.c (remote_close): Likewise.
1767 * tracepoint.h (trace_reset_local_state): Declare.
1769 2013-06-06 Doug Evans <dje@google.com>
1771 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
1772 and fix header docs.
1774 2013-06-05 Doug Evans <dje@google.com>
1775 Keith Seitz <keiths@redhat.com>
1778 * cp-namespace.c (find_symbol_in_baseclass): Call
1779 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
1780 Check result of call to lookup_symbol_static.
1781 Call lookup_static_symbol_aux unconditionally.
1782 Call check_typedef on base types before accessing them.
1783 (cp_lookup_nested_symbol): Fix comment.
1785 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
1787 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
1788 minimal symbols pointing to function descriptors.
1790 2013-06-05 Tom Tromey <tromey@redhat.com>
1792 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
1794 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
1795 Pedro Alves <palves@redhat.com>
1797 * remote.c (remote_wait_as): Restore signal handler before returning
1798 when GDB gets a notification.
1800 2013-06-04 Gary Benson <gbenson@redhat.com>
1803 * breakpoint.h (handle_solib_event): Moved function declaration
1805 * breakpoint.c (handle_solib_event): Moved function to solib.c.
1806 (bpstat_stop_status): Pass new argument to handle_solib_event.
1807 * solib.h (update_solib_breakpoints): New function declaration.
1808 (handle_solib_event): Moved function declaration from
1810 * solib.c (update_solib_breakpoints): New function.
1811 (handle_solib_event): Moved function from breakpoint.c.
1812 Updated to call solib_ops->handle_event if not NULL.
1813 * solist.h (target_so_ops): New fields "update_breakpoints" and
1815 * infrun.c (set_stop_on_solib_events): New function.
1816 (_initialize_infrun): Use the above for "set
1817 stop-on-solib-events".
1818 (handle_inferior_event): Pass new argument to handle_solib_event.
1819 * solib-svr4.c (probe.h): New include.
1820 (svr4_free_library_list): New forward declaration.
1821 (probe_action): New enum.
1822 (probe_info): New struct.
1823 (probe_info): New static variable.
1824 (NUM_PROBES): New definition.
1825 (svr4_info): New fields "using_xfer", "probes_table" and
1827 (free_probes_table): New function.
1828 (free_solib_list): New function.
1829 (svr4_pspace_data_cleanup): Free probes table and solib list.
1830 (svr4_copy_library_list): New function.
1831 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
1832 (svr4_read_so_list): New parameter "prev_lm".
1833 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
1834 (svr4_current_sos): New function.
1835 (probe_and_action): New struct.
1836 (hash_probe_and_action): New function.
1837 (equal_probe_and_action): Likewise.
1838 (register_solib_event_probe): Likewise.
1839 (solib_event_probe_at): Likewise.
1840 (solib_event_probe_action): Likewise.
1841 (solist_update_full): Likewise.
1842 (solist_update_incremental): Likewise.
1843 (disable_probes_interface_cleanup): Likewise.
1844 (svr4_handle_solib_event): Likewise.
1845 (svr4_update_solib_event_breakpoint): Likewise.
1846 (svr4_update_solib_event_breakpoints): Likewise.
1847 (svr4_create_solib_event_breakpoints): Likewise.
1848 (enable_break): Free probes table before creating breakpoints.
1849 Use svr4_create_solib_event_breakpoints to create breakpoints.
1850 (svr4_solib_create_inferior_hook): Free the solib list.
1851 (_initialize_svr4_solib): Initialise
1852 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
1854 2013-06-04 Gary Benson <gbenson@redhat.com>
1856 * target.h (target_ops): New field
1857 "to_augmented_libraries_svr4_read".
1858 (target_augmented_libraries_svr4_read): New macro.
1859 * target.c (update_current_target): Handle
1860 to_augmented_libraries_svr4_read.
1861 * remote.c (remote_state): New field
1862 "augmented_libraries_svr4_read".
1863 (remote_augmented_libraries_svr4_read_feature): New function.
1864 (remote_protocol_features): Add entry for
1865 "augmented-libraries-svr4-read".
1866 (remote_augmented_libraries_svr4_read): New function.
1867 (init_remote_ops): Initialize
1868 remote_ops.to_augmented_libraries_svr4_read.
1870 2013-06-04 Gary Benson <gbenson@redhat.com>
1874 2013-06-04 Gary Benson <gbenson@redhat.com>
1876 * objfiles.h (inhibit_section_map_updates): New function
1878 (resume_section_map_updates): Likewise.
1879 (resume_section_map_updates_cleanup): Likewise.
1880 * objfiles.c (objfile_pspace_info): Removed field
1881 "objfiles_changed_p". New fields "new_objfiles_available",
1882 "section_map_dirty" and "inhibit_updates".
1883 (allocate_objfile): Set new_objfiles_available.
1884 (free_objfile): Set section_map_dirty.
1885 (objfile_relocate1): Likewise.
1886 (in_plt_section): Likewise.
1887 (find_pc_section): Update the conditions under which the
1888 section map will be updated.
1889 (inhibit_section_map_updates): New function.
1890 (resume_section_map_updates): Likewise.
1891 (resume_section_map_updates_cleanup): Likewise.
1893 2013-06-04 Gary Benson <gbenson@redhat.com>
1895 * probe.h (get_probe_argument_count): New declaration.
1896 (evaluate_probe_argument): Likewise.
1897 * probe.c (get_probe_argument_count): New function.
1898 (evaluate_probe_argument): Likewise.
1899 (probe_safe_evaluate_at_pc): Use the above new functions.
1901 2013-06-04 Alan Modra <amodra@gmail.com>
1903 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1904 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
1905 (ppc_insns_match_pattern): Add frame param. Avoid multiple
1906 target mem reads on optional insns.
1907 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
1908 ppc_insns_match_pattern calls.
1909 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
1910 Add match for power7 thread safety insns, and new order of
1911 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
1912 invocation in comment, and update rest of comment.
1913 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
1914 PPC64_STANDARD_LINKAGE3_LEN): Delete.
1915 (ppc64_standard_linkage2_target): Update insn offsets.
1916 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
1917 stubs first. Update calls.
1919 2013-06-04 Yao Qi <yao@codesourcery.com>
1921 * solib.c (solib_find): Don't need dir separator if path has
1924 2013-06-03 Joel Brobecker <brobecker@adacore.com>
1926 Revert (indirectly causes a SIGSEGV):
1927 * machoread.c (macho_symfile_read): Assign first cleanup to
1930 2013-06-03 Yao Qi <yao@codesourcery.com>
1932 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
1933 mi-parse.c. Make them static.
1934 (mi_all_values): Likewise.
1935 (mi_parse_values_option): Move to mi-parse.c. Rename it to
1936 mi_parse_print_values. Make it external.
1937 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
1938 Remove the declarations.
1939 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
1940 * mi/mi-parse.h (mi_parse_print_values): Declare.
1941 * mi/mi-cmd-stack.c: Include mi-parse.h.
1942 (parse_print_values): Remove
1943 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
1944 of parse_print_values.
1945 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
1947 2013-05-31 Pedro Alves <pedro@codesourcery.com>
1948 Yao Qi <yao@codesourcery.com>
1950 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
1951 (encode_actions): Move code to ...
1952 (all_tracepoint_actions_and_cleanup): ... here. New.
1953 (trace_dump_command): Likewise.
1955 2013-05-30 Tom Tromey <tromey@redhat.com>
1957 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
1959 2013-05-30 Tom Tromey <tromey@redhat.com>
1961 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
1962 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
1963 'old_chain' argument. Add 'parser_result' argument.
1964 (gdb_xml_create_parser_and_cleanup): Remove old version.
1965 (gdb_xml_parse_quick): Update.
1966 (xml_process_xincludes): Update.
1967 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
1970 2013-05-30 Tom Tromey <tromey@redhat.com>
1972 * probe.c (collect_probes): Check arguments for NULL before
1973 calling compile_rx_or_error.
1974 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
1977 2013-05-30 Tom Tromey <tromey@redhat.com>
1979 * infrun.c (adjust_pc_after_break): Introduce an outer null
1982 2013-05-30 Tom Tromey <tromey@redhat.com>
1984 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
1986 2013-05-30 Tom Tromey <tromey@redhat.com>
1988 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
1989 for 'old_chain'. Do not check 'head' before processing
1992 2013-05-30 Tom Tromey <tromey@redhat.com>
1994 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
1997 2013-05-30 Tom Tromey <tromey@redhat.com>
1999 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
2000 inner scope. Unconditionally call do_cleanups.
2002 2013-05-30 Tom Tromey <tromey@redhat.com>
2004 * source.c (find_and_open_source): Call do_cleanups.
2006 2013-05-30 Tom Tromey <tromey@redhat.com>
2008 * linux-thread-db.c (thread_db_load_search): Unconditionally
2011 2013-05-30 Tom Tromey <tromey@redhat.com>
2013 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
2014 for 'cleanup'; instead use a later one.
2016 2013-05-30 Tom Tromey <tromey@redhat.com>
2018 * python/py-breakpoint.c (bppy_get_commands): Use
2019 explicit, unconditional return.
2020 * python/py-frame.c (frapy_read_var): Likewise.
2021 * python/python.c (gdbpy_decode_line): Likewise.
2023 2013-05-30 Tom Tromey <tromey@redhat.com>
2025 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
2026 do_cleanups on all return paths.
2028 2013-05-30 Tom Tromey <tromey@redhat.com>
2030 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
2032 2013-05-30 Tom Tromey <tromey@redhat.com>
2034 * stabsread.c (read_struct_type): Call do_cleanups along
2037 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
2039 * mips-linux-tdep.c: Adjust formatting throughout.
2041 2013-05-30 Tom Tromey <tromey@redhat.com>
2043 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
2044 along all return paths.
2046 2013-05-30 Tom Tromey <tromey@redhat.com>
2048 * symfile.c (find_separate_debug_file): Call do_cleanups
2049 along all return paths.
2051 2013-05-30 Tom Tromey <tromey@redhat.com>
2053 * symtab.c (search_symbols): Introduce a null cleanup for
2056 2013-05-30 Tom Tromey <tromey@redhat.com>
2058 * python/py-value.c (valpy_binop): Call do_cleanups before
2061 2013-05-30 Tom Tromey <tromey@redhat.com>
2063 * python/py-prettyprint.c (print_children): Remove extra
2066 2013-05-30 Tom Tromey <tromey@redhat.com>
2068 * python/py-frame.c (frapy_read_var): Call do_cleanups along
2071 2013-05-30 Tom Tromey <tromey@redhat.com>
2073 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
2074 along all return paths.
2076 2013-05-30 Tom Tromey <tromey@redhat.com>
2078 * cli/cli-logging.c (set_logging_redirect): Unconditionally
2081 2013-05-30 Tom Tromey <tromey@redhat.com>
2083 * varobj.c (c_value_of_root): Call do_cleanups along all
2086 2013-05-30 Tom Tromey <tromey@redhat.com>
2088 * tracepoint.c (trace_dump_command): Unconditionally call
2091 2013-05-30 Tom Tromey <tromey@redhat.com>
2093 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
2094 do_cleanups earlier.
2096 2013-05-30 Tom Tromey <tromey@redhat.com>
2098 * machoread.c (macho_symfile_read): Assign first cleanup to
2101 2013-05-30 Tom Tromey <tromey@redhat.com>
2103 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
2105 2013-05-30 Tom Tromey <tromey@redhat.com>
2107 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
2109 2013-05-30 Tom Tromey <tromey@redhat.com>
2111 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
2112 call discard_cleanups.
2113 (inf_ptrace_attach): Likewise.
2115 2013-05-30 Tom Tromey <tromey@redhat.com>
2117 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
2119 (mips_initialize): Likewise.
2120 (common_open): Call do_cleanups.
2122 2013-05-30 Tom Tromey <tromey@redhat.com>
2124 * utils.c (internal_vproblem): Call do_cleanups.
2126 2013-05-30 Tom Tromey <tromey@redhat.com>
2128 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
2130 2013-05-30 Tom Tromey <tromey@redhat.com>
2132 * cli/cli-script.c (setup_user_args): Don't return after error.
2134 2013-05-30 Tom Tromey <tromey@redhat.com>
2136 * somread.c (som_symtab_read): Call do_cleanups.
2138 2013-05-30 Tom Tromey <tromey@redhat.com>
2140 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
2142 2013-05-30 Tom Tromey <tromey@redhat.com>
2144 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
2145 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
2146 * interps.c (interpreter_exec_cmd): Call do_cleanups.
2147 * source.c (show_substitute_path_command): Call do_cleanups.
2148 (unset_substitute_path_command, set_substitute_path_command):
2150 * symfile.c (load_command): Call do_cleanups.
2152 2013-05-30 Tom Tromey <tromey@redhat.com>
2154 * contrib/cleanup_check.py: New file.
2155 * contrib/gcc-with-excheck: Add option parsing.
2157 2013-05-30 Joel Brobecker <brobecker@adacore.com>
2159 * windows-nat.c (windows_delete_thread): Add missing space
2162 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
2164 * inferior.c (top level): Include tilde.h.
2165 (add_inferior_command): Call tilde_expand on the value of 'exec'
2168 2013-05-30 Pedro Alves <pedro@codesourcery.com>
2169 Yao Qi <yao@codesourcery.com>
2171 * tracepoint.c (encode_actions_1): Remove parameter 't'.
2173 (encode_actions): Likewise.
2174 * remote.c (remote_download_tracepoint): Caller update.
2175 * tracepoint.h (encode_actions): Update declaration.
2177 2013-05-30 Pedro Alves <palves@redhat.com>
2179 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
2182 2013-05-30 Yao Qi <yao@codesourcery.com>
2184 * remote.c (remote_check_symbols): Remove unused parameter
2187 (remote_start_remote, remote_new_objfile): Caller update.
2189 2013-05-30 Yao Qi <yao@codesourcery.com>
2191 * mi/mi-cmds.c (mi_cmds): Define MI command
2192 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
2195 2013-05-29 Pedro Alves <palves@redhat.com>
2197 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
2198 (remote_insert_watchpoint, remote_remove_watchpoint)
2199 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
2200 (remote_verify_memory, compare_sections_command)
2201 (remote_search_memory): Set the general process/thread on the
2204 2013-05-29 Pedro Alves <palves@redhat.com>
2206 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
2207 (_initialize_aarch64_tdep): Don't call
2208 initialize_tdesc_aarch64_without_fpu.
2209 * features/Makefile (WHICH): Remove reference to
2210 aarch64-without-fpu.
2211 * features/aarch64-without-fpu.c: Delete file.
2212 * regformats/aarch64-without-fpu.dat: Delete file.
2214 2013-05-28 Yao Qi <yao@codesourcery.com>
2216 * tracepoint.c (stringify_collection_list): Remove parameter
2218 (encode_actions): Caller update. Remove local variables.
2220 2013-05-24 Yao Qi <yao@codesourcery.com>
2222 * tracepoint.c (TFILE_PID): Remove.
2223 (tfile_open): Don't add thread and inferior.
2224 (tfile_close): Don't set 'inferior_ptid'. Don't call
2225 exit_inferior_silent.
2226 (tfile_thread_alive): Remove.
2227 (init_tfile_ops): Don't set field 'to_thread_alive' of
2230 2013-05-23 Doug Evans <dje@google.com>
2232 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
2234 2013-05-23 Pedro Alves <palves@redhat.com>
2236 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
2237 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
2238 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
2239 Only define if HAVE_SOCKETS is defined.
2240 * configure.ac: Check for sys/socket.h.
2241 * config.in, configure: Regenerate.
2243 2013-05-23 Pedro Alves <palves@redhat.com>
2245 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
2246 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
2247 printing uint32_t variables.
2249 2013-05-23 Pedro Alves <palves@redhat.com>
2251 * NEWS: Mention GDBserver range stepping support.
2253 2013-05-23 Yao Qi <yao@codesourcery.com>
2254 Pedro Alves <palves@redhat.com>
2256 * gdbthread.h (struct thread_control_state) <may_range_step>: New
2258 * infcmd.c (step_once, until_next_command): Enable range stepping.
2259 * infrun.c (displaced_step_prepare): Disable range stepping.
2260 (resume): Disable range stepping if stepping over a breakpoint or
2261 we have software watchpoints. If range stepping is enabled,
2262 assert the thread is in the stepping range.
2263 (clear_proceed_status_thread): Clear may_range_step.
2264 (handle_inferior_event): Disable range stepping as soon as we know
2265 the thread that hit the event. Re-enable it whenever we're going
2266 to step with a step range.
2267 * remote.c (struct vCont_action_support) <r>: New field.
2268 (use_range_stepping): New global.
2269 (remote_vcont_probe): Handle 'r' action.
2270 (append_resumption): Append an 'r' action if the thread may range
2272 (show_range_stepping): New function.
2273 (set_range_stepping): New function.
2274 (_initialize_remote): Call add_setshow_boolean_cmd to register the
2275 'set range-stepping' and 'show range-stepping' commands.
2276 * NEWS: Mention range stepping, the new vCont;r action, and the
2277 new "set/show range-stepping" commands.
2279 2013-05-23 Yao Qi <yao@codesourcery.com>
2280 Pedro Alves <palves@redhat.com>
2282 * remote.c (struct vCont_action_support): New struct.
2283 (struct remote_state) <support_vCont_t>: Remove field.
2284 <vCont_actions_support>: New field.
2285 (remote_vcont_probe, remote_stop_ns): Update.
2287 2013-05-23 Yao Qi <yao@codesourcery.com>
2288 Pedro Alves <palves@redhat.com>
2290 * gdbthread.h (pc_in_thread_step_range): New declaration.
2291 * thread.c (pc_in_thread_step_range): New function.
2292 * infrun.c (handle_inferior_event): Use it.
2294 2013-05-23 Joel Brobecker <brobecker@adacore.com>
2296 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
2299 2013-05-22 Keith Seitz <keiths@redhat.com>
2301 * ada-lang.c (is_known_support_routine): Add explicit free of
2302 'func_name' from find_frame_funname.
2303 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
2304 for func_name from find_frame_funname.
2305 * python/py-frame.c (frapy_name): Add explicit free of
2306 'name' from find_frame_funname.
2307 * stack.c (find_frame_funname): Add comment explaining that
2308 funcp must be freed by the caller.
2309 Return copy of symbol names instead of pointers.
2310 (print_frame): Add a cleanup for 'funname' from
2312 * stack.h (find_frame_funname): Remove "const" from
2313 'funname' parameter.
2315 2013-05-22 Tom Tromey <tromey@redhat.com>
2318 * c-valprint.c (c_value_print): Use value_addr for
2319 references. Convert back to reference type with value_ref.
2321 2013-05-22 Eli Zaretskii <eliz@gnu.org>
2323 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
2324 unloaded DLL, it will be done by handle_solib_event. See
2325 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
2328 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
2330 * ui-out.c: Create typedef ui_out_level_p and define vector
2331 operations for that type.
2332 (struct ui_out): Use a vector instead of an array.
2333 (current_level): Return level from a vector.
2334 (push_level): Create a level in a vector.
2335 (pop_level): Delete a level in a vector.
2336 (ui_out_new): Create initial level zero level, and store in a
2338 (ui_out_destroy): Add vector cleanup.
2340 2013-05-22 Pedro Alves <palves@redhat.com>
2342 * python/python-internal.h (gdb_Py_DECREF): Tag with
2343 "ARI: editCase function".
2345 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
2347 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
2349 2013-05-21 Pedro Alves <palves@redhat.com>
2351 * python/py-prettyprint.c (apply_val_pretty_printer): Check
2352 whether PRINTER is NULL before installing a Py_DECREF cleanup.
2353 * python/py-utils.c (py_decref): Don't check for NULL before
2356 2013-05-21 Pedro Alves <palves@redhat.com>
2358 * python/py-utils.c (py_decref): Remove extra braces.
2359 (gdb_pymodule_addobject): Remove extra braces.
2360 * python-internal.h (gdb_Py_DECREF): New static inline function.
2361 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
2363 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2365 * breakpoints.c (detach_breakpoints): Do not
2366 detach breakpoints locations with loc_type bp_loc_other.
2368 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2370 Workaround Python 2.6.
2371 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
2374 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2376 Code cleanup: constification.
2377 * solib.c (solib_ops): Make return type and ops variable type const.
2378 (set_solib_ops): Make the new_ops parameter and ops variable const.
2379 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
2380 (solib_add, solib_keep_data_in_core, clear_solib)
2381 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
2382 (reload_shared_libraries, solib_global_lookup): Make the ops variable
2384 * solib.h (set_solib_ops): Make the new_ops parameter const.
2386 2013-05-21 Joel Brobecker <brobecker@adacore.com>
2388 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
2390 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
2391 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
2392 (SYSTEM_GDBINIT_FILES): New variables.
2393 (all): Add stamp-system-gdbinit.
2394 (stamp-system-gdbinit): New rule.
2395 (clean-system-gdbinit, install-system-gdbinit)
2396 (uninstall-system-gdbinit): New rules. Make them .PHONY.
2397 (install-only): Add dependency on install-system-gdbinit.
2398 (uninstall): Add dependency on uninstall-system-gdbinit.
2399 (clean): Add dependency on clean-system-gdbinit.
2400 * system-gdbinit/elinos.py: New file.
2401 * system-gdbinit/wrs-linux.py: New file.
2403 2013-05-21 Joel Brobecker <brobecker@adacore.com>
2405 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
2407 2013-05-21 Hui Zhu <hui@codesourcery.com>
2409 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
2410 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
2411 * mi/mi-cmd-break.c (ctype.h): New include.
2412 (gdb_obstack.h): New include.
2413 (mi_argv_to_format, mi_cmd_break_insert_1): New.
2414 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
2415 (mi_cmd_dprintf_insert): New.
2416 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
2417 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
2419 2013-05-20 Tom Tromey <tromey@redhat.com>
2421 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
2423 2013-05-20 Tom Tromey <tromey@redhat.com>
2425 * python/py-value.c (valpy_get_dynamic_type): Simplify
2426 dynamic_type assignment. Use Py_XINCREF.
2428 2013-05-20 Tom Tromey <tromey@redhat.com>
2430 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
2432 2013-05-20 Tom Tromey <tromey@redhat.com>
2434 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
2435 (gdbpy_selected_frame): Move object-construction code
2438 2013-05-20 Tom Tromey <tromey@redhat.com>
2440 * python/py-arch.c (gdbpy_initialize_arch): Use
2441 gdb_pymodule_addobject.
2442 * python/py-block.c (gdbpy_initialize_blocks): Use
2443 gdb_pymodule_addobject.
2444 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
2445 gdb_pymodule_addobject.
2446 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
2447 gdb_pymodule_addobject.
2448 * python/py-event.c (gdbpy_initialize_event_generic): Use
2449 gdb_pymodule_addobject.
2450 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
2451 gdb_pymodule_addobject.
2452 * python/py-evts.c (add_new_registry): Use
2453 gdb_pymodule_addobject.
2454 (gdbpy_initialize_py_events): Likewise.
2455 * python/py-finishbreakpoint.c
2456 (gdbpy_initialize_finishbreakpoints): Use
2457 gdb_pymodule_addobject.
2458 * python/py-frame.c (gdbpy_initialize_frames): Use
2459 gdb_pymodule_addobject.
2460 * python/py-function.c (gdbpy_initialize_functions): Use
2461 gdb_pymodule_addobject.
2462 * python/py-inferior.c (gdbpy_initialize_inferior): Use
2463 gdb_pymodule_addobject.
2464 * python/py-infthread.c (gdbpy_initialize_thread): Use
2465 gdb_pymodule_addobject.
2466 * python/py-objfile.c (gdbpy_initialize_objfile): Use
2467 gdb_pymodule_addobject.
2468 * python/py-param.c (gdbpy_initialize_parameters): Use
2469 gdb_pymodule_addobject.
2470 * python/py-progspace.c (gdbpy_initialize_pspace): Use
2471 gdb_pymodule_addobject.
2472 * python/py-symbol.c (gdbpy_initialize_symbols): Use
2473 gdb_pymodule_addobject.
2474 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
2475 gdb_pymodule_addobject.
2476 * python/py-type.c (gdbpy_initialize_types): Use
2477 gdb_pymodule_addobject.
2478 * python/py-utils.c (gdb_pymodule_addobject): New function.
2479 * python/py-value.c (gdbpy_initialize_values): Use
2480 gdb_pymodule_addobject.
2481 * python/python-internal.h (gdb_pymodule_addobject): Declare.
2482 * python/python.c (_initialize_python): Use
2483 gdb_pymodule_addobject.
2485 2013-05-20 Tom Tromey <tromey@redhat.com>
2487 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
2488 * python/py-param.c (get_set_value, get_show_value): Use
2490 * python/python.c (start_type_printers, apply_type_printers):
2491 Use explicit decrefs.
2493 2013-05-20 Tom Tromey <tromey@redhat.com>
2495 * python/py-evts.c (gdbpy_initialize_py_events): Don't
2498 2013-05-20 Tom Tromey <tromey@redhat.com>
2500 * python/python.c (gdbpy_run_events): Decref the result
2501 of PyObject_CallObject.
2503 2013-05-20 Tom Tromey <tromey@redhat.com>
2505 * python/py-symtab.c (set_sal): Use
2506 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
2507 (symtab_and_line_to_sal_object): Update.
2509 2013-05-20 Tom Tromey <tromey@redhat.com>
2511 * python/py-param.c (compute_enum_values): Decref 'item'.
2513 2013-05-20 Tom Tromey <tromey@redhat.com>
2515 * mi/mi-main.c: Include python-internal.h.
2516 (mi_cmd_list_features): Check gdb_python_initialized.
2517 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
2518 (python_inferior_exit, python_new_objfile, add_thread_object)
2519 (delete_thread_object, py_free_inferior): Check
2520 gdb_python_initialized.
2521 * python/py-prettyprint.c (apply_val_pretty_printer): Check
2522 gdb_python_initialized.
2523 * python/py-type.c (save_objfile_types): Check
2524 gdb_python_initialized.
2525 * python/python-internal.h (gdb_python_initialized): Declare.
2526 * python/python.c (ensure_python_env): Throw exception if
2527 Python not initialized.
2528 (before_prompt_hook, source_python_script_for_objfile)
2529 (start_type_printers, apply_type_printers,
2530 free_type_printers): Check gdb_python_initialized.
2531 * varobj.c (varobj_get_display_hint)
2532 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
2533 (install_new_value_visualizer, varobj_set_visualizer)
2534 (value_get_print_value): Check gdb_python_initialized.
2536 2013-05-20 Tom Tromey <tromey@redhat.com>
2538 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
2540 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
2541 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
2543 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
2545 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
2547 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
2549 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
2550 init function to return 'int'.
2551 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
2552 Return 'int'. Check errors.
2553 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
2555 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
2556 Return 'int'. Check errors.
2557 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
2559 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
2561 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
2563 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
2565 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
2567 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
2569 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
2571 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
2573 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
2575 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
2577 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
2579 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
2581 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
2583 * python/python-internal.h (gdbpy_initialize_auto_load,
2584 gdbpy_initialize_values, gdbpy_initialize_frames,
2585 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
2586 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
2587 gdbpy_initialize_blocks, gdbpy_initialize_types,
2588 gdbpy_initialize_functions, gdbpy_initialize_pspace,
2589 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
2590 gdbpy_initialize_finishbreakpoints,
2591 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
2592 gdbpy_initialize_thread, gdbpy_initialize_inferior,
2593 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
2594 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
2595 gdbpy_initialize_signal_event,
2596 gdbpy_initialize_breakpoint_event,
2597 gdbpy_initialize_continue_event,
2598 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
2599 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
2600 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2601 * python/python.c (gdb_python_initialized): New global.
2602 (gdbpy_initialize_events): Return 'int'. Check errors.
2603 (_initialize_python): Check errors. Set
2604 gdb_python_initialized.
2606 2013-05-20 Tom Tromey <tromey@redhat.com>
2608 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
2609 Decref the reslut of PyObject_CallMethod.
2611 2013-05-20 Tom Tromey <tromey@redhat.com>
2613 * python/py-event.c (gdbpy_initialize_event_generic): Return
2614 early if PyType_Ready fails.
2616 2013-05-20 Tom Tromey <tromey@redhat.com>
2618 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
2619 as 'default' in the switch.
2621 2013-05-20 Tom Tromey <tromey@redhat.com>
2623 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
2624 get_addr_from_python calls out of TRY_CATCH.
2625 (infpy_write_memory, infpy_search_memory): Likewise.
2626 * python/py-utils.c (get_addr_from_python): Return negative
2627 value on error. Use TRY_CATCH.
2628 * python/python-internal.h (get_addr_from_python): Use
2629 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2631 2013-05-20 Tom Tromey <tromey@redhat.com>
2633 * python/py-event.c (evpy_emit_event): Decref the
2634 result of PyObject_CallFunctionObjArgs.
2636 2013-05-20 Tom Tromey <tromey@redhat.com>
2638 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
2641 2013-05-20 Tom Tromey <tromey@redhat.com>
2643 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
2645 2013-05-20 Tom Tromey <tromey@redhat.com>
2647 * python/py-event.h (gdbpy_initialize_event_generic): Use
2648 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2649 * python/py-evts.c (add_new_registry): Use
2650 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2651 * python/python-internal.h
2652 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
2654 2013-05-20 Tom Tromey <tromey@redhat.com>
2656 * python/py-arch.c (archpy_disassemble): Update.
2657 * python/py-type.c (typy_get_composite, typy_lookup_typename)
2658 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
2659 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
2660 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
2662 (GDB_PY_HANDLE_EXCEPTION): Update.
2663 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
2665 2013-05-20 Tom Tromey <tromey@redhat.com>
2667 * python/python-internal.h (events_object_type): Remove.
2669 2013-05-20 Tom Tromey <tromey@redhat.com>
2671 * python/py-event.h (evpy_emit_event): Use
2672 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2673 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2676 2013-05-20 Tom Tromey <tromey@redhat.com>
2678 * py-evtregistry.c (create_event_object): Decref
2679 eventregistry_object if PyList_New fails.
2681 2013-05-20 Tom Tromey <tromey@redhat.com>
2683 * py-cmd.c (gdbpy_string_to_argv): Check result of
2686 2013-05-20 Tom Tromey <tromey@redhat.com>
2688 * python/python.c (before_prompt_hook): Add cleanup to
2691 2013-05-20 Tom Tromey <tromey@redhat.com>
2693 * python/py-function.c (fnpy_init): Decref result of
2694 PyObject_GetAttrString.
2696 2013-05-20 Tom Tromey <tromey@redhat.com>
2698 * python/py-threadevent.c (get_event_thread): Use
2699 CPYCHECKER_RETURNS_BORROWED_REF.
2700 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2702 (pspace_to_pspace_object, objfile_to_objfile_object)
2703 (find_thread_object): Use it.
2705 2013-05-20 Tom Tromey <tromey@redhat.com>
2707 * python/py-arch.c (arch_object_type): Use
2708 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2709 * python/py-block.c (block_syms_iterator_object_type):
2710 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2711 * python/py-bpevent.c (breakpoint_event_object_type):
2712 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2713 * python/py-cmd.c (cmdpy_object_type): Use
2714 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2715 * python/py-continueevent.c (continue_event_object_type):
2716 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2717 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
2718 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2719 * python/py-events.h (thread_event_object_type):
2720 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2721 * python/py-evtregistry.c (eventregistry_object_type): Use
2722 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2723 * python/py-exitedevent.c (exited_event_object_type):
2724 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2725 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
2726 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2727 * python/py-function.c (fnpy_object_type): Use
2728 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2729 * python/py-inferior.c (inferior_object_type, membuf_object_type):
2730 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2731 * python/py-infthread.c (thread_object_type): Use
2732 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2733 * python/py-lazy-string.c (lazy_string_object_type):
2734 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2735 * python/py-newobjfileevent.c (new_objfile_event_object_type):
2736 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2737 * python/py-objfile.c (objfile_object_type): Use
2738 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2739 * python/py-param.c (parmpy_object_type):
2740 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2741 * python/py-progspace.c (pspace_object_type):
2742 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2743 * python/py-signalevent.c (signal_event_object_type):
2744 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2745 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
2746 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2747 * python/py-type.c (type_object_type, field_object_type)
2748 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2749 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
2751 (value_object_type, block_object_type, symbol_object_type)
2752 (event_object_type, stop_event_object_type, breakpoint_object_type)
2753 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2755 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
2757 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
2758 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
2760 2013-05-20 Doug Evans <dje@google.com>
2762 When reading CU, stay in DWO. Be more tolerent of bad debug info.
2764 * dwarf2read.c (struct dwarf2_per_cu_data): New member
2765 reading_dwo_directly.
2766 (struct signatured_type): New member dwo_unit.
2767 (struct die_reader_specs): New member comp_dir.
2768 (create_signatured_type_table_from_index): Use malloc for
2769 all_type_units instead of objfile's obstack.
2770 (create_all_type_units): Ditto.
2771 (fill_in_sig_entry_from_dwo_entry): New function.
2772 (add_type_unit): New function.
2773 (lookup_dwo_signatured_type): New function.
2774 (lookup_dwp_signatured_type): New function.
2775 (lookup_signatured_type): New arg cu. All callers updated.
2776 (init_cu_die_reader): Initialize comp_dir.
2777 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
2778 Change assert of matching type signatures to call error on mismatch.
2779 (lookup_dwo_unit): Add assert.
2780 (init_tu_and_read_dwo_dies): New function.
2781 (init_cutu_and_read_dies): Call it.
2782 (build_type_unit_groups): Handle case of no type unit groups created.
2783 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
2784 (lookup_dwo_cutu): Tweak complaint.
2785 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
2786 (dwarf2_per_objfile_free): Free all_type_units.
2788 2013-05-20 Joel Brobecker <brobecker@adacore.com>
2790 * windows-nat.c (handle_unload_dll): Add missing empty line.
2792 2013-05-20 Joel Brobecker <brobecker@adacore.com>
2794 * dwarf2read.c (prototyped_function_p): New function.
2795 (read_subroutine_type): Use it.
2797 2013-05-20 Joel Brobecker <brobecker@adacore.com>
2799 * rs6000-aix-tdep.c: De-indent some example code provided
2802 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
2804 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
2805 region is ok for a hardware watchpoint using the new ptrace interface
2808 2013-05-17 Doug Evans <dje@google.com>
2810 * NEWS: Mention new maintenance commands check-symtabs, and
2811 expand-symtabs, and renamed check-psymtabs.
2812 * psymtab.c (maintenance_check_psymtabs): Renamed from
2813 maintenance_check_symtabs. Only process already-expanded symbol
2815 (_initialize_psymtab): Update.
2816 * symmisc.c (maintenance_check_symtabs): New function.
2817 (maintenance_expand_name_matcher): New function
2818 (maintenance_expand_file_matcher): New function
2819 (maintenance_expand_symtabs): New function.
2820 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
2823 2013-05-17 Tom Tromey <tromey@redhat.com>
2825 * python/py-inferior.c (infpy_read_memory): Don't call
2826 PyErr_SetString if PyObject_New fails.
2827 * python/py-frame.c (frame_info_to_frame_object): Don't call
2828 PyErr_SetString if PyObject_New fails.
2830 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
2832 * acinclude.m4: Add check for dlopen in libdl.
2833 * configure.ac: Ditto.
2834 * configure: Regenerate.
2836 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
2838 * frame.c (frame_stash): Convert to htab.
2839 (frame_addr_hash): New function.
2840 (frame_addr_hash_eq): New function.
2841 (frame_stash_create): Convert function to create
2843 (frame_stash_add): Convert function to add an entry to a hash
2845 (frame_stash_find): Convert function to search the hash table.
2846 (frame_stash_invalidate): Convert function to empty the hash
2848 (get_frame_id): Only add to stash if a frame_id is created.
2849 (_initialize_frame): Call frame_stash_create.
2851 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
2853 * configure.ac: Ensure MIG is available when building for GNU Hurd
2855 * configure: Regenerate.
2857 2013-05-16 Joel Brobecker <brobecker@adacore.com>
2859 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
2861 2013-05-16 Joel Brobecker <brobecker@adacore.com>
2863 * ada-lang.c (ada_make_symbol_completion_list): Make sure
2864 all cleanups are done before returning from this function.
2866 2013-05-15 Joel Brobecker <brobecker@adacore.com>
2868 * utils.h: #include "exceptions.h".
2869 (enum errors): Remove partial declaration.
2871 2013-05-15 Joel Brobecker <brobecker@adacore.com>
2873 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
2874 * gdbarch.h, gdbarch.c: Regenerate.
2875 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
2878 * rs6000-aix-tdep.h: New file.
2879 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
2880 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
2882 (struct field_info, struct ld_info_desc): New types.
2883 (ld_info32_desc, ld_info64_desc): New static constants.
2884 (struct ld_info): New type.
2885 (rs6000_aix_extract_ld_info): New function.
2886 (rs6000_aix_shared_library_to_xml): Likewise.
2887 (rs6000_aix_ld_info_to_xml): Likewise.
2888 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2889 (rs6000_aix_init_osabi): Add call to
2890 set_gdbarch_core_xfer_shared_libraries_aix.
2891 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
2892 Remove "xml-utils.h" include.
2893 (LdInfo): Delete typedef.
2894 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
2896 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
2897 Adjust code accordingly.
2898 (rs6000_core_ldinfo): Delete, folded into
2899 rs6000_aix_core_xfer_shared_libraries_aix.
2900 (rs6000_xfer_shared_library): Delete.
2901 (rs6000_xfer_shared_libraries): Reimplement.
2903 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
2905 * record.c (record_goto_cmdlist): New.
2906 (cmd_record_goto): Split into this ...
2907 (cmd_record_goto_begin): ... this
2908 (cmd_record_goto_end): ... and this.
2909 (_initialize_record): Change "record goto" to prefix command.
2910 Add commands for "record goto begin" and "record goto end".
2911 Add an alias for "record goto start" to "record goto begin".
2913 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2915 * linespec.c (convert_linespec_to_sals): New comment for
2916 SOURCE_FILENAME assignment.
2918 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2920 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
2923 2013-05-14 Tom Tromey <tromey@redhat.com>
2925 * eval.c (parse_and_eval_long): Make 'exp' const.
2926 * value.h (parse_and_eval_long): Update.
2928 2013-05-14 Tom Tromey <tromey@redhat.com>
2930 * ui-file.c (gdb_fopen): Make arguments const.
2931 * ui-file.h (gdb_fopen): Make arguments const.
2933 2013-05-14 Tom Tromey <tromey@redhat.com>
2935 * remote.c (remote_set_trace_notes): Make arguments const.
2936 * target.c (update_current_target): Update cast.
2937 * target.h (to_set_trace_notes): Make arguments const.
2939 2013-05-14 Tom Tromey <tromey@redhat.com>
2941 * go32-nat.c (go32_terminal_info): Make 'args' const.
2942 * inferior.h (child_terminal_info): Update.
2943 * inflow.c (child_terminal_info): Make 'args' const.
2944 * target.c (default_terminal_info): Make 'args' const.
2945 (debug_to_terminal_save_ours): Likewise.
2946 * target.h (struct target_ops) <to_terminal_info>: Make argument
2949 2013-05-13 Tom Tromey <tromey@redhat.com>
2951 * gcore.c (create_gcore_bfd): Make 'filename' const.
2952 * gcore.h (create_gcore_bfd): Make 'filename' const.
2953 * record-full.c (record_full_save): Make 'recfilename' const.
2954 * target.c (target_save_record): Make 'filename' const.
2955 * target.h (struct target_ops) <to_save_record>: Make 'filename'
2957 (target_save_record): Likewise.
2959 2013-05-13 Tom Tromey <tromey@redhat.com>
2962 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
2963 ranges section has been read.
2965 2013-05-13 Tom Tromey <tromey@redhat.com>
2968 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
2969 STRUCTOP_PTR>: Return a not_lval value for
2970 EVAL_AVOID_SIDE_EFFECTS.
2971 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
2972 for EVAL_AVOID_SIDE_EFFECTS.
2974 2013-05-13 Joel Brobecker <brobecker@adacore.com>
2976 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
2977 floating point registers to register type before storing
2979 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
2982 2013-05-10 Joel Brobecker <brobecker@adacore.com>
2983 Tom Tromey <tromey@redhat.com>
2985 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2987 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2989 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
2990 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
2991 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
2992 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
2994 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
2995 Tom Tromey <tromey@redhat.com>
2998 * configure: Rebuild.
2999 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
3002 2013-05-10 Pedro Alves <palves@redhat.com>
3004 * remote.c (_initialize_remote): Fix spelling of
3005 qXfer:traceframe-info:read packet in packet config command.
3007 2013-05-10 David Taylor <dtaylor@emc.com>
3011 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
3012 "QTro" at start of packet.
3014 2013-05-10 Joel Brobecker <brobecker@adacore.com>
3016 * solib-aix.c (solib_aix_relocate_section_addresses):
3017 For the .bss section action, apply the same offset as
3020 2013-05-10 Joel Brobecker <brobecker@adacore.com>
3022 * solib-aix.c (solib_aix_relocate_section_addresses):
3023 Remove FIXME comment.
3025 2013-05-10 Joel Brobecker <brobecker@adacore.com>
3028 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
3029 New functions, directly copied from sparc-sol-thread.c.
3030 * sparc-sol-thread.c: Delete.
3031 * configure.ac: Remove code handling sparc-solaris-thread.c.
3032 * configure: Regenerate.
3034 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
3036 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
3038 (backtrace_command): Add "no-filters" option parsing.
3039 (_initialize_stack): Alter help to reflect "no-filters" option.
3040 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
3041 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
3042 (py-frame.o): Add target
3043 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
3045 * python/python.h: Add new frame filter constants, and flag enum.
3046 (apply_frame_filter): Add definition.
3047 * python/python.c (apply_frame_filter): New non-Python
3049 * python/py-utils.c (py_xdecref): New function.
3050 (make_cleanup_py_xdecref): Ditto.
3051 * python/py-objfile.c: Declare frame_filters dictionary.
3052 (objfpy_dealloc): Add frame_filters dealloc.
3053 (objfpy_new): Initialize frame_filters attribute.
3054 (objfile_to_objfile_object): Ditto.
3055 (objfpy_get_frame_filters): New function.
3056 (objfpy_set_frame_filters): New function.
3057 * python/py-progspace.c: Declare frame_filters dictionary.
3058 (pspy_dealloc): Add frame_filters dealloc.
3059 (pspy_new): Initialize frame_filters attribute.
3060 (pspacee_to_pspace_object): Ditto.
3061 (pspy_get_frame_filters): New function.
3062 (pspy_set_frame_filters): New function.
3063 * python/py-framefilter.c: New file.
3064 * python/lib/gdb/command/frame_filters.py: New file.
3065 * python/lib/gdb/frames.py: New file.
3066 * python/lib/gdb/__init__.py: Initialize global frame_filters
3068 * python/lib/gdb/FrameDecorator.py: New file.
3069 * python/lib/gdb/FrameIterator.py: New file.
3070 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
3071 * mi/mi-cmds.h: Declare.
3072 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
3073 --no-frame-filter logic, and Python frame filter logic.
3074 (stack_enable_frame_filters): New function.
3075 (parse_no_frame_option): Ditto.
3076 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
3078 (mi_cmd_stack_list_locals): Ditto.
3079 (mi_cmd_stack_list_args): Ditto.
3080 (mi_cmd_stack_list_variables): Ditto.
3081 * NEWS: Add frame filter note.
3083 2013-05-09 Doug Evans <dje@google.com>
3085 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
3086 All callers updated.
3087 (syms_from_objfile): Ditto. Make static.
3088 (symbol_file_add_with_addrs): Renamed from
3089 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
3090 num_offsets. All callers updated.
3091 * symfile.h (syms_from_objfile): Delete.
3093 * symfile.c (decrement_reading_symtab): Add assert.
3094 (increment_reading_symtab): Ditto.
3096 2013-05-09 Joel Brobecker <brobecker@adacore.com>
3098 * source.c (forward_search_command): Replace call to getc
3100 (reverse_search_command): Likewise.
3102 2013-05-08 Doug Evans <dje@google.com>
3104 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
3107 2013-05-08 Joel Brobecker <brobecker@adacore.com>
3109 * sol-thread.c (info_cb): Factorize the code a little.
3111 2013-05-08 Joel Brobecker <brobecker@adacore.com>
3113 * sol-thread.c (info_cb): Rework the output of the "maintenance
3114 info sol-threads" command a bit.
3116 2013-05-08 Joel Brobecker <brobecker@adacore.com>
3118 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
3119 Replace ti.ti_startfunc by ti.ti_pc.
3121 2013-05-08 Joel Brobecker <brobecker@adacore.com>
3123 * solib-aix.c (solib_aix_free_library_list): New function
3124 for the case where HAVE_LIBEXPAT is not defined.
3126 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3128 PR breakpoints/15413:
3129 * breakpoint.c (condition_completer): Simplify the code to
3130 disconsider multiple locations of breakpoints when completing the
3131 "condition" command.
3133 2013-05-07 Pierre Muller <muller@sourceware.org>
3135 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
3136 instead of <sys/wait.h>.
3138 2013-05-07 Pierre Muller <muller@sourceware.org>
3140 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
3141 trailing new line from warning message.
3143 2013-05-07 Pierre Muller <muller@sourceware.org>
3145 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
3146 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
3148 2013-05-07 Joel Brobecker <brobecker@adacore.com>
3150 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
3151 error message (ARI fix).
3153 2013-05-07 Joel Brobecker <brobecker@adacore.com>
3155 * features/library-list-aix.dtd: Replace library-list by
3157 * rs6000-nat.c: Replace library-list by library-list-aix
3159 * solib-aix.c: Likewise.
3161 2013-05-07 Joel Brobecker <brobecker@adacore.com>
3163 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
3164 Renames TARGET_OBJECT_AIX_LIBRARIES.
3165 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
3166 TARGET_OBJECT_LIBRARIES_AIX throughout.
3167 * solib-aix.c: Likwise.
3169 2013-05-07 Yao Qi <yao@codesourcery.com>
3171 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
3172 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
3174 2013-05-07 Yao Qi <yao@codesourcery.com>
3176 * solib-dsbt.c (enable_break): Declare.
3177 (dsbt_current_sos): Remove call to enable_break2.
3178 (enable_break2): Rename to enable_break. Set solib breakpoint
3179 on '_dl_debug_state'.
3180 (enable_break): Remove.
3182 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
3184 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
3185 debug state prior to replicating existing hardware watchpoints or
3188 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3190 * gcore.c (gcore_create_callback): Ignore sections with
3191 separate_debug_objfile_backlink != NULL.
3193 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
3194 Andrew Jenner <andrew@codesourcery.com>
3195 Chung-Lin Tang <cltang@codesourcery.com>
3196 Julian Brown <julian@codesourcery.com>
3198 Based on the nios2-elf port from Altera Corporation.
3200 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
3202 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
3203 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
3204 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
3205 * nios2-tdep.h: New.
3206 * nios2-tdep.c: New.
3207 * nios2-linux-tdep.c: New.
3208 * features/Makefile (WHICH): Add nios2-linux.
3209 (nios2-linux-expedite): Set.
3210 * features/nios2-cpu.xml: New.
3211 * features/nios2.xml: New.
3212 * features/nios2-linux.xml: New.
3213 * features/nios2.c: New (autogenerated).
3214 * features/nios2-linux.c: New (autogenerated).
3215 * regformats/nios2-linux.dat: New (autogenerated).
3216 * NEWS (Changes since GDB 7.6): Add new Nios II targets
3219 2013-05-06 Doug Evans <dje@google.com>
3221 * symfile.c: Whitespace cleanup.
3223 * solist.h (struct target_so_ops): New member clear_so.
3224 * solib-svr4.c (svr4_clear_so): New function.
3225 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
3226 * solib.c (clear_so): Renamed from free_so_symbols.
3227 All callers updated. Call target clear_so if it exists.
3229 2013-05-06 Tom Tromey <tromey@redhat.com>
3231 * ada-lang.c (ada_value_primitive_packed_val): Don't
3233 * value.c (set_value_parent): Incref the new parent and decref
3235 (value_copy, value_primitive_field): Use set_value_parent.
3237 2013-05-06 Tom Tromey <tromey@redhat.com>
3239 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
3240 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
3242 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
3243 * dwarf2read.c (write_constant_as_bytes)
3244 (dwarf2_fetch_constant_bytes): New functions.
3246 2013-05-06 Tom Tromey <tromey@redhat.com>
3248 * dwarf2read.c (dwarf2_const_value_data): Remove unused
3250 (dwarf2_const_value_attr): Update.
3252 2013-05-06 Tom Tromey <tromey@redhat.com>
3254 * somread.c (som_symfile_offsets): Add 'const' to addrs.
3255 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
3256 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
3259 2013-05-06 Tom Tromey <tromey@redhat.com>
3261 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
3264 2013-05-06 Doug Evans <dje@google.com>
3266 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
3267 * stabsread.h (process_one_symbol): Update declaration.
3268 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
3269 * elfread.c (elf_symfile_relocate_probe): Ditto.
3270 * psymtab.c (relocate_psymtabs): Ditto.
3271 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
3272 (objfile_relocate): Ditto.
3273 * objfiles.h (objfile_relocate): Update declaration.
3274 * symfile.c (relative_addr_info_to_section_offsets): Constify
3276 (default_symfile_offsets): Ditto.
3277 (syms_from_objfile_1): Constify offsets parameter.
3278 (syms_from_objfile): Ditto.
3279 (symbol_file_add_with_addrs_or_offsets): Ditto.
3280 (symfile_map_offsets_to_segments): Constify data parameter.
3281 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
3282 delta parameters of member relocate.
3283 (struct sym_probe_fns): Constify new_offsets,
3284 delta parameters of member sym_relocate_probe.
3285 (struct sym_fns): Constify section_addr_info parameter of member
3287 (relative_addr_info_to_section_offsets): Update declaration.
3288 (default_symfile_offsets): Ditto.
3289 (syms_from_objfile): Ditto.
3290 (symfile_map_offsets_to_segments): Ditto.
3292 * symfile.c (syms_from_objfile_1): Use correct section count when
3293 objfile->sf == NULL.
3295 2013-05-06 Mike Frysinger <vapier@gentoo.org>
3297 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
3299 2013-05-06 Doug Evans <dje@google.com>
3301 * psympriv.h (struct partial_symtab): Augment comment for member
3304 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3306 Reimplement shared library support on ppc-aix...
3307 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
3308 * features/library-list-aix.dtd: New file.
3309 * solib-aix.h, solib-aix.c: New file.
3310 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
3311 (rs6000_find_toc_address_hook): Delete.
3312 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
3313 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
3314 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
3316 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
3317 (vmap_symtab, fixup_breakpoints): Delete.
3318 (rs6000_xfer_shared_libraries): New function.
3319 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
3320 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
3321 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
3322 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
3323 (rs6000_xfer_shared_library): New function.
3324 (find_toc_address): Delete.
3325 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
3326 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
3327 * xcoffread.c (record_minimal_symbol): Reloate symbol address
3328 before creating minimal symbol. Adjust function description
3330 (scan_xcoff_symtab): Replace call to
3331 prim_record_minimal_symbol_and_info by call to
3332 record_minimal_symbol.
3333 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
3334 around default_symfile_offsets.
3335 * configure.tgt: Add solib-aix.o to gdb_target_obs for
3336 powerpc-aix targets.
3337 * config/rs6000/nm-rs6000.h: Delete.
3338 * config/powerpc/aix.mh (NAT_FILE): Delete.
3339 (NATDEPFILES): Remove xcoffsolib.o.
3340 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
3341 (ALL_TARGET_OBS): Add solib-aix.o.
3342 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
3343 config/rs6000/nm-rs6000.h. Add solib-aix.h.
3344 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
3345 * xcoffsolib.h, xcoffsolib.c: Delete.
3347 * solib.c (reload_shared_libraries): Remove reference to
3348 SOLIB_CREATE_INFERIOR_HOOK.
3349 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
3350 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
3351 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
3353 * corelow.c (deprecated_core_resize_section_table): Delete.
3354 * exec.c: Remove include of xcoffsolib.h".
3355 (map_vmap, vmap): Delete.
3356 (exec_close_1): Remove references to vmap.
3357 (exec_file_attach): Remove vmap handling code, and reference
3358 to DEPRECATED_IBM6000_TARGET.
3359 (bfdsec_to_vmap): Delete.
3360 (exec_files_info): Remove block of code handling VMAP.
3361 * infcmd.c (post_create_inferior): Remove reference to
3362 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
3363 * infrun.c (follow_exec): Remove reference to
3364 SOLIB_CREATE_INFERIOR_HOOK.
3365 * stack.c (print_frame): Remove reference to PC_SOLIB.
3366 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
3367 (dsbt_relocate_main_executable): Likewise.
3368 * solib-frv.c (frv_current_sos): Likewise.
3370 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3372 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
3373 to target_write_memory and target_read_memory.
3375 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3377 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
3378 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
3380 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3382 * darwin-nat.c: Replace all "%x" instances in format strings
3383 into "0x%x" throughout.
3385 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3387 * darwin-nat.c (darwin_mourn_inferior): Replace call to
3388 gdb_assert by call to MACH_CHECK_ERROR.
3389 (darwin_attach_pid): Raise an error rather than a failed
3390 assertion when various system calls failed. Report a warning
3391 instead of raising a failed assertion when PREV_NOT is not NULL
3392 after call to mach_port_request_notification.
3393 (darwin_ptrace_me): Raise an error rather than a failed
3394 assertion when read returns nonzero.
3396 2013-05-06 Joel Brobecker <brobecker@adacore.com>
3398 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
3400 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3402 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
3404 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3406 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
3407 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
3408 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
3409 a stale cleanup. Fix double free of NAME.
3411 2013-05-04 Eli Zaretskii <eliz@gnu.org>
3413 * windows-nat.c (windows_delete_thread): Accept an additional
3414 argument, the thread's exit code, and announce thread death when
3415 print_thread_events is non-zero and we are deleting a thread that
3416 is not the main thread.
3417 (get_windows_debug_event): Pass thread exit code to
3418 windows_delete_thread.
3420 2013-05-03 Kevin Buettner <kevinb@redhat.com>
3422 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
3423 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
3424 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
3425 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
3426 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
3427 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
3428 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
3429 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
3430 (gdbarch_tdep): New struct.
3431 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
3433 (v850e3v5_register_name): New function.
3434 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
3435 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
3436 code handling the struct return conventions for the RH850 ABI.
3438 (v850_eight_byte_align_p): New function.
3439 (v850_push_call_dummy): Push structs by value, not by reference
3440 for the RH850 ABI. Add support for eight byte alignment.
3441 (v850_dbtrap_breakpoint_from_pc): New function.
3442 (v850_gdbarch_init): Add ABI detection code. Register
3443 v850e3v5_register_name for the v850e3v5 architecture. Set the
3444 number of registers for v850e3v5. Register
3445 v850_dbtrap_breakpoint_from_pc as appropriate.
3446 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
3448 2013-05-03 Doug Evans <dje@google.com>
3450 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
3451 of bfd_count_sections.
3452 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
3453 * symfile.c (default_symfile_offsets): Ditto.
3454 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
3455 one entry, not bfd_count_sections entries.
3457 2013-05-03 Kevin Buettner <kevinb@redhat.com>
3459 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
3460 `save' and `restore' register groups. Don't include SPL
3461 or SPH in these groups.
3462 (rl78_dwarf_reg_to_regnum): Adjust mapping for
3463 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
3464 RL78_ES_REGNUM, and RL78_CS_REGNUM.
3465 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
3466 dwarf2_append_unwinders().
3468 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3470 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
3471 ignore SIGINT and SIGTRAP in case these internal signals are
3474 2013-05-01 Joel Brobecker <brobecker@adacore.com>
3476 * darwin-nat.c (darwin_read_write_inferior): Change types
3477 of parameters rdaddr and wraddr to "gdb_byte *". Change type
3478 of copy_count to "mach_msg_type_number_t".
3479 (darwin_read_dyld_info): Change type of parameter
3480 rdaddr to "gdb_byte *".
3482 2013-05-01 Joel Brobecker <brobecker@adacore.com>
3484 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
3485 of &info->load_map from "char *" to "gdb_byte *".
3487 2013-05-01 Joel Brobecker <brobecker@adacore.com>
3489 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
3490 from "char *" to "gdb_byte *".
3491 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
3493 2013-04-30 Doug Evans <dje@google.com>
3495 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
3496 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
3497 DWO stub. If DWO isn't found, just use stub.
3498 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
3500 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
3501 calling init_cutu_and_read_dies.
3503 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
3505 * target-descriptions.c (maint_print_c_tdesc_cmd):
3506 Add case to parse structures as register types and
3509 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
3511 * MAINTAINERS (Write After Approval): Add myself to the list.
3513 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3515 * sol-thread.c (rw_common): Change type of parameter "buf"
3517 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
3518 rw_common to "gdb_byte *" instead of "char *".
3520 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3522 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
3523 of local variable msym to const struct bound_minimal_symbol.
3524 Adjust use accordingly.
3525 [ti.ti_state == TD_THR_SLEEP]: Likewise.
3527 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
3529 * i386gnu-nat.c (CREG_OFFSET): New macro.
3530 (creg_offset): New array.
3531 (CREG_ADDR): Use creg_offset instead of reg_offset.
3533 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3535 * mep-tdep.c (mep_write_pc): Delete.
3536 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
3537 Add call to set_gdbarch_pc_regnum.
3539 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3541 * common/filestuff.c: Replace #include <dirent.h> by
3542 #include "gdb_dirent.h".
3544 2013-04-30 Joel Brobecker <brobecker@adacore.com>
3546 * common/filestuff.c: Replace #include <sys/stat.h> by
3547 #include "gdb_stat.h".
3549 2013-04-29 Pierre Muller <muller@sourceware.org>
3551 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
3552 editCase function rule.
3553 (get_DW_AT_signature_type): Likewise.
3555 2013-04-29 Joel Brobecker <brobecker@adacore.com>
3557 * m32r-tdep.c (m32r_write_pc): Delete.
3558 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
3559 Add call to set_gdbarch_pc_regnum.
3561 2013-04-29 Pierre Muller <muller@sourceware.org>
3563 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
3565 2013-04-29 Joel Brobecker <brobecker@adacore.com>
3567 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
3569 2013-04-28 Yao Qi <yao@codesourcery.com>
3571 * solib-dsbt.c (fetch_loadmap): Re-indent.
3572 (displacement_from_map, enable_break2): Likewise.
3573 (dsbt_relocate_section_addresses): Likewise.
3575 2013-04-26 Joel Brobecker <brobecker@adacore.com>
3579 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
3582 * dwarf2read.c (process_full_comp_unit): Always create a static
3585 2013-04-25 Hui Zhu <hui@codesourcery.com>
3587 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
3588 to loc->cmd_bytecode.
3590 2013-04-24 Doug Evans <dje@google.com>
3592 * dwarf2read.c (setup_type_unit_groups): Fix comment.
3594 2013-04-22 Keith Seitz <keiths@redhat.com>
3596 * tracepoint.c (trace_save): Call the writer's start method.
3598 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
3601 * cli/cli-decode.c (lookup_command): Show an error if there is no space
3604 2013-04-23 Tom Tromey <tromey@redhat.com>
3606 * common/filestuff.c: Check USE_WIN32API before including
3608 (HAVE_F_GETFD): New define.
3609 (mark_cloexec): Check HAVE_F_GETFD.
3610 (gdb_open_cloexec): Change 'mode' to unsigned long.
3611 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
3612 (gdb_pipe_cloexec): Check HAVE_PIPE.
3613 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
3616 2013-04-23 Hui Zhu <hui@codesourcery.com>
3619 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
3621 2013-04-23 Hui Zhu <hui@codesourcery.com>
3624 * breakpoint.c (dprintf_print_recreate): New.
3625 (save_breakpoints): Let it not save dprintf commands.
3626 (initialize_breakpoint_ops): Set dprintf_print_recreate.
3628 2013-04-22 Tom Tromey <tromey@redhat.com>
3631 * Makefile.in (SFILES): Add filestuff.c
3632 (COMMON_OBS): Add filestuff.o.
3633 (filestuff.o): New target.
3634 * auto-load.c (auto_load_objfile_script_1): Use
3636 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
3637 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
3638 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
3639 * common/agent.c (gdb_connect_sync_socket): Use
3641 * common/filestuff.c: New file.
3642 * common/filestuff.h: New file.
3643 * common/linux-osdata.c (linux_common_core_of_thread)
3644 (command_from_pid, commandline_from_pid, print_source_lines)
3645 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3646 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
3648 * common/linux-procfs.c (linux_proc_get_int)
3649 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
3650 * config.in, configure: Rebuild.
3651 * configure.ac: Don't check for sys/socket.h. Check for
3653 * corelow.c (core_open): Use gdb_open_cloexec.
3654 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
3655 * fork-child.c (fork_inferior): Call close_most_fds.
3656 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
3657 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
3658 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
3659 Use gdb_fopen_cloexec.
3660 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
3662 (linux_async_pipe): Use gdb_pipe_cloexec.
3663 * remote-fileio.c (remote_fileio_func_open): Use
3665 * remote.c (remote_file_put, remote_file_get): Use
3667 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
3669 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
3670 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
3671 * solib.c (solib_find): Use gdb_open_cloexec.
3672 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
3673 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
3674 (tfile_open): Use gdb_open_cloexec.
3675 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
3676 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
3677 * xml-support.c (xml_fetch_content_from_file): Use
3679 * main.c (captured_main): Call notice_open_fds.
3681 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
3683 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
3684 'char *' to 'gdb_byte *'.
3685 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
3688 2013-04-22 Yao Qi <yao@codesourcery.com>
3690 * infrun.c: Fix typo in comment.
3692 2013-04-22 Andrew Haley <aph@redhat.com>
3694 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
3697 2013-04-20 Yao Qi <yao@codesourcery.com>
3699 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
3700 'char *' to 'gdb_byte *'. Cast the return value of
3701 'bt_ctf_get_char_array' to 'gdb_byte *'.
3703 2013-04-19 Pedro Alves <palves@redhat.com>
3705 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
3707 * configure: Regenerate.
3709 2013-04-19 Pedro Alves <palves@redhat.com>
3711 * ser-tcp.c (net_read_prim): Cast second argument to recv to
3714 2013-04-19 Pedro Alves <palves@redhat.com>
3716 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
3717 Change type of 'myaddr' parameter to gdb_byte pointer.
3718 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
3719 to 'long long' pointer instead of to 'unsigned long long'.
3720 (monitor_write_memory_block, monitor_read_memory_single)
3721 (monitor_read_memory): Change type of 'myaddr' parameter to
3724 2013-04-19 Pedro Alves <palves@redhat.com>
3726 * record.c (validate_history_size): Make parameter 'setting'
3729 2013-04-19 Pedro Alves <palves@redhat.com>
3731 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
3734 2013-04-19 Pedro Alves <palves@redhat.com>
3736 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
3739 2013-04-19 Pedro Alves <palves@redhat.com>
3741 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
3742 * ada-tasks.c (read_fat_string_value): Likewise.
3744 2013-04-19 Pedro Alves <palves@redhat.com>
3746 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
3747 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
3748 'offset', and adjust.
3750 2013-04-19 Pedro Alves <palves@redhat.com>
3752 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
3753 (read_index_from_section): Add cast to 'char *'.
3755 2013-04-19 Pedro Alves <palves@redhat.com>
3757 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
3759 2013-04-19 Pedro Alves <palves@redhat.com>
3761 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
3763 2013-04-19 Pedro Alves <palves@redhat.com>
3765 * record-full.c (record_full_get_bookmark): Change local 'ret'
3766 type to char * and add cast to gdb_byte *.
3767 (record_full_goto_bookmark): Handle 'bookmark' argument as a
3769 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
3771 2013-04-19 Pedro Alves <palves@redhat.com>
3773 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
3774 * python/py-prettyprint.c (print_string_repr): Change type of
3775 'output' local to char *. Add cast to gdb_byte * in
3776 LA_PRINT_STRING call.
3777 (print_children): Change type of 'output' local to char *.
3778 * python/py-value.c (valpy_string): Add cast to const char * in
3779 PyUnicode_Decode call.
3781 2013-04-19 Pedro Alves <palves@redhat.com>
3783 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
3784 and change its type to 'const char *'. Adjust.
3785 (mips_send_packet): Add cast to 'char *', and remove cast to
3787 (mips_receive_packet): Remove cast to 'unsigned char *'.
3788 (mips_load_srec): Use bfd_byte.
3789 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
3790 (pmon_checkset): Make 'value' parameter unsigned.
3792 2013-04-19 Pedro Alves <palves@redhat.com>
3794 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
3796 2013-04-19 Pedro Alves <palves@redhat.com>
3798 * remote.c (remote_write_bytes_aux, compare_sections_command)
3800 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
3801 (remote_hostio_readlink, remote_bfd_iovec_pread)
3802 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
3803 binary buffer, and char when buffer is used as string.
3804 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
3805 (trace_save, tfile_open, traceframe_walk_blocks)
3806 (tfile_fetch_registers): Likewise.
3808 2013-04-19 Pedro Alves <palves@redhat.com>
3810 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
3811 buffer and size_t size. Adjust.
3812 * ser-base.h (ser_base_write): Adjust.
3813 * ser-go32.c (cnts): Change type to size_t.
3814 (dos_write): Change prototype -- take 'void *'
3815 buffer and size_t size. Adjust.
3816 (dos_info): Print elements of 'cnts' as unsigned long.
3817 * serial.c (serial_write): Likewise.
3818 * serial.h (serial_write): Adjust.
3819 (struct serial_ops) <write>: Change prototype -- take 'void *'
3820 buffer and size_t size. Adjust.
3822 2013-04-19 Pedro Alves <palves@redhat.com>
3824 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
3826 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
3828 2013-04-19 Pedro Alves <palves@redhat.com>
3830 * alpha-tdep.c (alpha_extract_return_value): Use
3831 regcache_cooked_read_unsigned to read 'v0'.
3833 2013-04-19 Pedro Alves <palves@redhat.com>
3835 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
3836 parameters 'at', 'as' and 'offset' to uint32_t.
3838 2013-04-19 Pedro Alves <palves@redhat.com>
3840 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
3841 'is64' to signed 'int'.
3843 2013-04-19 Pedro Alves <palves@redhat.com>
3845 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
3848 2013-04-19 Pedro Alves <palves@redhat.com>
3850 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
3851 'insnbuf' buffer type to unsigned int[].
3853 2013-04-19 Pedro Alves <palves@redhat.com>
3855 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
3857 2013-04-19 Pedro Alves <palves@redhat.com>
3859 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
3862 2013-04-19 Pedro Alves <palves@redhat.com>
3864 * alpha-tdep.c (heuristic_fence_post): Change type to int.
3865 (alpha_heuristic_proc_start): Adjust to check -1 instead of
3867 * mips-tdep.c (heuristic_fence_post): Change type to int.
3868 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
3870 2013-04-19 Pedro Alves <palves@redhat.com>
3872 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
3873 (struct gdbarch_tdep) <cris_version>: Make unsigned.
3874 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
3876 2013-04-19 Pedro Alves <palves@redhat.com>
3878 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
3879 it to get a string view of the byte buffer.
3880 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
3881 type to gdb_byte *. Adjust.
3882 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
3883 Change local to char *.
3884 * solib-darwin.c (find_program_interpreter): Change return type to
3886 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
3887 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
3888 * solib-frv.c (enable_break2): Change local 'buf' to char *.
3889 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
3890 * solib-svr4.c (find_program_interpreter): Change return type to
3892 (enable_break): Change local 'interp_name' to char *.
3893 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
3894 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
3895 (spu_pseudo_register_write_spu): Use char for string buffer.
3897 (info_spu_event_command, info_spu_signal_command): Add casts to
3900 2013-04-19 Pedro Alves <palves@redhat.com>
3902 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
3904 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
3905 * ada-lang.c (ada_value_assign): Use gdb_byte.
3906 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
3907 (alphanbsd_sigtramp_offset): Use gdb_byte.
3908 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
3909 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
3910 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
3911 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
3912 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
3913 * arm-tdep.c (arm_stub_unwind_sniffer)
3914 (arm_displaced_init_closure): Use gdb_byte.
3915 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
3916 (arm_default_thumb_le_breakpoint)
3917 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
3918 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
3919 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
3920 * arm-wince-tdep.c (arm_wince_le_breakpoint)
3921 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
3922 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
3923 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
3924 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
3925 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
3926 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
3927 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
3928 (cris_store_return_value, cris_extract_return_value): Use
3930 (constraint): Change type of parameter to char * from signed
3931 char*. Use gdb_byte.
3932 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
3933 of local buffer to gdb_byte *.
3934 * dwarf2read.c (read_index_from_section): Use gdb_byte.
3935 (create_dwp_hash_table): Change type of locals to gdb_byte *.
3936 (add_address_entry): Change type of local buffer to gdb_byte[].
3937 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
3938 (frv_push_dummy_call): Use gdb_byte.
3939 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
3940 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
3941 (hppa_hpux_supply_save_state): Use gdb_byte.
3942 * hppa-tdep.c (hppa32_push_dummy_call)
3943 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
3944 * ia64-tdep.c (extract_bit_field, replace_bit_field)
3945 (slotN_contents, replace_slotN_contents): Change type of parameter
3947 (fetch_instruction, ia64_pseudo_register_write)
3948 (ia64_register_to_value, ia64_value_to_register)
3949 (ia64_extract_return_value, ia64_store_return_value)
3950 (ia64_push_dummy_call): Use gdb_byte.
3951 * m32c-tdep.c (m32c_return_value): Remove cast.
3952 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
3953 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
3955 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
3956 * mn10300-tdep.c (mn10300_store_return_value)
3957 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
3959 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
3960 (moxie_process_record): Remove casts.
3961 * ppc-ravenscar-thread.c (supply_register_at_address)
3962 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
3963 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
3964 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
3965 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
3966 * remote.c (compare_sections_command): Use gdb_byte.
3967 * score-tdep.c (score7_free_memblock): Change type of parameter to
3969 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
3970 gdb_byte *. Use gdb_byte.
3971 (sh_push_dummy_call_fpu): Use gdb_byte.
3972 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
3973 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
3974 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
3975 Change parameter type to 'gdb_byte *'. Use gdb_byte.
3976 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
3977 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
3978 (sh64_store_return_value, sh64_register_convert_to_virtual):
3979 Change parameter type to 'gdb_byte *'. Use gdb_byte.
3980 (sh64_pseudo_register_write): Use gdb_byte.
3981 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
3982 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
3984 (irix_current_sos): Use gdb_byte.
3985 * solib-som.c (som_current_sos): Use gdb_byte.
3986 * sparc-ravenscar-thread.c (supply_register_at_address)
3987 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
3988 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
3989 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
3990 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
3992 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
3994 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
3995 * xstormy16-tdep.c (xstormy16_extract_return_value)
3996 (xstormy16_store_return_value): Change parameter type to
3997 'gdb_byte *'. Adjust.
3998 (xstormy16_push_dummy_call): Use gdb_byte.
3999 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
4000 (call0_analyze_prologue, execute_code): Use gdb_byte.
4002 2013-04-19 Vladimir Kargov <kargov@gmail.com>
4003 Pedro Alves <palves@redhat.com>
4005 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
4008 2013-04-17 Doug Evans <dje@google.com>
4010 * dwarf2read.c (struct signatured_type): New member type.
4011 (struct attribute): Replace member signatured_type with signature.
4012 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
4013 (read_call_site_scope): Call follow_die_ref instead of
4014 follow_die_ref_or_sig.
4015 (read_structure_type): Rewrite handling of signatured types.
4016 (read_enumeration_type): Ditto.
4017 (read_attribute_value): Update.
4018 (build_error_marker_type): New function.
4019 (lookup_die_type): Add assert. Rewrite handling of signatured types.
4020 Don't call error for bad types, just build an error marker type.
4021 (dump_die_shallow): Update.
4022 (follow_die_sig_1): Renamed from follow_die_sig.
4023 Don't call error for bad types, instead return NULL.
4024 (follow_die_sig): New function.
4025 (get_signatured_type, get_DW_AT_signature_type): New functions.
4027 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
4029 * aarch64-tdep.c (aarch64_write_pc): Removed.
4030 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
4033 2013-04-17 Yao Qi <yao@codesourcery.com>
4035 * top.c (print_gdb_configuration): Print configure-time
4036 parameter on using libbabeltrace or not.
4038 2013-04-16 Pedro Alves <palves@redhat.com>
4040 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
4042 2013-04-16 Pedro Alves <palves@redhat.com>
4044 * common/glibc_thread_db.h: Update from upstream glibc
4045 (git 568035b7874a099087b77f7bba3e36a1173787b0).
4047 2013-04-16 Pedro Alves <palves@redhat.com>
4049 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
4050 * common/glibc_thread_db.h: ... this new file ...
4051 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
4053 2013-04-16 Will Newton <will.newton@gmail.com>
4054 Pedro Alves <palves@redhat.com>
4058 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
4059 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
4062 2013-04-16 Pedro Alves <palves@redhat.com>
4063 Eli Zaretskii <eliz@gnu.org>
4065 * NEWS: Mention "set foo unlimited".
4067 2013-04-15 Doug Evans <dje@google.com>
4069 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
4070 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
4071 (create_dwo_cu_reader): Renamed from
4072 create_dwo_debug_info_hash_table_reader.
4073 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
4074 Remove support for multiple CUs in a DWO file.
4075 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
4077 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
4079 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
4080 (create_dwo_in_dwp): Ditto.
4082 2013-04-15 Tom Tromey <tromey@redhat.com>
4084 * NEWS: Move recent entries into "since 7.6" section.
4086 2013-04-15 Tom Tromey <tromey@redhat.com>
4090 * break-catch-throw.c (struct exception_catchpoint)
4091 <exception_rx, pattern>: New fields.
4092 (fetch_probe_arguments, dtor_exception_catchpoint)
4093 (check_status_exception_catchpoint)
4094 (print_one_detail_exception_catchpoint): New functions.
4095 (handle_gnu_v3_exceptions): Add "except_rx" argument.
4096 Compile regular expression if needed.
4097 (extract_exception_regexp): New function.
4098 (catch_exception_command_1): Use extract_exception_regexp.
4099 (compute_exception): Use fetch_probe_arguments.
4100 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
4101 and check_status fields.
4102 * cp-abi.c (cplus_typename_from_type_info): New function.
4103 * cp-abi.h (cplus_typename_from_type_info): Declare.
4104 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
4105 * gdb_regex.h (compile_rx_or_error): Declare.
4106 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
4108 (init_gnuv3_ops): Set get_type_from_type_info field.
4109 * probe.c (compile_rx_or_error): Move...
4110 * utils.c (compile_rx_or_error): ... here.
4112 2013-04-15 Tom Tromey <tromey@redhat.com>
4116 * break-catch-throw.c (compute_exception): New function.
4117 (exception_funcs): New global.
4118 (_initialize_break_catch_throw): Create $_exception.
4119 * cp-abi.c (cplus_type_from_type_info): New function.
4120 * cp-abi.h (cplus_type_from_type_info): Declare.
4121 (struct cp_abi_ops) <get_type_from_type_info>: New field.
4122 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
4123 (gnuv3_get_type_from_type_info): New functions.
4124 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
4126 2013-04-15 Tom Tromey <tromey@redhat.com>
4128 * break-catch-throw.c (struct exception_names): New.
4129 (exception_functions): Change type.
4130 (re_set_exception_catchpoint): Look for SDT probes.
4132 2013-04-15 Tom Tromey <tromey@redhat.com>
4135 * break-catch-throw.c (exception_functions): New global.
4136 (gnu_v3_exception_catchpoint_ops): Move earlier.
4137 (struct exception_catchpoint): New.
4138 (classify_exception_breakpoint): Rewrite.
4139 (re_set_exception_catchpoint): New function.
4140 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
4141 Allocate a struct exception_catchpoint.
4142 (catch_exception_command_1): Update.
4143 (initialize_throw_catchpoint_ops): Set 're_set' method.
4145 2013-04-15 Tom Tromey <tromey@redhat.com>
4147 * Makefile.in (SFILES): Add break-catch-throw.c
4148 (COMMON_OBS): Add break-catch-throw.o.
4149 * break-catch-throw.c: New file.
4150 * breakpoint.c: Move exception-catching code to new file.
4151 (ep_parse_optional_if_clause): No longer static.
4152 * breakpoint.h (ep_parse_optional_if_clause): Declare.
4154 2013-04-15 Tom Tromey <tromey@redhat.com>
4158 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
4159 * c-exp.y (TYPEID): New token.
4160 (exp): Add new TYPEID productions.
4161 (ident_tokens): Add "typeid".
4162 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
4163 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
4164 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
4165 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
4166 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
4168 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
4169 (build_std_type_info_type, gnuv3_get_typeid_type)
4170 (gnuv3_get_typeid): New functions.
4171 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
4172 new fields on ABI object.
4173 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
4174 * std-operator.def (OP_TYPEID): New.
4176 2013-04-15 Tom Tromey <tromey@redhat.com>
4178 * elfread.c (elf_symtab_read): Install versioned symbol under
4179 unversioned name as well.
4181 2013-04-15 Tom Tromey <tromey@redhat.com>
4184 * c-lang.c (cplus_language_defn): Use gdb_demangle.
4185 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
4186 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
4187 (gdb_demangle): New function.
4188 * cp-support.h (gdb_demangle): Declare.
4189 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
4190 (dwarf2_name): Use gdb_demangle.
4191 * gdbtypes.c (check_stub_method): Use gdb_demangle.
4192 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
4194 (gnuv3_print_method_ptr): Use gdb_demangle.
4195 * jv-lang.c (java_demangle): Use gdb_demangle.
4196 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
4197 * language.c (unk_lang_demangle): Use gdb_demangle.
4198 * symtab.c (symbol_find_demangled_name)
4199 (demangle_for_lookup): Use gdb_demangle.
4201 2013-04-15 Tom Tromey <tromey@redhat.com>
4205 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
4207 (classify_exception_breakpoint): New function.
4208 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4209 (print_mention_exception_catchpoint)
4210 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
4211 (catch_exception_command_1): Handle "rethrow" catchpoint.
4212 (catch_rethrow_command): New function.
4213 (_initialize_breakpoint): Add "catch rethrow" command.
4215 2013-04-15 Pierre Muller <muller@sourceware.org>
4217 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
4218 set_gdbarch_write_pc as deprecated anymore.
4220 2013-04-15 Joel Brobecker <brobecker@adacore.com>
4222 * spu-tdep.c (spu_write_pc): Add empty line after local variable
4225 2013-04-13 Yao Qi <yao@codesourcery.com>
4227 * ctf.c (_initialize_ctf): Include "completer.h".
4228 Call add_target_with_completer instead of add_target.
4230 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4232 Fix GDB regression related to PR binutils/14813.
4233 * jit.c (mem_bfd_iovec_close): Return 0 for success.
4234 * minidebug.c (lzma_close): Add return value comment.
4235 * remote.c (remote_bfd_iovec_close): Return 0 for success.
4236 * solib-spu.c (spu_bfd_iovec_close): Likewise.
4237 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
4239 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4241 * config.in: Regenerate.
4243 2013-04-12 Tom Tromey <tromey@redhat.com>
4245 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
4247 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
4248 (struct die_reader_specs) <buffer>: Likewise.
4249 (die_reader_func_ftype): Make 'info_ptr' const.
4250 (struct line_header) <include_dirs, statement_program_start,
4251 statement_program_end>: Now const.
4252 (struct file_entry) <name>: Likewise.
4253 (struct partial_die_info) <sibling>: Likewise.
4254 (struct dwarf_block) <data>: Likewise.
4255 (dwarf2_read_section): Remove cast.
4256 (dwarf2_get_section_info): Make 'bufp' const.
4257 (read_index_from_section): Constify.
4258 (dw2_get_file_names_reader): Make 'info_ptr' const.
4259 (dw2_get_primary_filename_reader): Likewise.
4260 (read_comp_unit_head): Make 'info_ptr' and return type const.
4261 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
4263 (read_abbrev_offset): Constify.
4264 (dwarf2_create_include_psymtab): Make 'name' const.
4265 (create_debug_types_hash_table): Update.
4266 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
4267 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
4269 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
4270 (load_partial_comp_unit_reader): Make 'info_ptr' const.
4271 (read_comp_units_from_section): Constify.
4272 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
4273 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
4275 (dwarf2_compute_name, setup_type_unit_groups): Constify.
4276 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
4277 (create_dwp_hash_table, dwarf2_ranges_read)
4278 (dwarf2_record_block_ranges): Constify.
4279 (read_die_and_children, read_die_and_siblings_1)
4280 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
4282 (read_full_die_1, read_full_die): Make 'info_ptr' const.
4283 (abbrev_table_read_table): Constify.
4284 (load_partial_dies): Make 'info_ptr' const.
4285 (read_partial_die, read_attribute_value, read_attribute): Make
4286 'info_ptr' and return type const.
4287 (read_address, read_initial_length)
4288 (read_checked_initial_length_and_offset, read_offset)
4289 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
4291 (read_direct_string): Make 'buf' and return type const.
4292 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
4293 (read_indirect_string): Make return type const.
4294 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
4295 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
4297 (read_str_index): Make return type const.
4298 (add_include_dir): Make 'include_dir' const.
4299 (add_file_name): Make 'name' const.
4300 (dwarf_decode_line_header): Constify.
4301 (psymtab_include_file_name): Make return type const.
4302 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
4303 (dwarf2_start_subfile): Make 'filename' const.
4304 (dwarf2_const_value_attr): Make 'bytes' const.
4305 (read_signatured_type_reader): Make 'info_ptr' const.
4306 (decode_locdesc): Constify.
4307 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
4309 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
4310 'mac_end', and return type const.
4311 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
4312 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
4314 (per_cu_header_read_in): Constify.
4315 * symfile.h (dwarf2_get_section_info): Update.
4317 2013-04-12 Tom Tromey <tromey@redhat.com>
4319 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
4321 2013-04-12 Eli Zaretskii <eliz@gnu.org>
4323 * NEWS: Mention "show configuration", --configuration.
4324 * top.c (print_gdb_configuration): New function, displays the
4325 details about GDB configure-time parameters.
4326 (print_gdb_version): Mention "show configuration".
4327 * cli/cli-cmds.c (show_configuration): New function.
4328 (_initialize_cli_cmds): Add the "show configuration" command.
4329 * main.c (captured_main) <print_configuration>: New static var.
4330 <long_options>: Use it.
4331 If --configuration was given, call print_gdb_configuration.
4333 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4334 Pedro Alves <palves@redhat.com>
4336 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
4337 (generated_files): Add gcore.
4338 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
4339 HAVE_NATIVE_GCORE_HOST.
4341 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
4342 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
4343 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
4344 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
4345 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
4346 Add HAVE_NATIVE_GCORE_HOST.
4347 * configure: Regenerate.
4348 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
4349 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
4350 AC_CONFIG_FILES for gcore.
4351 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
4353 * gdb_gcore.sh: Rename to ...
4354 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
4355 and GCORE_TRANSFORM_NAME substitutions.
4357 Fix parsing tabs in ${gdb_target_obs}.
4358 * configure.tgt (gdb_have_gcore): Replace case with for and if.
4360 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4362 * remote.c (unpush_and_perror): Add output message final dot.
4364 2013-04-11 Yao Qi <yao@codesourcery.com>
4366 * tracepoint.c (tfile_interp_line): Fit parameters line and
4369 2013-04-10 Joel Brobecker <brobecker@adacore.com>
4371 * solib.c (solib_map_sections): Remove code overwriting
4372 SO->SO_NAME with the bfd's filename.
4374 2013-04-10 Pedro Alves <palves@redhat.com>
4376 * cli/cli-decode.c (integer_unlimited_completer): New function.
4377 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
4378 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
4380 * cli/cli-setshow.c: Include "cli/cli-utils.h".
4381 (is_unlimited_literal): New function.
4382 (do_set_command): Handle literal "unlimited" arguments.
4383 * frame.c (_initialize_frame) <set backtrace limit>: Document
4385 * printcmd.c (_initialize_printcmd) <set print
4386 max-symbolic-offset>: Add help text.
4387 * record-full.c (_initialize_record_full) <set record full
4388 insn-number-max>: Likewise.
4389 * record.c (_initialize_record) <set record
4390 instruction-history-size, set record function-call-history-size>:
4392 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
4394 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
4396 * source.c (_initialize_source) <set listsize>: Add help text.
4397 * utils.c (initialize_utils) <set height, set width>: Likewise.
4398 <set pagination>: Mention "set height unlimited".
4399 * valprint.c (_initialize_valprint) <set print elements, set print
4400 repeats>: Document "unlimited".
4402 2013-04-10 Pedro Alves <palves@redhat.com>
4404 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
4405 instead of disconnect_tracing.
4406 * infcmd.c (detach_command, disconnect_command): Call
4407 query_if_trace_running. Adjust.
4408 * top.c: Include "tracepoint.h".
4409 (quit_target): Delete. Contents moved ...
4410 (quit_force): ... here. Wrap each stage of teardown in
4411 TRY_CATCH. Call disconnect_tracing before detaching.
4413 2013-04-10 Hui Zhu <hui@codesourcery.com>
4414 Yao Qi <yao@codesourcery.com>
4416 * configure.ac: Check libbabeltrace is installed.
4417 * config.in: Regenerate.
4418 * configure: Regenerate.
4419 * Makefile.in (LIBBABELTRACE): New.
4420 (CLIBS): Add LIBBABELTRACE.
4421 * ctf.c: Include "exec.h".
4422 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
4423 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
4424 (ctf_save_metadata_header): Define new type aliases in
4426 (ctf_write_header): Define event type "tsv_def" and "tp_def"
4427 in metadata. Start a new faked packet for trace status.
4428 (ctf_write_status): Write trace status to CTF.
4429 (ctf_write_uploaded_tsv): Write TSV to CTF.
4430 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
4431 (ctf_write_definition_end): End the faked packet.
4433 (ctx, ctf_iter, trace_dirname): New.
4434 (start_pos): New variable.
4435 (ctf_destroy, ctf_open_dir, ctf_open): New.
4436 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
4438 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
4439 (ctf_fetch_registers, ctf_xfer_partial): New.
4440 (ctf_get_trace_state_variable_value): New.
4441 (ctf_get_tpnum_from_frame_event): New.
4442 (ctf_get_traceframe_address): New.
4443 (ctf_trace_find, ctf_has_stack): New.
4444 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
4445 (ctf_get_trace_status, ctf_read_status): New.
4446 (_initialize_ctf): New.
4447 * tracepoint.c (get_tracepoint_number): New
4448 (get_uploaded_tsv): Remove 'static'.
4449 (struct traceframe_info, trace_regblock_size): Move it to ...
4450 * tracepoint.h: ... here.
4451 (get_tracepoint_number): Declare it.
4452 (get_uploaded_tsv): Declare it.
4454 * NEWS: Mention new configure option.
4456 2013-04-10 Pedro Alves <palves@redhat.com>
4457 Hui Zhu <hui@codesourcery.com>
4459 * breakpoint.c (dprintf_re_set): New.
4460 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
4463 2013-04-09 Joel Brobecker <brobecker@adacore.com>
4465 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
4466 Remove solib-svr4.o from the list.
4468 2013-04-09 Joel Brobecker <brobecker@adacore.com>
4470 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
4471 Use gdb_assert_not_reached instead of invalid boolean expression.
4473 2013-04-09 Pedro Alves <palves@redhat.com>
4475 * remote.c (unpush_and_perror): New function.
4476 (readchar, remote_serial_write): Use it.
4478 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
4480 * NEWS: Mention new btrace RSP packets.
4482 2013-04-08 Tom Tromey <tromey@redhat.com>
4484 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
4487 2013-04-08 Tom Tromey <tromey@redhat.com>
4489 * maint.c (print_bfd_section_info): Print the section index.
4490 * symmisc.c (dump_msymbols): Print the section index.
4492 2013-04-08 Tom Tromey <tromey@redhat.com>
4495 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
4496 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
4497 * breakpoint.c (resolve_sal_pc): Update.
4498 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4499 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
4500 (minsym_lookup_iterator_cb): Use it.
4501 (default_read_var_value): Update.
4502 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
4504 * infcmd.c (jump_command): Update.
4505 * linespec.c (minsym_found): Update.
4506 * maint.c (maintenance_translate_address): Update.
4507 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
4508 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
4509 * parse.c (write_exp_msymbol): Update.
4510 * printcmd.c (address_info): Update.
4511 * psymtab.c (find_pc_sect_psymbol): Update.
4512 (fixup_psymbol_section): Check SYMBOL_SECTION, not
4514 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
4515 Don't initialize SYMBOL_OBJ_SECTION.
4516 * spu-tdep.c (spu_catch_start): Update.
4517 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
4518 * symmisc.c (dump_msymbols, print_symbol): Update.
4519 * symtab.c (fixup_section): Don't set 'obj_section'. Change
4520 how fallback section is computed.
4521 (fixup_symbol_section): Update.
4522 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
4524 (allocate_symbol, initialize_symbol, allocate_template_symbol):
4525 Initialize SYMBOL_SECTION.
4526 * symtab.h (struct general_symbol_info) <section>: Update comment.
4527 <obj_section>: Remove.
4528 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
4529 (SYMBOL_OBJFILE): New macro.
4531 2013-04-08 Tom Tromey <tromey@redhat.com>
4533 * coffread.c (record_minimal_symbol): Update.
4534 * dbxread.c (record_minimal_symbol): Update.
4535 * elfread.c (record_minimal_symbol): Update.
4536 * machoread.c (macho_symtab_add_minsym): Update.
4537 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
4539 * minsyms.c (prim_record_minimal_symbol): Update.
4540 (prim_record_minimal_symbol_full): Remove 'bfd_section'
4542 (prim_record_minimal_symbol_and_info): Likewise.
4543 * minsyms.h (prim_record_minimal_symbol_full)
4544 (prim_record_minimal_symbol_and_info): Update.
4545 * symtab.c (allocate_symbol, initialize_symbol)
4546 (allocate_template_symbol): Initialize SYMBOL_SECTION.
4547 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
4550 2013-04-08 Tom Tromey <tromey@redhat.com>
4553 * solib-som.c (som_solib_section_offsets): Use BFD section
4554 indices. Set offsets for all sections.
4555 * somread.c (som_symtab_read): Compute BFD section for
4556 symbol. Use prim_record_minimal_symbol_and_info.
4557 (som_symfile_read): Fix comment.
4558 (struct find_section_offset_arg): New.
4559 (find_section_offset, set_section_index): New functions.
4560 (som_symfile_offsets): Use set_section_index to compute
4563 2013-04-08 Tom Tromey <tromey@redhat.com>
4565 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
4566 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
4567 gdb_bfd_section_index.
4568 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
4570 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
4572 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
4574 * objfiles.c (add_to_objfile_sections_full): New function.
4575 (add_to_objfile_sections): Use it.
4576 (build_section_table): Rewrite.
4577 (objfile_relocate1): Use gdb_bfd_section_index. Update.
4578 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
4579 (struct objfile) <sections>: Update comment.
4580 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
4582 (ALL_OBJSECTIONS): Use it.
4583 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
4584 * solib-frv.c (frv_relocate_main_executable): Update.
4585 * solib-target.c (solib_target_relocate_section_addresses):
4586 Use gdb_bfd_section_index.
4587 * symfile.c (build_section_addr_info_from_section_table):
4588 Use gdb_bfd_section_index.
4589 (build_section_addr_info_from_bfd, place_section): Likewise.
4590 * symtab.c (fixup_section): Update.
4591 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
4593 2013-04-08 Tom Tromey <tromey@redhat.com>
4595 * minsyms.h (struct bound_minimal_symbol): New.
4596 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
4597 Remove objfile argument.
4598 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
4599 Return bound_minimal_symbol.
4600 * minsyms.c (lookup_minimal_symbol_by_pc_1)
4601 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
4602 Return bound_minimal_symbol.
4603 (in_gnu_ifunc_stub): Update.
4604 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
4605 Remove 'objfile_p' argument.
4606 (lookup_solib_trampoline_symbol_by_pc): Update.
4607 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
4608 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
4609 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
4610 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
4611 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
4612 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
4613 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
4614 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
4615 stack.c, symtab.c, tui/tui-disasm.c: Update.
4617 2013-04-08 Tom Tromey <tromey@redhat.com>
4619 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
4620 Use symbol's obstack, not an objfile.
4621 * coffread.c (process_coff_symbol): Update.
4622 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
4623 * jv-lang.c (add_class_symbol): Update.
4624 * mdebugread.c (new_symbol): Update.
4625 * minsyms.c (prim_record_minimal_symbol_full)
4626 (terminate_minimal_symbol_table): Update.
4627 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
4628 * stabsread.c (define_symbol, read_enum_type): Update.
4629 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
4630 Handle Ada specially.
4631 (symbol_set_language): Add 'obstack' argument.
4632 (symbol_set_names): Update.
4633 (symbol_natural_name, symbol_demangled_name): Always use
4635 * symtab.h (struct general_symbol_info)
4636 <language_specific::obstack>: New field.
4637 <ada_mangled>: New field.
4638 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
4639 (symbol_set_language): Update.
4641 2013-04-08 Tom Tromey <tromey@redhat.com>
4643 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
4644 Take an obstack, not an objfile.
4645 (symbol_set_names): Update.
4646 * symtab.h (symbol_set_demangled_name): Update.
4648 2013-04-08 Tom Tromey <tromey@redhat.com>
4650 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
4652 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
4653 (read_func_scope): Call allocate_template_symbol.
4654 (new_symbol_full): Call allocate_symbol.
4655 * jit.c (finalize_symtab): Call allocate_symbol.
4656 * jv-lang.c (add_class_symbol): Call allocate_symbol.
4657 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
4658 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4659 (common_block_end): Call allocate_symbol.
4660 * symtab.c (allocate_symbol, initialize_symbol)
4661 (allocate_template_symbol): New functions.
4662 * symtab.c (allocate_symbol, initialize_symbol)
4663 (allocate_template_symbol): Declare.
4664 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
4666 2013-04-08 Pedro Alves <palves@redhat.com>
4667 Keith Seitz <keiths@redhat.com>
4669 * breakpoint.c (create_breakpoint): Rename
4670 "parse_condition_and_thread" parameter to "parse_arg". Update
4671 describing comment. If !PARSE_ARG, then error out if ARG is not
4672 the empty string after extracting the location.
4673 * breakpoint.h (create_breakpoint): Rename
4674 "parse_condition_and_thread" parameter to "parse_arg".
4676 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
4678 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
4680 2013-04-07 Yao Qi <yao@codesourcery.com>
4682 * remote.c (remote_trace_find): Change type of parameters 'addr1'
4683 and 'addr2' to CORE_ADDR.
4684 * target.c (update_current_target): Update.
4685 * target.h (struct target_ops) <to_trace_find>: Change parameter
4687 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
4688 'addr2' to CORE_ADDR.
4689 (tfile_trace_find): Likewise.
4690 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
4691 Change local variable 'addr' to type CORE_ADDR.
4692 * tracepoint.h (tfind_1): Update declaration.
4694 2013-04-06 Eli Zaretskii <eliz@gnu.org>
4696 * windows-nat.c (windows_get_absolute_argv0): Move from here...
4697 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
4700 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
4702 * main.h (windows_get_absolute_argv0): ...to here.
4704 2013-04-05 Doug Evans <dje@google.com>
4706 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
4707 (read_cutu_die_from_dwo): Add comments.
4708 (read_structure_type): Update comment.
4709 (read_enumeration_type, read_namespace_type): Update comment.
4710 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
4712 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4714 Convert man pages to texinfo, new gdbinit.5 texinfo page.
4715 * Makefile.in (gdb.z): Remove.
4716 (install-only): Remove $(man1dir) and gdb.1 installation.
4719 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4721 Fix compatibility with Linux kernel 3.8.3.
4722 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
4723 to more inner block. Remove parsing of NUMBER from outer block.
4724 Parse NUMBER only if KEYWORD has been identified.
4726 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4728 Fix variable name shadowing.
4729 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
4730 filename to mapsfilename and update its uses.
4732 2013-04-05 Eli Zaretskii <eliz@gnu.org>
4734 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
4735 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
4736 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
4737 details of the problem.
4739 2013-04-04 Pedro Alves <palves@redhat.com>
4740 Hui Zhu <hui@codesourcery.com>
4742 * breakpoint.c (validate_commands_for_breakpoint): If validating a
4743 tracepoint, reset its STEP_COUNT and call validate_actionline.
4745 2013-04-03 Doug Evans <dje@google.com>
4747 * dwarf2read.c (read_die_and_siblings_1): Renamed from
4748 read_die_and_siblings.
4749 (read_die_and_siblings): New function.
4750 (read_cutu_die_from_dwo): Dump die if requested.
4751 (read_die_and_children): Call read_full_die_1 and
4752 read_die_and_siblings_1.
4753 (read_full_die): Dump die if requested.
4755 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
4757 * dwarf2read.c (struct dwo_file): New member comp_dir.
4758 Rename member name to dwo_name. All uses updated.
4759 (hash_dwo_file): Include comp_dir in computation.
4760 (eq_dwo_file): Ditto.
4761 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
4762 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
4764 * psymtab.c (read_psymtabs_with_fullname): Don't call
4765 psymtab_to_fullname if the basenames are different.
4767 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4769 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
4770 New entry about "fullname" presence.
4772 2013-04-03 Pedro Alves <palves@redhat.com>
4774 * NEWS: Mention x86_64/Cygwin as new native configuration.
4776 2013-04-02 Doug Evans <dje@google.com>
4778 * dwarf2read.c (read_structure_type): Fix typo in comment.
4780 2013-04-02 Pedro Alves <palves@redhat.com>
4782 * NEWS: Mention "set/show debug aarch64", "set/show debug
4783 coff-pe-read" and "set/show debug mach-o".
4785 2013-04-02 Pedro Alves <palves@redhat.com>
4787 * NEWS: Mention "set/show remote trace-buffer-size-packet".
4789 2013-04-02 Eli Zaretskii <eliz@gnu.org>
4791 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
4792 gdb_string.h is now in common/.
4794 2013-04-02 Pedro Alves <palves@redhat.com>
4796 * NEWS: Move "set debug notification" and "set trace-buffer-size"
4797 under "New options".
4799 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4803 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
4805 2013-04-02 Pedro Alves <palves@redhat.com>
4809 * remote.c (send_interrupt_sequence): Use remote_serial_write.
4810 (remote_serial_write): New function.
4811 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
4813 2013-04-01 Jiong Wang <jiwang@tilera.com>
4815 * NEWS: Mention TILE-Gx in "New native configurations" and
4816 "New targets" sections.
4818 2013-04-01 Doug Evans <dje@google.com>
4820 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
4821 (process_enumeration_scope): Simplify.
4823 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
4825 (struct signatured_type): ... to here.
4826 (sig_type_ptr): New typedef.
4827 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
4828 out of union 't'. All uses updated.
4829 (dw2_get_file_names_reader): Assert not called for a type unit.
4830 (dw2_get_file_names): Assert not called for a type unit or type
4832 (build_type_psymtabs_reader): Assert called for a type unit.
4833 (build_type_psymtab_dependencies): Assert called for a type unit group.
4835 * dwarf2read.c (free_dwo_file): Add comment.
4836 (dwarf2_per_objfile_free): Unref dwp bfd.
4838 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
4840 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
4841 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
4842 (read_pe_exported_syms): Remove unused 'exportix'.
4843 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
4844 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
4845 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
4847 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
4849 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
4850 (print_it_watchpoint): Remove unused 'bl'.
4851 (say_where): Remove unused 'uiout'.
4852 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
4853 (bkpt_breakpoint_hit): Remove unused 'b'.
4854 (internal_bkpt_print_it): Remove unused 'uiout'.
4855 * buildsym.c (augment_type_symtab): Remove unused 'i'.
4857 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
4859 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
4860 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
4862 2013-03-29 Doug Evans <dje@google.com>
4864 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
4865 Delete arg is_dwp. All callers updated.
4866 (open_dwp_file): New function.
4867 (open_and_init_dwp_file): Call it.
4868 (get_dwp_file): New function.
4869 (lookup_dwo_cutu): Call it.
4871 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
4872 unnecessary, cleanup.
4874 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
4876 * dwarf2read.c (read_cutu_die_from_dwo): New function.
4877 (lookup_dwo_unit): New function.
4878 (init_cutu_and_read_dies): Move DWO handling to new functions.
4880 * dwarf2read.c (struct signatured_type): Tweak comment.
4881 (struct dwo_unit): Tweak comment.
4882 (create_debug_types_hash_table): Tweak comment. Reformat long line.
4883 (create_dwo_debug_info_hash_table): Tweak comment.
4884 (dwarf2_per_cu_offset_and_type): Tweak comment.
4886 * dwarf2read.c (lookup_signatured_type): Remove complaint about
4887 missing .debug_types section.
4889 2013-03-29 Yao Qi <yao@codesourcery.com>
4891 * corelow.c: Include "completer.h".
4892 (_initialize_corelow): Call add_target_with_completer with
4893 argument 'filename_completer'.
4894 * tracepoint.c: Likewise.
4895 * exec.c (_initialize_exec): Likewise.
4896 * target.c (add_target): Rename to ...
4897 (add_target_with_completer): ... this. Call set_cmd_completer
4898 if parameter completer is not NULL.
4900 * target.h: Include "command.h".
4901 (add_target_with_completer): Declare it.
4903 2013-03-28 Joel Brobecker <brobecker@adacore.com>
4905 * coffread.c (is_import_fixup_symbol): New function.
4906 (record_minimal_symbol): Use is_import_fixup_symbol to
4907 detect import fixup symbols, and discard them.
4909 2013-03-28 Doug Evans <dje@google.com>
4911 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
4912 types hash table until we know we need it.
4914 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
4917 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
4918 All callers updated.
4919 (dw2_print_stats): Print #read CUs too.
4920 (dump_die_shallow): Print signatured types better.
4922 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
4923 info_or_types_section to section. All uses updated.
4924 (struct dwo_unit): Ditto.
4926 2013-03-28 Pedro Alves <palves@redhat.com>
4928 * NEWS (New options): New section.
4929 (New options): Mention set/show remote trace-status-packet.
4930 * remote.c (PACKET_qTStatus): New enumeration value.
4931 (remote_get_trace_status): Skip sending qTStatus if the packet is
4932 disabled. Use packet_ok.
4933 (_initialize_remote): Register a configuration command for
4936 2013-03-28 Doug Evans <dje@google.com>
4938 * symfile.c (find_separate_debug_file): Add comment.
4939 (terminate_after_last_dir_separator): Tweak comment.
4941 * dwarf2read.c (create_partial_symtab): Add forward decl.
4942 (create_partial_symtab): Move to be closer to other psymtab functions.
4943 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
4945 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
4946 (compute_symtab_includes): Remove unnecessary forward declaration.
4947 (die_needs_namespace): Add comment marking group of functions for
4948 dwarf2 name computation.
4950 * typeprint.c (_initialize_typeprint): Improve type help text.
4952 * python/python.c (finish_python_initialization): Provide suggestion
4953 for how to tell gdb to find its python files.
4955 2013-03-28 Pedro Alves <palves@redhat.com>
4959 * source.c (_initialize_source): Change back "set listsize" to an
4962 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
4965 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
4967 2013-03-27 Pedro Alves <palves@redhat.com>
4969 * top.c (history_size): Rename to ...
4970 (history_size_setshow_var): ... this. Add comment.
4971 (show_commands): Use readline's 'history_length' instead of
4972 computing the history length by calling history_get in a loop.
4973 (set_history_size_command): Error out for sizes over INT_MAX.
4974 Restore previous history size on invalid size.
4975 (init_history): If HISTSIZE is negative, leave the history size as
4977 (init_main): Adjust.
4979 2013-03-27 Pedro Alves <palves@redhat.com>
4981 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
4982 coff_pe_read" command to "set debug coff-pe-read".
4984 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
4986 * record.c (command_size_to_target_size): Fix size comparison.
4987 Change parameter type from pointer to integer to integer.
4990 2013-03-27 Pierre Muller <muller@sourceware.org>
4992 * windows-nat.c (handle_output_debug_string): Avoid typecast
4993 from integer of different size warning.
4995 2013-03-26 Joel Brobecker <brobecker@adacore.com>
4997 * windows-nat.c (handle_output_debug_string): Add empty line
4998 after local block variable definition.
5000 2013-03-26 Pedro Alves <palves@redhat.com>
5002 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
5003 (net_open): Make 'polls' local unsigned.
5005 2013-03-26 Pedro Alves <palves@redhat.com>
5007 * remote.c (_initialize_remote): Make "set remoteaddresssize"
5008 a zuinteger command instead of uinteger.
5010 2013-03-26 Pedro Alves <palves@redhat.com>
5012 * record-full.c (record_full_insn_num): Make it unsigned.
5013 (record_full_check_insn_num, record_full_message)
5014 (record_full_registers_change, record_full_xfer_partial): Remove
5015 record_full_insn_max_num check (it's always != 0).
5016 (record_full_info, record_full_restore): Use %u as format string.
5017 (): Use %u as format string.
5018 (set_record_full_insn_max_num): Remove record_full_insn_max_num
5019 check (it's always != 0).
5021 2013-03-26 Pedro Alves <palves@redhat.com>
5023 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
5024 and "set dcache size" commands zuinteger instead of uinteger.
5026 2013-03-26 Pedro Alves <palves@redhat.com>
5028 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
5029 command zuinteger instead of uinteger.
5031 2013-03-26 Pedro Alves <palves@redhat.com>
5033 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
5034 zuinteger instead of uinteger.
5036 2013-03-26 Pedro Alves <palves@redhat.com>
5038 * record.c (record_insn_history_size_setshow_var)
5039 (record_call_history_size_setshow_var): New globals.
5040 (command_size_to_target_size): New function.
5041 (cmd_record_insn_history, cmd_record_call_history): Use
5042 command_size_to_target_size instead of cast.
5043 (validate_history_size, set_record_insn_history_size)
5044 (set_record_call_history_size): New functions.
5045 (_initialize_record): Install set_record_insn_history_size and
5046 set_record_call_history_size as "set" hooks of "set record
5047 instruction-history-size" and "set record
5048 function-call-history-size".
5050 2013-03-26 Pedro Alves <palves@redhat.com>
5052 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
5053 use with history_max_entries use. Remove FIXME note.
5055 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
5057 * record-btrace.c (record_btrace_close): Call
5058 record_btrace_auto_disable.
5060 2013-03-25 Joel Brobecker <brobecker@adacore.com>
5062 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
5064 2013-03-25 Doug Evans <dje@google.com>
5066 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
5068 2013-03-25 Tom Tromey <tromey@redhat.com>
5071 * c-exp.y (exp): Add new productions for destructors after '.' and
5073 (write_destructor_name): New function.
5075 2013-03-25 Tom Tromey <tromey@redhat.com>
5078 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
5079 value_struct_elt, not lookup_struct_elt_type.
5080 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5081 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
5082 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
5084 2013-03-25 Yao Qi <yao@codesourcery.com>
5086 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
5087 instead of '_mkdir'.
5089 2013-03-23 Eli Zaretskii <eliz@gnu.org>
5091 * windows-nat.c (windows_get_absolute_argv0): New function.
5092 * windows-nat.h: Add its prototype.
5094 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
5095 Use IS_DIR_SEPARATOR instead of looking for a character inside
5096 SLASH_STRING. Include filenames.h.
5097 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
5098 relocate_gdb_directory works when passed gdb_program_name.
5099 Include windows-nat.h.
5101 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5103 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
5104 * remote.c (trace_error): Remove the special handling of '2'.
5105 (readchar) <SERIAL_EOF>
5106 (readchar) <SERIAL_ERROR>
5107 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
5108 (remote_get_trace_status): Call throw_exception if EX is
5110 * utils.c (perror_with_name): Rename to ...
5111 (throw_perror_with_name): ... here. New parameter errcode, describe it
5112 in the function comment.
5113 (perror_with_name): New function wrapper.
5114 * utils.h (enum errors): New stub declaration.
5115 (throw_perror_with_name): New declaration.
5117 2013-03-22 Pedro Alves <palves@redhat.com>
5118 Yao Qi <yao@codesourcery.com>
5119 Mark Kettenis <kettenis@gnu.org>
5121 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
5122 Don't let the user set the value to UINT_MAX directly.
5123 <var_integer>: Don't let the user set the value to INT_MAX
5126 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5128 * remote.c (remote_unpush_target): New function.
5129 (remote_open_1): Remove two pop_target calls, update one comment, add
5130 comment to target_preopen call. Replace pop_target call by
5131 remote_unpush_target call.
5132 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
5133 pop_target calls by remote_unpush_target calls.
5135 2013-03-22 Pedro Alves <palves@redhat.com>
5137 * linux-nat.c (linux_child_follow_fork): Don't call
5138 linux_enable_event_reporting.
5139 (linux_handle_extended_wait): Don't call
5140 linux_enable_event_reporting.
5142 2013-03-22 Pedro Alves <palves@redhat.com>
5144 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
5145 use it to rewrite the trampoline buffers with type gdb_byte[], and
5146 undefine the macro. Remove char* cast.
5148 2013-03-21 Doug Evans <dje@google.com>
5150 New commands "mt set per-command {space,time,symtab} {on,off}".
5152 * event-top.c: #include "maint.h".
5153 * main.c: #include "maint.h".
5154 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
5155 timeval-utils.h, maint.h, cli/cli-setshow.h.
5156 (per_command_time, per_command_space): New static globals.
5157 (per_command_symtab): New static global.
5158 (per_command_setlist, per_command_showlist): New static globals.
5159 (struct cmd_stats): Move here from utils.c.
5160 (set_per_command_time): Renamed from set_display_time in utils.c
5161 and moved here. All callers updated.
5162 (set_per_command_space): Renamed from set_display_space in utils.c
5163 and moved here. All callers updated.
5164 (count_symtabs_and_blocks): New function.
5165 (report_command_stats): Moved here from utils.c. Add support for
5166 printing symtab stats. Only print data if enabled before command
5168 (make_command_stats_cleanup): Ditto.
5169 (sert_per_command_cmd, show_per_command_cmd): New functions.
5170 (_initialize_maint_cmds): Add new commands
5171 mt set per-command {space,time,symtab} {on,off}.
5172 * maint.h: New file.
5173 * top.c: #include "maint.h".
5174 * utils.c (reset_prompt_for_continue_wait_time): New function.
5175 (get_prompt_for_continue_wait_time): New function.
5176 * utils.h (reset_prompt_for_continue_wait_time): Declare
5177 (get_prompt_for_continue_wait_time): Declare.
5178 (make_command_stats_cleanup): Moved to maint.h.
5179 (set_display_time, set_display_space): Moved to maint.h and renamed
5180 to set_per_command_time, set_per_command_space.
5181 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
5182 parse_binary_operation and made non-static. Don't call error,
5183 just return an error marker. All callers updated.
5184 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
5186 2013-03-21 Tom Tromey <tromey@redhat.com>
5188 * symfile.c (alloc_section_addr_info): Update header. Don't set
5189 'num_sections' field.
5190 (build_section_addr_info_from_section_table): Set 'num_sections'.
5191 (build_section_addr_info_from_bfd): Likewise.
5192 (build_section_addr_info_from_objfile): Remove dead loop
5194 (free_section_addr_info): Unconditionally call xfree.
5195 (relative_addr_info_to_section_offsets, addrs_section_sort)
5196 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
5198 (syms_from_objfile_1): Remove dead 'if' condition. Check
5200 (add_symbol_file_command): Set 'num_sections'.
5201 * symfile-mem.c (symbol_file_add_from_memory): Set
5203 * somread.c (som_symfile_offsets): Remove dead loop condition.
5204 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
5205 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
5207 2013-03-21 Tom Tromey <tromey@redhat.com>
5209 * tracepoint.h (decode_agent_options): Add 'trace_string'
5211 * tracepoint.c (decode_agent_options): Add 'trace_string'
5213 (validate_actionline): Update.
5214 (collect_symbol): Add 'trace_string' argument.
5215 (struct add_local_symbols_data) <trace_string>: New field.
5216 (do_collect_symbol): Update.
5217 (add_local_symbols): Add 'trace_string' argument.
5218 (encode_actions_1): Update.
5219 (trace_dump_actions): Update.
5220 * dwarf2loc.c (access_memory): Update.
5221 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
5222 * ax-general.c (new_agent_expr): Update.
5223 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
5224 (gen_trace_for_return_address): Add argument.
5225 (trace_kludge, trace_string_kludge): Remove.
5226 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
5227 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
5228 (gen_trace_for_var): Add 'trace_string' argument.
5229 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
5230 (gen_printf, agent_eval_command_one): Update.
5232 2013-03-21 Tom Tromey <tromey@redhat.com>
5235 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
5236 Handle FILENAME token.
5238 2013-03-21 Tom Tromey <tromey@redhat.com>
5240 * c-exp.y (YYPRINT): Define.
5241 (c_print_token): New function.
5243 2013-03-21 Tom Tromey <tromey@redhat.com>
5245 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
5247 2013-03-21 Yao Qi <yao@codesourcery.com>
5249 * ctf.c: Include "gdb_stat.h".
5250 [USE_WIN32API]: New macro 'mkdir'.
5251 (ctf_start): Use permission bits macros if they are defined.
5253 2013-03-20 Keith Seitz <keiths@redhat.com>
5255 * breakpoint.h (struct breakpoint): Add comment to
5256 extra_string indicating that this member is mallod'd.
5257 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
5259 2013-03-20 Pedro Alves <palves@redhat.com>
5263 * cli/cli-setshow.c (do_set_command)
5264 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
5265 the result of parsing the command argument. Throw error if the
5266 value is greater than UINT_MAX. Print the invalid value with
5268 <var_integer, var_zinteger>: Use LONGEST for variable holding the
5269 result of parsing the command argument. Throw error if the value
5270 is greater than INT_MAX, not greater or equal. Also throw error
5271 if the value is less than INT_MIN. Print the invalid value with
5273 <var_zuinteger_unlimited>: Throw error if the value is greater
5274 than INT_MAX, not greater or equal.
5275 (do_show_command) <var_integer, var_zinteger,
5276 var_zuinteger_unlimited>: Use %d for printing int, not %u.
5278 2013-03-20 Tom Tromey <tromey@redhat.com>
5280 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
5282 * dwarf2read.c (read_func_scope): Remove old FIXME.
5283 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
5285 * findvar.c (symbol_read_needs_frame, default_read_var_value):
5286 Unconditionally call via computed ops, if possible.
5287 * printcmd.c (address_info): Unconditionally call via computed ops,
5289 * stack.c (read_frame_arg): Unconditionally call via computed ops,
5291 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
5292 * tracepoint.c (scope_info): Unconditionally call via computed ops,
5295 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5296 Tom Tromey <tromey@redhat.com>
5299 * coffread.c (coff_register_index): New global.
5300 (process_coff_symbol, coff_read_enum_type): Set
5301 SYMBOL_ACLASS_INDEX.
5302 (_initialize_coffread): Initialize new global.
5303 * dwarf2loc.c (locexpr_find_frame_base_location)
5304 (dwarf2_block_frame_base_locexpr_funcs)
5305 (loclist_find_frame_base_location)
5306 (dwarf2_block_frame_base_loclist_funcs): New.
5307 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
5308 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
5309 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
5310 (dwarf2_block_frame_base_loclist_funcs): New.
5311 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
5312 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
5314 (read_func_scope): Update.
5315 (fixup_go_packaging, mark_common_block_symbol_computed)
5316 (var_decode_location, new_symbol_full, dwarf2_const_value):
5317 Set SYMBOL_ACLASS_INDEX.
5318 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
5319 (_initialize_dwarf2_read): Initialize new globals.
5320 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
5321 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
5322 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
5324 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
5325 (_initialize_mdebugread): Initialize new globals.
5326 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
5327 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
5328 (stab_register_index, stab_regparm_index): New globals.
5329 (define_symbol, read_enum_type, common_block_end): Set
5330 SYMBOL_ACLASS_INDEX.
5331 (_initialize_stabsread): Initialize new globals.
5332 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
5334 (MAX_SYMBOL_IMPLS): New define.
5335 (register_symbol_computed_impl, register_symbol_block_impl)
5336 (register_symbol_register_impl)
5337 (initialize_ordinary_address_classes): New functions.
5338 (_initialize_symtab): Call initialize_ordinary_address_classes.
5339 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
5340 (struct symbol_impl): New.
5341 (SYMBOL_ACLASS_BITS): New define.
5342 (struct symbol) <aclass, ops>: Remove fields.
5343 <aclass_index>: New field.
5344 (symbol_impls): Declare.
5345 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
5346 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
5347 (register_symbol_computed_impl, register_symbol_block_impl)
5348 (register_symbol_register_impl): Declare.
5349 (struct symbol_computed_ops): Add location_has_loclist.
5350 (struct symbol_block_ops): New.
5351 (SYMBOL_BLOCK_OPS): New.
5352 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
5354 2013-03-20 Tom Tromey <tromey@redhat.com>
5356 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
5357 (print_partial_symbols, recursively_search_psymtabs): Use
5360 2013-03-20 Pierre Muller <muller@sourceware.org>
5362 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
5363 addtion, subtraction, multiplication and division binary operator.
5365 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5368 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
5369 * bsd-kvm.c (bsd_kvm_close): Likewise.
5370 * bsd-uthread.c (bsd_uthread_close): Likewise.
5371 * corelow.c (core_close): Likewise.
5372 (core_close_cleanup): Remove parameter quitting from a caller.
5373 * event-top.c (async_disconnect): Likewise.
5374 * exec.c (exec_close_1): Remove parameter quitting.
5375 * go32-nat.c (go32_close): Likewise.
5376 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
5377 parameter quitting from a caller.
5378 * mips-linux-nat.c (super_close): Remove parameter quitting from the
5380 (mips_linux_close): Remove parameter quitting. Remove parameter
5381 quitting from a caller.
5382 * monitor.c (monitor_close): Remove parameter quitting.
5383 * monitor.h (monitor_close): Likewise.
5384 * record-btrace.c (record_btrace_close): Likewise.
5385 * record-full.c (record_full_close): Likewise.
5386 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
5387 it also from fprintf_unfiltered.
5388 * remote-mips.c (mips_close): Remove parameter quitting.
5389 (mips_detach): Remove parameter quitting from a caller.
5390 * remote-sim.c (gdbsim_close): Remove parameter quitting.
5391 (gdbsim_close): Remove duplicate function comment. Remove parameter
5392 quitting and remove it also from printf_filtered.
5393 * remote.c (remote_close): Remove parameter quitting.
5394 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
5395 * target.c (update_current_target): Remove parameter int from to_close
5397 (push_target, unpush_target, pop_target): Remove parameter quitting from
5399 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
5400 Remove parameter quitting from a caller.
5401 (target_preopen): Remove parameter quitting from a caller.
5402 (target_close): Remove parameter quitting. Remove parameter quitting
5403 from a caller two times. Remove parameter quitting also from
5405 * target.h (struct target_ops): Remove parameter quitting and as int
5406 from fields to_xclose and to_close.
5407 (extern struct target_ops current_target):
5408 (target_close, pop_all_targets): Remove parameter quitting. Update the
5410 (pop_all_targets_above): Remove parameter quitting.
5411 * top.c (quit_target): Remove parameter quitting from a caller.
5412 * tracepoint.c (tfile_close): Remove parameter quitting.
5413 * windows-nat.c (windows_close): Remove parameter quitting.
5415 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
5417 * windows-nat.c (handle_output_debug_string): Replace call
5418 to string_to_core_addr with call to strtoull.
5420 2013-03-20 Yao Qi <yao@codesourcery.com>
5422 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
5423 and write it to CTF metadata.
5425 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
5427 * windows-nat.c (handle_output_debug_string): Change type of n to
5428 SIZE_T to avoid crash on 64 bit systems.
5430 2013-03-17 Eli Zaretskii <eliz@gnu.org>
5432 * python/python-internal.h (HAVE_SNPRINTF)
5433 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
5434 about redefinition of snprintf by pyerrors.h.
5436 2013-03-15 Steve Ellcey <sellcey@mips.com>
5438 * remote-sim.c (sim_command_completer): Make char arguments const.
5440 2013-03-15 Tom Tromey <tromey@redhat.com>
5443 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
5445 2013-03-14 Tom Tromey <tromey@redhat.com>
5447 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
5449 (get_file_crc): Move from symfile.c.
5450 (gdb_bfd_crc): New function.
5451 * gdb_bfd.h (gdb_bfd_crc): Declare.
5452 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
5453 * symfile.c (get_file_crc): Move to gdb_bfd.c.
5454 (separate_debug_file_exists): Use gdb_bfd_crc.
5456 2013-03-14 Tom Tromey <tromey@redhat.com>
5458 * symfile.c (get_debug_link_info): Remove.
5459 (find_separate_debug_file_by_debuglink): Use
5460 bfd_get_debug_link_info.
5462 2013-03-14 Tom Tromey <tromey@redhat.com>
5464 * symtab.c (error_in_psymtab_expansion): New function.
5465 (lookup_symbol_aux_quick)
5466 (basic_lookup_transparent_type_quick): Remove "last resort"
5467 code. Use error_in_psymtab_expansion.
5469 2013-03-14 Doug Evans <dje@google.com>
5470 Jan Kratochvil <jan.kratochvil@redhat.com>
5472 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
5473 any successful compare_filenames_for_search or FILENAME_CMP.
5474 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
5475 * symtab.c (iterate_over_some_symtabs): Likewise.
5477 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5479 * source.c (print_source_lines_base): Make a local copy of
5482 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
5483 Jan Kratochvil <jan.kratochvil@redhat.com>
5485 * source.c (print_source_lines_base): Suppress "file" for TUI.
5487 2013-03-14 Keith Seitz <keiths@redhat.com>
5488 Alan Matsuoka <alanm@redhat.com>
5492 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
5494 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
5497 2013-03-14 Yao Qi <yao@codesourcery.com>
5499 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
5500 status to tfile if trace is stopped by command 'tstop'.
5502 2013-03-14 Yao Qi <yao@codesourcery.com>
5504 * tracepoint.c (tfile_write_status): Write trace notes and user
5505 name into tfile if they are not NULL.
5507 2013-03-14 Hui Zhu <hui@codesourcery.com>
5508 Yao Qi <yao@codesourcery.com>
5510 * Makefile.in (REMOTE_OBS): Add ctf.o.
5511 (SFILES): Add ctf.c.
5512 (HFILES_NO_SRCDIR): Add ctf.h.
5513 * ctf.c, ctf.h: New files.
5514 * tracepoint.c: Include 'ctf.h'.
5515 (collect_pseudocommand): Remove static.
5516 (trace_save_command): Parse option "-ctf".
5517 Produce different trace file writers per option.
5518 Adjust output message.
5519 (trace_save_tfile, trace_save_ctf): New.
5520 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
5521 * mi/mi-main.c: Include 'ctf.h'.
5522 (mi_cmd_trace_save): Handle option '-ctf'. Call either
5523 trace_save_tfile or trace_save_ctf.
5524 * NEWS: Mention these changes.
5526 2013-03-14 Yao Qi <yao@codesourcery.com>
5528 * tracepoint.c (trace_file_writer_xfree): New.
5529 (struct tfile_writer_data): New.
5530 (tfile_dtor, tfile_can_target_save, tfile_start): New.
5531 (tfile_write_header, tfile_write_regblock_type): New.
5532 (tfile_write_status, tfile_write_uploaded_tsv): New.
5533 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
5534 (tfile_write_raw_data, (tfile_end): New.
5535 (tfile_write_ops): New global variable.
5536 (TRACE_WRITE_R_BLOCK): New macro.
5537 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
5538 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
5539 (TRACE_WRITE_V_BLOCK): New macro.
5540 (trace_save): Add extra one parameter WRITER. Make it static.
5541 Use WRITER to writer trace.
5542 (tfile_trace_file_writer_new): New.
5543 (trace_save_command): Caller update.
5544 (trace_save_tfile): Write trace data in TFILE format.
5545 * tracepoint.h (struct trace_frame_write_ops): New.
5546 (struct trace_file_write_ops): New.
5547 (struct trace_file_writer): New.
5548 (trace_save): Remove its declaration.
5549 (trace_save_tfile): Declare it.
5550 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
5551 instead of trace_save.
5553 2013-03-13 Pedro Alves <palves@redhat.com>
5555 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
5557 2013-03-13 Pedro Alves <palves@redhat.com>
5559 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
5561 * demangle.c (current_demangling_style_string): Make it const.
5562 (set_demangling_command): Assert the demangling style is known.
5563 Remove all handling of unknown styles. Set
5564 'current_demangling_style_string' to an element of the
5565 demangling_style_names array.
5566 (set_demangling_style): Delete.
5567 (_initialize_demangler): Set current_demangling_style_string to the
5568 element of the demangling_style_names array that corresponds to
5569 the default demangling style. Remove FIXME note. Don't call
5570 set_demangling_style.
5571 * gdb-demangle.h (set_demangling_style): Remove declaration.
5573 2013-03-13 Pedro Alves <palves@redhat.com>
5575 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
5577 (ada_make_symbol_completion_list): Make "text0" parameter const.
5578 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
5579 * breakpoint.c (condition_completer): Make "text" and "word"
5580 parameters const. Adjust.
5581 (check_tracepoint_command): Adjust to validate_actionline
5583 (catch_syscall_completer): Make "text" and "word" parameters
5585 * cli/cli-cmds.c (show_user): Make "comname" local const.
5586 (valid_command_p): Make "command" parameter const.
5587 (alias_command): Make "alias_prefix" and "command_prefix" locals
5589 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
5590 (add_alias_cmd): Make "name" and "oldname" parameters const.
5591 Adjust. No longer make copy of OLDNAME.
5592 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
5593 (add_setshow_cmd_full, add_setshow_enum_cmd)
5594 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5595 (add_setshow_filename_cmd, add_setshow_string_cmd)
5596 (add_setshow_string_noescape_cmd)
5597 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
5598 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
5599 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
5600 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
5601 Make "name" parameter const.
5602 (help_cmd): Rename "command" parameter to "arg". New const local
5604 (find_cmd): Make "command" parameter const.
5605 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
5606 deprecated_cmd_warning prototype change.
5607 (undef_cmd_error): Make "cmdtype" parameter const.
5608 (lookup_cmd): Make "line" parameter const.
5609 (deprecated_cmd_warning): Change type of "text" parameter to
5610 pointer to const char, from pointer to pointer to char. Adjust.
5611 (lookup_cmd_composition): Make "text" parameter const.
5612 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
5614 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
5616 * cli/cli-script.c (validate_comname): Make "tem" local const.
5617 (define_command): New const local "tem_c". Use it in calls to
5619 (document_command): Make "tem" and "comfull" locals const.
5620 (show_user_1): Make "prefix" and "name" parameters const.
5621 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
5623 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
5624 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
5625 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
5626 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
5627 (complete_on_enum, add_setshow_enum_cmd)
5628 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5629 (add_setshow_filename_cmd, add_setshow_string_cmd)
5630 (add_setshow_string_noescape_cmd)
5631 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
5632 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
5633 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
5634 Change prototypes, constifying strings.
5635 * completer.c (noop_completer, filename_completer): Make "text"
5636 and "prefix" parameters const.
5637 (location_completer, expression_completer)
5638 (complete_line_internal): Make "text" and "prefix" parameters
5640 (command_completer, signal_completer): Make "text" and "prefix"
5642 * completer.h (noop_completer, filename_completer)
5643 (expression_completer, location_completer, command_completer)
5644 (signal_completer): Change prototypes.
5645 * corefile.c (complete_set_gnutarget): Make "text" and "word"
5647 * cp-abi.c (cp_abi_completer): Likewise.
5648 * expression.h (parse_expression_for_completion): Change
5650 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
5652 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
5653 * infrun.c (handle_completer): Make "text" and "word" parameters
5655 * interps.c (interpreter_completer): Make "text" and "word"
5657 * language.h (struct language_defn)
5658 <la_make_symbol_completion_list>: Make "text" and "word"
5660 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
5661 (parse_exp_in_context): Rename to ...
5662 (parse_exp_in_context_1): ... this.
5663 (parse_exp_in_context): Reimplement, with const hack from
5665 (parse_expression_for_completion): Make "string" parameter const.
5666 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
5667 to pointer to const char. Adjust.
5668 (print_command_1): Make "exp" parameter const.
5669 (output_command): Rename to ...
5670 (output_command_const): ... this. Make "exp" parameter const.
5671 (output_command): Reimplement.
5672 (x_command): Adjust.
5673 (display_command): Rename "exp" parameter to "arg". New "exp"
5674 local, const version of "arg".
5675 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
5676 "cmd_name" local const.
5677 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
5679 (cmdpy_completer): Make "text" and "word" parameters const.
5680 (gdbpy_parse_command_name): Make "prefix_text2" local const.
5681 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
5683 * remote.c (_initialize_remote): Make "cmd_name" local const.
5684 * symtab.c (language_search_unquoted_string): Make "text" and "p"
5685 parameters const. Adjust.
5686 (completion_list_add_fields): Make "sym_text", "text" and "word"
5688 (struct add_name_data) <sym_text, text, word>: Make fields const.
5689 (default_make_symbol_completion_list_break_on): Make "text" and
5690 "word" parameters const. Adjust locals.
5691 (default_make_symbol_completion_list)
5692 (make_symbol_completion_list, make_symbol_completion_type)
5693 (make_symbol_completion_list_fn): Make "text" and "word"
5695 (make_file_symbol_completion_list): Make "text", "word" and
5696 "srcfile" parameters const. Adjust locals.
5697 (add_filename_to_list): Make "text" and "word" parameters const.
5698 (struct add_partial_filename_data) <text, word>: Make fields
5700 (make_source_files_completion_list): Make "text" and "word"
5702 * symtab.h (default_make_symbol_completion_list_break_on)
5703 (default_make_symbol_completion_list, make_symbol_completion_list)
5704 (make_symbol_completion_type enum type_code)
5705 (make_symbol_completion_list_fn make_file_symbol_completion_list)
5706 (make_source_files_completion_list): Change prototype.
5707 * top.c (execute_command): Adjust to pass pointer to pointer to
5708 const char to lookup_cmd, and to deprecated_cmd_warning prototype
5710 (set_verbose): Make "cmdname" local const.
5711 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
5713 (validate_actionline): Make "line" parameter a pointer to const
5715 (encode_actions_1): Make "action_exp" local const, and adjust.
5716 (encode_actions): Adjust.
5717 (replace_comma): Delete.
5718 (trace_dump_actions): Make "action_exp" and "next_comma" locals
5719 const, and adjust. Don't frob the action string while splitting
5720 it at commas. Instead, make a copy of each split substring in
5722 (trace_dump_command): Adjust to validate_actionline prototype
5724 * tracepoint.h (decode_agent_options, decode_agent_options)
5725 (encode_actions, validate_actionline): Change prototypes.
5726 * valprint.h (output_command): Delete declaration.
5727 (output_command_const): Declare.
5728 * value.c (function_destroyer): Cast const away in xfree call.
5730 2013-03-13 Pedro Alves <palves@redhat.com>
5732 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
5733 rather than casting 'const char * const *' to 'const char **'.
5734 * ada-lex.l (processInt): Make "trailer" local const. Remove
5735 'const char **' cast.
5736 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
5737 locals, and use those as strtol output pointer, instead than doing
5738 invalid casts to from 'const char **' to 'char **'.
5739 (_initialize_demangle): Remove cast.
5740 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
5741 locals, and use those as strtol output pointer, instead than doing
5742 invalid casts to from 'const char **' to 'char **'.
5743 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
5745 * stap-probe.c (stap_parse_register_operand)
5746 (stap_parse_single_operand): Likewise.
5748 2013-03-13 Yao Qi <yao@codesourcery.com>
5750 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
5751 the last matched 'V' blcok in trace frame.
5753 2013-03-12 Joel Brobecker <brobecker@adacore.com>
5755 * NEWS: Create a new section for the next release branch.
5756 Rename the section of the current branch, now that it has
5759 2013-03-12 Joel Brobecker <brobecker@adacore.com>
5761 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
5762 * version.in: Bump version to 7.6.50.20130312-cvs.
5764 2013-03-12 Keith Seitz <keiths@redhat.com>
5766 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
5767 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
5768 Remove temporary copy of input string.
5769 (mi_execute_command_wrapper): Make "cmd" const.
5770 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
5771 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
5773 (mi_parse): Make "cmd" const.
5775 * mi/mi-parse.h (mi_parse): Make "cmd" const.
5777 2013-03-12 Keith Seitz <keiths@redhat.com>
5779 * ada-lang.c (ada_read_renaming_var_value): Pass const
5780 pointer to expression string to parse_exp_1.
5781 (create_excep_cond_exprs): Likewise.
5782 * ax-gdb.c (agent_eval_command_one): Likewise.
5783 (maint_agent_printf_command): Likewise.
5784 Constify much of the string handling/parsing.
5785 * breakpoint.c (set_breakpoint_condition): Pass const
5786 pointer to expression string to parse_exp_1.
5787 (update_watchpoint): Likewise.
5788 (parse_cmd_to_aexpr): Constify string handling.
5789 Pass const pointer to parse_exp_1.
5790 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
5791 (find_condition_and_thread): Likewise.
5793 (watch_command_1): Make "arg" const.
5794 Constify string handling.
5795 Copy the expression string instead of changing the input
5797 (update_breakpoint_location): Pass const pointer to
5799 * eval.c (parse_and_eval_address): Make "exp" const.
5800 (parse_to_comma_and_eval): Make "expp" const.
5801 (parse_and_eval): Make "exp" const.
5802 * expression.h (parse_expression): Make argument const.
5803 (parse_exp_1): Make first argument const.
5804 * findcmd.c (parse_find_args): Treat "args" as const.
5805 * linespec.c (parse_linespec): Pass const pointer to
5806 linespec_expression_to_pc.
5807 (linespec_expression_to_pc): Make "exp_ptr" const.
5808 * parse.c (parse_exp_1): Make "stringptr" const.
5809 Make a copy of the expression to pass to parse_exp_in_context until
5810 this whole interface can be constified.
5811 (parse_expression): Make "string" const.
5812 * printcmd.c (ui_printf): Treat "arg" as const.
5813 Handle const strings.
5814 * tracepoint.c (validate_actionline): Pass const pointer to
5815 all calls to parse_exp_1.
5816 (encode_actions_1): Likewise.
5817 * value.h (parse_to_comma_and_eval): Make argument const.
5818 (parse_and_eval_address): Likewise.
5819 (parse_and_eval): Likewise.
5820 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
5821 (varobj_set_value): Likewise.
5822 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
5823 constify string handling.
5824 Pass const pointers to parse_and_eval_address and
5825 parse_to_comman_and_eval.
5826 * cli/cli-utils.c (skip_to_space): Rename to ...
5827 (skip_to_space_const): ... this. Handle const strings.
5828 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
5829 skip_to_space_const.
5830 (skip_to_space_const): Declare.
5831 * common/format.c (parse_format_string): Make "arg" const.
5832 Handle const strings.
5833 * common/format.h (parse_format_string): Make "arg" const.
5834 * gdbserver/ax.c (ax_printf): Make "format" const.
5835 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
5836 of the expression string.
5838 2013-03-12 Hui Zhu <hui@codesourcery.com>
5840 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
5842 2013-03-12 Yao Qi <yao@codesourcery.com>
5843 Hui Zhu <hui@codesourcery.com>
5845 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
5846 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
5849 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
5851 * ada-lex.l (rules): Only recognize 'thread' as a
5852 delimiter when followed by numerals, as for c-exp.y.
5853 Use new rewind_to_char function to rewind the input for
5854 expression-delimiting tokens.
5855 (rewind_to_char): New function.
5857 2013-03-11 Pedro Alves <palves@redhat.com>
5858 Jan Kratochvil <jan.kratochvil@redhat.com>
5860 * configure: Regenerate.
5861 * configure.ac (check dynamic export flag): Link python test with
5864 2013-03-11 Doug Evans <dje@google.com>
5865 Keith Seitz <keiths@redhat.com>
5867 * linespec.c (find_linespec_symbols): Call find_function_symbols
5868 first, and then call lookup_prefix_sym/find_method.
5870 2013-03-11 Pedro Alves <palves@redhat.com>
5872 * charset.c (convert_between_encodings): Don't cast between
5873 different pointer to pointer types. Instead, make the 'inp' local
5874 be of the type iconv expects.
5875 (wchar_iterate): Don't cast between different pointer to pointer
5876 types. Instead, use new pointer local of the type iconv expects.
5877 * target.c (target_read_stralloc, target_fileio_read_stralloc):
5878 Add new local of type char pointer, and use it to get a
5879 char/string view of the byte buffer, instead of casting between
5880 pointer to pointer types.
5882 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5884 * remote.c (remote_set_trace_buffer_size): Move != operator
5885 to the start of next line to fix an ARI warning.
5887 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5889 * NEWS: Add record changes.
5891 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5893 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
5894 the instruction history disassembly.
5895 * disasm.c (dump_insns): Omit the pc prefix, if requested.
5896 * disasm.h (DISASSEMBLY_OMIT_PC): New.
5898 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5900 * Makefile.in (SFILES): Add record-btrace.c
5901 (COMMON_OBS): Add record-btrace.o
5902 * record-btrace.c: New.
5903 * objfiles.c: Include btrace.h.
5904 (free_objfile): call btrace_free_objfile.
5906 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5908 * target.c (target_call_history, target_call_history_from,
5909 target_call_history_range): New.
5910 * target.h (target_ops) <to_call_history, to_call_history_from,
5911 to_call_history_range>: New fields.
5912 (target_call_history, target_call_history_from,
5913 target_call_history_range): New declaration.
5914 * record.c (get_call_history_modifiers, cmd_record_call_history,
5915 record_call_history_size): New.
5916 (_initialize_record): Add the "record function-call-history" command.
5917 Add "set/show record function-call-history-size" commands.
5918 * record.h (record_print_flag): New.
5920 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5922 * target.h (target_ops) <to_insn_history, to_insn_history_from,
5923 to_insn_history_range>: New fields.
5924 (target_insn_history): New.
5925 (target_insn_history_from): New.
5926 (target_insn_history_range): New.
5927 * target.c (target_insn_history): New.
5928 (target_insn_history_from): New.
5929 (target_insn_history_range): New.
5930 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
5931 (record_insn_history_size): New.
5932 (get_insn_number): New.
5933 (get_context_size): New.
5935 (get_insn_history_modifiers): New.
5936 (cmd_record_insn_history): New.
5937 (_initialize_record): Add "set/show record instruction-history-size"
5938 command. Add "record instruction-history" command.
5940 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5942 * record.h (record_disconnect): New.
5943 (record_detach): New.
5944 (record_mourn_inferior): New.
5946 * record-full.c (record_disconnect, record_detach,
5947 record_mourn_inferior, record_kill): Move to...
5948 * record.c: ...here.
5951 (record_unpush): New.
5952 (cmd_record_stop): Call record_stop. Replace unpush_target
5953 call with record_unpush call.
5954 (record_disconnect, record_detach): Assert that the target
5955 is of record stratum. Call record_unpush, record_stop, and
5957 (record_mourn_inferior, record_kill): Assert that the target
5958 is of record stratum. Call record_unpush and DEBUG.
5960 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5962 * record-full.h, record-full.c (record_memory_query): Rename
5964 (record_full_memory_query): ...this. Update all users.
5965 (record_arch_list_add_reg): Rename to ...
5966 (record_full_arch_list_add_reg): ...this. Update all users.
5967 (record_arch_list_add_mem): Rename to ...
5968 (record_full_arch_list_add_mem): ...this. Update all users.
5969 (record_arch_list_add_end): Rename to ...
5970 (record_full_arch_list_add_end): ...this. Update all users.
5971 (record_gdb_operation_disable_set): Rename to ...
5972 (record_full_gdb_operation_disable_set): ...this.
5975 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5977 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
5978 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
5979 (RECORD_IS_REPLAY): Renamed to ...
5980 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
5981 (RECORD_FILE_MAGIC): Renamed to ...
5982 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
5983 (record_mem_entry): Renamed to ...
5984 (record_full_mem_entry): ... this. Updated all users.
5985 (record_reg_entry): Renamed to ...
5986 (record_full_reg_entry): ... this. Updated all users.
5987 (record_end_entry): Renamed to ...
5988 (record_full_end_entry): ... this. Updated all users.
5989 (record_type) <record_end, record_reg, record_mem>: Renamed
5991 (record_full_type) <record_full_end, record_full_reg,
5992 record_full_mem>: ... this. Updated all users.
5993 (record_entry): Renamed to ...
5994 (record_full_entry): ... this. Updated all users.
5995 (record_core_buf_entry): Renamed to ...
5996 (record_full_core_buf_entry): ... this. Updated all users.
5997 (record_core_regbuf): Renamed to ...
5998 (record_full_core_regbuf): ... this. Updated all users.
5999 (record_core_start): Renamed to ...
6000 (record_full_core_start): ... this. Updated all users.
6001 (record_core_end): Renamed to ...
6002 (record_full_core_end): ... this. Updated all users.
6003 (record_core_buf_list): Renamed to ...
6004 (record_full_core_buf_list): ... this. Updated all users.
6005 (record_first): Renamed to ...
6006 (record_full_first): ... this. Updated all users.
6007 (record_list): Renamed to ...
6008 (record_full_list): ... this. Updated all users.
6009 (record_arch_list_head): Renamed to ...
6010 (record_full_arch_list_head): ... this. Updated all users.
6011 (record_arch_list_tail): Renamed to ...
6012 (record_full_arch_list_tail): ... this. Updated all users.
6013 (record_stop_at_limit): Renamed to ...
6014 (record_full_stop_at_limit): ... this. Updated all users.
6015 (record_insn_max_num): Renamed to ...
6016 (record_full_insn_max_num): ... this. Updated all users.
6017 (record_insn_num): Renamed to ...
6018 (record_full_insn_num): ... this. Updated all users.
6019 (record_insn_count): Renamed to ...
6020 (record_full_insn_count): ... this. Updated all users.
6021 (record_ops): Renamed to ...
6022 (record_full_ops): ... this. Updated all users.
6023 (record_core_ops): Renamed to ...
6024 (record_full_core_ops): ... this. Updated all users.
6025 (set_record_cmdlist): Renamed to ...
6026 (set_record_full_cmdlist): ... this. Updated all users.
6027 (show_record_cmdlist): Renamed to ...
6028 (show_record_full_cmdlist): ... this. Updated all users.
6029 (record_cmdlist): Renamed to ...
6030 (record_full_cmdlist): ... this. Updated all users.
6031 (record_beneath_to_resume_ops): Renamed to ...
6032 (record_full_beneath_to_resume_ops): ... this. Updated all users.
6033 (record_beneath_to_resume): Renamed to ...
6034 (record_full_beneath_to_resume): ... this. Updated all users.
6035 (record_beneath_to_wait_ops): Renamed to ...
6036 (record_full_beneath_to_wait_ops): ... this. Updated all users.
6037 (record_beneath_to_wait): Renamed to ...
6038 (record_full_beneath_to_wait): ... this. Updated all users.
6039 (record_beneath_to_store_registers_ops): Renamed to ...
6040 (record_full_beneath_to_store_registers_ops): ... this.
6042 (record_beneath_to_store_registers): Renamed to ...
6043 (record_full_beneath_to_store_registers): ... this.
6045 (record_beneath_to_xfer_partial_ops): Renamed to ...
6046 (record_full_beneath_to_xfer_partial_ops): ... this.
6048 (record_beneath_to_xfer_partial): Renamed to ...
6049 (record_full_beneath_to_xfer_partial): ... this.
6051 (record_beneath_to_insert_breakpoint): Renamed to ...
6052 (record_full_beneath_to_insert_breakpoint): ... this.
6054 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
6055 (record_full_beneath_to_stopped_by_watchpoint): ... this.
6057 (record_beneath_to_stopped_data_address): Renamed to ...
6058 (record_full_beneath_to_stopped_data_address): ... this.
6060 (record_beneath_to_async): Renamed to ...
6061 (record_full_beneath_to_async): ... this. Updated all users.
6062 (record_goto_insn): Renamed to ...
6063 (record_full_goto_insn): ... this. Updated all users.
6064 (record_save): Renamed to ...
6065 (record_full_save): ... this. Updated all users.
6066 (record_reg_alloc): Renamed to ...
6067 (record_full_reg_alloc): ... this. Updated all users.
6068 (record_reg_release): Renamed to ...
6069 (record_full_reg_release): ... this. Updated all users.
6070 (record_mem_alloc): Renamed to ...
6071 (record_full_mem_alloc): ... this. Updated all users.
6072 (record_mem_release): Renamed to ...
6073 (record_full_mem_release): ... this. Updated all users.
6074 (record_end_alloc): Renamed to ...
6075 (record_full_end_alloc): ... this. Updated all users.
6076 (record_end_release): Renamed to ...
6077 (record_full_end_release): ... this. Updated all users.
6078 (record_entry_release): Renamed to ...
6079 (record_full_entry_release): ... this. Updated all users.
6080 (record_list_release): Renamed to ...
6081 (record_full_list_release): ... this. Updated all users.
6082 (record_list_release_following): Renamed to ...
6083 (record_full_list_release_following): ... this.
6085 (record_list_release_first): Renamed to ...
6086 (record_full_list_release_first): ... this. Updated all users.
6087 (record_arch_list_add): Renamed to ...
6088 (record_full_arch_list_add): ... this. Updated all users.
6089 (record_get_loc): Renamed to ...
6090 (record_full_get_loc): ... this. Updated all users.
6091 (record_check_insn_num): Renamed to ...
6092 (record_full_check_insn_num): ... this. Updated all users.
6093 (record_arch_list_cleanups): Renamed to ...
6094 (record_full_arch_list_cleanups): ... this. Updated all users.
6095 (record_message): Renamed to ...
6096 (record_full_message): ... this. Updated all users.
6097 (record_message_wrapper): Renamed to ...
6098 (record_full_message_wrapper): ... this. Updated all users.
6099 (record_message_wrapper_safe): Renamed to ...
6100 (record_full_message_wrapper_safe): ... this. Updated all users.
6101 (record_gdb_operation_disable): Renamed to ...
6102 (record_full_gdb_operation_disable): ... this. Updated all users.
6103 (record_hw_watchpoint): Renamed to ...
6104 (record_full_hw_watchpoint): ... this. Updated all users.
6105 (record_exec_insn): Renamed to ...
6106 (record_full_exec_insn): ... this. Updated all users.
6107 (record_restore): Renamed to ...
6108 (record_full_restore): ... this. Updated all users.
6109 (record_async_inferior_event_token): Renamed to ...
6110 (record_full_async_inferior_event_token): ... this.
6112 (record_async_inferior_event_handler): Renamed to ...
6113 (record_full_async_inferior_event_handler): ... this.
6115 (record_core_open_1): Renamed to ...
6116 (record_full_core_open_1): ... this. Updated all users.
6117 (record_open_1): Renamed to ...
6118 (record_full_open_1): ... this. Updated all users.
6119 (record_open): Renamed to ...
6120 (record_full_open): ... this. Updated all users.
6121 (record_close): Renamed to ...
6122 (record_full_close): ... this. Updated all users.
6123 (record_resume_step): Renamed to ...
6124 (record_full_resume_step): ... this. Updated all users.
6125 (record_resumed): Renamed to ...
6126 (record_full_resumed): ... this. Updated all users.
6127 (record_execution_dir): Renamed to ...
6128 (record_full_execution_dir): ... this. Updated all users.
6129 (record_resume): Renamed to ...
6130 (record_full_resume): ... this. Updated all users.
6131 (record_get_sig): Renamed to ...
6132 (record_full_get_sig): ... this. Updated all users.
6133 (record_sig_handler): Renamed to ...
6134 (record_full_sig_handler): ... this. Updated all users.
6135 (record_wait_cleanups): Renamed to ...
6136 (record_full_wait_cleanups): ... this. Updated all users.
6137 (record_wait_1): Renamed to ...
6138 (record_full_wait_1): ... this. Updated all users.
6139 (record_wait): Renamed to ...
6140 (record_full_wait): ... this. Updated all users.
6141 (record_stopped_by_watchpoint): Renamed to ...
6142 (record_full_stopped_by_watchpoint): ... this. Updated all users.
6143 (record_disconnect): Renamed to ...
6144 (record_full_disconnect): ... this. Updated all users.
6145 (record_detach): Renamed to ...
6146 (record_full_detach): ... this. Updated all users.
6147 (record_mourn_inferior): Renamed to ...
6148 (record_full_mourn_inferior): ... this. Updated all users.
6149 (record_kill): Renamed to ...
6150 (record_full_kill): ... this. Updated all users.
6151 (record_stopped_data_address): Renamed to ...
6152 (record_full_stopped_data_address): ... this. Updated all users.
6153 (record_registers_change): Renamed to ...
6154 (record_full_registers_change): ... this. Updated all users.
6155 (record_store_registers): Renamed to ...
6156 (record_full_store_registers): ... this. Updated all users.
6157 (record_xfer_partial): Renamed to ...
6158 (record_full_xfer_partial): ... this. Updated all users.
6159 (record_breakpoint): Renamed to ...
6160 (record_full_breakpoint): ... this. Updated all users.
6161 (record_breakpoint_p): Renamed to ...
6162 (record_full_breakpoint_p): ... this. Updated all users.
6163 (record_breakpoints): Renamed to ...
6164 (record_full_breakpoints): ... this. Updated all users.
6165 (record_sync_record_breakpoints): Renamed to ...
6166 (record_full_sync_record_breakpoints): ... this.
6168 (record_init_record_breakpoints): Renamed to ...
6169 (record_full_init_record_breakpoints): ... this.
6171 (record_insert_breakpoint): Renamed to ...
6172 (record_full_insert_breakpoint): ... this. Updated all users.
6173 (record_remove_breakpoint): Renamed to ...
6174 (record_full_remove_breakpoint): ... this. Updated all users.
6175 (record_can_execute_reverse): Renamed to ...
6176 (record_full_can_execute_reverse): ... this. Updated all users.
6177 (record_get_bookmark): Renamed to ...
6178 (record_full_get_bookmark): ... this. Updated all users.
6179 (record_goto_bookmark): Renamed to ...
6180 (record_full_goto_bookmark): ... this. Updated all users.
6181 (record_async): Renamed to ...
6182 (record_full_async): ... this. Updated all users.
6183 (record_can_async_p): Renamed to ...
6184 (record_full_can_async_p): ... this. Updated all users.
6185 (record_is_async_p): Renamed to ...
6186 (record_full_is_async_p): ... this. Updated all users.
6187 (record_execution_direction): Renamed to ...
6188 (record_full_execution_direction): ... this. Updated all users.
6189 (record_info): Renamed to ...
6190 (record_full_info): ... this. Updated all users.
6191 (record_delete): Renamed to ...
6192 (record_full_delete): ... this. Updated all users.
6193 (record_is_replaying): Renamed to ...
6194 (record_full_is_replaying): ... this. Updated all users.
6195 (record_goto_entry): Renamed to ...
6196 (record_full_goto_entry): ... this. Updated all users.
6197 (record_goto_begin): Renamed to ...
6198 (record_full_goto_begin): ... this. Updated all users.
6199 (record_goto_end): Renamed to ...
6200 (record_full_goto_end): ... this. Updated all users.
6201 (record_goto): Renamed to ...
6202 (record_full_goto): ... this. Updated all users.
6203 (init_record_ops): Renamed to ...
6204 (init_record_full_ops): ... this. Updated all users.
6205 (record_core_resume): Renamed to ...
6206 (record_full_core_resume): ... this. Updated all users.
6207 (record_core_kill): Renamed to ...
6208 (record_full_core_kill): ... this. Updated all users.
6209 (record_core_fetch_registers): Renamed to ...
6210 (record_full_core_fetch_registers): ... this. Updated all users.
6211 (record_core_prepare_to_store): Renamed to ...
6212 (record_full_core_prepare_to_store): ... this. Updated all users.
6213 (record_core_store_registers): Renamed to ...
6214 (record_full_core_store_registers): ... this. Updated all users.
6215 (record_core_xfer_partial): Renamed to ...
6216 (record_full_core_xfer_partial): ... this. Updated all users.
6217 (record_core_insert_breakpoint): Renamed to ...
6218 (record_full_core_insert_breakpoint): ... this. Updated all users.
6219 (record_core_remove_breakpoint): Renamed to ...
6220 (record_full_core_remove_breakpoint): ... this. Updated all users.
6221 (record_core_has_execution): Renamed to ...
6222 (record_full_core_has_execution): ... this. Updated all users.
6223 (init_record_core_ops): Renamed to ...
6224 (init_record_full_core_ops): ... this. Updated all users.
6225 (cmd_record_restore): Renamed to ...
6226 (cmd_record_full_restore): ... this. Updated all users.
6227 (record_save_cleanups): Renamed to ...
6228 (record_full_save_cleanups): ... this. Updated all users.
6229 (cmd_record_start): Renamed to ...
6230 (cmd_record_full_start): ... this. Updated all users.
6231 (set_record_insn_max_num): Renamed to ...
6232 (set_record_full_insn_max_num): ... this. Updated all users.
6233 (set_record_command): Renamed to ...
6234 (set_record_full_command): ... this. Updated all users.
6235 (show_record_command): Renamed to ...
6236 (show_record_full_command): ... this. Updated all users.
6237 (_initialize_record): Renamed to ...
6238 (_initialize_record_full): ... this. Updated all users.
6240 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6242 * record.h: Split into this and ...
6243 * record-full.h: ... this.
6244 * record.c: Split into this and ...
6245 * record-full.c: ... this.
6246 * target.h (target_ops): Add new fields to_info_record,
6247 to_save_record, to_delete_record, to_record_is_replaying,
6248 to_goto_record_begin, to_goto_record_end, to_goto_record.
6249 (target_info_record): New.
6250 (target_save_record): New.
6251 (target_supports_delete_record): New.
6252 (target_delete_record): New.
6253 (target_record_is_replaying): New.
6254 (target_goto_record_begin): New.
6255 (target_goto_record_end): New.
6256 (target_goto_record): New.
6257 * target.c (target_info_record): New.
6258 (target_save_record): New.
6259 (target_supports_delete_record): New.
6260 (target_delete_record): New.
6261 (target_record_is_replaying): New.
6262 (target_goto_record_begin): New.
6263 (target_goto_record_end): New.
6264 (target_goto_record): New.
6265 * record.h: Declare struct cmd_list_element.
6266 (record_cmdlist): New declaration.
6267 (set_record_cmdlist): New declaration.
6268 (show_record_cmdlist): New declaration.
6269 (info_record_cmdlist): New declaration.
6270 (cmd_record_goto): New declaration.
6271 * record.c: Remove unnecessary includes.
6273 (cmd_record_goto): Remove declaration.
6274 (record_cmdlist): Now extern. Initialize.
6275 (set_record_cmdlist): Now extern. Initialize.
6276 (show_record_cmdlist): Now extern. Initialize.
6277 (info_record_cmdlist): Now extern. Initialize.
6278 (find_record_target): New.
6279 (require_record_target): New.
6280 (cmd_record_start): Update.
6281 (cmd_record_delete): Remove target-specific code.
6282 Call target_delete_record.
6283 (cmd_record_stop): Unpush any record target.
6284 (set_record_insn_max_num): Move to record-full.c
6285 (set_record_command): Add comment.
6286 (show_record_command): Add comment.
6287 (info_record_command): Update comment.
6288 Remove target-specific code.
6289 Call the record target's to_info_record.
6290 (cmd_record_start): New.
6291 (cmd_record_goto): Now extern.
6292 Remove target-specific code.
6293 Call target_goto_begin, target_goto_end, or target_goto.
6294 (_initialize_record): Move record target ops initialization to
6296 Change "record" command help text.
6297 Move "record restore", "record set", and "record show" commands to
6299 * Makefile.in (SFILES): Add record-full.c.
6300 (HFILES_NO_SRCDIR): Add record-full.h.
6301 (COMMON_OBS): Add record-full.o.
6302 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
6303 * arm-tdep.c: Include record-full.h.
6304 * i386-linux-tdep.c: Include record-full.h instead of record.h.
6305 * i386-tdep.c: Include record-full.h.
6306 * infrun.c: Include record-full.h.
6307 * linux-record.c: Include record-full.h.
6308 * moxie-tdep.c: Include record-full.h.
6309 * record-full.c: Include record-full.h.
6310 Change module comment.
6311 (set_record_full_cmdlist): New.
6312 (show_record_full_cmdlist): New.
6313 (record_full_cmdlist): New.
6314 (record_goto_insn): New declaration.
6315 (record_save): New declaration.
6316 (record_check_insn_num): Change query string.
6318 (record_delete): New.
6319 (record_is_replaying): New.
6320 (record_goto_entry): New.
6321 (record_goto_begin): New.
6322 (record_goto_end): New.
6324 (init_record_ops): Update.
6325 (init_record_core_ops): Update.
6326 (cmd_record_save): Rename to record_save. Remove target and arg checks.
6327 (cmd_record_start): New.
6328 (set_record_insn_max_num): Moved from record.c
6329 (set_record_full_command): New.
6330 (show_record_full_command): New.
6331 (_initialize_record_full): New.
6333 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6335 * target.h (add_deprecated_target_alias): New.
6336 * target.c (add_deprecated_target_alias): New.
6338 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6340 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
6342 (linux_supports_btrace): Add kernel and
6344 (kernel_supports_btrace): New function.
6345 (cpu_supports_btrace): New function.
6346 (intel_supports_btrace): New function.
6348 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6350 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
6351 * remote.c: Include btrace.h.
6352 (struct btrace_target_info): New struct.
6353 (remote_supports_btrace): New function.
6354 (send_Qbtrace): New function.
6355 (remote_enable_btrace): New function.
6356 (remote_disable_btrace): New function.
6357 (remote_teardown_btrace): New function.
6358 (remote_read_btrace): New function.
6359 (init_remote_ops): Add btrace ops.
6360 (enum <unnamed>): Add btrace packets.
6361 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
6362 (_initialize_remote): Add packet configuration for branch tracing.
6364 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6366 * features/btrace.dtd: New file.
6367 * Makefile.in (XMLFILES): Add btrace.dtd.
6368 * btrace.h (parse_xml_btrace): New declaration.
6369 * btrace.c: Include xml-support.h.
6370 (parse_xml_btrace): New function.
6371 (parse_xml_btrace_block): New function.
6372 (block_attributes): New struct.
6373 (btrace_attributes): New struct.
6374 (btrace_children): New struct.
6375 (btrace_elements): New struct.
6377 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6379 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
6380 (amd64_linux_enable_btrace): New.
6381 (amd64_linux_disable_btrace): New.
6382 (amd64_linux_teardown_btrace): New.
6383 (_initialize_amd64_linux_nat): Initialize btrace ops.
6384 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
6385 (i386_linux_enable_btrace): New.
6386 (i386_linux_disable_btrace): New.
6387 (i386_linux_teardown_btrace): New.
6388 (_initialize_i386_linux_nat): Initialize btrace ops.
6389 * config/i386/linux.mh: Add linux-btrace.o.
6390 * config/i386/linux64.mh: Add linux-btrace.o.
6392 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6394 * common/linux_btrace.h: New file.
6395 * common/linux_btrace.c: New file.
6396 * Makefile.in (SFILES): Add btrace.c.
6397 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
6398 (COMMON_OBS): Add btrace.o.
6399 (linux-btrace.o): New rule.
6401 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
6403 * target.h: Include btrace.h.
6404 (struct target_ops) <to_supports_btrace, to_enable_btrace,
6405 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
6406 * target.c (target_supports_btrace): New function.
6407 (target_enable_btrace): New function.
6408 (target_disable_btrace): New function.
6409 (target_teardown_btrace): New function.
6410 (target_read_btrace): New function.
6411 * btrace.h: New file.
6412 * btrace.c: New file.
6413 * Makefile.in: Add btrace.c.
6414 * gdbthread.h: Include btrace.h.
6415 (struct thread_info): Add btrace field.
6416 * thread.c: Include btrace.h.
6417 (clear_thread_inferior_resources): Call target_teardown_btrace.
6418 * common/btrace-common.h: New file.
6420 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6422 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
6423 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
6424 kill_status to outer block.
6426 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6428 Fix entry-values if the callee called a noreturn function.
6429 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6430 get_frame_address_in_block. Add new comment.
6432 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6434 Fix entry-values in C++ across CUs.
6435 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
6436 lookup_minimal_symbol. Add a comment.
6438 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
6441 2013-03-08 Yao Qi <yao@codesourcery.com>
6443 * tracepoint.c (_initialize_tracepoint): Indent the code.
6445 2013-03-08 Pedro Alves <palves@redhat.com>
6447 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
6448 (parse_find_args, find_command): Change type of pattern buffer
6449 locals to 'gdb_byte *'.
6451 2013-03-08 Stan Shebs <stan@codesourcery.com>
6452 Hafiz Abid Qadeer <abidh@codesourcery.com>
6454 * NEWS: Mention set and show trace-buffer-size commands.
6456 * target.h (struct target_ops): New method
6457 to_set_trace_buffer_size.
6458 (target_set_trace_buffer_size): New macro.
6459 * target.c (update_current_target): Set up new method.
6460 * tracepoint.c (trace_buffer_size): New global.
6461 (start_tracing): Send it to the target.
6462 (set_trace_buffer_size): New function.
6463 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
6464 * remote.c (remote_set_trace_buffer_size): New function.
6465 (_initialize_remote): Use it.
6466 (QTBuffer:size) New remote command.
6467 (PACKET_QTBuffer_size): New enum.
6468 (remote_protocol_features): Add an entry for
6469 PACKET_QTBuffer_size.
6471 2013-03-08 Tom Tromey <tromey@redhat.com>
6473 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
6476 2013-03-07 Pedro Alves <palves@redhat.com>
6478 * target.c (target_read_stralloc, target_fileio_read_alloc):
6479 *Cast pointer to 'gdb_byte *' in target call.
6481 2013-03-07 Pedro Alves <palves@redhat.com>
6483 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
6486 2013-03-07 Keith Seitz <keiths@redhat.com>
6488 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
6489 (trace_pass_command): Likewise.
6490 * cli/cli-cmds.c: Include cli/cli-utils.h.
6491 (source_command): Use skip-spaces.
6492 (disassemble_command): Likewise.
6493 * findcmd.c: Include cli/cli-utils.h.
6494 (parse_find_args): Use skip_spaces.
6495 * go32-nat.c: Include cli/cli-utils.h.
6496 (go32_sldt): Use skip_spaces.
6497 (go32_sgdt): Likewise.
6498 (go32_sidt): Likewise.
6499 (go32_pde): Likewise.
6500 (go32_pte): Likewise.
6501 (go32_pte_for_address): Likewise.
6502 * infcmd.c: Include cli/cli-utils.h.
6503 (registers_info): Use skip_spaces.
6504 * linux-tdep.c (read_mapping): Use skip_spaces_const.
6505 (linux_info_proc): Likewise.
6506 * linux-thread-db.c: Include cli/cli-utils.h.
6507 (info_auto_load_libthread_db): Use skip_spaces_const.
6508 * m32r-rom.c: Include cli/cli-utils.h.
6509 (m32r_upload_command): Use skip_spaces.
6510 * maint.c: Include cli/cli-utils.h.
6511 (maintenance_translate_address): Use skip_spaces.
6512 * mi/mi-parse.c: Include cli/cli-utils.h.
6513 (mi_parse_argv): Use skip_spaces.
6514 (mi_parse): Likewise.
6515 * minsyms.c: Include cli/cli-utils.h.
6516 (msymbol_hash_iw): Use skip_spaces_const.
6517 * objc-lang.c: Include cli/cli-utils.h.
6518 (parse_selector): Use skip_spaces.
6519 (parse_method): Likewise.
6520 * python/python.c: Include cli/cli-utils.h.
6521 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
6522 (python_command)[HAVE_PYTHON]: Likewise.
6523 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
6524 * remote-m32r-sdi.c: Include cli/cli-utils.h.
6525 (m32r_load): Use skip_spaces.
6526 * serial.c: Include cli/cli-utils.h.
6527 (serial_open): Use skip_spaces_const.
6528 * stack.c: Include cli/cli-utils.h.
6529 (parse_frame_specification_1): Use skip_spaces_const.
6530 * symfile.c: Include cli/cli-utils.h.
6531 (set_ext_lang_command): Use skip_spaces.
6532 * symtab.c: Include cli/cli-utils.h.
6533 (rbreak_command): Use skip_spaces.
6534 * thread.c (thread_name_command): Use skip_spaces.
6535 * tracepoint.c (validate_actionline): Use skip_spaces.
6536 (encode_actions_1): Likewise.
6537 (trace_find_range_command): Likewise.
6538 (trace_find_outside_command): Likewise.
6539 (trace_dump_actions): Likewise.
6541 2013-03-07 Pedro Alves <palves@redhat.com>
6543 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
6544 * expprint.c (print_subexp_standard): Likewise.
6545 * utils.c (host_char_to_target): Likewise.
6546 * valprint.c (generic_emit_char, generic_printstr): Likewise.
6547 * varobj.c (value_get_print_value): Change type of local to char*.
6548 Cast it gdb_byte * in call to language printer.
6550 2013-03-07 Pedro Alves <palves@redhat.com>
6552 * charset.c (struct wchar_iterator) <input>: Change type to 'const
6554 (make_wchar_iterator): Remove cast to char*.
6555 (wchar_iterate): Change type of local.
6557 2013-03-07 Pedro Alves <palves@redhat.com>
6559 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
6560 for 'regcache->register_status'.
6562 2013-03-07 Pedro Alves <palves@redhat.com>
6564 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
6567 2013-03-07 Pedro Alves <palves@redhat.com>
6569 * stap-probe.c (handle_stap_probe): Add cast to char*.
6571 2013-03-07 Pedro Alves <palves@redhat.com>
6573 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
6574 RECORD_MSGRCV>: Pass a signed variable to
6575 regcache_raw_read_signed, instead of an unsigned one.
6577 2013-03-07 Pedro Alves <palves@redhat.com>
6579 * remote-notif.c (notif_debug): Change type to int.
6580 * remote-notif.h (notif_debug): Likewise.
6582 2013-03-07 Pedro Alves <palves@redhat.com>
6584 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
6586 2013-03-07 Pedro Alves <palves@redhat.com>
6588 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
6589 * remote.h (hex2bin, bin2hex): ... here.
6590 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
6592 2013-03-07 Eli Zaretskii <eliz@gnu.org>
6594 * utils.c (initialize_utils): Improve doc strings of "set/show
6595 width", "set/show height", and "set/show pagination".
6597 2013-03-06 Keith Seitz <keiths@redhat.com>
6599 * ax-gdb.c (gen_printf): Make FORMAT const.
6600 * ax-gdb.h (gen_printf): Likewise.
6601 * ax-general.c (ax_string): Make STR const.
6602 * ax.h (ax_string): Likewise.
6604 2013-03-06 Doug Evans <dje@google.com>
6606 * elfread.c (elf_symfile_read): Move debugging printf to more
6609 2013-03-06 Pedro Alves <palves@redhat.com>
6611 * python/py-utils.c (target_string_to_unicode): Delete function.
6612 * python/python-internal.h (target_string_to_unicode): Delete
6615 2013-03-06 Pierre Muller <muller@sourceware.org>
6617 * linespec.c (get_current_search_block): ARI fix, use (void)
6618 for empty parameter list.
6620 2013-03-05 Doug Evans <dje@google.com>
6622 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
6623 of old ada_lookup_symbol_list. In !full_search case, don't
6625 (ada_lookup_symbol_list): Delete arg full_search, all callers
6626 updated. Call ada_lookup_symbol_list_worker.
6627 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
6628 * ada-lang.h (ada_lookup_symbol_list): Update.
6629 * language.h (language_defn): Update comment for
6630 la_iterate_over_symbols.
6631 * linespec.c (iterate_over_file_blocks): New function.
6632 (iterate_over_all_matching_symtabs): Call it.
6633 (lookup_prefix_sym): Ditto.
6634 (get_current_search_block): New function.
6635 (get_search_block): Delete.
6636 (find_label_symbols): Call get_current_search_block.
6637 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
6638 * symtab.c (iterate_over_symbols): Don't search superblocks.
6640 2013-03-05 Yao Qi <yao@codesourcery.com>
6642 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
6643 parameter VAR's type from "unsigned int" to "int".
6644 * command.h (var_zuinteger_unlimited): Update its comments.
6645 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
6647 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
6649 * NEWS: Mention new target x86_64-*-cygwin*.
6651 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
6653 * configure.host: Add x86_64-*-cygwin* as host.
6654 * configure.tgt: Add x86_64-*-cygwin* as target.
6655 * config/i386/cygwin64.mh: New file.
6657 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6659 * linespec.c (decode_line_2): Fix duplicate request off by two message.
6661 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6663 * linespec.c (struct linespec_canonical_name): New.
6664 (struct linespec_state): Change canonical_names type to it.
6665 (add_sal_to_sals): Change variable canonical_name to canonical. Change
6666 xrealloc element size. Initialize the different CANONICAL fields.
6667 (canonical_to_fullform): New.
6668 (filter_results): Use it. Add variables canonical, fullform and
6670 (struct decode_line_2_item, decode_line_2_compare_items): New.
6671 (decode_line_2): Remove variables iter and item_names, add variables
6672 items and items_count. Modify the code for these new variables.
6674 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
6676 * coff-pe-read.c (read_pe_exported_syms): Don't return without
6679 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
6681 * tracepoint.c (build_traceframe_info): Add code for byte order.
6683 2013-03-02 Kevin Buettner <kevinb@redhat.com>
6685 * v850-tdep.c: (v850e2_register_name): Revise system register
6686 names to match current V850E2M architecture specifications.
6687 Update register number enum comments too.
6689 2013-03-01 Jiong Wang <jiwang@tilera.com>
6690 Pedro Alves <palves@redhat.com>
6692 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
6694 (tilegx_skip_prologue): Limit prologue analysis to section end.
6696 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6698 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
6701 2013-03-01 Pedro Alves <palves@redhat.com>
6703 Use gdb_byte for bytes from the program being debugged.
6705 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
6706 Change type of local 'buf' to gdb_byte.
6707 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
6708 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
6709 * cris-tdep.c (cris_sigcontext_addr)
6710 (cris_sigtramp_frame_unwind_cache): Likewise.
6711 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
6712 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
6714 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
6715 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
6716 (hppa32_hpux_search_dummy_call_sequence)
6717 (hppa_hpux_supply_save_state): Likewise.
6718 * hppa-linux-tdep.c (insns_match_pattern)
6719 (hppa_linux_find_global_pointer): Likewise.
6720 * hppa-tdep.c (hppa_in_function_epilogue_p)
6721 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
6722 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
6723 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
6724 (i386fbsd_collect_uthread): Likewise.
6725 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
6726 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
6727 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
6728 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
6729 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
6730 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
6731 (ia64_libunwind_frame_prev_register)
6732 (ia64_libunwind_sigtramp_frame_this_id)
6733 (ia64_find_global_pointer_from_dynamic_section)
6734 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
6735 (ia64_unwind_pc): Likewise.
6736 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
6737 * m68hc11-tdep.c (m68hc11_push_dummy_call)
6738 (m68hc11_extract_return_value): Likewise.
6739 * m68klinux-nat.c (fetch_register, store_register): Likewise.
6740 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
6741 (mep_get_insn, mep_push_dummy_call): Likewise.
6742 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
6743 (mips_linux_in_dynsym_stub): Likewise.
6744 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
6745 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6746 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
6748 * remote-mips.c (mips_set_register): Likewise.
6749 * remote-sim.c (gdbsim_fetch_register): Likewise.
6750 * score-tdep.c (score7_fetch_inst): Change type of parameter
6751 'memblock' and local 'buf' to gdb_byte.
6752 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
6753 Change type of local 'buf' to gdb_byte. Adjust.
6754 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
6756 (score7_analyze_prologue): Change type of 'memblock' and
6757 'memblock_ptr' locals to gdb_byte*.
6758 * sh64-tdep.c (sh64_extract_return_value)
6759 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
6760 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
6761 * solib-pa64.c (pa64_solib_create_inferior_hook)
6762 (pa64_open_symbol_file_object): Remove local 'buf'.
6763 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
6764 (som_open_symbol_file_object): Likewise.
6765 * solib-spu.c (spu_current_sos): Likewise.
6766 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6767 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
6768 (spu_store_registers): Likewise.
6769 * target.c (debug_print_register): Likewise.
6770 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
6771 * xstormy16-tdep.c (xstormy16_store_return_value)
6772 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
6773 (xstormy16_find_jmp_table_entry): Likewise.
6775 2013-03-01 Jiong Wang <jiwang@tilera.com>
6777 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
6778 (tilegx_gdbarch_init): Install it.
6780 2013-02-28 Tom Tromey <tromey@redhat.com>
6782 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
6785 2013-02-28 Doug Evans <dje@google.com>
6787 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
6788 * python/python.c (gdbpy_find_pc_line): Ditto.
6790 2013-02-28 Tom Tromey <tromey@redhat.com>
6792 * contrib/excheck.py: New file.
6793 * contrib/exsummary.py: New file.
6794 * contrib/gcc-with-excheck: New file.
6796 2013-02-28 Tom Tromey <tromey@redhat.com>
6798 * python/python.c (gdbpy_print_stack): Call begin_line and
6799 fprintf_filtered inside TRY_CATCH.
6801 2013-02-28 Tom Tromey <tromey@redhat.com>
6803 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
6806 2013-02-28 Tom Tromey <tromey@redhat.com>
6808 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
6809 frame_object_to_frame_info inside TRY_CATCH.
6811 2013-02-28 Tom Tromey <tromey@redhat.com>
6813 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
6816 2013-02-28 Tom Tromey <tromey@redhat.com>
6818 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
6820 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
6822 * windows-nat.c: Throughout, fix format strings and casts of
6823 printf-like functions to avoid type related warnings on all
6825 (handle_output_debug_string): Fetch context information address
6826 from debug string using string_to_core_addr.
6828 2013-02-27 Jiong Wang <jiwang@tilera.com>
6830 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
6831 * regformats/reg-tilegx32.dat: New.
6833 2013-02-27 Jiong Wang <jiwang@tilera.com>
6835 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
6837 2013-02-27 Jiong Wang <jiwang@tilera.com>
6839 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
6841 2013-02-27 Yao Qi <yao@codesourcery.com>
6842 Pedro Alves <palves@redhat.com>
6844 * tracepoint.c (tfile_trace_find): For tfind
6845 pc/tp/range/outside, look for the next trace frame instead of
6846 always starting from frame 0.
6848 2013-02-26 Anthony Green <green@moxielogic.com>
6850 * configure.tgt: Add support for moxie-*-rtems* target.
6852 2013-02-25 Pedro Alves <palves@redhat.com>
6854 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
6857 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6859 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
6860 if $fp is used as the virtual frame pointer.
6862 2013-02-23 Alan Modra <amodra@gmail.com>
6864 * elfread.c (elf_symtab_read): Do not use udata.p here to find
6866 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
6867 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
6868 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
6869 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
6871 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6874 * elfread.c (build_id_bfd_get): Make the return type const.
6875 (build_id_verify): Make the check parameter const.
6876 (build_id_to_debug_filename): Make the build_id parameter and variable
6878 (find_separate_debug_file_by_buildid): Make the variable build_id const.
6880 2013-02-21 Alan Modra <amodra@gmail.com>
6882 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
6884 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
6886 Add a new method 'disassemble' to gdb.Architecture class.
6887 * python/py-arch.c (archpy_disassmble): Implementation of the
6888 new method gdb.Architecture.disassemble.
6889 (arch_object_methods): Add entry for the new method.
6891 2013-02-20 Jiong Wang <jiwang@tilera.com>
6893 * MAINTAINERS (Write After Approval): Add myself to the list.
6895 2013-02-19 Pedro Alves <palves@redhat.com>
6897 Garbage collect 'struct monitor_ops'::load_routine.
6899 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
6900 * monitor.c (monitor_load): No longer call
6901 current_monitor->load_routine.
6902 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
6903 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
6904 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
6906 2013-02-19 Pedro Alves <palves@redhat.com>
6910 Harmonize with generic_load.
6912 * monitor.c: Include "readline/readline.h".
6913 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
6914 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
6915 long/strtol for the 'load_offset' local. Error out if no argument
6916 is given or if too many arguments are given. Tilde expand the
6917 passed in file name.
6919 2013-02-19 Kai Tietz <ktietz@redhat.com>
6922 * symfile.c (load_section_data): Change type of load_offset
6924 (generic_load): User strtoulst instead of strtoul for conversion
6927 2013-02-19 Jiong Wang <jiwang@tilera.com>
6929 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
6930 for return address, "lr" register, saved on stack.
6931 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
6932 after we invoke tilegx_analyze_prologue.
6934 2013-02-19 Jiong Wang <jiwang@tilera.com>
6936 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
6938 2013-02-19 Jiong Wang <jiwang@tilera.com>
6940 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
6942 2013-02-19 Jiong Wang <jiwang@tilera.com>
6944 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
6945 (tilegx_write_pc): New function.
6946 (tilegx_cannot_reference_register): Return zero if REGNO
6947 is TILEGX_FAULTNUM_REGNUM.
6948 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
6949 (tilegx_register_name): Add handling of "faultnum" register.
6950 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
6951 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
6952 handling of TILEGX_FAULTNUM_REGNUM.
6953 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
6955 2013-02-19 Jiong Wang <jiwang@tilera.com>
6957 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
6958 should be aligned to 64bit.
6960 2013-02-19 Kai Tietz <ktietz@redhat.com>
6962 * windows-nat.c (windows_xfer_memory): Fix debug-output
6965 2013-02-19 Lei Liu <lei.liu2@windriver.com>
6967 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
6968 Don't check DSP register number if HAVE_DSP is not set.
6970 2013-02-19 Alan Modra <amodra@gmail.com>
6972 * elfread.c (struct build_id): Delete. Use struct elf_build_id
6973 throughout file instead.
6974 (build_id_bfd_get): Update to use new elf_tdata build_id field.
6975 Don't xmalloc return value.
6976 (build_id_verify): Similarly. Don't xfree.
6977 (build_id_to_debug_filename): Update.
6978 (find_separate_debug_file_by_buildid): Update, don't xfree.
6980 2013-02-18 Tom Tromey <tromey@redhat.com>
6983 * dwarf2read.c (read_subrange_type): Use result of
6986 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
6988 * frame.c: Remove one extra white space after #include
6991 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6993 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
6995 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6997 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
6998 and dir commands into an if block.
7000 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
7002 * python/py-breakpoint (struct pybp_code): Use int instead of
7005 2013-02-15 Pedro Alves <pedro@codesourcery.com>
7006 Hafiz Abid Qadeer <abidh@codesourcery.com>
7008 * NEWS: Mention new field "trace-file".
7009 * tracepoint.c (trace_status_mi): Output "trace-file" field.
7010 (tfile_open): Record the trace file's filename in the trace
7012 (tfile_files_info): Mention the name of the trace file.
7013 Check the "filename" field explicitely.
7014 (trace_status_command): Explicitely check "filename" field.
7015 (trace_find_command): Ditto.
7016 (trace_find_pc_command): Ditto.
7017 (trace_find_tracepoint_command): Ditto.
7018 (trace_find_line_command): Ditto.
7019 (trace_find_range_command): Ditto.
7020 (trace_find_outside_command): Ditto.
7021 * tracepoint.h (struct trace_status) <from_file>: Rename it
7022 to "filename" and make it hold the trace file's filename
7023 instead of a boolean.
7024 * remote.c (remote_get_trace_status): Initialize "filename"
7025 field with NULL instead of 0.
7027 2013-02-15 Yao Qi <yao@codesourcery.com>
7029 * remote.c: Fix a typo.
7031 2013-02-14 Pierre Muller <muller@sourceware.org>
7033 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
7035 2013-02-14 Pedro Alves <palves@redhat.com>
7037 * utils.c (savestring): Don't #undef it. Move function to
7038 common/common-utils.c.
7039 * common/common-utils.c: Include gdb_string.h.
7040 (savestring): Move here from utils.c.
7041 * common/common-utils.h (savestring): Declare.
7043 2013-02-14 Pedro Alves <palves@redhat.com>
7045 * utils.c (savestring): Rename parameter 'size' to 'len'.
7047 2013-02-14 Pedro Alves <palves@redhat.com>
7048 Yufeng Zhang <yufeng.zhang@arm.com>
7050 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
7051 (aarch64_inferior_data, struct aarch64_inferior_data):
7053 (struct aarch64_process_info): New.
7054 (aarch64_process_list): New global.
7055 (aarch64_find_process_pid, aarch64_add_process)
7056 (aarch64_process_info_get): New functions.
7057 (aarch64_inferior_data_get): Delete.
7058 (aarch64_process_info_get): New function.
7059 (aarch64_forget_process): New function.
7060 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
7061 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
7062 aarch64_get_debug_reg_state.
7063 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
7064 instead of linux_nat_iterate_watchpoint_lwps.
7065 (aarch64_linux_new_fork): New function.
7066 (aarch64_linux_child_post_startup_inferior): Use
7067 aarch64_forget_process instead of aarch64_init_debug_reg_state.
7068 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
7069 (aarch64_linux_remove_hw_breakpoint)
7070 (aarch64_handle_aligned_watchpoint)
7071 (aarch64_handle_unaligned_watchpoint)
7072 (aarch64_linux_insert_watchpoint)
7073 (aarch64_linux_remove_watchpoint)
7074 (aarch64_linux_stopped_data_address): Adjust to pass the current
7075 process id to aarch64_debug_reg_state.
7076 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
7077 linux_nat_new_fork hook, and aarch64_forget_process as
7078 linux_nat_forget_process hook; remove the call to
7079 register_inferior_data_with_cleanup.
7081 2013-02-14 Pedro Alves <palves@redhat.com>
7083 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
7084 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
7087 2013-02-14 Pedro Alves <pedro@codesourcery.com>
7088 Hafiz Abid Qadeer <abidh@codesourcery.com>
7090 * tracepoint.h (validate_trace_state_variable_name): Declare.
7091 * tracepoint.c (validate_trace_state_variable_name): New.
7092 (trace_variable_command): Parse the trace state variable's name
7093 without using parse_expression. Do several validations.
7094 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
7095 trace state variable's name with parse_expression. Validate it.
7097 2013-02-14 Yao Qi <yao@codesourcery.com>
7099 * infcmd.c (breakpoint_proceeded): Remove it.
7101 2013-02-14 Yao Qi <yao@codesourcery.com>
7103 * tracepoint.c (end_actions_pseudocommand): Make it static.
7104 (while_stepping_pseudocommand): Likewise.
7105 * tracepoint.h (end_actions_pseudocommand): Remove the
7107 (while_stepping_pseudocommand): Likewise.
7109 2013-02-14 Yao Qi <yao@codesourcery.com>
7111 * cli/cli-decode.c (help_cmd): Remove the declaration of
7113 (help_all): Likewise.
7115 2013-02-13 Pedro Alves <palves@redhat.com>
7117 * amd64-linux-nat.c (update_debug_registers_callback):
7119 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
7121 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
7122 i386_debug_reg_state.
7123 (amd64_linux_new_fork): New function.
7124 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
7125 linux_nat_new_fork hook, and i386_forget_process as
7126 linux_nat_forget_process hook.
7127 * i386-linux-nat.c (update_debug_registers_callback):
7129 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
7131 (i386_linux_prepare_to_resume): Pass the lwp's pid to
7132 i386_debug_reg_state.
7133 (i386_linux_new_fork): New function.
7134 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
7135 linux_nat_new_fork hook, and i386_forget_process as
7136 linux_nat_forget_process hook.
7137 * i386-nat.c (i386_init_dregs): Delete.
7138 (i386_inferior_data, struct i386_inferior_data):
7140 (struct i386_process_info): New.
7141 (i386_process_list): New global.
7142 (i386_find_process_pid, i386_add_process, i386_process_info_get):
7144 (i386_inferior_data_get): Delete.
7145 (i386_process_info_get): New function.
7146 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
7147 (i386_forget_process): New function.
7148 (i386_cleanup_dregs): Rewrite.
7149 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
7150 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
7151 (i386_stopped_data_address, i386_insert_hw_breakpoint)
7152 (i386_remove_hw_breakpoint): Adjust to pass the current process id
7153 to i386_debug_reg_state.
7154 (i386_use_watchpoints): Don't register inferior data.
7155 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
7157 (i386_forget_process): Declare.
7158 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
7159 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
7161 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
7162 (add_initial_lwp): New, factored out from ...
7163 (add_lwp): ... this. Don't check the number of lwps before
7164 calling linux_nat_new_thread.
7165 (linux_nat_iterate_watchpoint_lwps): Delete.
7166 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
7167 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
7169 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
7171 (linux_nat_kill, linux_nat_mourn_inferior): Call
7172 linux_nat_forget_process.
7173 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7174 (linux_nat_forget_process): New functions.
7175 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
7177 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
7178 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
7180 (linux_nat_set_new_fork, linux_nat_set_forget_process)
7181 (linux_nat_forget_process): New declarations.
7183 * amd64fbsd-nat.c (super_mourn_inferior): New global.
7184 (amd64fbsd_mourn_inferior): New function.
7185 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
7186 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
7188 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7190 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
7193 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7195 * aarch64-linux-nat.c (debug_reg_change_callback)
7196 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
7199 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7201 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
7204 2013-02-13 Pedro Alves <palves@redhat.com>
7205 Hafiz Abid Qadeer <abidh@codesourcery.com>
7207 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
7209 2013-02-12 Tom Tromey <tromey@redhat.com>
7212 * c-exp.y (lex_one_token): Initialize other fields of yylval on
7214 (classify_inner_name): Remove 'first_name' argument, add
7215 'context'. Remove unused variable.
7216 (yylex): Explicitly maintain the context type. Exit loop earlier
7217 if NAME result is seen.
7219 2013-02-12 Pedro Alves <palves@redhat.com>
7221 * amd64-darwin-tdep.c: Add (C) after Copyright.
7222 * cli/cli-cmds.h: Ditto.
7223 * cli/cli-decode.c: Ditto.
7224 * cli/cli-decode.h: Ditto.
7225 * cli/cli-dump.c: Ditto.
7226 * cli/cli-dump.h: Ditto.
7227 * cli/cli-interp.c: Ditto.
7228 * cli/cli-logging.c: Ditto.
7229 * cli/cli-script.c: Ditto.
7230 * cli/cli-script.h: Ditto.
7231 * cli/cli-setshow.c: Ditto.
7232 * cli/cli-setshow.h: Ditto.
7233 * cli/cli-utils.c: Ditto.
7234 * cli/cli-utils.h: Ditto.
7235 * config/alpha/nm-osf3.h: Ditto.
7236 * config/djgpp/djconfig.sh: Ditto.
7237 * config/i386/nm-fbsd.h: Ditto.
7238 * config/i386/nm-i386gnu.h: Ditto.
7239 * config/nm-linux.h: Ditto.
7240 * config/nm-nto.h: Ditto.
7241 * config/rs6000/nm-rs6000.h: Ditto.
7242 * config/sparc/nm-sol2.h: Ditto.
7243 * darwin-nat-info.c: Ditto.
7246 * gdb-demangle.h: Ditto.
7247 * i386-darwin-nat.c: Ditto.
7248 * i386-darwin-tdep.c: Ditto.
7249 * linux-fork.h: Ditto.
7250 * m32c-tdep.c: Ditto.
7251 * microblaze-linux-tdep.c: Ditto.
7252 * microblaze-rom.c: Ditto.
7253 * microblaze-tdep.c: Ditto.
7254 * microblaze-tdep.h: Ditto.
7255 * mips-linux-tdep.h: Ditto.
7256 * ppc-ravenscar-thread.c: Ditto.
7257 * ppc-ravenscar-thread.h: Ditto.
7258 * prologue-value.c: Ditto.
7259 * prologue-value.h: Ditto.
7260 * ravenscar-thread.c: Ditto.
7261 * ravenscar-thread.h: Ditto.
7262 * sparc-ravenscar-thread.c: Ditto.
7263 * sparc-ravenscar-thread.h: Ditto.
7264 * tilegx-linux-tdep.c: Ditto.
7265 * unwind_stop_reasons.def: Ditto.
7266 * windows-nat.h: Ditto.
7267 * xtensa-linux-tdep.c: Ditto.
7268 * xtensa-xtregs.c: Ditto.
7269 * regformats/regdat.sh: Ditto.
7270 * regformats/regdef.h: Ditto.
7272 2013-02-12 Pedro Alves <palves@redhat.com>
7274 * break-catch-sig.c: Update copyright years.
7276 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
7278 Add support for a destructor for ui_out data and use it to
7279 provide a ui_out destructor.
7280 * ui-out.h: Declare the new ui_out destructor.
7281 (ui_out_impl): Add a field for data destructor in ui_out_impl.
7282 * ui-out.c (default_data_destroy): Add a default data destructor
7284 (default_ui_out_impl): Set the new data_destroy field to
7285 default_data_destroy
7286 (uo_data_destroy): Local function which invokes the data
7287 destructor if present.
7288 (clear_table): Local function which clears the table data of a
7290 (ui_out_destroy): Public function which frees a ui_out object.
7291 (ui_out_table_end): Use the new clear_table function.
7292 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
7294 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
7297 2013-02-11 Doug Evans <dje@google.com>
7299 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
7300 (printf_decfloat): New function. Broken out from ui_printf.
7301 Remove unnecessary code to shift the entire format string down.
7302 (printf_pointer): New function.
7303 (ui_printf): Code to print C strings, wide C strings, decfloats,
7304 and pointers moved to separate functions.
7306 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
7308 * valops.c (value_assign): Handling bitfield offset in
7309 `lval_internalvar_component' case.
7311 2013-02-08 Doug Evans <dje@google.com>
7313 * common/format.c (parse_format_string): Fix whitespace.
7315 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
7317 * stack.c (return_command): Work around uninitialized variable
7320 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
7322 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
7323 number of the registers from 36 to 34.
7325 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
7327 * NEWS: Mention new AArch64 native and target support.
7329 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
7331 * MAINTAINERS (Write After Approval): Add myself.
7333 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
7334 Marcus Shawcroft <marcus.shawcroft@arm.com>
7335 Nigel Stephens <nigel.stephens@arm.com>
7336 Yufeng Zhang <yufeng.zhang@arm.com>
7338 * aarch64-linux-nat.c: New file.
7339 * config/aarch64/linux.mh: New file.
7340 * configure.host: Add AArch64.
7341 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
7343 2013-02-07 Doug Evans <dje@google.com>
7345 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
7346 disassemble command.
7348 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
7350 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
7351 set_gdbarch_fetch_tls_load_module_address.
7353 2013-02-06 David S. Miller <davem@davemloft.net>
7355 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
7356 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7357 * value.c (struct_return_convention): New function.
7358 (using_struct_return): Implement in terms of struct_return_convention.
7359 * value.h (struct_return_convention): Declare.
7360 * stack.c (return_command): Allow successful overriding of the return
7361 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
7363 2013-02-06 Tom Tromey <tromey@redhat.com>
7365 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
7366 outside of TRY_CATCH.
7368 2013-02-06 Yao Qi <yao@codesourcery.com>
7370 * mi/mi-interp.c: Include "tracepoint.h".
7371 (mi_tsv_modified): Declare.
7372 (mi_tsv_created, mi_tsv_deleted): Update declaration.
7373 (mi_interpreter_init): Call observer_attach_tsv_modified.
7374 (mi_tsv_modified): New.
7375 (mi_tsv_created, mi_tsv_deleted): Update.
7376 * tracepoint.c (trace_variable_command): Call
7377 observer_notify_tsv_modified if the initial value of tsv is
7379 (delete_trace_state_variable): Call
7380 observer_notify_tsv_deleted earlier.
7381 (trace_variable_command): Caller update.
7382 (create_tsv_from_upload): Likewise.
7383 * observer.sh: Declare "struct trace_state_variable".
7385 * NEWS: Mention the new MI notification "=tsv-modified".
7387 2013-02-05 Doug Evans <dje@google.com>
7389 * completer.c (location_completer): Fix typo in comment.
7391 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7393 * breakpoint.c (add_location_to_breakpoint): Insert the location with
7396 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
7398 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
7399 Refactor if statement to avoid trailing || operator.
7401 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
7403 * NEWS: Add PowerPC FreeBSD as a new native configuration.
7405 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
7407 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
7408 * configure.host: Add powerpc*-*-freebsd* target.
7409 * configure.tgt: Add target info for powerpc*-*-freebsd*.
7410 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
7411 * config/powerpc/fbsd.mh: New file.
7413 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
7414 Denys Vlasenko <dvlasenk@redhat.com>
7415 Pedro Alves <palves@redhat.com>
7417 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
7418 (struct elf_internal_linux_prpsinfo): Forward declare.
7419 * gdbarch.h, gdbarch.c: Regenerate.
7420 * linux-tdep.c: Include `cli/cli-utils.h'.
7421 (linux_fill_prpsinfo): New function.
7422 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
7423 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
7424 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
7425 depending on gdbarch pointer bitness.
7426 * ppc-linux-tdep.c: Include elf-bfd.h.
7427 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
7430 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7431 Marcus Shawcroft <marcus.shawcroft@arm.com>
7432 Nigel Stephens <nigel.stephens@arm.com>
7433 Yufeng Zhang <yufeng.zhang@arm.com>
7435 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
7437 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7438 Marcus Shawcroft <marcus.shawcroft@arm.com>
7439 Nigel Stephens <nigel.stephens@arm.com>
7440 Yufeng Zhang <yufeng.zhang@arm.com>
7442 * aarch64-newlib-tdep.c: New file.
7443 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
7445 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
7446 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
7447 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
7448 * osabi.c (gdb_osabi_names): Add "Newlib".
7450 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7451 Marcus Shawcroft <marcus.shawcroft@arm.com>
7452 Nigel Stephens <nigel.stephens@arm.com>
7453 Yufeng Zhang <yufeng.zhang@arm.com>
7455 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
7456 (ALLDEPFILES): Add aarch64-linux-tdep.c.
7457 * aarch64-linux-tdep.c: New file.
7458 * aarch64-linux-tdep.h: New file.
7459 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
7460 * configure.tgt: Add aarch64-none-linux-gnu.
7462 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
7463 Marcus Shawcroft <marcus.shawcroft@arm.com>
7464 Nigel Stephens <nigel.stephens@arm.com>
7465 Yufeng Zhang <yufeng.zhang@arm.com>
7467 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
7468 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
7469 (ALLDEPFILES): Add aarch64-tdep.c.
7470 * aarch64-tdep.c: New file.
7471 * aarch64-tdep.h: New file.
7472 * configure.tgt: Add AArch64.
7473 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
7474 (aarch64-expedite): New definition.
7475 * features/aarch64-core.xml: New file.
7476 * features/aarch64-fpu.xml: New file.
7477 * features/aarch64-without-fpu.c: New file (generated).
7478 * features/aarch64-without-fpu.xml: New file.
7479 * features/aarch64.c: New file (generated).
7480 * features/aarch64.xml: New file.
7481 * regformats/aarch64-without-fpu.dat: New file (generated).
7482 * regformats/aarch64.dat: New file (generated).
7484 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7486 * contrib/expect-read1.c: New file.
7487 * contrib/expect-read1.sh: New file.
7489 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7491 * dwarf2read.c (file_file_name): New function with code from
7493 (file_full_name): Move most of the code to file_file_name.
7494 (macro_start_file): Rename variable full_name to file_name and use
7495 file_file_name for it. Add comp_dir parameter to new_macro_table.
7496 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
7497 macro_source_file->filename access by macro_source_fullname call.
7498 * macroscope.c (_initialize_macroscope): Update the new_macro_table
7500 * macrotab.c (struct macro_table): New field comp_dir.
7501 (macro_include): New variables link_fullname and source_fullname.
7502 Replace any macro_source_file->filename access by macro_source_fullname
7504 (macro_lookup_inclusion): Remove the partial filenames checking code.
7505 (check_for_redefinition): New variables source_fullname and
7506 found_key_fullname. Replace any macro_source_file->filename access by
7507 macro_source_fullname call.
7508 (macro_undef): New variables source_fullname and key_fullname. Replace
7509 any macro_source_file->filename access by macro_source_fullname call.
7510 (macro_lookup_definition): New variables retval and source_fullname.
7511 Replace any macro_source_file->filename access by macro_source_fullname
7513 (foreach_macro): New variable key_fullname. Replace any
7514 macro_source_file->filename access by macro_source_fullname call.
7515 (foreach_macro_in_scope): New variable datum_fullname. Replace any
7516 macro_source_file->filename access by macro_source_fullname call.
7517 (new_macro_table): Add parameter comp_dir. Initialize T with it.
7518 (macro_source_fullname): New function.
7519 * macrotab.h (struct macro_source_file): Extent the filename field
7521 (new_macro_table): New parameter comp_dir, add a comment for it.
7522 (macro_source_fullname): new declaration.
7524 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7526 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
7527 this_real_name to outer block. Use it also for
7528 compare_filenames_for_search.
7529 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
7530 with dw2_get_real_path for file_matcher, considering also
7531 BASENAMES_MAY_DIFFER.
7532 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
7534 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7536 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
7537 to the file_matcher parameter. Pass 0 to it.
7538 (dwarf2_create_include_psymtab): Copy also DIRNAME.
7539 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
7540 NULL psymtab_to_fullname result.
7541 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
7542 an expected filename instead.
7543 (expand_symtabs_matching_via_partial): Add basenames parameter to the
7544 file_matcher parameter. Call also psymtab_to_fullname, after newly
7545 considering BASENAMES_MAY_DIFFER.
7546 * source.c (rewrite_source_path): Remove static.
7547 * source.h (rewrite_source_path): New declaration.
7548 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
7549 the expand_symtabs_matching field. Comment it.
7550 * symtab.c (file_matches): New function comment. Add parameter
7551 basenames, implement it.
7552 (search_symbols_file_matches): Add basenames parameter. Update the
7553 file_matches caller.
7554 (search_symbols): Match FILES also against symtab_to_fullname.
7555 Optimize it for BASENAMES_MAY_DIFFER.
7557 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7559 * source.c (print_source_lines_base): Print for TUI also "fullname".
7560 * tui/tui-data.c (init_content_element): Change tui_locator_element
7562 * tui/tui-data.h (struct tui_locator_element): Likewise.
7563 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
7564 tui_update_locator_filename calls to tui_update_locator_fullname.
7565 Replace symtab->filename refererence by symtab_to_fullname call.
7566 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
7567 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
7568 field to full_name. Replace symtab->filename refererence by
7569 symtab_to_fullname call.
7570 (tui_show_symtab_source): Rename parameter to fullname. Change
7571 tui_locator_element field to full_name.
7572 * tui/tui-stack.c: Include source.h.
7573 (tui_set_locator_filename): Rename the declaration to ...
7574 (tui_set_locator_fullname): ... here. Rename its parameter to
7575 fullname, updates its comment.
7576 (tui_set_locator_info): Rename its parameter to fullname.
7577 (tui_set_locator_filename): Rename the definition to ...
7578 (tui_set_locator_fullname): ... here. Rename its parameter to
7579 fullname, updates its comment. Change tui_locator_element field to
7581 (tui_set_locator_info): Rename its parameter to fullname.
7582 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
7583 (tui_update_locator_filename): Rename to ...
7584 (tui_update_locator_fullname): ... here. Rename callee to
7585 tui_set_locator_fullname.
7586 (tui_show_frame_info): Replace symtab->filename refererence by
7587 symtab_to_fullname call.
7588 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
7589 (tui_update_locator_fullname): ... here.
7590 * tui/tui-winsource.c (tui_display_main): Rename the callee to
7591 tui_update_locator_fullname. Replace symtab->filename refererence by
7592 symtab_to_fullname call.
7593 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
7594 Rename the callee to tui_update_locator_fullname.
7595 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
7597 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7599 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
7600 by symtab_to_filename_for_display calls.
7601 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
7602 (clear_command): New variable sal_fullname, initialize it. Replace
7603 compare_filenames_for_search by filename_cmp with sal_fullname.
7604 (say_where, update_static_tracepoint): Replace symtab->filename
7605 refererences by symtab_to_filename_for_display calls.
7606 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
7608 * dwarf2read.c: Include source.h.
7609 (fixup_go_packaging): Replace symtab->filename refererences by
7610 symtab_to_filename_for_display calls.
7611 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
7612 Replace symtab->filename refererences by symtab_to_filename_for_display
7614 (create_sals_line_offset, convert_linespec_to_sals): New variable
7615 fullname, initialize it, replace symtab->filename reference by the
7617 * linux-fork.c: Include source.h.
7618 (info_checkpoints_command): Replace symtab->filename refererences by
7619 symtab_to_filename_for_display calls.
7620 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
7621 by symtab_to_filename_for_display calls.
7622 * mdebugread.c: Include source.h.
7623 (psymtab_to_symtab_1): Replace symtab->filename refererences by
7624 symtab_to_filename_for_display calls.
7625 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
7626 (mi_cmd_file_list_exec_source_files): Likewise.
7627 * printcmd.c: Include source.h.
7628 (build_address_symbolic): Replace symtab->filename refererences by
7629 symtab_to_filename_for_display calls.
7630 * psymtab.c (partial_map_symtabs_matching_filename)
7631 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
7632 with psymtab_to_fullname.
7633 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
7634 by symtab_to_filename_for_display calls.
7635 (stpy_get_filename): New variable filename, initialize it, use instead
7636 of symtab->filename refererences.
7637 (salpy_str): Make variable filename const char *. Replace
7638 symtab->filename refererences by symtab_to_filename_for_display calls.
7639 * skip.c: Include source.h and filenames.h.
7640 (skip_file_command): Remove const from the symtab variable. Replace
7641 symtab->filename refererences by symtab_to_fullname call.
7642 (function_name_is_marked_for_skip): New variables searched_for_fullname
7643 and fullname. Use them to search also with symtab's fullname.
7644 * source.c (find_source_lines): Replace symtab->filename refererences
7645 by symtab_to_filename_for_display calls.
7646 (print_source_lines_base): New variable filename, use it instead of
7647 symtab->filename. Replace symtab->filename refererences by
7648 symtab_to_filename_for_display calls.
7649 (line_info, forward_search_command): Replace symtab->filename
7650 refererences by symtab_to_filename_for_display calls.
7651 (reverse_search_command): Replace symtab->filename refererences by
7652 symtab_to_filename_for_display calls. New variable filename for it.
7653 * stack.c (frame_info): Likewise.
7654 * symmisc.c: Include source.h.
7655 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
7656 (maintenance_info_symtabs): Replace symtab->filename refererences by
7657 symtab_to_filename_for_display calls.
7658 * symtab.c (iterate_over_some_symtabs): Call
7659 compare_filenames_for_search also with symtab_to_fullname.
7660 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
7661 symtab->filename refererences by symtab_to_filename_for_display calls.
7662 (find_line_symtab): Replace symtab->filename refererences by
7663 symtab_to_filename_for_display calls.
7664 (file_matches): Replace filename_cmp by compare_filenames_for_search.
7665 (print_symbol_info): Make the last parameter const char *. New
7666 variable s_filename. Use it in the function.
7667 (symtab_symbol_info): Make the last_filename variable const char *.
7668 Replace symtab->filename refererences by symtab_to_filename_for_display
7670 (rbreak_command): New variable fullname. Use it. Replace
7671 symtab->filename refererence by symtab_to_filename_for_display call.
7672 * tracepoint.c (set_traceframe_context, trace_find_line_command)
7673 (print_one_static_tracepoint_marker): Replace symtab->filename
7674 refererences by symtab_to_filename_for_display calls.
7675 * tui/tui-source.c (tui_set_source_content): New variables filename and
7676 s_filename. Replace symtab->filename refererences by this variable.
7677 Replace other symtab->filename refererences by
7678 symtab_to_filename_for_display calls.
7680 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
7681 Jan Kratochvil <jan.kratochvil@redhat.com>
7683 Add a new variable that controls a way in which filenames are
7685 * NEWS (set filename-display): New entry.
7686 * source.c (filename_display_basename, filename_display_relative)
7687 (filename_display_absolute, filename_display_kind_names)
7688 (filename_display_string, show_filename_display_string)
7689 (symtab_to_filename_for_display): New.
7690 (_initialize_source): Added initialization of 'filename-display'
7692 * source.h (symtab_to_filename_for_display): Added declaration.
7693 * stack.c (print_frame): Added new variable and calling of a new
7694 function and condition with this variable. Changed third argument of
7695 calling of a function.
7697 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7699 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
7700 Rename field reference filename to fullname.
7701 * tui/tui-data.h (struct tui_source_info): Rename field filename to
7702 fullname. New comment for it.
7703 * tui/tui-source.c (tui_set_source_content): Rename field reference
7704 filename to fullname. Initialize field by symtab_to_fullname now.
7705 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
7706 reference filename to fullname. Use symtab_to_fullname during
7709 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7712 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
7713 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
7714 filename to fullname. Rename variable this_name to this_fullname.
7715 Lowercase FILENAME_CMP call.
7716 (dw2_find_symbol_file): New comment for the returned string.
7717 (dwarf2_gdb_index_functions): Rename the function to
7718 dw2_expand_symtabs_with_fullname.
7719 * psymtab.c (read_psymtabs_with_filename): Rename to ...
7720 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
7722 (psym_functions): Rename the function to read_psymtabs_with_fullname.
7723 * symfile.h (struct quick_symbol_functions): Rename field
7724 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
7725 parameter filename to fullname. Document returned string meaning for
7727 * symtab.c (find_line_symtab): Rename the called function to
7728 expand_symtabs_with_fullname.
7730 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7733 * breakpoint.c (clear_command): Remove variable is_abs, unify the
7734 call of filename_cmp with compare_filenames_for_search.
7735 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
7736 is_abs, unify the call of FILENAME_CMP with
7737 compare_filenames_for_search. New gdb_asserts for real_path and name.
7738 Unify the call of compare_filenames_for_search with FILENAME_CMP.
7739 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7740 * symfile.h (struct quick_symbol_functions): Extend the comment for
7741 map_symtabs_matching_filename.
7742 * symtab.c (compare_filenames_for_search): Remove the function comment
7743 relative path requirement. Handle absolute filenames, with a comment.
7744 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
7745 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
7746 real_path and name. Unify the call of compare_filenames_for_search
7748 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
7750 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7753 * breakpoint.c (print_breakpoint_location): Replace bp_location field
7754 source_file references by symtab field references. Remove variables
7756 (momentary_breakpoint_from_master, add_location_to_breakpoint):
7757 (clear_command, say_where): Replace bp_location field source_file
7758 references by symtab field references.
7759 (bp_location_dtor): Remove the source_file reference.
7760 (update_static_tracepoint): Replace bp_location field source_file
7761 references by symtab field references.
7762 (breakpoint_free_objfile): New function.
7763 * breakpoint.h (struct bp_location): Extend the comment for line_number.
7764 Replace the field source_file by field symtab, extend its comment.
7765 (breakpoint_free_objfile): New declaration.
7766 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
7767 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
7768 field source_file references by symtab field references.
7770 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7772 Replace xfullpath calls by gdb_realpath calls.
7773 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
7775 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
7776 Remove it from the iterate_over_some_symtabs call.
7777 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
7778 Remove it from the dw2_map_expand_apply calls, remove a block handling
7780 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
7781 Remove it from the iterate_over_some_symtabs call.
7782 (partial_map_symtabs_matching_filename): Remove parameter full_path.
7783 Remove it from the partial_map_expand_apply calls, remove a block
7784 handling it. Drop gdb_realpath call and cleanups from the real_path
7786 * source.c (openp): Drop the comment part about xfullpath. Replace
7787 xfullpath calls by gdb_realpath calls.
7788 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
7789 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
7790 from method map_symtabs_matching_filename and its comment.
7791 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
7793 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
7794 remove it also from the function comment, remove a block handling it.
7795 Drop gdb_realpath call and cleanups from the real_path handling.
7796 (iterate_over_symtabs): Drop variable full_path and its use.
7797 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
7798 * utils.c (xfullpath): Remove.
7799 * utils.h (xfullpath): Remove.
7801 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
7803 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
7804 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
7805 (ALLDEPFILES): Add ppc64-tdep.c.
7806 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
7807 ppc64-tdep.o to gdb_target_obs.
7808 * ppc64-tdep.h: New file.
7809 * ppc64-tdep.c: New file.
7810 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
7811 ppc-linux-tdep.c to here.
7812 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
7813 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
7814 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
7815 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
7816 from ppc-linux-tdep.c to here.
7817 (ppc64_convert_from_func_ptr_addr): Rename from
7818 ppc64_linux_convert_from_func_ptr_addr to
7819 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
7822 (read_insn): Move from ppc-linux-tdep.c to here.
7823 (insns_match_pattern, insn_d_field, insn_ds_field): Move
7824 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
7825 * ppc-linux-tdep.c: Include ppc64-tdep.h.
7826 Removed above functions.
7827 (ppc_linux_init_abi): Adjust.
7829 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
7831 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
7833 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
7835 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
7837 2013-02-01 Pedro Alves <palves@redhat.com>
7839 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
7840 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
7842 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7844 * elfread.c (elf_symfile_read): Limit separate debug info additions to
7845 files with no separate debug info.
7846 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
7847 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
7848 only for files with no separate debug info.
7850 2013-01-31 Tom Tromey <tromey@redhat.com>
7852 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
7854 (struct jit_program_space_data): Rename from jit_inferior_data.
7856 (get_jit_program_space_data): Rename from get_jit_inferior_data.
7857 Change return type. Attach data to program space.
7858 (jit_program_space_data_cleanup): Rename from
7859 jit_inferior_data_cleanup; change argument type.
7860 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
7862 (jit_register_code): Update.
7863 (jit_update_inferior_cache): Remove.
7864 (jit_breakpoint_deleted): Get jit data from the location's program
7866 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
7867 'ps_data', change type.
7868 (jit_inferior_init, jit_breakpoint_re_set_internal)
7869 (jit_event_handler): Update.
7870 (free_objfile_data): Get data from objfile's program space.
7871 (_initialize_jit): Update.
7873 2013-01-31 Tom Tromey <tromey@redhat.com>
7876 * jit.c (struct jit_inferior_data) <cached_code_address,
7877 jit_breakpoint>: New fields.
7878 (jit_breakpoint_re_set_internal): Fix logging. Only create
7879 breakpoint if cached address has changed.
7880 (jit_update_inferior_cache, jit_breakpoint_deleted): New
7882 (_initialize_jit): Register breakpoint deleted observer.
7884 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7886 * infrun.c (handle_syscall_event): Remove unused gdbarch.
7887 (save_infcall_suspend_state): Ifdef out unused inf.
7888 (restore_infcall_suspend_state): Ifdef out unused inf.
7889 * jit.c (jit_register_code): Remove unused i, b, inf_data.
7890 (jit_frame_sniffer): Remove unused inf_data.
7892 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7894 * c-exp.y (classify_inner_name): Remove unused type.
7895 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
7896 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
7898 (c_get_string): Remove unused kind.
7899 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
7901 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7903 * charset.c (intermediate_encoding): Remove unused i.
7904 * completer.c (signal_completer): Remove unused i.
7905 * continuations.c (discard_my_continuations_1): Remove unused
7907 * corelow.c (core_close): Remove unuseD name.
7908 (get_core_siginfo): Remove unused pid.
7909 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
7911 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
7912 (loclist_describe_location): Remove unused first.
7913 * event-top.c (command_line_handler): Remove unused got_eof.
7914 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
7915 (resize_section_table): Remove unused old_value.
7916 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
7917 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
7918 * i386-tdep.c (i386_process_record): Remove unused rex.
7919 * infcmd.c (get_return_value): Remove unused uiout.
7920 * jv-lang.c (type_from_class): Remove unused is_array.
7921 * jv-valprint.c (java_val_print): Remove unused i.
7922 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
7923 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
7924 * m2-typeprint.c (m2_print_type): Remove unused code.
7925 * macroexp.c (get_character_constant): Remove unused body_start.
7926 (macro_stringify): Remove unused result.
7927 * objc-lang.c (find_methods): Remove unused gdbarch.
7928 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
7929 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
7930 * stack.c (print_frame_args): Remove unused summary.
7931 * thread.c (thread_apply_command): Remove unused p.
7932 * valarith.c (value_x_unop): Remove unused mangle_ptr.
7933 * valops.c (search_struct_method): Remove unused skip.
7934 * valprint.c (generic_val_print): Remove unused byte_order.
7935 * varobj.c (varobj_update): Remove unused changed.
7936 * cli/cli-cmds.c (complete_command): Remove unused next_item.
7937 (alias_command): Remove unused c.
7938 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
7939 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
7941 (mi_cmd_data_write_memory): Remove unused word_format.
7942 (mi_cmd_data_write_memory_bytes): Remove unused r.
7943 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
7945 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
7946 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
7949 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7951 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
7952 * symtab.c (iterate_over_symtabs): Remove unused s.
7953 (find_pc_sect_symtab): Remove unused pspAce.
7954 (find_pc_sect_line): Remove unused alt_symtab.
7955 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
7956 (completion_list_add_name): Remove unused newsize.
7958 2013-01-31 Tom Tromey <tromey@redhat.com>
7961 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
7964 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7966 * target.c (target_read_string): Remove unused origlen.
7968 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7970 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
7971 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
7972 * ax-general.c (ax_print): Remove unused is_float.
7973 * blockframe.c (block_innermost_frame): Remove unused start, end.
7974 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
7976 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7978 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
7979 (svr4_read_so_list): Remove unused lmo.
7980 * solib-target.c (solib_target_relocate_section_addresses): Remove
7983 2013-01-30 Tom Tromey <tromey@redhat.com>
7985 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
7987 2013-01-30 Tom Tromey <tromey@redhat.com>
7989 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
7990 * utils.c (gnu_debuglink_crc32): Remove.
7991 * utils.h (gnu_debuglink_crc32): Don't declare.
7993 2013-01-30 Tom Tromey <tromey@redhat.com>
7995 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
7996 (read_structure_type, read_enumeration_type): Remove cast.
7998 2013-01-30 Tom Tromey <tromey@redhat.com>
8000 * dwarf2read.c (read_namespace_type): Remove cast.
8001 (read_typedef): Likewise.
8003 2013-01-29 Tom Tromey <tromey@redhat.com>
8005 * dwarf2read.c (free_dwo_file): Remove assert.
8007 2013-01-29 Tom Tromey <tromey@redhat.com>
8009 * value.c (deprecated_set_value_modifiable): Remove.
8010 * value.h (deprecated_set_value_modifiable): Remove.
8012 2013-01-28 Doug Evans <dje@google.com>
8014 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
8015 to addresses from dwo files.
8017 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
8019 * valops.c (find_overload_match): Remove unused argument 'lax'.
8020 * value.h: Remove unused argument 'lax' from the declaration of
8021 find_overload_match.
8022 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
8023 to find_overload_match.
8024 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
8025 argument to find_overload_match.
8027 2013-01-25 Tom Tromey <tromey@redhat.com>
8029 * dwarf2read.c (processing_has_namespace_info): Remove.
8030 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
8031 (process_die, read_func_scope, dwarf2_start_symtab)
8032 (new_symbol_full): Update.
8034 2013-01-25 Tom Tromey <tromey@redhat.com>
8036 * cp-namespace.c (cp_set_block_scope): Remove.
8037 * cp-support.h (cp_set_block_scope): Remove.
8038 * dbxread.c: Include block.h.
8039 (cp_set_block_scope): New function.
8040 (process_one_symbol): Update.
8041 * dwarf2read.c (read_func_scope): Use block_set_scope.
8043 2013-01-25 Pedro Alves <palves@redhat.com>
8045 * remote.c (add_current_inferior_and_thread): Tweak comment.
8047 2013-01-25 Tom Tromey <tromey@redhat.com>
8049 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
8050 (cp_add_using_directive): Add 'copy_names' argument.
8051 * cp-support.h (cp_add_using_directive): Update.
8052 (struct using_direct) <import_src, import_dest, alias,
8053 declaration>: Now const.
8054 * dwarf2read.c (read_import_statement): Use obconcat.
8055 Don't copy names passed to cp_add_using_directive.
8057 2013-01-25 Tom Tromey <tromey@redhat.com>
8059 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
8061 2013-01-25 Pedro Alves <palves@redhat.com>
8063 * remote.c (stop_reply_extract_thread): New.
8064 (add_current_inferior_and_thread): New parameter 'wait_status'.
8066 (remote_start_remote): Pass wait status to
8067 add_current_inferior_and_thread.
8068 (extended_remote_run): Update comment.
8069 (extended_remote_create_inferior_1): Pass wait status to
8070 add_current_inferior_and_thread.
8072 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
8073 Ulrich Weigand <uweigand@de.ibm.com>
8075 * valarith.c (value_vector_widen): New function for replicating a
8076 scalar into a vector.
8077 (value_binop): Use value_vector_widen to widen scalar to vector
8078 rather than casting, this better matches gcc C behaviour.
8079 * valops.c (value_casst): Update logic for casting between vector
8080 types, and for casting from scalar to vector, try to match gcc C
8082 * value.h (value_vector_widen): Declare.
8083 * opencl-lang.c (opencl_value_cast): New opencl specific casting
8084 function, handle special case for casting scalar to vector.
8085 (opencl_relop): Use opencl_value_cast.
8086 (evaluate_subexp_opencl): Use opencl_value_cast instead of
8087 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
8088 in order to use opencl_value_cast.
8090 2013-01-25 Yao Qi <yao@codesourcery.com>
8092 * event-loop.c: Include "queue.h".
8093 (gdb_event_p): New typedef.
8094 (DECLARE_QUEUE_P): Use.
8095 (DEFINE_QUEUE_P): Use.
8096 (async_queue_event): Remove.
8097 (gdb_event_xfree): New.
8098 (initialize_event_loop): New.
8099 (process_event): Use QUEUE macros.
8100 (event_queue): Remove.
8101 (gdb_wait_for_event): Caller update.
8102 (check_async_event_handlers): Likewise.
8103 (poll_timers): Likewise.
8104 * event-loop.h (initialize_event_loop): Declare.
8105 * event-loop.c (gdb_event_xfree): New.
8106 * top.c (gdb_init): Call initialize_event_loop.
8108 2013-01-25 Yao Qi <yao@codesourcery.com>
8110 * event-loop.c (async_queue_event): Remove one parameter
8111 'position'. Remove code handling 'position' == TAIL.
8112 (gdb_wait_for_event): Caller update.
8113 (check_async_event_handlers): Caller update.
8114 (poll_timers): Caller update.
8115 * event-loop.h (enum queue_position): Remove.
8117 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
8119 * MAINTAINERS: Update my email.
8121 2013-01-25 Yao Qi <yao@codesourcery.com>
8123 * main.c (print_gdb_help): Remove "--epoch" from the help
8126 2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
8128 * symtab.c (skip_prologue_using_sal): Consider a file
8129 change the same as an increased line number
8131 2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8133 * MAINTAINERS (Write After Approval): Add myself to the list.
8135 2013-01-24 Tom Tromey <tromey@redhat.com>
8137 * ada-lang.h (ada_decode_symbol): Make return type const.
8138 * ada-lang.c (ada_decode_symbol): Likewise.
8140 2013-01-23 Doug Evans <dje@google.com>
8142 * linespec.c (find_linespec_symbols): Make static.
8144 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
8146 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
8147 type on float conversion for complex type.
8149 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
8151 Add a new class gdb.Architecture which exposes GDB's
8152 internal representation of architecture via GDB Python API.
8153 * Makefile.in: Add entries corresponding to the new file
8155 * NEWS (Python Scripting): Add entries for the new class
8156 gdb.Architecture and the new method gdb.Frame.architecture.
8157 * python/py-arch.c: Implement gdb.Architecture class.
8158 * python/py-frame.c (frapy_arch): Implement the method
8159 gdb.Frame.architecture().
8160 (frame_object_methods): Add 'architecture' to the method table.
8161 * python/python-internal.h: Add declarations of new utility
8163 * python/python.c (_initialize_python): Initialize
8164 gdb.Architecture class.
8166 2013-01-23 Doug Evans <dje@google.com>
8168 Work around binutils/15021.
8169 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
8170 type_unit_group out of union s. All uses updated.
8171 (read_index_from_section): Watch for index version 8.
8172 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
8174 (write_psymtabs_to_index): Increment version number to 8.
8176 2013-01-22 Pedro Alves <palves@redhat.com>
8178 * annotate.c (breakpoint_changed): Skip if breakpoint is not
8181 2013-01-22 Pedro Alves <palves@redhat.com>
8183 * annotate.c (annotate_breakpoints_changed): Rename to ...
8184 (annotate_breakpoints_invalid): ... this. Make static.
8185 (breakpoint_changed): Adjust.
8186 (_initialize_annotate): Always install the observers. Install a
8187 "breakpoint_created" observer.
8188 * annotate.h (annotate_breakpoints_changed): Delete declaration.
8189 * breakpoint.c (set_breakpoint_condition)
8190 (breakpoint_set_commands, do_map_commands_command)
8191 (init_raw_breakpoint, clear_command, set_ignore_count)
8192 (enable_breakpoint_disp): No longer call
8193 annotate_breakpoints_changed.
8195 2013-01-22 Pedro Alves <palves@redhat.com>
8197 * annotate.c: Include "inferior.h".
8198 (frames_invalid_emitted)
8199 (breakpoints_invalid_emitted): New globals.
8200 (async_background_execution_p): New function.
8201 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
8202 emitting the annotation if it has already been emitted.
8203 (annotate_display_prompt): New function.
8204 * annotate.h (annotate_display_prompt): New declaration.
8205 * event-top.c: Include annotate.h.
8206 (display_gdb_prompt): Call annotate_display_prompt.
8208 2013-01-22 Pedro Alves <palves@redhat.com>
8210 * annotate.c (ignore_count_changed): Delete.
8211 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
8212 (annotate_ignore_count_change): Delete.
8213 (annotate_stopped): Don't emit a delayed breakpoints-changed
8215 * annotate.h (annotate_ignore_count_change): Delete.
8216 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
8217 annotate_ignore_count_change.
8219 2013-01-22 Tom Tromey <tromey@redhat.com>
8221 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
8222 require_rvalue for a register location.
8224 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
8226 * breakpoint.c (print_one_breakpoint_location): Add MI
8227 field 'thread-groups' when printing a breakpoint.
8228 (output_thread_groups): New function.
8230 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
8232 * python/lib/gdb/commands/explore.py
8233 (CompoundExplorer.explore_expr): Correct the name of a method
8235 (ExploreTypeCommand.invoke): Add a missing 'return'.
8237 2013-01-21 Tom Tromey <tromey@redhat.com>
8239 * gdb_obstack.h (obconcat): Move declaration here, from...
8240 * symfile.h (obconcat): ... here.
8241 * gdb_obstack.c: New file.
8242 (obconcat): Move from...
8243 * symfile.c (obconcat): ... here.
8244 * Makefile.in (SFILES): Add gdb_obstack.c.
8245 (COMMON_OBS): Add gdb_obstack.o.
8247 2013-01-21 Tom Tromey <tromey@redhat.com>
8249 * symfile.h (obsavestring): Don't declare.
8250 * symfile.c (obsavestring): Remove.
8251 * ada-exp.y: Use obstack_copy0, not obsavestring.
8252 * ada-lang.c: Use obstack_copy0, not obsavestring.
8253 * coffread.c: Use obstack_copy0, not obsavestring.
8254 * cp-namespace.c: Use obstack_copy0, not obsavestring.
8255 * dbxread.c: Use obstack_copy0, not obsavestring.
8256 * dwarf2read.c: Use obstack_copy0, not obsavestring.
8257 * jit.c: Use obstack_copy0, not obsavestring.
8258 * mdebugread.c: Use obstack_copy0, not obsavestring.
8259 * psymtab.c: Use obstack_copy0, not obsavestring.
8260 * stabsread.c: Use obstack_copy0, not obsavestring.
8261 * xcoffread.c: Use obstack_copy0, not obsavestring.
8263 2013-01-21 Tom Tromey <tromey@redhat.com>
8265 * dwarf2read.c (fixup_go_packaging): Save package name
8267 * gdbtypes.c (init_type): Don't copy name.
8269 2013-01-21 Tom Tromey <tromey@redhat.com>
8271 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
8273 (struct attribute) <u.str>: Now const.
8274 (struct fnfieldlist) <name>: Now const.
8275 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
8276 (partial_die_parent_scope): Make return type const.
8277 (partial_die_full_name, add_partial_symbol): Update.
8278 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
8280 (find_file_and_directory): Make 'name' and 'comp_dir' const.
8281 (read_file_scope, read_func_scope, dwarf2_add_field)
8282 (dwarf2_add_member_fn, read_structure_type)
8283 (process_enumeration_scope, read_array_type, read_module_type)
8284 (read_base_type, read_subrange_type): Update.
8285 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
8286 (new_symbol_full, guess_full_die_structure_name): Update.
8287 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
8288 (dwarf2_name): Return const type.
8289 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
8292 2013-01-21 Tom Tromey <tromey@redhat.com>
8294 * gdbtypes.c (init_type): Make 'name' const.
8295 * gdbtypes.h (init_type): Update.
8297 2013-01-21 Tom Tromey <tromey@redhat.com>
8299 * buildsym.c (patch_subfile_names): Use set_last_source_file.
8300 (start_symtab): Make 'name' and 'dirname' const. Use
8301 set_last_source_file.
8302 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
8303 (last_source_file): Define. Now static.
8304 (set_last_source_file, get_last_source_file): New functions.
8305 * buildsym.h (last_source_file): Don't declare.
8306 (start_symtab): Update.
8307 (set_last_source_file, get_last_source_file): Declare.
8308 * coffread.c (complete_symtab): Use set_last_source_file.
8309 (coff_end_symtab): Likewise.
8310 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
8311 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
8312 set_last_source_file.
8313 (process_one_symbol): Use get_last_source_file.
8314 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
8315 (psymtab_to_symtab_1): Use get_last_source_file.
8316 * xcoffread.c (process_linenos): Use get_last_source_file.
8317 (complete_symtab): Use set_last_source_file.
8318 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
8319 (scan_xcoff_symtab): Use set_last_source_file.
8321 2013-01-21 Tom Tromey <tromey@redhat.com>
8323 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
8324 (symbol_set_names): Remove casts. Handle field const-ness.
8326 2013-01-21 Tom Tromey <tromey@redhat.com>
8328 * dwarf2read.c (new_symbol_full): Remove cast.
8329 * symtab.c (symbol_set_demangled_name): Make 'name' const.
8330 * symtab.h (symbol_set_demangled_name): Update.
8332 2013-01-21 Tom Tromey <tromey@redhat.com>
8334 * main.c (captured_main): Call bfd_init.
8336 2013-01-21 Tom Tromey <tromey@redhat.com>
8338 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
8339 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
8340 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
8343 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8345 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
8347 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8349 Fix gdb.fortran/common-block.exp crash in PIE mode.
8350 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
8352 * f-valprint.c (info_common_command_for_block): Expect
8353 LOC_COMMON_BLOCK in gdb_assert.
8354 * symtab.h (struct general_symbol_info): Update comment for the
8355 common_block member.
8356 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
8357 (enum address_class): New member LOC_COMMON_BLOCK.
8359 2013-01-18 David Blaikie <dblaikie@gmail.com>
8361 * MAINTAINERS (Write After Approval): Add "David Blaikie".
8363 2013-01-18 Tom Tromey <tromey@redhat.com>
8366 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
8367 Call require_rvalue.
8369 2013-01-18 Yao Qi <yao@codesourcery.com>
8371 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
8372 (dbx_read_symtab): New declaration.
8373 (dbx_psymtab_to_symtab): Delete.
8374 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
8375 Rename parameter PST to SELF. Exchanged two parameters.
8376 (start_psymtab): Caller update.
8377 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
8378 (dwarf2_read_symtab): New declaration.
8379 (dwarf2_psymtab_to_symtab): Delete.
8380 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
8381 Rename parameter PST to SELF. Exchanged two parameters.
8382 (create_partial_symtab): Caller update.
8383 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
8384 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
8385 Rename parameter PST to SELF. Exchanged two parameters.
8386 (parse_partial_symbols, new_psymtab): Caller update.
8387 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
8389 * psymtab.c (psymtab_to_symtab): Caller update.
8390 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
8391 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
8392 Rename parameter PST to SELF. Exchanged two parameters.
8393 (xcoff_start_psymtab): Caller update.
8395 2013-01-18 Yao Qi <yao@codesourcery.com>
8397 * infrun.c (proceed): Rename local variable 'oneproc' to
8400 2013-01-17 Doug Evans <dje@google.com>
8402 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
8403 (dw2_build_type_unit_groups): Delete. All uses updated.
8405 * symtab.h (struct symbol_search): Add comment.
8407 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8409 * symtab.c (compare_filenames_for_search): New comment for
8412 2013-01-17 Tom Tromey <tromey@redhat.com>
8414 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
8416 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8418 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
8419 initialize it by existing make_cleanup. Call new do_cleanups.
8421 2013-01-17 Tom Tromey <tromey@redhat.com>
8423 * cp-abi.c (cp_abi_completer): New function.
8424 (_initialize_cp_abi): Set completer for "set cp-abi".
8426 2013-01-17 Tom Tromey <tromey@redhat.com>
8428 * mem-break.c: Remove obsolete comment.
8429 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
8431 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
8433 * jit.c (jit_reader_load_command): Interpret the jit reader name
8434 as an absolute path if it begins with a forward slash.
8436 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
8440 * jit.c (finalize_symtab): Ensure that only the global block has a
8443 2013-01-17 Pedro Alves <palves@redhat.com>
8445 * acinclude.m4: Include ../config/plugins.m4,
8446 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
8447 * Makefile.in (aclocal_m4_deps): Update.
8448 * aclocal.m4: Renegerate.
8450 2013-01-16 Doug Evans <dje@google.com>
8452 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
8454 2013-01-16 Pedro Alves <palves@redhat.com>
8455 Tom Tromey <tromey@redhat.com>
8458 * NEWS: Add "catch signal".
8459 * breakpoint.c (base_breakpoint_ops): No longer static.
8460 (bpstat_explains_signal): New function.
8461 (init_catchpoint): No longer static.
8462 (base_breakpoint_explains_signal): New function.
8463 (base_breakpoint_ops): Initialize new field.
8464 * breakpoint.h (enum bpstat_signal_value): New.
8465 (struct breakpoint_ops) <explains_signal>: New field.
8466 (bpstat_explains_signal): Remove macro, declare as function.
8467 (base_breakpoint_ops, init_catchpoint): Declare.
8468 * break-catch-sig.c: New file.
8469 * inferior.h (signal_catch_update): Declare.
8470 * infrun.c (signal_catch): New global.
8471 (handle_syscall_event): Update for change to
8472 bpstat_explains_signal.
8473 (handle_inferior_event): Likewise. Always handle random signals
8475 (signal_cache_update): Check signal_catch.
8476 (signal_catch_update): New function.
8477 (_initialize_infrun): Initialize signal_catch.
8478 * Makefile.in (SFILES): Add break-catch-sig.c.
8479 (COMMON_OBS): Add break-catch-sig.o.
8481 2013-01-16 Tom Tromey <tromey@redhat.com>
8483 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
8484 (print_one_catch_solib, print_one_catch_syscall)
8485 (print_one_catch_exec, print_one_exception_catchpoint): Emit
8488 2013-01-16 Yao Qi <yao@codesourcery.com>
8490 * printcmd.c (current_display_number): Make it static.
8492 2013-01-16 Yao Qi <yao@codesourcery.com>
8494 * infcmd.c (step_once): Don't check '!single_inst' as it was
8497 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8499 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
8501 2013-01-14 Tom Tromey <tromey@redhat.com>
8503 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
8505 * command.h (add_setshow_string_noescape_cmd): Update.
8506 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
8507 (complete_set_gnutarget): New function.
8508 (_initialize_core): Set the "set gnutarget" completer.
8510 2013-01-14 Tom Tromey <tromey@redhat.com>
8513 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
8514 (c_type_print_modifier): Likewise.
8515 * dwarf2read.c (read_tag_restrict_type): New function.
8516 (read_type_die_1): Handle DW_TAG_restrict_type.
8517 * gdbtypes.c (make_restrict_type): New function.
8518 (recursive_dump_type): Handle TYPE_RESTRICT.
8519 * gdbtypes.h (enum type_flag_values): Renumber.
8520 (enum type_instance_flag_value): Add
8521 TYPE_INSTANCE_FLAG_RESTRICT.
8522 (TYPE_RESTRICT): New macro.
8523 (make_restrict_type): Declare.
8525 2013-01-14 Tom Tromey <tromey@redhat.com>
8528 * psymtab.c (struct psymtab_state): New.
8529 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
8531 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
8532 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
8534 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
8535 Pedro Alves <palves@redhat.com>
8539 * remote.c (remote_threads_info): Make a copy of the reply from
8540 qfThreadInfo and use that instead of rs->buf.
8542 2013-01-14 Yao Qi <yao@codesourcery.com>
8544 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
8545 (dbx_psymtab_to_symtab): Likewise.
8546 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
8547 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
8548 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
8550 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8552 * parse.c (parse_exp_in_context): New variable inner_chain. Call
8553 make_cleanup_restore_current_language. Call set_language. Move
8554 OLD_CHAIN and INNER_CHAIN cleanups.
8555 * utils.c (do_restore_current_language)
8556 (make_cleanup_restore_current_language): New functions.
8557 * utils.h (make_cleanup_restore_current_language): New declaration.
8559 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8561 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
8564 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
8565 non-existing files if FILENAME is already absolute.
8567 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8569 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
8570 fputs_filtered. Append trailing newline.
8572 2013-01-11 Yao Qi <yao@codesourcery.com>
8573 Stan Shebs <stan@codesourcery.com>
8575 * psymtab.c (init_psymbol_list): Clarify the comment.
8577 2013-01-11 Yao Qi <yao@codesourcery.com>
8579 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
8580 (update_dprintf_command_list): Assert that 'printf_line' is
8581 non-null. Remove condition check.
8583 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8586 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
8588 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
8590 * tui/tui-source.h (tui_source_is_displayed): Likewise.
8592 2013-01-09 Anthony Green <green@moxielogic.com>
8594 * cp-abi.c (cplus_print_vtable): Don't return value from void
8596 * ada-lang.c (re_set_catch_assert): Ditto.
8598 2013-01-09 Doug Evans <dje@google.com>
8600 * symfile.h (quick_symbol_functions): Delete member
8601 pre_expand_symtabs_matching. All uses removed.
8602 * dwarf2read.c (dw2_lookup_symbol): Implement.
8603 (dw2_do_expand_symtabs_matching): Delete.
8604 (dw2_pre_expand_symtabs_matching): Delete.
8605 (struct dw2_symtab_iterator): New type.
8606 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
8607 (dw2_expand_symtabs_for_function): Rewrite.
8608 (dwarf2_gdb_index_functions): Update.
8609 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
8610 (psym_functions): Update.
8612 2013-01-09 Tom Tromey <tromey@redhat.com>
8614 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
8615 * configure: Rebuild.
8616 * configure.ac: Add somread.o to the build if BFD has SOM
8618 * somread.c: Include som/aout.h, not syms.h.
8619 (som_symtab_read): Use som_external_symbol_dictionary_record.
8620 Unpack records manually.
8621 (_initialize_somread): Declare.
8623 2012-01-08 Mike Frysinger <vapier@gentoo.org>
8625 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
8626 Cast return_address to 64bits.
8628 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
8630 * printcmd.c: Remove define of function output_command.
8631 * tracepoint.c: Remove extern of function output_command.
8632 * valprint.h: (output_command): New extern.
8634 2013-01-07 Tom Tromey <tromey@redhat.com>
8636 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
8638 (objc_language_defn): Use c_printchar, c_printstr,
8641 2013-01-07 Tom Tromey <tromey@redhat.com>
8645 * ada-valprint.c (printstr, print_field_values): Remove
8647 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
8649 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
8651 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
8652 * main.c (captured_main): Remove "epoch" argument.
8653 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
8654 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
8655 * p-valprint.c (pascal_object_print_value_fields): Remove
8657 * printcmd.c (print_command_1): Remove 'inspect' argument.
8658 (print_command, call_command): Update.
8659 (inspect_command): Remove.
8660 (_initialize_printcmd): Make "inspect" an alias for "print".
8661 * top.c (epoch_interface): Remove.
8662 * top.h (epoch_interface): Remove.
8663 * valprint.c (user_print_options): Update.
8664 (print_converted_chars_to_obstack): Remove "inspect_it" code.
8665 * valprint.h (struct value_print_options) <inspect_it>: Remove
8668 2013-01-04 Tom Tromey <tromey@redhat.com>
8670 * valprint.h (read_string): Add 'extern'.
8672 2013-01-07 Joel Brobecker <brobecker@adacore.com>
8674 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
8675 used to decide whether to define darwin_read_dyld_info or not.
8677 2013-01-03 Pierre Muller <muller@sourceware.org>
8679 * main.c (relocate_gdb_directory): Avoid calling stat function
8682 2013-01-03 Yao Qi <yao@codesourcery.com>
8684 * psymtab.c (fixup_psymbol_section): Update declaration.
8685 (fixup_psymbol_section): Remove code returning value.
8687 2013-01-03 Yao Qi <yao@codesourcery.com>
8689 * symtab.h: Remove some out of date comments.
8690 (enum exception_event_kind): Move it ...
8691 * breakpoint.c: ... here.
8693 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
8696 * darwin-nat.c (darwin_read_dyld_info): Only build if
8697 TASK_DYLD_INFO_COUNT is defined.
8698 (darwin_xfer_partial): Call darwin_read_dyld_info only if
8699 TASK_DYLD_INFO_COUNT is defined.
8701 2013-01-02 Tom Tromey <tromey@redhat.com>
8703 * symfile.h (struct ecoff_debug_hack): Remove.
8704 * objfiles.c: Don't include mdebugread.h.
8706 2013-01-02 Tom Tromey <tromey@redhat.com>
8708 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
8709 * configure.ac: Check for Mach-O support in BFD. Update
8711 * configure: Rebuild.
8713 2013-01-02 Tom Tromey <tromey@redhat.com>
8715 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
8716 * configure.ac: Use GDB_AC_CHECK_BFD.
8717 * configure: Rebuild.
8719 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
8721 * MAINTAINERS: Update my email.
8723 2013-01-01 Joel Brobecker <brobecker@adacore.com>
8725 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
8727 2013-01-01 Joel Brobecker <brobecker@adacore.com>
8729 * rs6000-nat.c (bss_data_overlap): New function.
8730 (vmap_symtab): Use it to adjust the .bss section's offset.
8732 2013-01-01 Joel Brobecker <brobecker@adacore.com>
8734 Update year range in copyright notice of all files.
8736 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
8738 * top.c (print_gdb_version): Update copyright year.
8740 For older changes see ChangeLog-2012.
8746 version-control: never