1 2014-09-25 Pedro Alves <palves@redhat.com>
3 * breakpoint.c (should_be_inserted): Add debug output.
5 2014-09-25 Pedro Alves <palves@redhat.com>
7 * infrun.c (stepping_past_instruction_at)
8 (clear_exit_convenience_vars): Point at infrun.h instead of
10 (handle_signal_stop): Fix typo.
12 2014-09-24 Yao Qi <yao@codesourcery.com>
14 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
17 2014-09-22 Gary Benson <gbenson@redhat.com>
19 * target.c (target_stop): Updated comment.
21 2014-09-22 Gary Benson <gbenson@redhat.com>
23 * target/target.h (target_stop_ptid): Renamed as...
24 (target_stop_and_wait): New function. Updated comment.
26 (target_continue_ptid): Renamed as...
27 (target_continue_no_signal): New function. Updated comment.
30 2014-09-22 Pedro Alves <palves@redhat.com>
32 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
34 * breakpoint.c (enum ugll_insert_mode): New enum.
35 (always_inserted_mode): Now a plain boolean.
36 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
37 (breakpoints_always_inserted_mode): Delete.
38 (breakpoints_should_be_inserted_now): New function.
39 (insert_breakpoints): Pass UGLL_INSERT to
40 update_global_location_list instead of calling
41 insert_breakpoint_locations manually.
42 (create_solib_event_breakpoint_1): New, factored out from ...
43 (create_solib_event_breakpoint): ... this.
44 (create_and_insert_solib_event_breakpoint): Use
45 create_solib_event_breakpoint_1 instead of calling
46 insert_breakpoint_locations manually.
47 (update_global_location_list): Change parameter type from boolean
48 to enum ugll_insert_mode. All callers adjusted. Adjust to use
49 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
50 (update_global_location_list_nothrow): Change parameter type from
51 boolean to enum ugll_insert_mode.
52 (_initialize_breakpoint): "breakpoint always-inserted" option is
53 now a boolean command. Update help text.
54 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
55 (breakpoints_should_be_inserted_now): New declaration.
56 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
57 Remove breakpoints_always_inserted_mode check.
58 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
59 * remote.c (remote_start_remote): Likewise.
61 2014-09-22 Pedro Alves <palves@redhat.com>
63 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
64 (insert_breakpoints): Don't call insert_breakpoint_locations here.
65 Instead, pass UGLL_INSERT to update_global_location_list.
66 (update_global_location_list): Change parameter type from boolean
67 to enum ugll_insert_mode. All callers adjusted. Adjust to use
68 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
69 (create_solib_event_breakpoint_1): New, factored out from ...
70 (create_solib_event_breakpoint): ... this.
71 (create_and_insert_solib_event_breakpoint): Use
72 create_solib_event_breakpoint_1 instead of calling
73 insert_breakpoint_locations manually.
74 (update_global_location_list): Handle UGLL_INSERT.
76 2014-09-22 Pedro Alves <palves@redhat.com>
78 * breakpoint.c (enum ugll_insert_mode): New enum.
79 (update_global_location_list)
80 (update_global_location_list_nothrow): Change parameter type from
81 boolean to enum ugll_insert_mode. All callers adjusted.
83 2014-09-19 Joel Brobecker <brobecker@adacore.com>
85 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
86 SystemTap support in GDB.
88 2014-09-19 Don Breazeal <donb@codesourcery.com>
90 * linux-nat.c (linux_handle_extended_wait): Call
91 linux_ptrace_get_extended_event.
92 (wait_lwp): Call linux_is_extended_waitstatus.
93 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
94 and linux_is_extended_waitstatus.
95 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
96 linux_ptrace_get_extended_event.
97 (linux_ptrace_get_extended_event): New function.
98 (linux_is_extended_waitstatus): New function.
99 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
100 (linux_is_extended_waitstatus): New declarations.
102 2014-09-19 Yao Qi <yao@codesourcery.com>
104 * dwarf2read.c (dwarf_decode_lines): Update declaration.
105 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
106 comments. Callers update.
107 (dwarf_decode_lines): Likewise.
108 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
109 comments. Skip the line table if 'lowpc' is greater than
110 'address'. Don't check
111 dwarf2_per_objfile->has_section_at_zero.
113 2014-09-18 Doug Evans <dje@google.com>
115 * NEWS: Mention new "producer" attribute of gdb.Symtab.
116 * python/py-symtab.c (stpy_get_producer): New function.
117 (symtab_object_getset): Add "producer" attribute.
119 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
122 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
123 (do_captured_read_memory_integer): Remove.
124 (safe_read_memory_integer): Use target_read_memory directly instead
125 of catching errors in do_captured_read_memory_integer.
127 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
129 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
132 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
134 * objc-lang.c (find_implementation_from_class): Remove dead code.
136 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
139 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
140 "fprintf_unfiltered (gdb_stdlog...)".
142 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
145 * breakpoint.h (struct watchpoint): New fields val_bitpos and
147 * breakpoint.c (watch_command_1): Use these fields to retain
148 bitfield information.
149 (extract_bitfield_from_watchpoint_value): New function.
150 (watchpoint_check): Use it.
151 (update_watchpoint): Use it. Optimize the address and length of a
152 HW watchpoint pointing to a bitfield.
153 * value.h (unpack_value_bitfield): New prototype.
154 * value.c (unpack_value_bitfield): Make extern.
156 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
158 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
160 * gnu-nat.c (inf_threads): New function.
161 * gnu-nat.h (inf_threads_ftype): New typedef.
162 (inf_threads): New declaration.
163 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
164 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
165 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
166 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
167 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
168 (i386_gnu_dr_get_control): New functions.
169 (reg_addr): New structure.
170 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
171 i386 debugging register hooks.
172 * NEWS: Mention this.
174 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
176 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
177 vector data transfer instructions.
178 (arm_record_coproc_data_proc): Updated.
180 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
182 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
183 arm_record_exreg_ld_st_insn.
184 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
187 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
189 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
190 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
191 processing instructions.
193 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
195 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
196 for advance SIMD struct ld/st insn.
197 (thumb2_record_decode_insn_handler): Replace stub handler with
198 thumb2_record_asimd_struct_ld_st.
200 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
202 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
203 for asimd, vfp and coprocessor insns.
204 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
205 and coprocessor insns.
206 (thumb2_record_coproc_insn): New function.
207 (thumb2_record_decode_insn_handler): Update coprocessor insns record
209 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
212 2014-09-13 Doug Evans <xdje42@gmail.com>
214 * NEWS: Mention new "queue-signal" command.
215 * infcmd.c (queue_signal_command): New function.
216 (_initialize_infcmd): Add new queue-signal command.
218 2014-09-13 Doug Evans <xdje42@gmail.com>
220 * linux-nat.c (wait_lwp): Add debugging printf.
221 (linux_nat_wait_1): Ditto.
223 2014-09-12 Pedro Alves <palves@redhat.com>
225 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
226 (create_and_insert_solib_event_breakpoint): New functions.
227 * breakpoint.h (create_and_insert_solib_event_breakpoint)
228 (remove_solib_event_breakpoints_at_next_stop): New declarations.
229 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
230 (remove_dbx_link_breakpoint): Delete function.
231 (insert_dbx_link_bpt_in_file): Use
232 create_and_insert_solib_event_breakpoint instead of
233 deprecated_insert_raw_breakpoint.
234 (procfs_wait): Don't check whether we hit __dbx_link here.
235 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
237 * solib-irix.c (base_breakpoint): Delete global.
238 (disable_break): Delete function.
239 (enable_break): Use create_solib_event_breakpoint
240 instead of deprecated_insert_raw_breakpoint.
241 (irix_solib_handle_event): New function.
242 (irix_solib_create_inferior_hook): Don't run the target or disable
243 the mapping-complete breakpoint here.
244 (_initialize_irix_solib): Install irix_solib_handle_event as
245 so_ops->handle_event hook.
247 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
248 Ulrich Weigand <uweigand@de.ibm.com>
251 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
252 instead of read_memory_unsigned_integer.
254 2014-09-12 Gary Benson <gbenson@redhat.com>
256 * nat/linux-waitpid.c: Include common-defs.h.
257 [GDBSERVER]: Add FIXME comment.
258 [!GDBSERVER]: Don't include defs.h or signal.h.
259 (linux_debug) [!GDBSERVER]: Remove empty block.
261 2014-09-12 Gary Benson <gbenson@redhat.com>
263 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
264 Don't include defs.h or server.h.
266 2014-09-12 Gary Benson <gbenson@redhat.com>
268 * nat/linux-btrace.c: Include common-defs.h.
269 Don't include defs.h, server.h or gdbthread.h.
270 * nat/linux-btrace.h (struct target_ops): New forward declaration.
272 2014-09-12 Gary Benson <gbenson@redhat.com>
274 * common/agent.c: Include common-defs.h.
275 Don't include defs.h or server.h.
276 * common/buffer.c: Likewise.
277 * common/common-debug.c: Likewise.
278 * common/common-utils.c: Likewise.
279 * common/errors.c: Likewise.
280 * common/filestuff.c: Likewise.
281 * common/format.c: Likewise.
282 * common/gdb_vecs.c: Likewise.
283 * common/print-utils.c: Likewise.
284 * common/ptid.c: Likewise.
285 * common/rsp-low.c: Likewise.
286 * common/signals.c: Likewise.
287 * common/vec.c: Likewise.
288 * common/xml-utils.c: Likewise.
289 * nat/linux-osdata.c: Likewise.
290 * nat/linux-procfs.c: Likewise.
291 * nat/linux-ptrace.c: Likewise.
292 * nat/mips-linux-watch.c: Likewise.
293 * target/waitstatus.c: Likewise.
295 2014-09-12 Tom Tromey <tromey@redhat.com>
296 Gary Benson <gbenson@redhat.com>
298 * common/common-regcache.h: New file.
299 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
300 * regcache.h: Include common-regcache.h.
301 (regcache_read_pc): Don't declare.
302 * regcache.c (get_thread_regcache_for_ptid): New function.
303 * nat/linux-btrace.c: Don't include regcache.h.
304 Include common-regcache.h.
305 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
307 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
309 * regcache.h (struct regset): Declare.
311 2014-09-11 Pedro Alves <palves@redhat.com>
314 * main.c: Include "infrun.h".
315 (catch_command_errors, catch_command_errors_const): Wait for the
316 foreground command to complete.
317 * top.c (maybe_wait_sync_command_done): New function, factored out
319 (maybe_wait_sync_command_done): ... here.
320 * top.h (maybe_wait_sync_command_done): New declaration.
322 2014-09-11 Tom Tromey <tromey@redhat.com>
323 Gary Benson <gbenson@redhat.com>
325 * common/symbol.h: New file.
326 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
327 * minsyms.c (find_minimal_symbol_address): New function.
328 * common/agent.c: Include common/symbol.h.
329 [!GDBSERVER]: Don't include objfiles.h.
330 (agent_look_up_symbols): Use find_minimal_symbol_address.
332 2014-09-11 Gary Benson <gbenson@redhat.com>
334 * target/target.h (target_stop_ptid, target_continue_ptid):
336 * target.c (target_stop_ptid, target_continue_ptid): New
338 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
339 (agent_run_command): Always use target_stop_ptid and
340 target_continue_ptid.
342 2014-09-11 Tom Tromey <tromey@redhat.com>
343 Gary Benson <gbenson@redhat.com>
345 * target/target.h: New file.
346 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
347 * target.h: Include target/target.h.
348 (target_read_memory, target_write_memory): Don't declare.
349 * target.c (target_read_uint32): New function.
350 * common/agent.c: Include target/target.h.
351 [!GDBSERVER]: Don't include target.h.
352 (helper_thread_id): Type changed to uint32_t.
353 (agent_get_helper_thread_id): Use target_read_uint32.
354 (agent_run_command): Always use target_read_memory and
356 (agent_capability): Type changed to uint32_t.
357 (agent_capability_check): Use target_read_uint32.
359 2014-09-11 Gary Benson <gbenson@redhat.com>
361 * common/common-debug.h (show_debug_regs): Declare.
362 * common/common-debug.c (show_debug_regs): Define.
363 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
364 all uses with show_debug_regs. Replace all uses that considered
365 debug_hw_points as a multi-value integer with straight boolean
367 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
368 with show_debug_regs.
369 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
370 all uses with show_debug_regs.
371 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
372 uses with show_debug_regs.
374 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
376 * findvar.c (address_from_register): Handle targets requiring
377 a special conversion routine even for plain pointer types.
379 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
381 * rs6000-nat.c (exec_one_dummy_insn): Remove.
382 (store_register): Do not call exec_one_dummy_insn.
384 2014-09-10 Joel Brobecker <brobecker@adacore.com>
386 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
387 dereference it first. Use value_enclosing_type instead of
389 (ada_array_length): Likewise.
391 2014-09-10 Joel Brobecker <brobecker@adacore.com>
393 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
394 Adjust function implementation and documentation accordingly.
395 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
396 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
397 Update call to ada_value_ptr_subscript.
399 2014-09-10 Joel Brobecker <brobecker@adacore.com>
401 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
402 instead of VAL's type.
404 2014-09-10 Joel Brobecker <brobecker@adacore.com>
406 * amd64-linux-nat.c: Add <sys/uio.h> #include.
408 2014-09-09 Doug Evans <xdje42@gmail.com>
411 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
412 last parameter to pkg-config, not first.
413 * configure.ac: Pass --with-guile provided pkg-config path to
414 GDB_GUILE_PROGRAM_NAMES.
415 * configure: Regenerate.
417 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
419 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
422 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
424 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
425 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
426 the list of sections determining GDB_OSABI_IRIX.
428 2014-09-09 James Hogan <james.hogan@imgtec.com>
430 * MAINTAINERS (Write After Approval): Add "James Hogan".
432 2014-09-09 James Hogan <james.hogan@imgtec.com>
434 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
436 2014-09-09 Joel Brobecker <brobecker@adacore.com>
438 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
440 2014-09-08 Doug Evans <xdje42@gmail.com>
443 * guile.c: #include <signal.h>.
444 (_initialize_guile): Block SIGCHLD while initializing Guile.
446 Replaces the following, which is reverted.
448 2014-07-26 Doug Evans <xdje42@gmail.com>
451 * configure.ac: Add check for header gc/gc.h.
452 Add check for function setenv.
453 * configure: Regenerate.
454 * config.in: Regenerate.
455 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
457 2014-09-08 Doug Evans <xdje42@gmail.com>
459 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
460 with named constant. Fix style of pointer comparison.
461 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
463 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
466 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
467 decide whether we display the command on "show user".
468 * cli/cli-script.c (show_user_1): Only verify cmdlines after
469 printing command name.
470 * cli/cli-decode.h (cli_user_command_p): Declare new function.
471 * cli/cli-decode.c (cli_user_command_p): Create helper function
472 to verify whether cmd_list_element is a user-defined command.
474 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
477 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
478 Fix goto out of TRY_CATCH.
480 2014-09-06 Doug Evans <xdje42@gmail.com>
481 Tom Tromey <tromey@redhat.com>
484 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
485 $_any_caller_matches.
486 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
487 * python/lib/gdb/function/caller_is.py: New file.
489 2014-09-06 Doug Evans <xdje42@gmail.com>
491 * infcmd.c (program_info): Fix typo.
493 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
496 * stap-probe.c (stap_parse_single_operand): Delete unused variable
497 'number'. New variable 'has_digit'. Rewrite code to deal with
498 subexpressions on SDT probes.
500 2014-09-04 Pedro Alves <palves@redhat.com>
502 * c-exp.y (parse_number): Skip handling base-switching prefixes if
503 the input is only one character long.
505 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
508 * f-valprint.c (f_val_print): Specify the correct print option to
509 use when printing integer values.
511 2014-09-04 Gary Benson <gbenson@redhat.com>
513 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
514 Remove code to cope with LWPs wrapped as PIDs.
515 Add assertions to ensure no wrapped LWPs are passed.
517 2014-09-04 Pedro Alves <palves@redhat.com>
519 * value.c (value_ranges_copy_adjusted): New function, factored out
521 (value_contents_copy_raw): ... here.
522 (unpack_value_bits_as_long_1): Rename back to ...
523 (unpack_bits_as_long): ... this. Remove 'original_value' and
524 'result' parameters. Change return type to LONGEST.
525 (unpack_value_bits_as_long): Delete.
526 (unpack_value_field_as_long_1): Delete.
527 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
528 (unpack_value_bitfield): New function.
529 (value_field_bitfield): Reimplement using unpack_value_bitfield.
530 (value_fetch_lazy): Use unpack_value_bitfield.
531 * value.h (unpack_value_bits_as_long): Delete declaration.
533 2014-09-03 Sasha Smundak <asmundak@google.com>
535 * python/py-frame.c (frapy_read_register): New function.
537 2014-09-03 James Hogan <james.hogan@imgtec.com>
539 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
540 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
542 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
545 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
547 (add_cmd): Set "completer_handle_brkchars" to NULL.
548 * cli/cli-decode.h (struct cmd_list_element)
549 <completer_handle_brkchars>: New field.
550 * command.h (completer_ftype_void): New typedef.
551 (set_cmd_completer_handle_brkchars): New prototype.
552 * completer.c (set_gdb_completion_word_break_characters): New
554 (complete_line_internal): Call "completer_handle_brkchars"
555 callback from command.
556 * completer.h: Include "command.h".
557 (set_gdb_completion_word_break_characters): New prototype.
558 * python/py-cmd.c (cmdpy_completer_helper): New function.
559 (cmdpy_completer_handle_brkchars): New function.
560 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
561 (cmdpy_init): Set completer_handle_brkchars to
562 cmdpy_completer_handle_brkchars.
564 2014-09-03 Gary Benson <gbenson@redhat.com>
566 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
567 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
568 Loop conditions changed to equivalent form.
569 (struct x86_debug_reg_state): Updated dr_ref_count comment.
570 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
571 ALL_DEBUG_ADDRESS_REGISTERS.
573 2014-09-03 Joel Brobecker <brobecker@adacore.com>
575 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
578 2014-09-02 Doug Evans <dje@google.com>
580 * typeprint.c (find_global_typedef): Fix comment.
582 2014-09-02 Gary Benson <gbenson@redhat.com>
584 * i386-nat.h: Renamed as...
585 * x86-nat.h: New file. All type, function and variable name
586 prefixes changed from "i386_" to "x86_". All references updated.
587 * i386-nat.c: Renamed as...
588 * x86-nat.c: New file. All type, function and variable name
589 prefixes changed from "i386_" to "x86_". All references updated.
590 * common/i386-xstate.h: Renamed as...
591 * common/x86-xstate.h: New file. All type, function and variable
592 name prefixes changed from "i386_" to "x86_". All references
594 * nat/i386-cpuid.h: Renamed as...
595 * nat/x86-cpuid.h: New file. All type, function and variable name
596 prefixes changed from "i386_" to "x86_". All references updated.
597 * nat/i386-gcc-cpuid.h: Renamed as...
598 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
599 name prefixes changed from "i386_" to "x86_". All references
601 * nat/i386-dregs.h: Renamed as...
602 * nat/x86-dregs.h: New file. All type, function and variable name
603 prefixes changed from "i386_" to "x86_". All references updated.
604 * nat/i386-dregs.c: Renamed as...
605 * nat/x86-dregs.c: New file. All type, function and variable name
606 prefixes changed from "i386_" to "x86_". All references updated.
608 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
610 * varobj.c (_initialize_varobj): Move to the end of file.
612 2014-08-29 Gary Benson <gbenson@redhat.com>
614 * common/common-exceptions.h: New file.
615 * common/common-exceptions.c: Likewise.
616 * Makefile.in (SFILES): Add common/common-exceptions.c.
617 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
618 (COMMON_OBS): Add common-exceptions.o.
619 (common-exceptions.o): New rule.
620 * exceptions.h (common-exceptions.h): Include.
621 (gdb_setjmp.h): Do not include.
622 (return_reason): Moved to common-exceptions.h.
623 (enum return_reason): Likewise.
624 (RETURN_MASK): Likewise.
625 (typedef return_mask): Likewise.
626 (enum errors): Likewise.
627 (struct gdb_exception): Likewise.
628 (exceptions_state_mc_init): Likewise.
629 (exceptions_state_mc_action_iter): Likewise.
630 (exceptions_state_mc_action_iter_1): Likewise.
631 (TRY_CATCH): Likewise.
632 (throw_exception): Likewise.
633 (throw_verror): Likewise.
634 (throw_vquit): Likewise.
635 (throw_error): Likewise.
636 (throw_quit): Likewise.
637 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
638 (enum catcher_action): Likewise.
639 (struct catcher): Likewise.
640 (current_catcher): Likewise.
641 (catcher_list_size): Likewise.
642 (exceptions_state_mc_init): Likewise.
643 (catcher_pop): Likewise.
644 (exceptions_state_mc): Likewise.
645 (exceptions_state_mc_action_iter): Likewise.
646 (exceptions_state_mc_action_iter_1): Likewise.
647 (throw_exception): Likewise.
648 (exception_messages): Likewise.
649 (exception_messages_size): Likewise.
650 (throw_it): Likewise.
651 (throw_verror): Likewise.
652 (throw_vquit): Likewise.
653 (throw_error): Likewise.
654 (throw_quit): Likewise.
655 (prepare_to_throw_exception): New function.
657 2014-08-29 Gary Benson <gbenson@redhat.com>
659 * common/gdb_setjmp.h: New file.
660 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
661 * configure.ac: Move sigsetjmp check...
662 * common/common.m4: ...here.
663 * configure: Regenerate.
664 * cp-support.c (SIGJMP_BUF): Delete.
665 (SIGSETJMP): Likewise.
666 (SIGLONGJMP): Likewise.
667 * exceptions.h (gdb_setjmp.h): Include.
668 (setjmp.h): Do not include.
669 (EXCEPTIONS_SIGJMP_BUF): Delete.
670 (EXCEPTIONS_SIGSETJMP): Likewise.
671 (EXCEPTIONS_SIGLONGJMP): Likewise.
672 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
674 * exceptions.c: Likewise.
676 2014-08-29 Gary Benson <gbenson@redhat.com>
678 * cleanups.h: Moved to...
679 * common/cleanups.h: New file.
680 * cleanups.c: Moved to...
681 * common/cleanups.c: New file. Include common-defs.h and
682 cleanups.h. Do not include defs.h.
683 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
684 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
685 (cleanups.o): New rule.
687 2014-08-29 Gary Benson <gbenson@redhat.com>
689 * common/errors.h (internal_warning): New declaration.
690 (internal_vwarning): Likewise.
691 * common/errors.c (internal_warning): New function.
692 * utils.h (internal_warning): Don't declare.
693 (internal_vwarning): Likewise.
694 * utils.c (internal_warning): Removed.
696 2014-08-29 Gary Benson <gbenson@redhat.com>
698 * main.c (captured_main): Use warning during startup.
699 Prefix startup warning messages with command name.
701 2014-08-29 Gary Benson <gbenson@redhat.com>
703 * main.c (captured_main): Handle usage errors with error.
705 2014-08-29 Gary Benson <gbenson@redhat.com>
707 * go32-nat.c (go32_create_inferior): Replace a fprintf/
708 exit pair with a call to error. Wrap the message with _().
710 2014-08-29 Gary Benson <gbenson@redhat.com>
712 * main.c (captured_main): Replace a fprintf/exit
713 pair with a call to error. Wrap the message with _().
715 2014-08-29 Gary Benson <gbenson@redhat.com>
717 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
718 pairs with calls to error. Wrap the message with _().
720 2014-08-29 Gary Benson <gbenson@redhat.com>
722 * utils.c (vwarning): Protect calls to target_terminal_ours
725 2014-08-29 Gary Benson <gbenson@redhat.com>
727 * exceptions.c (print_flush): Protect calls to
728 target_terminal_ours and wrap_here.
730 2014-08-29 Gary Benson <gbenson@redhat.com>
732 * utils.h (filtered_printing_initialized): New declaration.
733 * utils.c (abort_with_message): New function.
734 (internal_vproblem): Use abort_with_message for first level
735 recursive internal problems, and if gdb_stderr is not set up.
736 Protect calls to target_terminal_ours, begin_line and query.
738 2014-08-28 Doug Evans <dje@google.com>
740 * symtab.c (in_prologue): Move definition to better spot.
741 (skip_prologue_using_sal): Ditto.
743 2014-08-28 Doug Evans <dje@google.com>
745 * symtab.c (find_function_start_sal): Move definition to better spot.
747 2014-08-28 Yao Qi <yao@codesourcery.com>
749 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
750 found_stack_adjust in forward scan. Remove condition check
751 on found_stack_adjust which is always true. Indent the code.
753 2014-08-28 Yao Qi <yao@codesourcery.com>
755 * dwarf2read.c (dwarf_decode_lines): Update declaration.
756 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
757 (dwarf_decode_lines): Remove argument
758 want_line_info. Remove condition check on want_line_info.
761 2014-08-27 Doug Evans <dje@google.com>
763 * dwarf2read.c (dwarf_record_line): Fix typo.
765 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
767 * target.h (struct target_ops::to_terminal_save_ours): Remove
769 (target_terminal_save_ours): Remove macro.
770 * target-delegates.c: Regenerate.
771 * inf-child.c (inf_child_target): Don't set the nonexistent
772 field to_terminal_save_ours.
773 * inferior.h (child_terminal_save_ours): Remove declaration.
774 * terminal.h (gdb_save_tty_state): New declaration.
775 * inflow.c (child_terminal_save_ours): Rename to ...
776 (gdb_save_tty_state): ... this.
777 * tui/tui.c: Include terminal.h.
778 (tui_enable): Use gdb_save_tty_state instead of
779 target_terminal_save_ours.
780 (tui_disable): Likewise.
782 2014-08-25 Doug Evans <dje@google.com>
784 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
785 Pass NULL instead of 0 for context pointer.
787 2014-08-25 Yao Qi <yao@codesourcery.com>
789 * dwarf2read.c: Fix grammatical error.
791 2014-08-24 Yao Qi <yao@codesourcery.com>
793 * dwarf2read.c (scan_partial_symbols): Update comments.
794 Rename argument 'need_pc' with 'set_addrmap'.
795 (add_partial_namespace): Rename argument 'need_pc' with
797 (add_partial_module): Likewise.
798 (add_partial_subprogram): Likewise. Update comments.
799 (dwarf2_name): Fix typo.
801 2014-08-22 Doug Evans <dje@google.com>
804 * dwarf2read.c (dwarf_record_line_p): New function.
805 (dwarf_decode_lines_1): Ignore subsequent line number entries
806 for the same line if any entry had a non-zero discriminator.
808 2014-08-22 Doug Evans <dje@google.com>
810 * buildsym.h (record_line_ftype): New typedef.
811 (record_line): Use it.
812 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
813 (dwarf_decode_lines_1): Call them.
815 2014-08-22 Yao Qi <yao@codesourcery.com>
817 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
818 (ctf_end): Remove code.
820 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
822 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
823 (linux_make_corefile_notes): call update_thread_list, protected against
826 2014-08-21 Pedro Alves <palves@redhat.com>
828 * infcmd.c (attach_command): Remove comment.
830 2014-08-21 Bin Cheng <bin.cheng@arm.com>
832 * aarch64-linux-nat.c (dr_changed_t): Change the type from
833 unsigned LONGEST to ULONGEST.
835 2014-08-20 Pedro Alves <palves@redhat.com>
837 * Makefile.in (check-read1): New rule.
839 2014-08-20 Joel Brobecker <brobecker@adacore.com>
841 * value.c (value_from_contents_and_address): Strip resolved_type's
842 typedef layers before checking its TYPE_DATA_LOCATION.
844 2014-08-20 Pedro Alves <palves@redhat.com>
846 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
848 2014-08-20 Yao Qi <yao@codesourcery.com>
850 * amd64-tdep.c (amd64_classify): Add a blank line after the
851 example. Move "*/" to a new line.
852 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
853 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
854 * dwarf2read.c (psymtab_include_file_name): Likewise.
856 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
857 Pedro Alves <palves@redhat.com>
861 * ada-lang.c (coerce_unspec_val_to_type): Use
862 value_contents_copy_raw.
863 * ada-valprint.c (val_print_packed_array_elements): Adjust.
864 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
865 * cp-valprint.c (cp_print_value_fields): Let the common printing
866 code handle optimized out values.
867 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
868 * d-valprint.c (dynamic_array_type): Use
869 value_bits_any_optimized_out.
870 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
871 check_any_valid fields.
872 (check_pieced_value_bits): Delete and inline ...
873 (check_pieced_synthetic_pointer): ... here.
874 (check_pieced_value_validity): Delete.
875 (check_pieced_value_invalid): Delete.
876 (pieced_value_funcs): Remove check_validity and check_any_valid
878 (read_pieced_value): Use mark_value_bits_optimized_out.
879 (write_pieced_value): Switch to use
880 mark_value_bytes_optimized_out.
881 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
882 of assuming the whole value is optimized out.
883 * findvar.c (read_frame_register_value): Remove special handling
884 of optimized out registers.
885 (value_from_register): Use mark_value_bytes_optimized_out.
886 * frame-unwind.c (frame_unwind_got_optimized): Use
887 mark_value_bytes_optimized_out.
888 * jv-valprint.c (java_value_print): Adjust.
889 (java_print_value_fields): Let the common printing code handle
890 optimized out values.
891 * mips-tdep.c (mips_print_register): Remove special handling of
892 optimized out registers.
893 * opencl-lang.c (lval_func_check_validity): Delete.
894 (lval_func_check_any_valid): Delete.
895 (opencl_value_funcs): Remove check_validity and check_any_valid
897 * p-valprint.c (pascal_object_print_value_fields): Let the common
898 printing code handle optimized out values.
899 * stack.c (read_frame_arg): Remove special handling of optimized
900 out values. Fetch both VAL and ENTRYVAL before comparing
901 contents. Adjust to value_available_contents_eq rename.
902 * valprint.c (valprint_check_validity)
903 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
904 (val_print_array_elements): Adjust.
905 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
906 (value_bits_any_optimized_out): New function.
907 (value_entirely_covered_by_range_vector): New function, factored
908 out from value_entirely_unavailable.
909 (value_entirely_unavailable): Reimplement.
910 (value_entirely_optimized_out): New function.
911 (insert_into_bit_range_vector): New function, factored out from
912 mark_value_bits_unavailable.
913 (mark_value_bits_unavailable): Reimplement.
914 (struct ranges_and_idx): New struct.
915 (find_first_range_overlap_and_match): New function, factored out
916 from value_available_contents_bits_eq.
917 (value_available_contents_bits_eq): Rename to ...
918 (value_contents_bits_eq): ... this. Check both unavailable
919 contents and optimized out contents.
920 (value_available_contents_eq): Rename to ...
921 (value_contents_eq): ... this.
922 (allocate_value_lazy): Remove reference to the old optimized_out
924 (allocate_optimized_out_value): Use
925 mark_value_bytes_optimized_out.
926 (require_not_optimized_out): Adjust to check whether the
927 optimized_out vec is empty.
928 (ranges_copy_adjusted): New function, factored out from
929 value_contents_copy_raw.
930 (value_contents_copy_raw): Also copy the optimized out ranges.
931 Assert the destination ranges aren't optimized out.
932 (value_contents_copy): Update comment, remove call to
933 require_not_optimized_out.
934 (value_contents_equal): Adjust to check whether the optimized_out
936 (set_value_optimized_out, value_optimized_out_const): Delete.
937 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
939 (value_entirely_optimized_out, value_bits_valid): Delete.
940 (value_copy): Take a VEC copy of the 'optimized_out' field.
941 (value_primitive_field): Remove special handling of optimized out.
942 (value_fetch_lazy): Assert that lazy values have no unavailable
943 regions. Use value_bits_any_optimized_out. Remove some special
944 handling for optimized out values.
945 * value.h: Add intro comment about <optimized out> and
947 (struct lval_funcs): Remove check_validity and check_any_valid
949 (set_value_optimized_out, value_optimized_out_const): Remove.
950 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
952 (value_bits_any_optimized_out): New declaration.
953 (value_bits_valid): Delete declaration.
954 (value_available_contents_eq): Rename to ...
955 (value_contents_eq): ... this, and extend comments.
957 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
959 Fix -fsanitize=address on unreadable inferior strings.
960 * valprint.c (val_print_string): Fix access before BUFFER.
962 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
964 * target.c (target_struct_size): Remove.
965 (target_struct_allocsize): Remove.
966 (DEFAULT_ALLOCSIZE): Remove.
967 (target_ops_p): New typedef.
968 (DEF_VEC_P (target_ops_p)): New vector type.
969 (target_structs): Change type to VEC (target_ops_p).
970 (add_target_with_completer): Replace "push" code by VEC_safe_push.
971 (find_default_run_target): Rewrite for loop following changes to
974 2014-08-19 Joel Brobecker <brobecker@adacore.com>
976 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
977 Adjust code accordingly. Adjust function description comment.
979 2014-08-19 Yao Qi <yao@codesourcery.com>
981 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
984 2014-08-19 Alan Modra <amodra@gmail.com>
986 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
987 * config.in: Regenerate.
988 * configure: Regenerate.
990 2014-08-19 Tom Tromey <tromey@redhat.com>
991 Gary Benson <gbenson@redhat.com>
993 * common/common-debug.h: New file.
994 * common/common-debug.c: Likewise.
996 * Makefile.in (SFILES): Add common/common-debug.c.
997 (HFILES_NO_SRCDIR): Add common/common-debug.h.
998 (COMMON_OBS): Add common-debug.o and debug.o.
999 (common-debug.o): New rule.
1000 * common/common-defs.h: Include common-debug.h.
1001 * common/agent.c (debug_agent_printf): New function.
1002 (DEBUG_AGENT): Redefine.
1003 * nat/i386-dregs.c (debug_printf): Undefine.
1005 2014-08-19 Gary Benson <gbenson@redhat.com>
1007 * common/common-defs.h: Include print-utils.h.
1008 * utils.h: Do not include print-utils.h.
1010 2014-08-19 Tom Tromey <tromey@redhat.com>
1011 Gary Benson <gbenson@redhat.com>
1013 * common/common-types.h: New file.
1014 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1015 * common/common-defs.h: Include common-types.h.
1016 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1019 2014-08-19 Tom Tromey <tromey@redhat.com>
1020 Gary Benson <gbenson@redhat.com>
1022 * common/errors.h: New file.
1023 * common/errors.c: Likewise.
1024 * Makefile.in (SFILES): Add common/errors.c.
1025 (HFILES_NO_SRCDIR): Add common/errors.h.
1026 (COMMON_OBS): Add errors.o.
1027 (errors.o): New rule.
1028 * common/common-defs.h: Include errors.h.
1029 * utils.h (perror_with_name, error, verror, warning, vwarning):
1031 * common/common-utils.h: (malloc_failure, internal_error):
1034 2014-08-19 Gary Benson <gbenson@redhat.com>
1036 * utils.c (internal_vproblem): Always print the message.
1038 2014-08-18 Doug Evans <dje@google.com>
1040 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1042 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1044 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1045 Return 0 if TYPE is dynamic.
1046 (print_range): Add handling of dynamic ranges.
1048 2014-08-18 Keven Boell <keven.boell@intel.com>
1049 Joel Brobecker <brobecker@adacore.com>
1051 * gdbtypes.h (struct main_type): Add field "data_location".
1052 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1053 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1054 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1055 a dynamic data location.
1056 (resolve_dynamic_type): Add DW_AT_data_location handling.
1057 (copy_recursive, copy_type): Copy the data_location information
1059 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1060 * value.c (value_from_contents_and_address): Add
1061 DW_AT_data_location handling.
1063 2014-08-18 Keven Boell <keven.boell@intel.com>
1064 Joel Brobecker <brobecker@adacore.com>
1066 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1067 field "get_object_address".
1068 * dwarf2expr.c (execute_stack_op): Add handling for
1069 DW_OP_push_object_address.
1070 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1071 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1072 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1073 (dwarf_expr_get_obj_addr): New function.
1074 (dwarf_expr_ctx_funcs): Add get_object_address field.
1075 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1076 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1077 (dwarf2_evaluate_property): Add parameter "address". Use it.
1078 (needs_get_obj_addr): New function.
1079 (needs_frame_ctx_funcs): Add get_object_address field.
1080 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1081 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1082 (resolve_dynamic_array): Likewise.
1084 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1086 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1087 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1088 fixed value for records and unions for which some GNAT encodings
1091 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1093 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1094 rewrite to avoid "else if" and "else" constructs. Should be
1095 a no-op in practice.
1097 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1099 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1102 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1105 * eval.c: Update all calls to find_overload_match.
1106 * valarith.c: Likewise.
1107 (value_user_defined_cpp_op, value_user_defined_op): New
1108 argument NOSIDE. Update all callers.
1109 * valops.c (find_overload_match): New argument NOSIDE.
1110 * value.h (find_overload_match): Update signature.
1112 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1114 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1115 'items' methods instead of 'iteritems' method on dictionaries.
1117 2014-08-15 Doug Evans <dje@google.com>
1119 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1122 2014-08-15 Doug Evans <dje@google.com>
1124 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1126 2014-08-15 Doug Evans <dje@google.com>
1128 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1130 2014-08-15 Doug Evans <dje@google.com>
1132 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1135 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1137 * dcache.h: Include target.h, to avoid compile time warnings.
1139 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1141 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1142 frame_info" partial declaration.
1143 * gdbarch.h: Regenerate.
1145 2014-08-15 Yao Qi <yao@codesourcery.com>
1147 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1148 Add parameter 'decode_for_pst_p'. Callers update.
1150 2014-08-13 Yao Qi <yao@codesourcery.com>
1153 * configure.ac: Use local variable 'pos'.
1154 * configure: Regenerated.
1156 2014-08-11 Doug Evans <dje@google.com>
1158 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1159 message, it is redundant with "Reading symbols from ..." message.
1161 2014-08-10 Doug Evans <xdje42@gmail.com>
1163 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1165 2014-08-09 Yao Qi <yao@codesourcery.com>
1168 * remote.c (remote_xfer_partial): Remove dead code.
1170 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1172 * ia64-linux-tdep.c: Include "regset.h".
1173 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1174 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1175 (ia64_linux_supply_fpregset): New function.
1176 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1177 (ia64_linux_regset_from_core_section): New function.
1178 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1181 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1183 * m68klinux-tdep.c: Include "regset.h".
1184 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1185 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1186 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1187 (m68k_linux_regset_from_core_section): New function.
1188 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1191 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1193 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1194 function. Move logic to...
1195 (tilegx_linux_regmap): ... this new register map.
1196 (tilegx_linux_regset): Refer to register map, replace supply
1197 method by regcache_supply_regset, and add collect method.
1198 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1199 TILEGX_FIRST_EASY_REGNUM.
1201 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1203 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1204 that calls regcache_supply_regset and handles the EPC register
1205 separately. Move main logic to...
1206 (score7_linux_gregmap): ... this new register map.
1207 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1208 (score7_linux_gregset): Refer to register map. Add collect method.
1209 (score7_linux_regset_from_core_section): Replace
1210 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1211 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1212 (struct regset): Delete unused forward declaraction.
1213 (struct pt_regs): Delete structure definition.
1214 (elf_gregset_t): Delete typedef.
1216 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1218 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1219 (nios2_core_regset): Add collect method.
1221 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1223 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1224 platform-independent and don't write to read-only input buffer.
1225 (m32r_linux_collect_gregset): New function.
1226 (m32r_linux_gregset): Add collect method.
1228 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1230 * hppa-linux-tdep.c (greg_map): Rename to...
1231 (hppa_linux_gregmap): ... this. Also convert to
1232 regcache_map_entry format.
1233 (hppa_linux_supply_regset): Delete function.
1234 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1235 (hppa_linux_fpregmap): ... this new register map.
1236 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1237 register map, replace supply method by regcache_supply_regset, and
1238 add collect method regcache_collect_regset.
1240 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1242 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1243 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1244 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1245 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1246 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1247 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1248 (frv_linux_supply_gregset): Replace main logic by call to
1249 regcache_supply_regset, but keep clearing gr32-gr63.
1250 (frv_linux_supply_fpregset): Delete function.
1251 (frv_linux_gregset): Refer to appropriate register map and add
1252 regcache_collect_regset as the collect method.
1253 (frv_linux_fpregset): Likewise. Also exchange the supply method
1254 by regcache_supply_regset.
1256 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1258 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1259 by call to alpha_supply_int_regs.
1260 (alpha_linux_collect_gregset): New function.
1261 (alpha_linux_supply_fpregset): Replace logic by call to
1262 alpha_supply_fp_regs.
1263 (alpha_linux_collect_fpregset): New function.
1264 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1266 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1268 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1269 by call to regcache_collect_regset.
1270 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1271 instead of aarch64_linux_supply_gregset/_fpregset.
1272 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1273 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1274 header file instead.
1275 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1276 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1277 functions. Move logic to ...
1278 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1280 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1281 refer to new register maps, replace *_regset_from_core by
1282 regcache_supply_regset, and also use regcache_collect_regset.
1283 * aarch64-linux-tdep.h: Include "regset.h".
1284 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1286 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1287 macros, moved from C source file.
1288 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1289 variable declarations.
1291 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1293 * s390-linux-nat.c: Include "regset.h".
1294 (regmap_gregset): Delete macro.
1295 (s390_64_regmap_gregset): New register map for
1296 regcache_supply/_collect_regset.
1297 (s390_64_gregset): New regset.
1298 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1299 (regmap_fpregset): Delete macro.
1300 (s390_native_supply, s390_native_collect): Delete functions.
1301 (supply_gregset, fill_gregset): Replace s390-specific regmap
1302 handling by a call to regcache_supply/_collect_regset.
1303 (supply_fpregset, fill_fpregset): Call regcache_supply/
1304 _collect_regset instead of s390_native_supply/_collect.
1305 (fetch_regset, store_regset): Likewise. Also change the last
1306 parameter to a regset instead of a regmap.
1307 (s390_linux_fetch_inferior_registers)
1308 (390_linux_store_inferior_registers): Adjust last parameter in
1309 calls to fetch_regset and store_regset.
1310 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1311 (s390_gregmap): ... this. Also make static const and convert to
1312 regcache_map_entry format.
1313 (s390x_regmap_gregset): Delete.
1314 (s390_regmap_fpregset): Rename to...
1315 (s390_fpregmap): ... this. Make static const and convert to
1316 regcache_map_entry format.
1317 (s390_regmap_upper, s390_regmap_last_break)
1318 (s390x_regmap_last_break, s390_regmap_system_call)
1319 (s390_regmap_tdb): Likewise.
1320 (s390_supply_regset, s390_collect_regset): Remove functions.
1321 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1323 (s390_gregset, s390_fpregset, s390_upper_regset)
1324 (s390_last_break_regset, s390x_last_break_regset)
1325 (s390_system_call_regset, s390_tdb_regset): Make global and
1326 replace s390_supply/_collect_regset by regcache_supply/
1328 (s390x_gregset): Delete.
1329 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1330 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1331 (s390_regmap_fpregset, s390_regmap_last_break)
1332 (s390x_regmap_last_break, s390_regmap_system_call)
1333 (s390_regmap_tdb): Delete global variable declarations.
1334 (s390_gregset, s390_fpregset, s390_last_break_regset)
1335 (s390x_last_break_regset, s390_system_call_regset)
1336 (s390_tdb_regset): New global variable declarations.
1338 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1340 * regcache.c: Include "regset.h".
1341 (regcache_transfer_regset): New local function.
1342 (regcache_supply_regset, regcache_collect_regset): New functions.
1343 * regcache.h (struct regcache_map_entry): New structure.
1344 (REGCACHE_MAP_SKIP): New enum value.
1345 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1347 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1349 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1350 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1351 (ppc_linux_collect_gregset ): Likewise.
1352 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1353 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1354 (ppc_collect_vrregset): Likewise.
1355 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1358 2014-08-07 Yao Qi <yao@codesourcery.com>
1360 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1361 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1362 * remote.c (remote_read_bytes): Likewise.
1364 2014-08-07 Yao Qi <yao@codesourcery.com>
1366 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1368 2014-08-07 Yao Qi <yao@codesourcery.com>
1371 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1372 TARGET_XFER_OK instead of 0.
1374 2014-08-07 Gary Benson <gbenson@redhat.com>
1376 * common/common-defs.h: Include errno.h.
1377 * defs.h: Do not include errno.h.
1378 * ada-typeprint.c: Likewise.
1379 * c-typeprint.c: Likewise.
1380 * core-regset.c: Likewise.
1381 * corefile.c: Likewise.
1382 * corelow.c: Likewise.
1383 * event-loop.c: Likewise.
1384 * f-typeprint.c: Likewise.
1385 * gnu-nat.c: Likewise.
1386 * go32-nat.c: Likewise.
1387 * i386gnu-nat.c: Likewise.
1388 * m2-typeprint.c: Likewise.
1389 * nat/linux-btrace.c: Likewise.
1390 * p-typeprint.c: Likewise.
1391 * procfs.c: Likewise.
1392 * remote-sim.c: Likewise.
1393 * rs6000-nat.c: Likewise.
1394 * target.c: Likewise.
1395 * typeprint.c: Likewise.
1396 * ui-file.c: Likewise.
1397 * valops.c: Likewise.
1398 * valprint.c: Likewise.
1400 2014-08-07 Gary Benson <gbenson@redhat.com>
1402 * common/common-defs.h: Include string.h.
1403 * aarch64-tdep.c: Do not include string.h.
1404 * ada-exp.y: Likewise.
1405 * ada-lang.c: Likewise.
1406 * ada-lex.l: Likewise.
1407 * ada-typeprint.c: Likewise.
1408 * ada-valprint.c: Likewise.
1409 * aix-thread.c: Likewise.
1410 * alpha-linux-tdep.c: Likewise.
1411 * alpha-mdebug-tdep.c: Likewise.
1412 * alpha-nat.c: Likewise.
1413 * alpha-osf1-tdep.c: Likewise.
1414 * alpha-tdep.c: Likewise.
1415 * alphanbsd-tdep.c: Likewise.
1416 * amd64-dicos-tdep.c: Likewise.
1417 * amd64-linux-tdep.c: Likewise.
1418 * amd64-nat.c: Likewise.
1419 * amd64-sol2-tdep.c: Likewise.
1420 * amd64fbsd-tdep.c: Likewise.
1421 * amd64obsd-tdep.c: Likewise.
1422 * arch-utils.c: Likewise.
1423 * arm-linux-nat.c: Likewise.
1424 * arm-linux-tdep.c: Likewise.
1425 * arm-tdep.c: Likewise.
1426 * arm-wince-tdep.c: Likewise.
1427 * armbsd-tdep.c: Likewise.
1428 * armnbsd-nat.c: Likewise.
1429 * armnbsd-tdep.c: Likewise.
1430 * armobsd-tdep.c: Likewise.
1431 * avr-tdep.c: Likewise.
1432 * ax-gdb.c: Likewise.
1433 * ax-general.c: Likewise.
1434 * bcache.c: Likewise.
1435 * bfin-tdep.c: Likewise.
1436 * breakpoint.c: Likewise.
1437 * build-id.c: Likewise.
1438 * buildsym.c: Likewise.
1439 * c-exp.y: Likewise.
1440 * c-lang.c: Likewise.
1441 * c-typeprint.c: Likewise.
1442 * c-valprint.c: Likewise.
1443 * charset.c: Likewise.
1444 * cli-out.c: Likewise.
1445 * cli/cli-cmds.c: Likewise.
1446 * cli/cli-decode.c: Likewise.
1447 * cli/cli-dump.c: Likewise.
1448 * cli/cli-interp.c: Likewise.
1449 * cli/cli-logging.c: Likewise.
1450 * cli/cli-script.c: Likewise.
1451 * cli/cli-setshow.c: Likewise.
1452 * cli/cli-utils.c: Likewise.
1453 * coffread.c: Likewise.
1454 * common/agent.c: Likewise.
1455 * common/buffer.c: Likewise.
1456 * common/buffer.h: Likewise.
1457 * common/common-utils.c: Likewise.
1458 * common/filestuff.c: Likewise.
1459 * common/filestuff.c: Likewise.
1460 * common/format.c: Likewise.
1461 * common/print-utils.c: Likewise.
1462 * common/rsp-low.c: Likewise.
1463 * common/signals.c: Likewise.
1464 * common/vec.h: Likewise.
1465 * common/xml-utils.c: Likewise.
1466 * core-regset.c: Likewise.
1467 * corefile.c: Likewise.
1468 * corelow.c: Likewise.
1469 * cp-abi.c: Likewise.
1470 * cp-name-parser.y: Likewise.
1471 * cp-support.c: Likewise.
1472 * cp-valprint.c: Likewise.
1473 * cris-tdep.c: Likewise.
1474 * d-exp.y: Likewise.
1475 * darwin-nat.c: Likewise.
1476 * dbxread.c: Likewise.
1477 * dcache.c: Likewise.
1478 * demangle.c: Likewise.
1479 * dicos-tdep.c: Likewise.
1480 * disasm.c: Likewise.
1481 * doublest.c: Likewise.
1482 * dsrec.c: Likewise.
1483 * dummy-frame.c: Likewise.
1484 * dwarf2-frame.c: Likewise.
1485 * dwarf2loc.c: Likewise.
1486 * dwarf2read.c: Likewise.
1487 * elfread.c: Likewise.
1488 * environ.c: Likewise.
1490 * event-loop.c: Likewise.
1491 * exceptions.c: Likewise.
1493 * expprint.c: Likewise.
1494 * f-exp.y: Likewise.
1495 * f-lang.c: Likewise.
1496 * f-typeprint.c: Likewise.
1497 * f-valprint.c: Likewise.
1498 * fbsd-nat.c: Likewise.
1499 * findcmd.c: Likewise.
1500 * findvar.c: Likewise.
1501 * fork-child.c: Likewise.
1502 * frame.c: Likewise.
1503 * frv-linux-tdep.c: Likewise.
1504 * frv-tdep.c: Likewise.
1506 * gdb_bfd.c: Likewise.
1507 * gdbarch.c: Likewise.
1508 * gdbarch.sh: Likewise.
1509 * gdbtypes.c: Likewise.
1510 * gnu-nat.c: Likewise.
1511 * gnu-v2-abi.c: Likewise.
1512 * gnu-v3-abi.c: Likewise.
1513 * go-exp.y: Likewise.
1514 * go-lang.c: Likewise.
1515 * go32-nat.c: Likewise.
1516 * guile/guile.c: Likewise.
1517 * guile/scm-auto-load.c: Likewise.
1518 * hppa-hpux-tdep.c: Likewise.
1519 * hppa-linux-nat.c: Likewise.
1520 * hppanbsd-tdep.c: Likewise.
1521 * hppaobsd-tdep.c: Likewise.
1522 * i386-cygwin-tdep.c: Likewise.
1523 * i386-dicos-tdep.c: Likewise.
1524 * i386-linux-tdep.c: Likewise.
1525 * i386-nto-tdep.c: Likewise.
1526 * i386-sol2-tdep.c: Likewise.
1527 * i386-tdep.c: Likewise.
1528 * i386bsd-tdep.c: Likewise.
1529 * i386gnu-nat.c: Likewise.
1530 * i386nbsd-tdep.c: Likewise.
1531 * i386obsd-tdep.c: Likewise.
1532 * i387-tdep.c: Likewise.
1533 * ia64-libunwind-tdep.c: Likewise.
1534 * ia64-linux-nat.c: Likewise.
1535 * inf-child.c: Likewise.
1536 * inf-ptrace.c: Likewise.
1537 * inf-ttrace.c: Likewise.
1538 * infcall.c: Likewise.
1539 * infcmd.c: Likewise.
1540 * inflow.c: Likewise.
1541 * infrun.c: Likewise.
1542 * interps.c: Likewise.
1543 * iq2000-tdep.c: Likewise.
1544 * irix5-nat.c: Likewise.
1545 * jv-exp.y: Likewise.
1546 * jv-lang.c: Likewise.
1547 * jv-typeprint.c: Likewise.
1548 * jv-valprint.c: Likewise.
1549 * language.c: Likewise.
1550 * linux-fork.c: Likewise.
1551 * linux-nat.c: Likewise.
1552 * lm32-tdep.c: Likewise.
1553 * m2-exp.y: Likewise.
1554 * m2-typeprint.c: Likewise.
1555 * m32c-tdep.c: Likewise.
1556 * m32r-linux-nat.c: Likewise.
1557 * m32r-linux-tdep.c: Likewise.
1558 * m32r-rom.c: Likewise.
1559 * m32r-tdep.c: Likewise.
1560 * m68hc11-tdep.c: Likewise.
1561 * m68k-tdep.c: Likewise.
1562 * m68kbsd-tdep.c: Likewise.
1563 * m68klinux-nat.c: Likewise.
1564 * m68klinux-tdep.c: Likewise.
1565 * m88k-tdep.c: Likewise.
1566 * machoread.c: Likewise.
1567 * macrocmd.c: Likewise.
1569 * mdebugread.c: Likewise.
1570 * mem-break.c: Likewise.
1571 * memattr.c: Likewise.
1572 * memory-map.c: Likewise.
1573 * mep-tdep.c: Likewise.
1574 * mi/mi-cmd-break.c: Likewise.
1575 * mi/mi-cmd-disas.c: Likewise.
1576 * mi/mi-cmd-env.c: Likewise.
1577 * mi/mi-cmd-stack.c: Likewise.
1578 * mi/mi-cmd-var.c: Likewise.
1579 * mi/mi-cmds.c: Likewise.
1580 * mi/mi-console.c: Likewise.
1581 * mi/mi-getopt.c: Likewise.
1582 * mi/mi-interp.c: Likewise.
1583 * mi/mi-main.c: Likewise.
1584 * mi/mi-parse.c: Likewise.
1585 * microblaze-rom.c: Likewise.
1586 * microblaze-tdep.c: Likewise.
1587 * mingw-hdep.c: Likewise.
1588 * minidebug.c: Likewise.
1589 * minsyms.c: Likewise.
1590 * mips-irix-tdep.c: Likewise.
1591 * mips-linux-tdep.c: Likewise.
1592 * mips-tdep.c: Likewise.
1593 * mips64obsd-tdep.c: Likewise.
1594 * mipsnbsd-tdep.c: Likewise.
1595 * mipsread.c: Likewise.
1596 * mn10300-linux-tdep.c: Likewise.
1597 * mn10300-tdep.c: Likewise.
1598 * monitor.c: Likewise.
1599 * moxie-tdep.c: Likewise.
1600 * mt-tdep.c: Likewise.
1601 * nat/linux-btrace.c: Likewise.
1602 * nat/linux-osdata.c: Likewise.
1603 * nat/linux-procfs.c: Likewise.
1604 * nat/linux-ptrace.c: Likewise.
1605 * nat/linux-waitpid.c: Likewise.
1606 * nbsd-tdep.c: Likewise.
1607 * nios2-linux-tdep.c: Likewise.
1608 * nto-procfs.c: Likewise.
1609 * nto-tdep.c: Likewise.
1610 * objc-lang.c: Likewise.
1611 * objfiles.c: Likewise.
1612 * opencl-lang.c: Likewise.
1613 * osabi.c: Likewise.
1614 * osdata.c: Likewise.
1615 * p-exp.y: Likewise.
1616 * p-lang.c: Likewise.
1617 * p-typeprint.c: Likewise.
1618 * parse.c: Likewise.
1619 * posix-hdep.c: Likewise.
1620 * ppc-linux-nat.c: Likewise.
1621 * ppc-sysv-tdep.c: Likewise.
1622 * ppcfbsd-tdep.c: Likewise.
1623 * ppcnbsd-tdep.c: Likewise.
1624 * ppcobsd-tdep.c: Likewise.
1625 * printcmd.c: Likewise.
1626 * procfs.c: Likewise.
1627 * prologue-value.c: Likewise.
1628 * python/py-auto-load.c: Likewise.
1629 * python/py-gdb-readline.c: Likewise.
1630 * ravenscar-thread.c: Likewise.
1631 * regcache.c: Likewise.
1632 * registry.c: Likewise.
1633 * remote-fileio.c: Likewise.
1634 * remote-m32r-sdi.c: Likewise.
1635 * remote-mips.c: Likewise.
1636 * remote-notif.c: Likewise.
1637 * remote-sim.c: Likewise.
1638 * remote.c: Likewise.
1639 * reverse.c: Likewise.
1640 * rs6000-aix-tdep.c: Likewise.
1641 * ser-base.c: Likewise.
1642 * ser-go32.c: Likewise.
1643 * ser-mingw.c: Likewise.
1644 * ser-pipe.c: Likewise.
1645 * ser-tcp.c: Likewise.
1646 * ser-unix.c: Likewise.
1647 * serial.c: Likewise.
1648 * sh-tdep.c: Likewise.
1649 * sh64-tdep.c: Likewise.
1650 * shnbsd-tdep.c: Likewise.
1652 * sol-thread.c: Likewise.
1653 * solib-dsbt.c: Likewise.
1654 * solib-frv.c: Likewise.
1655 * solib-osf.c: Likewise.
1656 * solib-som.c: Likewise.
1657 * solib-spu.c: Likewise.
1658 * solib-target.c: Likewise.
1659 * solib.c: Likewise.
1660 * somread.c: Likewise.
1661 * source.c: Likewise.
1662 * sparc-nat.c: Likewise.
1663 * sparc-sol2-tdep.c: Likewise.
1664 * sparc-tdep.c: Likewise.
1665 * sparc64-tdep.c: Likewise.
1666 * sparc64fbsd-tdep.c: Likewise.
1667 * sparc64nbsd-tdep.c: Likewise.
1668 * sparcnbsd-tdep.c: Likewise.
1669 * spu-linux-nat.c: Likewise.
1670 * spu-multiarch.c: Likewise.
1671 * spu-tdep.c: Likewise.
1672 * stabsread.c: Likewise.
1673 * stack.c: Likewise.
1674 * std-regs.c: Likewise.
1675 * symfile.c: Likewise.
1676 * symmisc.c: Likewise.
1677 * symtab.c: Likewise.
1678 * target.c: Likewise.
1679 * thread.c: Likewise.
1680 * tilegx-linux-nat.c: Likewise.
1681 * tilegx-tdep.c: Likewise.
1683 * tracepoint.c: Likewise.
1684 * tui/tui-command.c: Likewise.
1685 * tui/tui-data.c: Likewise.
1686 * tui/tui-disasm.c: Likewise.
1687 * tui/tui-file.c: Likewise.
1688 * tui/tui-layout.c: Likewise.
1689 * tui/tui-out.c: Likewise.
1690 * tui/tui-regs.c: Likewise.
1691 * tui/tui-source.c: Likewise.
1692 * tui/tui-stack.c: Likewise.
1693 * tui/tui-win.c: Likewise.
1694 * tui/tui-windata.c: Likewise.
1695 * tui/tui-winsource.c: Likewise.
1696 * typeprint.c: Likewise.
1697 * ui-file.c: Likewise.
1698 * ui-out.c: Likewise.
1699 * user-regs.c: Likewise.
1700 * utils.c: Likewise.
1701 * v850-tdep.c: Likewise.
1702 * valarith.c: Likewise.
1703 * valops.c: Likewise.
1704 * valprint.c: Likewise.
1705 * value.c: Likewise.
1706 * varobj.c: Likewise.
1707 * vax-tdep.c: Likewise.
1708 * vaxnbsd-tdep.c: Likewise.
1709 * vaxobsd-tdep.c: Likewise.
1710 * windows-nat.c: Likewise.
1711 * xcoffread.c: Likewise.
1712 * xml-support.c: Likewise.
1713 * xstormy16-tdep.c: Likewise.
1714 * xtensa-linux-nat.c: Likewise.
1716 2014-08-07 Gary Benson <gbenson@redhat.com>
1718 * common/common-defs.h: Include gdb_assert.h.
1719 * aarch64-tdep.c: Do not include gdb_assert.h.
1720 * addrmap.c: Likewise.
1721 * aix-thread.c: Likewise.
1722 * alpha-linux-tdep.c: Likewise.
1723 * alpha-mdebug-tdep.c: Likewise.
1724 * alphanbsd-tdep.c: Likewise.
1725 * amd64-nat.c: Likewise.
1726 * amd64-tdep.c: Likewise.
1727 * amd64bsd-nat.c: Likewise.
1728 * amd64fbsd-nat.c: Likewise.
1729 * amd64fbsd-tdep.c: Likewise.
1730 * amd64nbsd-nat.c: Likewise.
1731 * amd64nbsd-tdep.c: Likewise.
1732 * amd64obsd-nat.c: Likewise.
1733 * amd64obsd-tdep.c: Likewise.
1734 * arch-utils.c: Likewise.
1735 * arm-tdep.c: Likewise.
1736 * armbsd-tdep.c: Likewise.
1738 * bcache.c: Likewise.
1739 * bfin-tdep.c: Likewise.
1740 * blockframe.c: Likewise.
1741 * breakpoint.c: Likewise.
1742 * bsd-kvm.c: Likewise.
1743 * bsd-uthread.c: Likewise.
1744 * buildsym.c: Likewise.
1745 * c-exp.y: Likewise.
1746 * c-lang.c: Likewise.
1747 * charset.c: Likewise.
1748 * cleanups.c: Likewise.
1749 * cli-out.c: Likewise.
1750 * cli/cli-decode.c: Likewise.
1751 * cli/cli-dump.c: Likewise.
1752 * cli/cli-logging.c: Likewise.
1753 * cli/cli-script.c: Likewise.
1754 * cli/cli-utils.c: Likewise.
1755 * coffread.c: Likewise.
1756 * common/common-utils.c: Likewise.
1757 * common/queue.h: Likewise.
1758 * common/signals.c: Likewise.
1759 * common/vec.h: Likewise.
1760 * complaints.c: Likewise.
1761 * completer.c: Likewise.
1762 * corelow.c: Likewise.
1763 * cp-abi.c: Likewise.
1764 * cp-name-parser.y: Likewise.
1765 * cp-namespace.c: Likewise.
1766 * cp-support.c: Likewise.
1767 * cris-tdep.c: Likewise.
1768 * dbxread.c: Likewise.
1769 * dictionary.c: Likewise.
1770 * doublest.c: Likewise.
1771 * dsrec.c: Likewise.
1772 * dummy-frame.c: Likewise.
1773 * dwarf2-frame-tailcall.c: Likewise.
1774 * dwarf2-frame.c: Likewise.
1775 * dwarf2expr.c: Likewise.
1776 * dwarf2loc.c: Likewise.
1777 * dwarf2read.c: Likewise.
1779 * event-loop.c: Likewise.
1780 * exceptions.c: Likewise.
1781 * expprint.c: Likewise.
1782 * f-valprint.c: Likewise.
1783 * fbsd-nat.c: Likewise.
1784 * findvar.c: Likewise.
1785 * frame-unwind.c: Likewise.
1786 * frame.c: Likewise.
1787 * frv-tdep.c: Likewise.
1788 * gcore.c: Likewise.
1789 * gdb-dlfcn.c: Likewise.
1790 * gdb_bfd.c: Likewise.
1791 * gdbarch.c: Likewise.
1792 * gdbarch.sh: Likewise.
1793 * gdbtypes.c: Likewise.
1794 * gnu-nat.c: Likewise.
1795 * gnu-v3-abi.c: Likewise.
1796 * go-lang.c: Likewise.
1797 * guile/scm-exception.c: Likewise.
1798 * guile/scm-gsmob.c: Likewise.
1799 * guile/scm-lazy-string.c: Likewise.
1800 * guile/scm-math.c: Likewise.
1801 * guile/scm-pretty-print.c: Likewise.
1802 * guile/scm-safe-call.c: Likewise.
1803 * guile/scm-utils.c: Likewise.
1804 * guile/scm-value.c: Likewise.
1805 * h8300-tdep.c: Likewise.
1806 * hppa-hpux-nat.c: Likewise.
1807 * hppa-tdep.c: Likewise.
1808 * hppanbsd-tdep.c: Likewise.
1809 * hppaobsd-tdep.c: Likewise.
1810 * i386-darwin-nat.c: Likewise.
1811 * i386-darwin-tdep.c: Likewise.
1812 * i386-nto-tdep.c: Likewise.
1813 * i386-tdep.c: Likewise.
1814 * i386bsd-nat.c: Likewise.
1815 * i386fbsd-tdep.c: Likewise.
1816 * i386gnu-nat.c: Likewise.
1817 * i386nbsd-tdep.c: Likewise.
1818 * i386obsd-tdep.c: Likewise.
1819 * i387-tdep.c: Likewise.
1820 * ia64-libunwind-tdep.c: Likewise.
1821 * ia64-tdep.c: Likewise.
1822 * inf-ptrace.c: Likewise.
1823 * inf-ttrace.c: Likewise.
1824 * infcall.c: Likewise.
1825 * infcmd.c: Likewise.
1826 * infrun.c: Likewise.
1827 * inline-frame.c: Likewise.
1828 * interps.c: Likewise.
1829 * jv-lang.c: Likewise.
1830 * jv-typeprint.c: Likewise.
1831 * linux-fork.c: Likewise.
1832 * linux-nat.c: Likewise.
1833 * linux-thread-db.c: Likewise.
1834 * m32c-tdep.c: Likewise.
1835 * m32r-linux-nat.c: Likewise.
1836 * m32r-tdep.c: Likewise.
1837 * m68k-tdep.c: Likewise.
1838 * m68kbsd-nat.c: Likewise.
1839 * m68kbsd-tdep.c: Likewise.
1840 * m88k-tdep.c: Likewise.
1841 * machoread.c: Likewise.
1842 * macroexp.c: Likewise.
1843 * macrotab.c: Likewise.
1844 * maint.c: Likewise.
1845 * mdebugread.c: Likewise.
1846 * memory-map.c: Likewise.
1847 * mep-tdep.c: Likewise.
1848 * mi/mi-common.c: Likewise.
1849 * microblaze-tdep.c: Likewise.
1850 * mingw-hdep.c: Likewise.
1851 * mips-linux-nat.c: Likewise.
1852 * mips-linux-tdep.c: Likewise.
1853 * mips-tdep.c: Likewise.
1854 * mips64obsd-tdep.c: Likewise.
1855 * mipsnbsd-tdep.c: Likewise.
1856 * mn10300-linux-tdep.c: Likewise.
1857 * mn10300-tdep.c: Likewise.
1858 * moxie-tdep.c: Likewise.
1859 * mt-tdep.c: Likewise.
1860 * nat/linux-btrace.c: Likewise.
1861 * nat/linux-osdata.c: Likewise.
1862 * nat/linux-ptrace.c: Likewise.
1863 * nat/mips-linux-watch.c: Likewise.
1864 * nios2-linux-tdep.c: Likewise.
1865 * nios2-tdep.c: Likewise.
1866 * objc-lang.c: Likewise.
1867 * objfiles.c: Likewise.
1868 * obsd-nat.c: Likewise.
1869 * opencl-lang.c: Likewise.
1870 * osabi.c: Likewise.
1871 * parse.c: Likewise.
1872 * ppc-linux-nat.c: Likewise.
1873 * ppc-sysv-tdep.c: Likewise.
1874 * ppcfbsd-nat.c: Likewise.
1875 * ppcfbsd-tdep.c: Likewise.
1876 * ppcnbsd-nat.c: Likewise.
1877 * ppcnbsd-tdep.c: Likewise.
1878 * ppcobsd-nat.c: Likewise.
1879 * ppcobsd-tdep.c: Likewise.
1880 * printcmd.c: Likewise.
1881 * procfs.c: Likewise.
1882 * prologue-value.c: Likewise.
1883 * psymtab.c: Likewise.
1884 * python/py-lazy-string.c: Likewise.
1885 * python/py-value.c: Likewise.
1886 * regcache.c: Likewise.
1887 * reggroups.c: Likewise.
1888 * registry.c: Likewise.
1889 * remote-sim.c: Likewise.
1890 * remote.c: Likewise.
1891 * rs6000-aix-tdep.c: Likewise.
1892 * rs6000-tdep.c: Likewise.
1893 * s390-linux-tdep.c: Likewise.
1894 * score-tdep.c: Likewise.
1895 * ser-base.c: Likewise.
1896 * ser-mingw.c: Likewise.
1897 * sh-tdep.c: Likewise.
1898 * sh64-tdep.c: Likewise.
1899 * solib-darwin.c: Likewise.
1900 * solib-spu.c: Likewise.
1901 * solib-svr4.c: Likewise.
1902 * source.c: Likewise.
1903 * sparc-nat.c: Likewise.
1904 * sparc-sol2-tdep.c: Likewise.
1905 * sparc-tdep.c: Likewise.
1906 * sparc64-sol2-tdep.c: Likewise.
1907 * sparc64-tdep.c: Likewise.
1908 * sparc64fbsd-tdep.c: Likewise.
1909 * sparc64nbsd-tdep.c: Likewise.
1910 * sparc64obsd-tdep.c: Likewise.
1911 * sparcnbsd-tdep.c: Likewise.
1912 * sparcobsd-tdep.c: Likewise.
1913 * spu-multiarch.c: Likewise.
1914 * spu-tdep.c: Likewise.
1915 * stabsread.c: Likewise.
1916 * stack.c: Likewise.
1917 * symfile.c: Likewise.
1918 * symtab.c: Likewise.
1919 * target-descriptions.c: Likewise.
1920 * target-memory.c: Likewise.
1921 * target.c: Likewise.
1922 * tic6x-linux-tdep.c: Likewise.
1923 * tic6x-tdep.c: Likewise.
1924 * tilegx-linux-nat.c: Likewise.
1925 * tilegx-tdep.c: Likewise.
1927 * tramp-frame.c: Likewise.
1928 * tui/tui-out.c: Likewise.
1929 * tui/tui-winsource.c: Likewise.
1930 * ui-out.c: Likewise.
1931 * user-regs.c: Likewise.
1932 * utils.c: Likewise.
1933 * v850-tdep.c: Likewise.
1934 * valops.c: Likewise.
1935 * value.c: Likewise.
1936 * varobj.c: Likewise.
1937 * vax-nat.c: Likewise.
1938 * xml-syscall.c: Likewise.
1939 * xml-tdesc.c: Likewise.
1940 * xstormy16-tdep.c: Likewise.
1941 * xtensa-linux-nat.c: Likewise.
1942 * xtensa-tdep.c: Likewise.
1944 2014-08-07 Gary Benson <gbenson@redhat.com>
1946 * common/common-defs.h: Include common-utils.h.
1947 * defs.h: Do not include common-utils.h.
1948 * common/gdb_assert.h: Likewise.
1949 * darwin-nat.h: Likewise.
1950 * nat/linux-btrace.c: Likewise.
1951 * target/waitstatus.h: Likewise.
1953 2014-08-07 Gary Benson <gbenson@redhat.com>
1955 * common/common-defs.h: Include ptid.h.
1956 * defs.h: Do not include ptid.h.
1957 * inferior.h: Likewise.
1958 * infrun.h: Likewise.
1959 * nat/linux-btrace.h: Likewise.
1960 * nat/linux-osdata.h: Likewise.
1961 * target/waitstatus.h: Likewise.
1963 2014-08-07 Gary Benson <gbenson@redhat.com>
1965 * common/common-defs.h: Include gdb_locale.h.
1966 * defs.h: Do not include gdb_locale.h.
1968 2014-08-07 Gary Benson <gbenson@redhat.com>
1970 * common/common-defs.h: Include gdb/signals.h.
1971 * defs.h: Do not include gdb/signals.h.
1973 2014-08-07 Gary Benson <gbenson@redhat.com>
1975 * common/common-defs.h: Include pathmax.h.
1976 * defs.h: Do not include pathmax.h.
1978 2014-08-07 Gary Benson <gbenson@redhat.com>
1980 * common/common-defs.h: Include libiberty.h.
1981 * defs.h: Do not include libiberty.h.
1982 * common/queue.h: Likewise.
1983 * cp-name-parser.y: Likewise.
1984 * mi/mi-cmd-catch.c: Likewise.
1985 * python/python.c: Likewise.
1987 2014-08-07 Gary Benson <gbenson@redhat.com>
1989 * common/common-defs.h: Include ansidecl.h.
1990 * defs.h: Do not include ansidecl.h.
1991 * common/buffer.h: Likewise.
1992 * common/common-utils.h: Likewise.
1994 2014-08-07 Gary Benson <gbenson@redhat.com>
1996 * common/common-defs.h: Include stddef.h.
1997 * defs.h: Do not include stddef.h.
1998 * common/common-utils.h: Likewise.
1999 * amd64fbsd-nat.c: Likewise.
2000 * bcache.c: Likewise.
2001 * charset.c: Likewise.
2002 * common/buffer.h: Likewise.
2003 * common/vec.h: Likewise.
2004 * i386bsd-nat.c: Likewise.
2005 * nat/linux-btrace.h: Likewise.
2006 * ppcfbsd-nat.c: Likewise.
2007 * ppcnbsd-tdep.h: Likewise.
2008 * ppcobsd-nat.c: Likewise.
2009 * ppcobsd-tdep.h: Likewise.
2010 * python/py-gdb-readline.c: Likewise.
2012 2014-08-07 Gary Benson <gbenson@redhat.com>
2014 * common/common-defs.h: Include stdarg.h.
2015 * defs.h: Do not include stdarg.h.
2016 * ada-lang.c: Likewise.
2017 * common/common-utils.h: Likewise.
2018 * guile/scm-string.c: Likewise.
2019 * guile/scm-utils.c: Likewise.
2020 * m32c-tdep.c: Likewise.
2022 2014-08-07 Gary Benson <gbenson@redhat.com>
2024 * common/common-defs.h: Include stdlib.h.
2025 * defs.h: Do not include stdlib.h.
2026 * addrmap.c: Likewise.
2027 * bcache.c: Likewise.
2028 * common/buffer.c: Likewise.
2029 * common/common-utils.c: Likewise.
2030 * cp-name-parser.y: Likewise.
2031 * go32-nat.c: Likewise.
2032 * mn10300-linux-tdep.c: Likewise.
2033 * nat/linux-osdata.c: Likewise.
2034 * tui/tui.c: Likewise.
2035 * windows-nat.c: Likewise.
2037 2014-08-07 Gary Benson <gbenson@redhat.com>
2039 * common/common-defs.h: Include stdio.h.
2040 * defs.h: Do not include stdio.h.
2041 * ada-lang.c: Likewise.
2042 * common/buffer.c: Likewise.
2043 * common/common-utils.c: Likewise.
2044 * cp-name-parser.y: Likewise.
2045 * gnu-nat.c: Likewise.
2046 * go32-nat.c: Likewise.
2047 * i386gnu-nat.c: Likewise.
2048 * proc-api.c: Likewise.
2049 * proc-events.c: Likewise.
2050 * proc-flags.c: Likewise.
2051 * proc-why.c: Likewise.
2052 * python/python-internal.h: Likewise.
2053 * target-memory.c: Likewise.
2054 * tui/tui-io.c: Likewise.
2055 * tui/tui.c: Likewise.
2057 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2059 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2060 (scan_dyntag_auxv): Same.
2062 2014-08-06 Yao Qi <yao@codesourcery.com>
2064 * amd64-linux-nat.c: Remove duplicated include
2066 * i386-linux-nat.c: Likewise.
2068 2014-08-06 Yao Qi <yao@codesourcery.com>
2070 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2071 operand" with "Special opcode" in comments.
2073 2014-08-05 Gary Benson <gbenson@redhat.com>
2075 * interps.c (initialize_interps): Remove prototype.
2076 (interpreter_initialized): Remove static global.
2077 (interp_add): Do not call initialize_interps.
2078 (initialize_interps): Remove function.
2080 2014-08-05 Gary Benson <gbenson@redhat.com>
2082 * utils.c (vwarning): Remove spurious va_end.
2084 2014-08-05 Alan Modra <amodra@gmail.com>
2086 * charset.c (convert_between_encodings): Cast result of obstack_base.
2087 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2088 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2089 (read_unwind_info): Use size_t for some locals.
2090 * jit.c (finalize_symtab): Likewise.
2091 * utils.c (hashtab_obstack_allocate): Likewise.
2092 * symmisc.c (print_objfile_statistics): Update format strings.
2094 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2096 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2097 (Changes in GDB 7.8): ... here.
2099 2014-08-04 Tom Tromey <tromey@redhat.com>
2101 * target.c (set_targetdebug): New function.
2102 (initialize_targets): Pass set_targetdebug when creating "set
2105 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2107 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2108 if detecting a variable-sized field that is not the last field.
2109 Fix struct type length computation.
2111 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2113 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2116 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2118 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2119 Remove "+ 8" offset in computation of CHAIN_VMA.
2121 2014-07-31 Doug Evans <dje@google.com>
2123 * inflow.c (child_terminal_inferior): Add comment.
2124 (child_terminal_ours_for_output): Add comment.
2125 (child_terminal_ours): Add comment.
2126 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2127 (linux_nat_terminal_ours): Add comment.
2129 2014-07-31 Gary Benson <gbenson@redhat.com>
2131 * common/btrace-common.h: Do not include defs.h or server.h.
2132 * nat/mips-linux-watch.h: Likewise.
2133 * gdb-dlfcn.h: Do not include defs.h.
2134 * tracefile.h: Likewise.
2136 2014-07-30 Roland McGrath <mcgrathr@google.com>
2138 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2140 2014-07-30 Tom Tromey <tromey@redhat.com>
2142 * bsd-kvm.c (bsd_kvm_open): Constify.
2143 * corelow.c (core_open): Constify.
2144 * ctf.c (ctf_open): Constify.
2145 * dbug-rom.c (dbug_open): Constify.
2146 * exec.c (exec_open): Constify.
2147 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2148 * microblaze-rom.c (picobug_open): Constify.
2149 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2151 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2152 * record-btrace.c (record_btrace_open): Constify.
2153 * record-full.c (record_full_core_open_1, record_full_open_1)
2154 (record_full_open): Constify.
2155 * remote-m32r-sdi.c (m32r_open): Constify.
2156 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2157 (rockhopper_open, lsi_open): Constify.
2158 * remote-sim.c (gdbsim_open): Constify.
2159 * remote.c (remote_open, extended_remote_open, remote_open_1):
2161 * target.h (struct target_ops) <to_open>: Make "arg" const.
2162 * tracefile-tfile.c (tfile_open): Constify.
2164 2014-07-30 Tom Tromey <tromey@redhat.com>
2166 * breakpoint.c (map_breakpoint_numbers): Update.
2167 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2168 (get_number_const): New function.
2169 (get_number): Rewrite using get_number_const.
2170 (init_number_or_range): Make "string" const.
2171 (number_is_in_list): Make "list" const.
2172 * cli/cli-utils.h (get_number_const): Declare.
2173 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2174 (init_number_or_range, number_is_in_list): Update.
2175 * printcmd.c (map_display_numbers): Update.
2176 * value.c (value_from_history_ref): Constify.
2177 * value.h (value_from_history_ref): Update.
2179 2014-07-30 Tom Tromey <tromey@redhat.com>
2181 * corefile.c (hook_type, call_extra_exec_file_hooks)
2182 (specify_exec_file_hook): Constify.
2183 * exec.c (exec_file_attach): Make "filename" const.
2184 * gdbcore.h (deprecated_exec_file_display_hook)
2185 (specify_exec_file_hook, exec_file_attach): Constify.
2186 * main.c (captured_main): Use catch_command_errors_const.
2188 2014-07-30 Tom Tromey <tromey@redhat.com>
2190 * target.c (open_target): New function.
2191 (add_target_with_completer, add_deprecated_target_alias): Use
2192 set_cmd_sfunc, set_cmd_context.
2193 (debug_to_open): Remove.
2194 (setup_target_debug): Update.
2196 2014-07-30 Yao Qi <yao@codesourcery.com>
2198 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2200 * parse.c (exp_iterate): Update comments.
2202 2014-07-30 Gary Benson <gbenson@redhat.com>
2204 * common/common-defs.h: New file.
2205 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2206 * defs.h: Include common-defs.h.
2207 Do not include config.h or build-gnulib/config.h.
2209 2014-07-30 Gary Benson <gbenson@redhat.com>
2211 * common/common-utils.h: Do not include config.h.
2212 * nat/linux-btrace.h: Likewise.
2214 2014-07-30 Gary Benson <gbenson@redhat.com>
2216 * btrace.c: Include defs.h.
2217 * common/ptid.c: Include defs.h or server.h as appropriate.
2218 * nat/mips-linux-watch.c: Likewise.
2220 2014-07-29 Tom Tromey <tromey@redhat.com>
2222 * target.c (target_is_pushed): Simplify.
2224 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2228 2014-07-29 Yao Qi <yao@codesourcery.com>
2231 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2233 2014-07-28 Doug Evans <xdje42@gmail.com>
2236 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2237 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2240 2014-07-28 Will Newton <will.newton@linaro.org>
2242 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2243 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2244 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2245 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2246 (THUMB2_EABI_SYSCALL): Likewise.
2247 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2249 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2250 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2252 2014-07-27 Doug Evans <xdje42@gmail.com>
2254 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2256 2014-07-27 Doug Evans <xdje42@gmail.com>
2258 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2260 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2261 Doug Evans <xdje42@gmail.com>
2264 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2265 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2266 * configure.ac: Try to use guild to compile an scm file, if it fails
2267 then disable guile support.
2268 * configure: Regenerate.
2269 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2271 (GUILE_COMPILED_FILES): New variable.
2272 (GUILE_FILES) Update.
2273 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2274 (stamp-guile): Compile scm files.
2275 * guile/guile.c (boot_guile_support): New function.
2276 (standard_throw_args_p): New function.
2277 (print_standard_throw_error, print_throw_error): New functions.
2278 (handle_boot_error): New function.
2279 (initialize_scheme_side): Rewrite to call boot_guile_support.
2280 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2281 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2283 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2284 Doug Evans <xdje42@gmail.com>
2287 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2288 * guile/lib/gdb/support.scm: New file.
2289 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2290 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2292 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2294 (%assert-type): Ditto, and renamed to assert-type.
2295 (%exception-print-style): Delete.
2297 2014-07-26 Doug Evans <xdje42@gmail.com>
2300 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2301 * configure: Regenerate.
2302 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2304 (PYTHON_FILES): New variable.
2305 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2306 (GUILE_FILES): New variable.
2307 (stamp-python, install-python, uninstall-python): Handle empty
2309 (stamp-guile, install-guile, uninstall-guile): Ditto.
2311 2014-07-26 Doug Evans <xdje42@gmail.com>
2314 * guile/lib/gdb.scm (pretty-printers): Export.
2315 (set-pretty-printers!): Export.
2316 * guile/lib/gdb/printing.scm (gdb module): Update.
2317 (prepend-pretty-printer!, append-pretty-printer!): Update.
2318 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2319 (pretty_printer_list_var): Delete.
2320 (pretty_printer_list): New static global.
2321 (gdbscm_pretty_printers): New function.
2322 (gdbscm_set_pretty_printers_x): New function.
2323 (ppscm_find_pretty_printer_from_gdb): Update.
2324 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2325 (gdbscm_initialize_pretty_printers): Update.
2327 2014-07-26 Doug Evans <xdje42@gmail.com>
2330 * configure.ac: Add check for header gc/gc.h.
2331 Add check for function setenv.
2332 * configure: Regenerate.
2333 * config.in: Regenerate.
2334 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2336 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2338 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2339 variation in gdbarch matching.
2341 2014-07-25 Tom Tromey <tromey@redhat.com>
2343 * exec.c (using_exec_ops): Remove.
2344 (exec_close_1): Update. Remove extraneous block, reindent.
2345 (add_target_sections): Use target_is_pushed.
2347 2014-07-25 Pedro Alves <palves@redhat.com>
2349 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2350 * monitor.c (monitor_create_inferior): Likewise.
2351 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2352 * remote-sim.c (gdbsim_create_inferior): Likewise.
2353 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2354 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2355 * windows-nat.c (do_initial_windows_stuff): Likewise.
2357 2014-07-25 Pedro Alves <palves@redhat.com>
2359 * NEWS: Mention signal passing and "signal" command changes.
2360 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2362 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2364 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2365 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2366 (jump_command): Adjust clear_proceed_status call.
2367 (signal_command): Warn if other thread that are resumed have
2368 signals that will be delivered. Adjust clear_proceed_status call.
2369 (until_next_command, finish_command)
2370 (proceed_after_attach_callback, attach_command_post_wait)
2371 (attach_command): Adjust clear_proceed_status call.
2372 * infrun.c (proceed_after_vfork_done): Likewise.
2373 (proceed_after_attach_callback): Adjust comment.
2374 (clear_proceed_status_thread): Clear stop_signal if not in pass
2376 (clear_proceed_status_callback): Delete.
2377 (clear_proceed_status): New 'step' parameter. Only clear the
2378 proceed status of threads the command being prepared is about to
2380 (proceed): If passed in an explicit signal, override stop_signal
2381 with it. Don't pass the last stop signal to the thread we're
2383 (init_wait_for_inferior): Adjust clear_proceed_status call.
2384 (switch_back_to_stepped_thread): Clear the signal if it should not
2386 * infrun.h (clear_proceed_status): New 'step' parameter.
2387 (user_visible_resume_ptid): Add comment.
2388 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2389 signal is in pass state.
2390 * remote.c (append_pending_thread_resumptions): Likewise.
2391 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2393 2014-07-25 Tom Tromey <tromey@redhat.com>
2395 * target.h (target_stopped_data_address)
2396 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2399 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2401 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2403 (avr_pointer_to_address): Likewise.
2405 2014-07-24 Tom Tromey <tromey@redhat.com>
2407 * monitor.c (compile_pattern): Update.
2408 * target.h (struct target_ops) <to_shortname, to_longname,
2411 2014-07-24 Tom Tromey <tromey@redhat.com>
2413 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2414 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2415 (add_info_alias, add_com): Make "doc" const.
2416 (print_doc_line): Make "str" const.
2417 (delete_cmd): Update.
2418 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2419 (print_doc_line): Update.
2420 * cli/cli-script.c (document_command): Update.
2421 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2422 (add_com, add_info, add_info_alias): Update.
2423 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2424 * python/py-cmd.c (cmdpy_destroyer): Update.
2426 2014-07-24 Tom Tromey <tromey@redhat.com>
2428 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2429 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2430 (help_cmd_list): Constify.
2431 (lookup_cmd): Update.
2432 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2434 (help_cmd_list, apropos_cmd): Update.
2435 * cli/cli-script.c (show_user): Update.
2436 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2437 * cli/cli-setshow.h (cmd_show_list): Update.
2438 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2439 (cmd_show_list): Update.
2440 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2441 * python/py-cmd.c (cmdpy_destroyer): Update.
2443 2014-07-24 Tom Tromey <tromey@redhat.com>
2445 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2446 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2448 * command.h (deprecate_cmd): Update.
2449 * maint.c (maintenance_do_deprecate): Add casts.
2451 2014-07-24 Tom Tromey <tromey@redhat.com>
2453 * cli/cli-decode.c (help_cmd): Make parameter "const".
2454 * cli/cli-decode.h (help_cmd): Update.
2456 2014-07-24 Tom Tromey <tromey@redhat.com>
2458 * stack.c (up_silently_base, down_silently_base): Make argument
2461 2014-07-24 Tom Tromey <tromey@redhat.com>
2463 * solib.c (solib_add): Make "pattern" const.
2464 * solib.h (solib_add): Update.
2466 2014-07-24 Tom Tromey <tromey@redhat.com>
2468 * remote.c (remote_serial_open, print_packet, putpkt)
2469 (putpkt_binary): Constify.
2470 * remote.h (putpkt): Update.
2472 2014-07-24 Tom Tromey <tromey@redhat.com>
2474 * monitor.c (monitor_open): Make "args" const.
2475 * monitor.h (monitor_open): Update.
2477 2014-07-24 Tom Tromey <tromey@redhat.com>
2479 * maint.c (match_bfd_flags): Make "string" const.
2480 (print_bfd_section_info): Remove casts.
2481 (print_objfile_section_info): Make "string" const.
2483 2014-07-24 Tom Tromey <tromey@redhat.com>
2485 * inf-child.c (inf_child_open_target): Make "arg" const.
2486 * inf-child.h (inf_child_open_target): Update.
2488 2014-07-24 Tom Tromey <tromey@redhat.com>
2490 * environ.c (unset_in_environ): Make "var" const.
2491 * environ.h (unset_in_environ): Update.
2493 2014-07-24 Tom Tromey <tromey@redhat.com>
2495 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2497 (scan_filename_with_cleanup): Likewise.
2498 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2499 Make arguments const.
2500 (restore_command): Update.
2502 2014-07-24 Pedro Alves <palves@redhat.com>
2504 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2506 2014-07-24 Tom Tromey <tromey@redhat.com>
2507 Gary Benson <gbenson@redhat.com>
2509 * nat/linux-ptrace.c (additional_flags): New global.
2510 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2511 additional_flags; don't check GDBSERVER.
2512 (linux_ptrace_set_additional_flags): New function.
2513 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2515 * linux-nat.c (_initialize_linux_nat): Call
2516 linux_ptrace_set_additional_flags.
2518 2014-07-24 Tom Tromey <tromey@redhat.com>
2520 * make-target-delegates (munge_type, write_debugmethod): New
2522 (debug_names): New global.
2523 ($TARGET_DEBUG_PRINTER): New global.
2524 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2526 Write debug methods. Generate init_debug_target.
2527 * target-debug.h: New file.
2528 * target-delegates.c: Rebuild.
2529 * target.c: Include target-debug.h.
2530 (debug_target): Hoist definition.
2531 (target_kill, target_get_section_table, target_memory_map)
2532 (target_flash_erase, target_flash_done, target_detach)
2533 (target_disconnect, target_wait, target_resume)
2534 (target_pass_signals, target_program_signals, target_follow_fork)
2535 (target_mourn_inferior, target_search_memory)
2536 (target_thread_address_space, target_close)
2537 (target_find_new_threads, target_core_of_thread)
2538 (target_verify_memory, target_insert_mask_watchpoint)
2539 (target_remove_mask_watchpoint): Remove targetdebug code.
2540 (debug_to_post_attach, debug_to_prepare_to_store)
2541 (debug_to_files_info, debug_to_insert_breakpoint)
2542 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2543 (debug_to_region_ok_for_hw_watchpoint)
2544 (debug_to_can_accel_watchpoint_condition)
2545 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2546 (debug_to_watchpoint_addr_within_range)
2547 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2548 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2549 (debug_to_terminal_init, debug_to_terminal_inferior)
2550 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2551 (debug_to_terminal_save_ours, debug_to_terminal_info)
2552 (debug_to_load, debug_to_post_startup_inferior)
2553 (debug_to_insert_fork_catchpoint)
2554 (debug_to_remove_fork_catchpoint)
2555 (debug_to_insert_vfork_catchpoint)
2556 (debug_to_remove_vfork_catchpoint)
2557 (debug_to_insert_exec_catchpoint)
2558 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2559 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2560 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2561 (setup_target_debug): Call init_debug_target.
2562 * target.h (TARGET_DEBUG_PRINTER): New macro.
2563 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2564 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2566 2014-07-24 Gary Benson <gbenson@redhat.com>
2568 * exceptions.h (throw_vfatal): Renamed to...
2569 (throw_vquit): New declaration.
2570 (throw_quit): Likewise.
2571 * exceptions.c (throw_vfatal): Renamed to...
2572 (throw_vquit): New function.
2573 (throw_quit): Likewise.
2574 (throw_error): Call throw_verror rather than throw_it.
2575 * utils.h (vfatal): Removed.
2577 * utils.c (vfatal): Removed.
2579 (internal_verror): Replaced call to fatal with call to throw_quit.
2580 (quit): Replaced calls to fatal with calls to throw_quit.
2582 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2584 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2587 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2589 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2590 less than zero in conditional expression.
2592 2014-07-23 Tom Tromey <tromey@redhat.com>
2594 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2595 ($INTRO_PART): Don't match whitespace.
2596 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2598 ($METHOD): Add $METHOD_TRAILER.
2600 (scan_target_h): New sub.
2601 Change main loop not to collect state.
2602 * target-delegates.c: Rebuild.
2604 2014-07-23 Gary Benson <gbenson@redhat.com>
2606 * cp-support.c (gdb_demangle): Fix build on systems without
2609 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2611 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2612 for reference entry value target data value.
2614 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2616 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2617 value_available_contents_eq.
2619 2014-07-22 Pedro Alves <palves@redhat.com>
2621 * value.c (allocate_optimized_out_value): Don't mark value as
2624 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2626 * MAINTAINERS (Write After Approval): Update my email address.
2628 2014-07-20 Doug Evans <dje@google.com>
2631 * remote.c (putpkt_binary): Add text to error message.
2633 2014-07-20 Yao Qi <yao@codesourcery.com>
2635 * eval.c: Remove "Chill" from comments.
2636 * gdbtypes.h: Likewise.
2637 * symtab.h: Likewise.
2639 2014-07-20 Yao Qi <yao@codesourcery.com>
2641 * std-operator.def: Update comments to TERNOP_SLICE.
2643 2014-07-20 Yao Qi <yao@codesourcery.com>
2645 * std-operator.def: Remove BINOP_RANGE.
2646 * breakpoint.c (watchpoint_exp_is_const): Update.
2647 * expprint.c (dump_subexp_body_standard): Likewise.
2648 * eval.c (init_array_element): Remove dead code.
2649 (evaluate_subexp_standard): Likewise.
2651 2014-07-20 Yao Qi <yao@codesourcery.com>
2653 * std-operator.def: Remove BINOP_IN.
2654 * breakpoint.c (watchpoint_exp_is_const): Update.
2655 * eval.c (evaluate_subexp_standard): Likewise.
2656 * expprint.c (dump_subexp_body_standard): Likewise.
2658 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2660 * microblaze-tdep.c (microblaze_register_names): Add
2661 the rshr and rslr register names.
2662 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2663 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2664 Use of tdesc_numbered_register. Use of
2665 microblaze_register_g_packet_guesses. Use of
2666 tdesc_use_registers. Use of set_gdbarch_register_type.
2667 (microblaze_register_g_packet_guesses): New.
2668 * microblaze-tdep.h (microblaze_reg_num): Add
2669 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2670 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2671 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2672 * features/microblaze-core.xml: New file.
2673 * features/microblaze-stack-protect.xml: New file.
2674 * features/microblaze-with-stack-protect.c: New file.
2675 * features/microblaze-with-stack-protect.xml: New file.
2676 * features/microblaze.xml: New file.
2677 * features/microblaze.c: New file.
2678 * features/Makefile (microblaze-with-stack-protect): Add
2679 microblaze-with-stack-protect microblaze and microblaze-expedite.
2680 * regformats/microblaze-with-stack-protect.dat: New file.
2681 * regformats/microblaze.dat: New file.
2682 * doc/gdb.texinfo (MicroBlaze Features): Added.
2684 2014-07-18 Tom Tromey <tromey@redhat.com>
2686 * exec.c (exec_ops): Now static.
2687 * exec.h (exec_ops): Don't declare.
2689 2014-07-18 Tom Tromey <tromey@redhat.com>
2691 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2692 to find_target_beneath.
2693 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2694 find_target_beneath.
2695 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2697 2014-07-18 Tom Tromey <tromey@redhat.com>
2700 * utils.c (quit): Use target_supports_terminal_ours.
2701 * target.h (target_supports_terminal_ours): Declare.
2702 * target.c (target_supports_delete_record): Don't check
2703 to_delete_record against NULL.
2704 (target_supports_terminal_ours): New function.
2706 2014-07-18 Tom Tromey <tromey@redhat.com>
2709 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2710 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2711 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2712 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2713 * windows-nat.c (windows_xfer_partial): Always delegate.
2714 * record-btrace.c (record_btrace_xfer_partial): Simplify
2716 (record_btrace_fetch_registers, record_btrace_store_registers)
2717 (record_btrace_prepare_to_store, record_btrace_resume)
2718 (record_btrace_wait, record_btrace_find_new_threads)
2719 (record_btrace_thread_alive): Likewise.
2720 * procfs.c (procfs_xfer_partial): Always delegate.
2721 * corelow.c (core_xfer_partial): Always delegate.
2722 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2724 2014-07-18 Tom Tromey <tromey@redhat.com>
2726 * exec.c (exec_make_note_section): Move earlier.
2728 2014-07-17 Doug Evans <dje@google.com>
2731 * maint.c (count_symtabs_and_blocks): Handle NULL
2732 current_program_space.
2733 (report_command_stats): Check global enabled flag in addition to
2734 recorded enabled flag.
2735 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2737 2014-07-16 Pedro Alves <palves@redhat.com>
2739 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2741 2014-07-16 Tom Tromey <tromey@redhat.com>
2743 * target.h (struct target_ops) <to_delete_record>: Reformat
2746 2014-07-16 Tom Tromey <tromey@redhat.com>
2748 * target-delegates.c: Rebuild.
2750 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2752 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2753 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2754 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2755 (avr_pointer_to_address): Likewise.
2756 (avr_address_class_type_flags): New function.
2757 (avr_address_class_type_flags_to_name): Likewise.
2758 (avr_address_class_name_to_type_flags): Likewise.
2759 (avr_gdbarch_init): Set address_class_type_flags,
2760 address_class_type_flags_to_name and
2761 address_class_name_to_type_flags.
2763 2014-07-15 Pedro Alves <palves@redhat.com>
2765 * linux-nat.c (kill_callback): Save errno and work with saved
2768 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2770 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2772 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2774 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2775 breakpoint support correctly.
2777 2014-07-14 Pedro Alves <palves@redhat.com>
2779 * utils.c (prompt_for_continue): Call target_terminal_ours.
2781 2014-07-14 Pedro Alves <palves@redhat.com>
2783 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2784 catch_errors. Don't re-enable stdin or notify observers where,
2786 (fetch_inferior_event_wrapper): Delete.
2788 2014-07-14 Pedro Alves <palves@redhat.com>
2791 * top.c: Include "inf-loop.h".
2792 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2794 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2796 (gdb_readline_wrapper): Store whether the target is async, and
2799 2014-07-14 Pedro Alves <palves@redhat.com>
2802 * top.c (gdb_readline_wrapper_line): Tweak comment.
2803 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2804 the input handler callback.
2806 2014-07-14 Pedro Alves <palves@redhat.com>
2809 * main.c: Include event-top.h.
2810 (handle_command_errors): New function.
2811 (catch_command_errors, catch_command_errors_const): Use it.
2813 2014-07-14 Pedro Alves <palves@redhat.com>
2815 * exceptions.c (catch_command_errors, catch_command_errors_const):
2817 * exceptions.h (catch_command_errors_ftype)
2818 (catch_command_errors_const_ftype): Moved to main.c.
2819 (catch_command_errors, catch_command_errors_const): Delete
2821 * main.c (catch_command_errors_ftype)
2822 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2823 (catch_command_errors, catch_command_errors_const)): Moved here
2824 from exceptions.c and make static.
2826 2014-07-14 Pedro Alves <palves@redhat.com>
2828 * exceptions.c (print_any_exception): Delete.
2829 (catch_exceptions_with_msg): Use exception_print instead of
2830 print_any_exception.
2831 (catch_errors): Use exception_fprintf instead of
2832 print_any_exception.
2833 (catch_command_errors, catch_command_errors_const): Use
2834 exception_print instead of print_any_exception.
2836 2014-07-14 Pedro Alves <palves@redhat.com>
2838 * infcall.c (run_inferior_call): Set 'sync_execution' while
2839 running the inferior call.
2841 2014-07-14 Pedro Alves <palves@redhat.com>
2843 * value.c (value_contents_equal): Delete function.
2844 * value.h (value_contents_equal): Delete declaration.
2846 2014-07-14 Tom Tromey <tromey@redhat.com>
2849 * gdbtypes.c (is_dynamic_type_internal): New function, from
2851 (is_dynamic_type): Rewrite.
2852 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2853 (resolve_dynamic_struct): Likewise.
2854 (resolve_dynamic_type_internal): New function, from
2855 resolve_dynamic_type.
2856 (resolve_dynamic_type): Rewrite.
2858 2014-07-14 Tom Tromey <tromey@redhat.com>
2860 * target.c (target_require_runnable): Also check record_stratum.
2863 2014-07-11 Yao Qi <yao@codesourcery.com>
2865 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2866 thumb_instruction_restores_sp return true.
2868 2014-07-11 Yao Qi <yao@codesourcery.com>
2870 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2871 (thumb_in_function_epilogue_p): Call
2872 thumb_instruction_restores_sp.
2874 2014-07-11 Yao Qi <yao@codesourcery.com>
2876 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2878 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2880 2014-07-11 Gary Benson <gbenson@redhat.com>
2882 * amd64-linux-nat.c (gdbcore.h): Remove include.
2883 (regset.h): Likewise.
2884 (nat/linux-btrace.h): Likewise.
2885 (btrace.h): Likewise.
2886 (gdb_assert.h): Likewise.
2887 (string.h): Likewise.
2888 (sys/uio.h): Likewise.
2889 (sys/debugreg.h): Likewise.
2890 (sys/syscall.h): Likewise.
2891 (sys/procfs.h): Likewise.
2892 (sys/user.h): Likewise.
2893 (asm/ptrace.h): Likewise.
2894 (i386-nat.h): Likewise.
2895 * i386-linux-nat.c (i386-nat.h): Likewise.
2896 (regset.h): Likewise.
2897 (target.h): Likewise.
2898 (linux-nat.h): Likewise.
2899 (nat/linux-btrace.h): Likewise.
2900 (btrace.h): Likewise.
2901 (gdb_assert.h): Likewise.
2902 (string.h): Likewise.
2903 (sys/uio.h): Likewise.
2904 (sys/user.h): Likewise.
2905 (sys/procfs.h): Likewise.
2906 (sys/reg.h): Likewise.
2907 (sys/debugreg.h): Likewise.
2908 (ORIG_EAX): Remove definition.
2910 2014-07-11 Gary Benson <gbenson@redhat.com>
2912 * i386-linux-nat.h: New file.
2913 * x86-linux-nat.h: Likewise.
2914 * x86-linux-nat.c: Likewise.
2915 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2916 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2917 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2918 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2919 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2920 (PTRACE_SETREGSET): Likewise.
2921 (arch_lwp_info): Now in x86-linux-nat.c.
2922 (have_ptrace_getregset): Now in x86-linux-nat.h.
2923 (x86_linux_dr_get): Now in x86-linux-nat.c.
2924 (x86_linux_dr_set): Likewise.
2925 (x86_linux_dr_get_addr): Likewise.
2926 (x86_linux_dr_get_control): Likewise.
2927 (x86_linux_dr_get_status): Likewise.
2928 (update_debug_registers_callback): Likewise.
2929 (x86_linux_dr_set_control): Likewise.
2930 (x86_linux_dr_set_addr): Likewise.
2931 (x86_linux_prepare_to_resume): Likewise.
2932 (x86_linux_new_thread): Likewise.
2933 (x86_linux_new_fork): Likewise.
2934 (x86_linux_get_thread_area): Likewise.
2935 (super_post_startup_inferior): Likewise.
2936 (x86_linux_child_post_startup_inferior): Likewise.
2937 (AMD64_LINUX_USER64_CS): Likewise.
2938 (AMD64_LINUX_X32_DS): Likewise.
2939 (x86_linux_read_description): Likewise.
2940 (x86_linux_enable_btrace): Likewise.
2941 (x86_linux_disable_btrace): Likewise.
2942 (x86_linux_teardown_btrace): Likewise.
2943 (x86_linux_read_btrace): Likewise.
2944 (x86_linux_create_target): Likewise.
2945 (x86_linux_add_target): Likewise.
2946 * i386-linux-nat.c (x86-linux-nat.h): New include.
2947 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2948 (PTRACE_SETREGSET): Likewise.
2949 (arch_lwp_info): Now in x86-linux-nat.c.
2950 (have_ptrace_getregset): Now in x86-linux-nat.h.
2951 (x86_linux_dr_get): Now in x86-linux-nat.c.
2952 (x86_linux_dr_set): Likewise.
2953 (x86_linux_dr_get_addr): Likewise.
2954 (x86_linux_dr_get_control): Likewise.
2955 (x86_linux_dr_get_status): Likewise.
2956 (update_debug_registers_callback): Likewise.
2957 (x86_linux_dr_set_control): Likewise.
2958 (x86_linux_dr_set_addr): Likewise.
2959 (x86_linux_prepare_to_resume): Likewise.
2960 (x86_linux_new_thread): Likewise.
2961 (x86_linux_new_fork): Likewise.
2962 (x86_linux_get_thread_area): Likewise.
2963 (super_post_startup_inferior): Likewise.
2964 (x86_linux_child_post_startup_inferior): Likewise.
2965 (AMD64_LINUX_USER64_CS): Likewise.
2966 (AMD64_LINUX_X32_DS): Likewise.
2967 (x86_linux_read_description): Likewise.
2968 (x86_linux_enable_btrace): Likewise.
2969 (x86_linux_disable_btrace): Likewise.
2970 (x86_linux_teardown_btrace): Likewise.
2971 (x86_linux_read_btrace): Likewise.
2972 (x86_linux_create_target): Likewise.
2973 (x86_linux_add_target): Likewise.
2975 2014-07-11 Gary Benson <gbenson@redhat.com>
2977 * amd64-linux-nat.c: Comment and whitespace changes.
2978 * i386-linux-nat.c: Comment and whitespace changes.
2980 2014-07-11 Gary Benson <gbenson@redhat.com>
2982 * amd64-linux-nat.c (x86_linux_create_target): New function.
2983 (x86_linux_add_target): Likewise.
2984 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2985 * i386-linux-nat.c (x86_linux_create_target): New function.
2986 (x86_linux_add_target): Likewise.
2987 (_initialize_i386_linux_nat): Delegate to the above new functions.
2989 2014-07-11 Gary Benson <gbenson@redhat.com>
2991 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2992 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2993 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2994 (ps_get_thread_area): Delegate to the above.
2996 2014-07-11 Gary Benson <gbenson@redhat.com>
2998 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2999 x86_linux_read_description. All uses updated. amd64-specific
3000 code conditionalized. Conditionalized i386-specific code added.
3001 Redundant cast removed.
3002 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3003 x86_linux_read_description. All uses updated. i386-specific
3004 code conditionalized. Conditionalized amd64-specific code added.
3005 One sizeof replaced with the actual type it is describing.
3007 2014-07-11 Gary Benson <gbenson@redhat.com>
3009 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3010 x86_linux_dr_get. All uses updated.
3011 (amd64_linux_dr_set): Renamed to
3012 x86_linux_dr_set. All uses updated.
3013 (amd64_linux_dr_get_addr): Renamed to
3014 x86_linux_dr_get_addr. All uses updated.
3015 (amd64_linux_dr_get_control): Renamed to
3016 x86_linux_dr_get_control. All uses updated.
3017 (amd64_linux_dr_get_status): Renamed to
3018 x86_linux_dr_get_status. All uses updated.
3019 (amd64_linux_dr_set_control): Renamed to
3020 x86_linux_dr_set_control. All uses updated.
3021 (amd64_linux_dr_set_addr): Renamed to
3022 x86_linux_dr_set_addr. All uses updated.
3023 (amd64_linux_prepare_to_resume): Renamed to
3024 x86_linux_prepare_to_resume. All uses updated.
3025 (amd64_linux_new_thread): Renamed to
3026 x86_linux_new_thread. All uses updated.
3027 (amd64_linux_new_fork): Renamed to
3028 x86_linux_new_fork. All uses updated.
3029 (amd64_linux_child_post_startup_inferior): Renamed to
3030 x86_linux_child_post_startup_inferior. All uses updated.
3031 (amd64_linux_enable_btrace): Renamed to
3032 x86_linux_enable_btrace. All uses updated.
3033 (amd64_linux_disable_btrace): Renamed to
3034 x86_linux_disable_btrace. All uses updated.
3035 (amd64_linux_teardown_btrace): Renamed to
3036 x86_linux_teardown_btrace. All uses updated.
3037 (amd64_linux_read_btrace): Renamed to
3038 x86_linux_read_btrace. All uses updated.
3039 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3040 x86_linux_dr_get. All uses updated.
3041 (i386_linux_dr_set): Renamed to
3042 x86_linux_dr_set. All uses updated.
3043 (i386_linux_dr_get_addr): Renamed to
3044 x86_linux_dr_get_addr. All uses updated.
3045 (i386_linux_dr_get_control): Renamed to
3046 x86_linux_dr_get_control. All uses updated.
3047 (i386_linux_dr_get_status): Renamed to
3048 x86_linux_dr_get_status. All uses updated.
3049 (i386_linux_dr_set_control): Renamed to
3050 x86_linux_dr_set_control. All uses updated.
3051 (i386_linux_dr_set_addr): Renamed to
3052 x86_linux_dr_set_addr. All uses updated.
3053 (i386_linux_prepare_to_resume): Renamed to
3054 x86_linux_prepare_to_resume. All uses updated.
3055 (i386_linux_new_thread): Renamed to
3056 x86_linux_new_thread. All uses updated.
3057 (i386_linux_new_fork): Renamed to
3058 x86_linux_new_fork. All uses updated.
3059 (i386_linux_child_post_startup_inferior): Renamed to
3060 x86_linux_child_post_startup_inferior. All uses updated.
3061 (i386_linux_enable_btrace): Renamed to
3062 x86_linux_enable_btrace. All uses updated.
3063 (i386_linux_disable_btrace): Renamed to
3064 x86_linux_disable_btrace. All uses updated.
3065 (i386_linux_teardown_btrace): Renamed to
3066 x86_linux_teardown_btrace. All uses updated.
3067 (i386_linux_read_btrace): Renamed to
3068 x86_linux_read_btrace. All uses updated.
3070 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3072 * remote.c (extended_remote_post_attach): New function.
3073 (init_extended_remote_ops): Install it as to_post_attach method.
3075 2014-07-09 Pedro Alves <palves@redhat.com>
3077 * infcmd.c (attach_command_post_wait): Don't call
3078 target_terminal_inferior here.
3079 (attach_command): Call it here instead.
3081 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3083 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3085 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3086 from varobj.c, with additional checks.
3087 (c_varobj_ops): Fill in is_path_expr_parent field.
3088 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3089 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3091 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3093 (varobj_default_is_path_expr_parent): New function.
3094 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3095 (varobj_default_is_path_expr_parent): Declare new function.
3097 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3099 * infcmd.c (finish_backward): Turn internal error into normal error.
3101 2014-07-07 Pedro Alves <palves@redhat.com>
3104 * remote.c (async_handle_remote_sigint)
3105 (async_handle_remote_sigint_twice): Call
3106 gdb_call_async_signal_handler instead of
3107 mark_async_signal_handler.
3109 2014-07-07 Tom Tromey <tromey@redhat.com>
3111 * target-delegates.c: Rebuild.
3112 * target.c (target_info_record): Remove.
3113 * record.c (info_record_command): Unconditionally call
3115 * target.h (struct target_ops) <to_info_record>: Use
3116 TARGET_DEFAULT_IGNORE.
3117 (target_info_record): Remove.
3119 2014-07-07 Tom Tromey <tromey@redhat.com>
3121 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3122 TARGET_DEFAULT_NORETURN.
3123 * target.c (generic_tls_error): New function.
3124 (target_translate_tls_address): Don't search target stack.
3125 * target-delegates.c: Rebuild.
3126 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3128 * linux-thread-db.c (thread_db_get_thread_local_address):
3129 Unconditionally call beneath target.
3131 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3133 * cli/cli-logging.c (pop_output_files): Assign targerr to
3136 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3138 * MAINTAINERS (Write After Approval): Update my email address.
3140 2014-07-02 Gary Benson <gbenson@redhat.com>
3142 * proc-service.c (ps_xfer_memory): Update comment.
3143 (ps_pstop): Remove unused function.
3144 (ps_pcontinue): Likewise.
3145 (ps_lstop): Likewise.
3146 (ps_lcontinue): Likewise.
3147 (ps_lgetxregsize): Likewise.
3148 (ps_lgetxregs): Likewise.
3149 (ps_lsetxregs): Likewise.
3150 (ps_plog): Likewise.
3151 (ps_ptread): Likewise.
3152 (ps_ptwrite): Likewise.
3154 2014-07-01 Mark Wielaard <mjw@redhat.com>
3156 * dwarf2read.c (add_array_cv_type): New function.
3157 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3158 (read_tag_volatile_type): Likewise.
3160 2014-07-01 Tom Tromey <tromey@redhat.com>
3162 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3163 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3164 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3165 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3166 * command.h (cmd_cfunc_ftype): Move earlier.
3167 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3168 (add_com, add_info): Use cmd_cfunc_ftype.
3170 2014-06-30 Tom Tromey <tromey@redhat.com>
3172 * symtab.c (operator_chars): Make parameters and return type
3174 (file_matches): Make "files" const.
3175 (struct search_symbols_data) <files>: Now const.
3176 (search_symbols): Make "regexp" and "files" parameters const.
3178 (symtab_symbol_info): Remove cast.
3179 (rbreak_command): Update.
3180 * symtab.h (search_symbols): Update.
3182 2014-06-27 Yao Qi <yao@codesourcery.com>
3184 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3185 Change parameter type to 'struct thread_info *'. Caller
3187 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3189 * dummy-frame.c (struct dummy_frame_id): New.
3190 (dummy_frame_id_eq): New function.
3191 (struct dummy_frame) <id>: Change its type to 'struct
3193 (dummy_frame_push): Add parameter ptid and save it in
3195 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3197 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3199 (lookup_dummy_frame): Change parameter type to 'struct
3200 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3201 instead of frame_id_eq.
3202 (dummy_frame_pop): Add parameter ptid. Callers updated.
3203 Update comments. Compose dummy_frame_id and pass it to
3205 (dummy_frame_discard): Add parameter ptid.
3206 (dummy_frame_sniffer): Compose dummy_frame_id and call
3207 dummy_frame_id_eq instead of frame_id_eq.
3208 (fprint_dummy_frames): Print ptid.
3209 * dummy-frame.h: Remove comments.
3210 (dummy_frame_push): Add ptid in declaration.
3211 (dummy_frame_pop, dummy_frame_discard): Likewise.
3213 2014-06-26 Tom Tromey <tromey@redhat.com>
3215 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3216 * command.h (error_no_arg): Update.
3218 2014-06-26 Tom Tromey <tromey@redhat.com>
3220 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3221 (do_show_command): Make "arg" const.
3222 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3224 2014-06-26 Tom Tromey <tromey@redhat.com>
3226 * record-full.c (record_full_get_bookmark): Make "args" const.
3227 (record_full_goto_bookmark): Make "raw_bookmark" const.
3228 * record.c (record_goto): New function.
3229 (cmd_record_goto): Use it. Now static.
3230 * record.h (record_goto): Declare.
3231 (cmd_record_goto): Remove declaration.
3232 * target-delegates.c: Rebuild.
3233 * target.h (struct target_ops) <to_get_bookmark,
3234 to_goto_bookmark>: Make parameter const.
3236 2014-06-26 Tom Tromey <tromey@redhat.com>
3238 * defs.h (generic_load): Update.
3239 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3240 * monitor.c (monitor_load): Make "args" const.
3241 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3242 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3244 (mips_load): Make "file" const.
3245 * remote-sim.c (gdbsim_load): Make "args" const.
3246 * remote.c (remote_load): Make "name" const.
3247 * symfile.c (generic_load): Make "args" const.
3248 * target-delegates.c: Rebuild.
3249 * target.c (target_load): Make "arg" const.
3250 (debug_to_load): Make "args" const.
3251 * target.h (struct target_ops) <to_load>: Make parameter const.
3252 (target_load): Update.
3254 2014-06-26 Tom Tromey <tromey@redhat.com>
3257 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3258 (dwarf2_physname, read_partial_die)
3259 (guess_partial_die_structure_name, fixup_partial_die)
3260 (guess_full_die_structure_name, anonymous_struct_prefix)
3261 (dwarf2_name): Use per-BFD obstack.
3263 2014-06-26 Yao Qi <yao@codesourcery.com>
3265 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3266 dummyframe and this_id into inner block below.
3268 2014-06-26 Yao Qi <yao@codesourcery.com>
3270 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3271 with "signal_pass[0]" in the initialization of signal_pass.
3273 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3275 * record-btrace.c (record_btrace_generating_corefile)
3276 (record_btrace_prepare_to_generate_core)
3277 (record_btrace_done_generating_core): New.
3278 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3279 (record_btrace_store_registers, record_btrace_prepare_to_store):
3280 Forward request when generating a core file.
3281 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3282 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3283 to_done_generating_core.
3285 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3287 * target.h (target_ops) <to_prepare_to_generate_core>
3288 <to_done_generating_core>: New.
3289 (target_prepare_to_generate_core, target_done_generating_core): New.
3290 * target.c (target_prepare_to_generate_core)
3291 (target_done_generating_core): New.
3292 * target-delegates.c: Regenerate.
3293 * gcore.c: (write_gcore_file): Rename to ...
3294 (write_gcore_file_1): ...this.
3295 (write_gcore_file): Call target_prepare_to_generate_core
3296 and target_done_generating_core.
3298 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3300 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3301 * gcore.c (write_gcore_file): Free memory returned from
3302 make_corefile_notes.
3303 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3304 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3306 2014-06-24 Yao Qi <yao@codesourcery.com>
3308 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3309 (arm_linux_init_abi): Set skip_trampoline_code with
3310 gdbarch_skip_trampoline_code instead of
3311 find_solib_trampoline_target.
3313 2014-06-24 Yao Qi <yao@codesourcery.com>
3315 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3316 arm_skip_bx_reg returns non-zero.
3318 2014-06-24 Yao Qi <yao@codesourcery.com>
3320 * arm-tdep.c (arm_skip_bx_reg): New function.
3321 (arm_skip_stub): Call arm_skip_bx_reg.
3323 2014-06-23 Don Breazeal <donb@codesourcery.com>
3325 * MAINTAINERS: Add myself as write-after-approval maintainer.
3327 2014-06-23 Pedro Alves <palves@redhat.com>
3329 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3330 DR_CONTROL before setting DR0..DR3.
3331 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3332 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3333 bits of DR_CONTROL related to the debug register slot being
3334 disabled. If all slots are vacant, clear local slowdown as well,
3335 and assert DR_CONTROL is 0.
3337 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3339 * python/lib/gdb/command/xmethods.py
3340 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3341 current progspace only if the string "progspace" matches LOCUS_RE.
3343 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3345 Fix --with-system-readline with readline-6.3 patch 5.
3346 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3347 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3350 2014-06-20 Tom Tromey <tromey@redhat.com>
3352 * dwarf2read.c (dw2_get_real_path): Use correct type in
3354 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3356 2014-06-20 Gary Benson <gbenson@redhat.com>
3358 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3359 * common/glibc_thread_db.h: Likewise.
3360 * common/i386-cpuid.h: Likewise.
3361 * common/i386-gcc-cpuid.h: Likewise.
3362 * common/linux-btrace.h: Likewise.
3363 * common/linux-osdata.h: Likewise.
3364 * common/linux-procfs.h: Likewise.
3365 * common/linux-ptrace.h: Likewise.
3366 * common/mips-linux-watch.h: Likewise.
3367 * common/linux-btrace.c: Moved to nat.
3368 * common/linux-osdata.c: Likewise.
3369 * common/linux-procfs.c: Likewise.
3370 * common/linux-ptrace.c: Likewise.
3371 * common/mips-linux-watch.c: Likewise.
3372 * nat/gdb_thread_db.h: Moved from common.
3373 * nat/glibc_thread_db.h: Likewise.
3374 * nat/i386-cpuid.h: Likewise.
3375 * nat/i386-gcc-cpuid.h: Likewise.
3376 * nat/linux-btrace.c: Likewise.
3377 * nat/linux-btrace.h: Likewise.
3378 * nat/linux-osdata.c: Likewise.
3379 * nat/linux-osdata.h: Likewise.
3380 * nat/linux-procfs.c: Likewise.
3381 * nat/linux-procfs.h: Likewise.
3382 * nat/linux-ptrace.c: Likewise.
3383 * nat/linux-ptrace.h: Likewise.
3384 * nat/mips-linux-watch.c: Likewise.
3385 * nat/mips-linux-watch.h: Likewise.
3386 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3387 (object file files): Reordered.
3388 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3389 of glibc_thread_db.h.
3391 2014-06-20 Gary Benson <gbenson@redhat.com>
3393 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3394 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3395 (i386_dr_low): Likewise.
3396 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3397 (i386_dr_low_set_addr): Likewise.
3398 (i386_dr_low_get_addr): Likewise.
3399 (i386_dr_low_can_set_control): Likewise.
3400 (i386_dr_low_set_control): Likewise.
3401 (i386_dr_low_get_control): Likewise.
3402 (i386_dr_low_get_status): Likewise.
3403 (i386_get_debug_register_length): Likewise.
3404 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3405 (i386_dr_low): Likewise.
3406 * nat/i386-dregs.c (i386-low.h): Remove include.
3407 (i386-nat.h): Likewise.
3408 (nat/i386-dregs.h): New include.
3409 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3410 (i386_dr_low_set_addr): Likewise.
3411 (i386_dr_low_get_addr): Likewise.
3412 (i386_dr_low_can_set_control): Likewise.
3413 (i386_dr_low_set_control): Likewise.
3414 (i386_dr_low_get_control): Likewise.
3415 (i386_dr_low_get_status): Likewise.
3416 (i386_get_debug_register_length): Likewise.
3417 (debug_hw_points): Likewise.
3419 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3421 * Makefile.in (SFILES): Add d-exp.y.
3422 (YYFILES): Add d-exp.c.
3423 (YYOBJ): Add d-exp.o.
3424 (local-maintainer-clean): Delete d-exp.c.
3425 * d-exp.y: New file.
3426 * d-lang.h (d_parse): New declaration.
3427 (d_error): New declaration.
3428 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3429 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3430 PREC_ORDER operators.
3431 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3433 2014-06-19 Yao Qi <yao@codesourcery.com>
3435 * gdbthread.h (any_running): Remove the declaration.
3436 * thread.c (any_running): Remove.
3438 2014-06-19 Yao Qi <yao@codesourcery.com>
3440 * gdbthread.h (struct thread_info) <state>: Change its type to
3441 'enum thread_state'. Update comments.
3443 2014-06-19 Pedro Alves <palves@redhat.com>
3445 * gdbthread.h (ALL_THREADS): Delete.
3446 (ALL_NON_EXITED_THREADS): New macro.
3447 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3448 instead of ALL_THREADS.
3449 * infrun.c (find_thread_needs_step_over)
3450 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3451 instead of ALL_THREADS.
3452 * record-btrace.c (record_btrace_open)
3453 (record_btrace_stop_recording, record_btrace_close)
3454 (record_btrace_is_replaying, record_btrace_resume)
3455 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3456 * remote.c (append_pending_thread_resumptions): Likewise.
3457 * thread.c (thread_apply_all_command): Likewise.
3459 2014-06-19 Gary Benson <gbenson@redhat.com>
3461 * i386-nat.c (i386_stopped_by_watchpoint):
3462 Use i386_dr_stopped_by_watchpoint.
3463 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3464 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3466 2014-06-19 Gary Benson <gbenson@redhat.com>
3468 * nat/i386-dregs.c: New file.
3469 * Makefile.in (i386-dregs.o): New rule.
3470 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3471 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3472 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3473 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3474 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3475 * config/i386/go32.mh (NATDEPFILES): Likewise.
3476 * config/i386/linux.mh (NATDEPFILES): Likewise.
3477 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3478 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3479 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3480 * i386-nat.h (debug_hw_points): New declaration.
3481 * i386-nat.c (breakpoint.h): Remove include.
3482 (command.h): Likewise.
3483 (target.h): Likewise.
3484 (gdb_assert.h): Likewise.
3485 (debug_hw_points): Made nonstatic.
3486 (debug_printf): Now in i386-dregs.c.
3487 (TARGET_HAS_DR_LEN_8): Likewise.
3488 (DR_CONTROL_SHIFT): Likewise.
3489 (DR_CONTROL_SIZE): Likewise.
3490 (DR_RW_EXECUTE): Likewise.
3491 (DR_RW_WRITE): Likewise.
3492 (DR_RW_READ): Likewise.
3493 (DR_RW_IORW): Likewise.
3494 (DR_LEN_1): Likewise.
3495 (DR_LEN_2): Likewise.
3496 (DR_LEN_4): Likewise.
3497 (DR_LEN_8): Likewise.
3498 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3499 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3500 (DR_ENABLE_SIZE): Likewise.
3501 (DR_LOCAL_SLOWDOWN): Likewise.
3502 (DR_GLOBAL_SLOWDOWN): Likewise.
3503 (DR_CONTROL_RESERVED): Likewise.
3504 (I386_DR_CONTROL_MASK): Likewise.
3505 (I386_DR_VACANT): Likewise.
3506 (I386_DR_LOCAL_ENABLE): Likewise.
3507 (I386_DR_GLOBAL_ENABLE): Likewise.
3508 (I386_DR_DISABLE): Likewise.
3509 (I386_DR_SET_RW_LEN): Likewise.
3510 (I386_DR_GET_RW_LEN): Likewise.
3511 (I386_DR_WATCH_HIT): Likewise.
3512 (i386_wp_op_t): Likewise.
3513 (i386_show_dr): Likewise.
3514 (i386_length_and_rw_bits): Likewise.
3515 (i386_insert_aligned_watchpoint): Likewise.
3516 (i386_remove_aligned_watchpoint): Likewise.
3517 (i386_handle_nonaligned_watchpoint): Likewise.
3518 (i386_update_inferior_debug_regs): Likewise.
3519 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3520 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3521 (i386_region_ok_for_watchpoint):
3522 Use i386_dr_region_ok_for_watchpoint.
3523 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3525 2014-06-19 Gary Benson <gbenson@redhat.com>
3527 * i386-nat.c (i386_insert_hw_breakpoint): Use
3528 i386_insert_watchpoint.
3529 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3531 2014-06-19 Gary Benson <gbenson@redhat.com>
3533 * i386-nat.c (i386_dr_show): Renamed to
3534 i386_show_dr and made static. All uses updated.
3535 (i386_dr_length_and_rw_bits): Renamed to
3536 i386_length_and_rw_bits and made static.
3538 (i386_dr_insert_aligned_watchpoint): Renamed to
3539 i386_insert_aligned_watchpoint and made static.
3541 (i386_dr_remove_aligned_watchpoint): Renamed to
3542 i386_remove_aligned_watchpoint and made static.
3544 (i386_dr_update_inferior_debug_regs): Renamed to
3545 i386_update_inferior_debug_regs and made static.
3547 * nat/i386-dregs.h (i386_dr_show): Removed.
3548 (i386_dr_length_and_rw_bits): Likewise.
3549 (i386_dr_insert_aligned_watchpoint): Likewise.
3550 (i386_dr_remove_aligned_watchpoint): Likewise.
3551 (i386_dr_update_inferior_debug_regs): Likewise.
3553 2014-06-19 Gary Benson <gbenson@redhat.com>
3555 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3556 * configure: Regenerate.
3557 * config.in: Likewise.
3558 * main.c (signal.h): New include.
3559 (setup_alternate_signal_stack): New function.
3560 (captured_main): Call the above.
3561 * cp-support.c (signal.h): New include.
3562 (catch_demangler_crashes): New flag.
3563 (SIGJMP_BUF): New define.
3564 (SIGSETJMP): Likewise.
3565 (SIGLONGJMP): Likewise.
3566 (gdb_demangle_jmp_buf): New static global.
3567 (gdb_demangle_attempt_core_dump): Likewise.
3568 (gdb_demangle_signal_handler): New function.
3569 (gdb_demangle): If catch_demangler_crashes is set, install the
3570 above signal handler before calling bfd_demangle, and restore
3571 the original signal handler afterwards. Display the offending
3572 symbol and call demangler_warning the first time a segmentation
3574 (_initialize_cp_support): New maint set/show command.
3576 2014-06-19 Gary Benson <gbenson@redhat.com>
3578 * utils.h (resource_limit_kind): New enum.
3579 (can_dump_core): New declaration.
3580 (warn_cant_dump_core): Likewise.
3581 (dump_core): Likewise.
3582 * utils.c (dump_core): Made nonstatic. Added new
3583 parameter "limit_kind".
3584 (can_dump_core): Made nonstatic. Moved printing code to...
3585 (warn_cant_dump_core): New function.
3586 (can_dump_core_warn): Likewise.
3587 (internal_vproblem): Replace calls to can_dump_core with
3588 calls to can_dump_core_warn. Supply new argument to each.
3590 2014-06-19 Gary Benson <gbenson@redhat.com>
3592 * utils.h (demangler_vwarning): New declaration.
3593 (demangler_warning): Likewise.
3594 * utils.c (struct internal_problem)
3595 <user_settable_should_quit>: New field.
3596 <user_settable_should_dump_core>: Likewise
3597 (internal_error_problem): Add values for above new fields.
3598 (internal_warning_problem): Likewise.
3599 (demangler_warning_problem): New static global.
3600 (demangler_vwarning): New function.
3601 (demangler_warning): Likewise.
3602 (add_internal_problem_command): Selectively add commands.
3603 (_initialize_utils): New internal problem command.
3604 * maint.c (maintenance_demangler_warning): New function.
3605 (_initialize_maint_cmds): New command.
3607 2014-06-18 Tom Tromey <tromey@redhat.com>
3609 * f-valprint.c (info_common_command_for_block): Update.
3610 * symtab.h (struct general_symbol_info) <common_block>: Now
3613 2014-06-18 Tom Tromey <tromey@redhat.com>
3615 * symtab.h (struct symtab) <blockvector>: Now const.
3616 * ada-lang.c (ada_add_global_exceptions): Update.
3617 * buildsym.c (augment_type_symtab): Update.
3618 * dwarf2read.c (dw2_lookup_symbol): Update.
3619 * jit.c (finalize_symtab): Update.
3620 * jv-lang.c (add_class_symtab_symbol): Update.
3621 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3623 * objfiles.c (objfile_relocate1): Update.
3624 * psymtab.c (lookup_symbol_aux_psymtabs)
3625 (maintenance_check_psymtabs): Update.
3626 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3628 * spu-tdep.c (spu_catch_start): Update.
3629 * symmisc.c (dump_symtab_1): Update.
3630 * symtab.c (lookup_global_symbol_from_objfile)
3631 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3632 (basic_lookup_transparent_type_quick)
3633 (basic_lookup_transparent_type, find_pc_sect_symtab)
3634 (find_pc_sect_line, search_symbols): Update.
3635 * block.c (find_block_in_blockvector): Make "bl" const.
3636 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3638 (blockvector_contains_pc): Make "bv" const.
3639 (block_for_pc_sect): Update.
3640 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3641 (blockvector_contains_pc): Update.
3642 * breakpoint.c (resolve_sal_pc): Update.
3643 * inline-frame.c (block_starting_point_at): Update.
3645 2014-06-18 Tom Tromey <tromey@redhat.com>
3647 * completer.c (complete_line): Make "line_buffer" const.
3648 * completer.h (complete_line): Update.
3650 2014-06-18 Tom Tromey <tromey@redhat.com>
3652 * symtab.c (add_macro_name): Remove unneeded cast.
3654 2014-06-18 Tom Tromey <tromey@redhat.com>
3656 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3657 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3659 2014-06-18 Tom Tromey <tromey@redhat.com>
3661 * probe.c (info_probes_for_ops): Make "arg" const.
3662 * probe.h (info_probes_for_ops): Update.
3664 2014-06-18 Tom Tromey <tromey@redhat.com>
3666 * varobj.c (varobj_create): Update.
3667 * valops.c (value_of_this): Update.
3668 * tracepoint.c (add_local_symbols, scope_info): Update.
3669 * symtab.h (struct general_symbol_info) <block>: Now const.
3670 * symtab.c (skip_prologue_sal)
3671 (default_make_symbol_completion_list_break_on)
3672 (skip_prologue_using_sal): Update.
3673 * stack.h (iterate_over_block_locals)
3674 (iterate_over_block_local_vars): Update.
3675 * stack.c (print_frame_args): Update.
3676 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3678 (get_selected_block): Make return type const.
3679 * python/py-frame.c (frapy_block): Update.
3680 * python/py-block.c (gdbpy_block_for_pc): Update.
3681 * p-exp.y (%union) <bval>: Now const.
3682 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3683 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3684 * m2-exp.y (%union) <bval>: Now const.
3685 * linespec.c (get_current_search_block): Make return type const.
3686 (create_sals_line_offset, find_label_symbols): Update.
3687 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3689 (block_starting_point_at): Make "block" const.
3690 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3691 (check_exception_resume): Update.
3692 * guile/scm-frame.c (gdbscm_frame_block): Update.
3693 * guile/scm-block.c (gdbscm_lookup_block): Update.
3694 * frame.h (get_frame_block): Update.
3695 (get_selected_block): Make return type const.
3696 * frame.c (frame_id_inner): Update.
3697 * f-valprint.c (info_common_command_for_block)
3698 (info_common_command): Update.
3699 * dwarf2loc.c (dwarf2_find_location_expression)
3700 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3701 (locexpr_describe_location_piece): Update.
3702 * c-exp.y (%union) <bval>: Now const.
3703 * breakpoint.c (resolve_sal_pc): Update.
3704 * blockframe.c (get_frame_block):Make return type const.
3705 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3706 (block_innermost_frame): Update.
3707 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3708 (block_for_pc, block_for_pc_sect): Update.
3709 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3711 (block_for_pc_sect, block_for_pc): Make return type const.
3712 * ax-gdb.c (gen_expr): Update.
3713 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3714 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3715 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3716 (ada_read_var_value): Update.
3717 * ada-exp.y (struct name_info) <block>: Now const.
3719 (block_lookup): Constify.
3721 2014-06-18 Gary Benson <gbenson@redhat.com>
3723 * nat/i386-dregs.h: New file.
3724 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3725 * i386-nat.h (i386-dregs.h): New include.
3726 (DR_FIRSTADDR): Now in i386-dregs.h.
3727 (DR_LASTADDR): Likewise.
3728 (DR_NADDR): Likewise.
3729 (DR_STATUS): Likewise.
3730 (DR_CONTROL): Likewise.
3731 (i386_debug_reg_state): Likewise.
3732 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3734 2014-06-18 Don Breazeal <donb@codesourcery.com>
3736 * breakpoint.c (set_longjmp_breakpoint): Call
3737 momentary_breakpoint_from_master with additional argument.
3738 (set_longjmp_breakpoint_for_call_dummy): Call
3739 momentary_breakpoint_from_master with additional argument.
3740 (set_std_terminate_breakpoint): Call
3741 momentary_breakpoint_from_master with additional argument.
3742 (momentary_breakpoint_from_master): Add argument to function
3743 definition and use it to initialize structure member flag.
3744 (clone_momentary_breakpoint): Call
3745 momentary_breakpoint_from_master with additional argument.
3746 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3747 member flags set in momentary_breakpoint_from_master.
3749 2014-06-18 Gary Benson <gbenson@redhat.com>
3751 * i386-nat.c (i386_show_dr): Renamed to
3752 i386_dr_show and made nonstatic. All uses updated.
3753 (i386_length_and_rw_bits): Renamed to
3754 i386_dr_length_and_rw_bits and made nonstatic.
3756 (i386_insert_aligned_watchpoint): Renamed to
3757 i386_dr_insert_aligned_watchpoint and made nonstatic.
3759 (i386_remove_aligned_watchpoint): Renamed to
3760 i386_dr_remove_aligned_watchpoint and made nonstatic.
3762 (i386_update_inferior_debug_regs): Renamed to
3763 i386_dr_update_inferior_debug_regs and made nonstatic.
3766 2014-06-18 Gary Benson <gbenson@redhat.com>
3768 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3769 (i386_dr_low_can_set_control): Likewise.
3770 (i386_dr_low_set_addr): Likewise.
3771 (i386_dr_low_set_control): Likewise.
3772 (i386_dr_low_get_addr): Likewise.
3773 (i386_dr_low_get_status): Likewise.
3774 (i386_dr_low_get_control): Likewise.
3775 (i386_insert_aligned_watchpoint): Use new macros.
3776 (i386_update_inferior_debug_regs): Likewise.
3777 (i386_stopped_data_address): Likewise.
3779 2014-06-18 Gary Benson <gbenson@redhat.com>
3781 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3782 New parameter. All uses updated.
3784 2014-06-18 Gary Benson <gbenson@redhat.com>
3786 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3789 2014-06-18 Gary Benson <gbenson@redhat.com>
3791 * i386-nat.c (debug_printf): New macro.
3792 (i386_get_debug_register_length): Likewise.
3793 (TARGET_HAS_DR_LEN_8): Use above macro.
3794 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3795 and printf_unfiltered. Use phex to format values.
3797 2014-06-18 Gary Benson <gbenson@redhat.com>
3799 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3802 2014-06-18 Gary Benson <gbenson@redhat.com>
3804 * i386-nat.c: Comment changes.
3806 2014-06-18 Gary Benson <gbenson@redhat.com>
3808 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3810 2014-06-18 Gary Benson <gbenson@redhat.com>
3812 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3813 (i386_insert_aligned_watchpoint): Likewise.
3814 (i386_remove_aligned_watchpoint): Likewise.
3815 (i386_handle_nonaligned_watchpoint): Likewise.
3817 2014-06-18 Gary Benson <gbenson@redhat.com>
3819 * i386-nat.c: Whitespace changes.
3821 2014-06-17 Samuel Bronson <naesten@gmail.com>
3823 * MAINTAINERS: Update Roland McGrath's email address.
3824 Thanks to Sergio Durigan Junior for pointing out that he left
3825 Red Hat a while ago, and giving me a current address.
3827 2014-06-17 Tom Tromey <tromey@redhat.com>
3829 * utils.h (savestring): Remove declaration.
3831 2014-06-17 Tom Tromey <tromey@redhat.com>
3833 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3835 2014-06-16 Keith Seitz <keiths@redhat.com>
3838 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3839 to update the varobj if inferior_ptid is null_ptid.
3841 2014-06-16 Tom Tromey <tromey@redhat.com>
3843 * target.h (struct target_ops) <to_info_proc>: Make parameter
3845 (target_info_proc): Update.
3846 * target.c (target_info_proc): Make "args" const.
3847 * procfs.c (procfs_info_proc): Update.
3848 * linux-tdep.c (linux_info_proc): Update.
3849 (linux_core_info_proc_mappings): Make "args" const.
3850 (linux_core_info_proc): Update.
3851 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3852 * gdbarch.c: Rebuild.
3853 * gdbarch.h: Rebuild.
3854 * corelow.c (core_info_proc): Update.
3856 2014-06-16 Tom Tromey <tromey@redhat.com>
3858 * target.h (struct target_ops) <to_disconnect>: Make parameter
3860 (target_disconnect): Update.
3861 * target.c (target_disconnect): Make "args" const.
3862 * target-delegates.c: Rebuild.
3863 * remote.c (remote_disconnect): Update.
3864 * record.h (record_disconnect): Update.
3865 * record.c (record_disconnect): Update.
3866 * inf-child.c (inf_child_disconnect): Update.
3868 2014-06-16 Tom Tromey <tromey@redhat.com>
3870 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3871 * target.c (debug_to_rcmd, default_rcmd): Update.
3872 * target-delegates.c: Rebuild.
3873 * remote.c (remote_rcmd): Update.
3874 * monitor.c (monitor_rcmd): Update.
3876 2014-06-16 Pedro Alves <palves@redhat.com>
3878 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3879 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3880 have OBJF_SHARED set.
3881 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3882 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3883 instead of OBJF_USERLOADED.
3884 * objfiles.h (OBJF_SHARED): Update comment.
3885 (userloaded_objfile_contains_address_p): Rename to ...
3886 (shared_objfile_contains_address_p): ... this, and update
3888 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3890 (remove_symbol_file_command): Skip objfiles that don't have
3893 2014-06-16 Tom Tromey <tromey@redhat.com>
3895 * minsyms.h (prim_record_minimal_symbol)
3896 (prim_record_minimal_symbol_and_info): Update comments.
3898 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3900 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3901 or --without-guile, according to how GDB was built.
3903 2014-06-13 Tom Tromey <tromey@redhat.com>
3905 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3907 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3909 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3911 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3912 help_list.Pass all_commands, not -1, to help_list.
3913 * cli/cli-dump.c (dump_command, append_command)
3914 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3915 (binary_dump_command, binary_append_command): Pass all_commands,
3916 not -1, to help_list.
3917 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3919 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3921 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3923 * top.c (set_history): Pass all_commands, not -1, to help_list.
3924 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3925 all_commands, not -1, to help_list.
3926 * symfile.c (overlay_command): Pass all_commands, not -1, to
3928 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3930 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3932 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3934 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3935 not -1, to help_list.
3936 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3937 not -1, to help_list.
3938 * maint.c (maintenance_command, maintenance_info_command)
3939 (maintenance_print_command, maintenance_set_cmd): Pass
3940 all_commands, not -1, to help_list.
3941 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3943 * language.c (set_check): Pass all_commands, not -1, to help_list.
3944 * infcmd.c (unset_command): Pass all_commands, not -1, to
3946 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3948 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3950 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3952 * breakpoint.c (save_command): Pass all_commands, not -1, to
3954 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3955 all_commands, not -1, to help_list.
3957 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3959 * regcache.c (struct register_to_invalidate): New structure.
3960 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3962 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3964 2014-06-12 Yao Qi <yao@codesourcery.com>
3966 * varobj.c (varobj_get_num_children): Call
3967 varobj_is_dynamic_p.
3968 (varobj_list_children): Likewise.
3969 (varobj_update): Likewise. Update comments.
3971 2014-06-12 Yao Qi <yao@codesourcery.com>
3973 * varobj.c (varobj_pretty_printed_p): Rename to ...
3974 (varobj_is_dynamic_p): ... this. New function.
3975 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3976 (varobj_is_dynamic_p): Declare.
3977 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3978 (mi_print_value_p, varobj_update_one): Likewise.
3980 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3981 Yao Qi <yao@codesourcery.com>
3983 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3984 (varobj_get_iterator): Wrap up code for pretty-printer by
3985 "#if HAVE_PYTHON" and "#endif".
3986 (update_dynamic_varobj_children): Likewise.
3988 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3989 Yao Qi <yao@codesourcery.com>
3991 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3992 gdb_python_initialized is false. Move some code from varobj.c.
3993 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3994 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3995 (struct varobj_item): Moved to varobj-iter.h".
3996 (varobj_clear_saved_item): New function.
3997 (update_dynamic_varobj_children): Move python-related code to
3999 (free_variable): Call varobj_clear_saved_item and
4002 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4003 Yao Qi <yao@codesourcery.com>
4005 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4006 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4007 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4008 (py-varobj.o): New rule.
4009 * python/py-varobj.c: New file.
4010 * python/python-internal.h (py_varobj_get_iterator): Declare.
4011 * varobj-iter.h: New file.
4012 * varobj.c: Include "varobj-iter.h"
4013 (struct varobj) <child_iter>: Change its type from "PyObject *"
4014 to "struct varobj_iter *".
4015 <saved_item>: Likewise.
4016 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4017 [HAVE_PYTHON] (varobj_get_iterator): New function.
4018 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4019 python-specific code to python/py-varobj.c.
4020 (install_visualizer): Call varobj_iter_delete instead of
4022 * varobj.h (varobj_ensure_python_env): Declare.
4024 2014-06-12 Yao Qi <yao@codesourcery.com>
4026 * varobj.c (struct varobj_item): New structure.
4027 (create_child_with_value): Update declaration.
4028 (varobj_add_child): Replace arguments 'name' and 'value' with
4029 'item'. All callers updated.
4030 (install_dynamic_child): Likewise.
4031 (update_dynamic_varobj_children): Likewise.
4032 (varobj_add_child): Likewise.
4033 (create_child_with_value): Likewise.
4035 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4037 * NEWS: Create a new section for the next release branch.
4038 Rename the section of the current branch, now that it has
4041 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4043 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4044 * version.in: Bump version to 7.8.50.DATE-cvs.
4046 2014-06-11 Pedro Alves <palves@redhat.com>
4049 * ser-mingw.c (net_windows_socket_check_pending): New function.
4050 (net_windows_select_thread): Ignore spurious wakeups. Use
4051 net_windows_socket_check_pending.
4052 (net_windows_wait_handle): Check for pending events with
4053 ioctlsocket, through net_windows_socket_check_pending, instead of
4054 checking the socket's event.
4056 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4058 * python/python-internal.h (gdb_PyObject_GetAttrString)
4059 (gdb_PyObject_HasAttrString): New inline function definitions.
4060 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4061 char * of the second argument to PyObject_GetAttrString.
4063 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4065 * serial.c (serial_write): Fix index of character to be printed
4066 in call to serial_logchar when serial debug traces are enabled.
4068 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4070 * gdbtypes (resolve_dynamic_range): Add function description.
4072 2014-06-09 Pedro Alves <palves@redhat.com>
4074 * linux-nat.c (linux_child_follow_fork): Initialize status with
4075 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4076 inner block. Only pass the signal to PTRACE_DETACH if in pass
4079 2014-06-09 Gary Benson <gbenson@redhat.com>
4081 * common/signals.c (gdb_signal_from_host): Reorder to separate
4082 the always-available ANSI-standard signals from the signals that
4084 (do_gdb_signal_to_host): Likewise.
4085 * proc-events.c (signal_table): Likewise.
4087 2014-06-08 Hui Zhu <hui@codesourcery.com>
4089 * common/linux-ptrace.c (linux_disable_event_reporting): New
4091 * common/linux-ptrace.h (linux_disable_event_reporting): New
4093 * linux-nat.c (linux_child_follow_fork): Do a single step before
4096 2014-06-07 Keith Seitz <keiths@redhat.com>
4100 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4101 from symbol_matches_domain in symtab.c. All local callers
4102 of symbol_matches_domain updated.
4103 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4104 search STRUCT_DOMAIN.
4105 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4106 independently. standard_lookup will do that automatically.
4107 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4108 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4109 (cp_lookup_symbol_in_namespace): Likewise.
4110 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4111 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4112 may return a STRUCT_DOMAIN match.
4113 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4114 * cp-support.c: Include language.h.
4115 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4117 * psymtab.c (match_partial_symbol): Compare the requested
4118 domain with the symbol's domain directly.
4119 (lookup_partial_symbol): Likewise.
4120 * symtab.c (lookup_symbol_in_language): Explain when/why
4121 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4122 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4123 appropriate languages.
4124 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4125 and moved to ada-lang.c
4126 (lookup_block_symbol): Explain that this function only returns
4127 symbol matching the requested DOMAIN.
4128 Compare the requested domain with the symbol's domain directly.
4129 (iterate_over_symbols): Compare the requested domain with the
4130 symbol's domain directly.
4131 * symtab.h (symbol_matches_domain): Remove.
4133 2014-06-06 Doug Evans <xdje42@gmail.com>
4135 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4136 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4137 (gdbscm_guile_version_is_at_least): Declare.
4138 (gdbscm_scm_string_to_int): Declare.
4139 * guile/guile.c (gdbscm_guile_major_version): New global.
4140 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4141 (guile_datadir): New static global.
4142 (gdbscm_guile_data_directory): New function.
4143 (initialize_scheme_side): Update.
4144 (misc_guile_functions): Add guile-data-directory.
4145 (initialize_gdb_module): Fetch guile version number.
4146 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4147 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4148 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4149 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4151 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4152 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4153 * guile/scm-value.c (gdbscm_value_to_string): Only call
4154 scm_port_conversion_strategy if Guile version >= 2.0.6.
4156 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4158 * main.c (print_gdb_help): Add -q and --silent.
4160 2014-06-06 Gary Benson <gbenson@redhat.com>
4162 * common/signals.c: Remove preprocessor conditionals for
4163 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4164 SIGSEGV and SIGTERM.
4165 * proc-events.c: Likewise.
4167 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4169 * symfile.c (symfile_free_objfile): Remove restriction to
4171 * symfile-mem.c (symbol_file_add_from_memory): Call
4172 add_target_sections_of_objfile.
4174 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4176 * guile/scm-value.c (gdbscm_history_append_x): Use
4177 'vlscm_get_value_smob_arg_unsafe' instead of
4178 'vlscm_scm_to_value'.
4180 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4183 * utils.c (printchar): Don't escape at all if quoter is NUL.
4184 Update function documentation to clarify effect of parameter
4186 * remote.c (escape_buffer): Pass '\\' as the quoter to
4187 fputstrn_unfiltered.
4188 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4189 generate the output.
4190 (mi_solib_unloaded): Same.
4192 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4194 * development.sh: Delete.
4195 * Makefile.in (config.status): Adjust dependency on development.sh.
4196 * configure.ac: Adjust development.sh source call.
4197 * configure: Regenerate.
4199 2014-06-04 Doug Evans <xdje42@gmail.com>
4201 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4202 is_scheme_bkpt, spec.
4203 (bpscm_make_breakpoint_smob): Initialize new members.
4204 (gdbscm_create_breakpoint_x): Split into two ...
4205 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4206 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4207 (scheme_function breakpoint_functions): Update.
4208 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4209 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4210 register-breakpoint!.
4212 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4215 * mem-break.c (z_type_supported): Return zero if
4216 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4218 2014-06-04 Tom Tromey <tromey@redhat.com>
4220 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4221 value_from_contents_and_address_unresolved.
4222 (ada_template_to_fixed_record_type_1): Likewise.
4223 (ada_which_variant_applies): Likewise.
4224 * value.h (value_from_contents_and_address_unresolved): Declare.
4225 * value.c (value_from_contents_and_address_unresolved): New
4227 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4228 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4229 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4231 2014-06-04 Tom Tromey <tromey@redhat.com>
4233 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4235 2014-06-04 Tom Tromey <tromey@redhat.com>
4237 * procfs.c (procfs_attach): Make "args" const.
4238 * windows-nat.c (windows_attach): Make "args" const.
4239 * nto-procfs.c (procfs_attach): Make "args" const.
4240 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4241 * go32-nat.c (go32_attach): Make "args" const.
4242 * gnu-nat.c (gnu_attach): Make "args" const.
4243 * darwin-nat.c (darwin_attach): Make "args" const.
4244 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4245 * linux-nat.c (linux_nat_attach): Make "args" const.
4246 * remote.c (extended_remote_attach_1, extended_remote_attach):
4248 * target.h (struct target_ops) <to_attach>: Make "args" const.
4249 (find_default_attach): Likewise.
4250 * utils.c (parse_pid_to_attach): Make "args" const.
4251 * utils.h (parse_pid_to_attach): Update.
4253 2014-06-04 Tom Tromey <tromey@redhat.com>
4255 * target-delegates.c: Rebuild.
4256 * target.c (default_thread_address_space): New function.
4257 (target_thread_address_space): Simplify.
4258 * target.h (struct target_ops) <to_thread_address_space>: Add
4259 TARGET_DEFAULT_FUNC.
4261 2014-06-04 Doug Evans <xdje42@gmail.com>
4263 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4265 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4267 * record-btrace.c: Include event-loop.h and inf-loop.h.
4268 (record_btrace_resume_exec_dir)
4269 (record_btrace_async_inferior_event_handler)
4270 (record_btrace_handle_async_inferior_event): New.
4271 (record_btrace_open): Create async event handler.
4272 (record_btrace_close): Delete async event handler.
4273 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4274 Mark async event handler.
4275 (record_btrace_execution_direction): New.
4276 (init_record_btrace_ops): Initialize to_execution_direction.
4278 2014-06-03 Doug Evans <xdje42@gmail.com>
4280 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4281 (gdbscm_make_parameter): Ditto.
4283 2014-06-03 Doug Evans <dje@google.com>
4285 * exec.c (exec_close_1): Call clear_section_table instead of
4286 resize_section_table.
4287 (clear_section_table): New function.
4288 (resize_section_table): Make static. Rename arg num_added to
4290 * exec.h (clear_section_table): Declare.
4291 (resize_section_table): Delete.
4292 * progspace.c (release_program_space): Call clear_section_table
4293 instead of resize_section_table.
4295 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4297 * NEWS (Python Scripting): Add entry about the new xmethods
4300 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4302 * python/py-xmethods.c: New file.
4303 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4304 (objfpy_dealloc): XDECREF on the new xmethods field.
4305 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4307 (objfpy_get_xmethods): New function.
4308 (objfile_getset): New entry 'xmethods'.
4309 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4310 (pspy_dealloc): XDECREF on the new xmethods field.
4311 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4313 (pspy_get_xmethods): New function.
4314 (pspace_getset): New entry 'xmethods'.
4315 * python/python-internal.h: Add declarations for new functions.
4316 * python/python.c (_initialize_python): Invoke
4317 gdbpy_initialize_xmethods.
4318 * python/lib/gdb/__init__.py (xmethods): New
4320 * python/lib/gdb/xmethod.py: New file.
4321 * python/lib/gdb/command/xmethods.py: New file.
4323 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4325 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4326 best match method returned by find_overload_match is an xmethod.
4327 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4328 the best matching operator returned by find_overload_match is an
4330 * valops.c: #include "extension.h".
4331 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4332 Return void. The list of matching source methods is returned in
4333 "fn_list" and a vector of matching debug method workers is
4334 returned in "xm_worker_vec". Update all callers.
4335 (value_find_oload_method_list): Likewise.
4336 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4337 non-NULL, then the index of the best matching method in this
4338 vector is returned. Update all callers.
4339 (find_overload_match): Include xmethods while performing overload
4342 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4344 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4345 * extension-priv.h (struct extension_language_ops): Add the
4347 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4348 get_matching_xmethod_workers, get_xmethod_argtypes,
4349 invoke_xmethod, free_xmethod_worker,
4350 free_xmethod_worker_vec): New functions.
4351 * extension.h: #include "common/vec.h".
4352 New function declarations.
4353 (struct xmethod_worker): New struct.
4354 (VEC (xmethod_worker_ptr)): New vector type.
4355 (xmethod_worker_ptr): New typedef.
4356 (xmethod_worker_vec): Likewise.
4357 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4359 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4360 (struct builtin_type): New field "xmethod".
4361 * valarith.c (value_ptradd): Assert that the value argument is not
4363 * valops.c (value_must_coerce_to_target): Return 0 for
4364 lval_xcallable values.
4365 * value.c (struct value): New field XM_WORKER in the field
4367 (value_address, value_raw_address): Return 0 for lval_xcallable
4369 (set_value_address): Assert that the value is not an
4371 (value_free): Free the associated xmethod worker when freeing
4372 lval_xcallable values.
4373 (set_value_component_location): Assert that the WHOLE value is not
4375 (value_of_xmethod, call_xmethod): New functions.
4376 * value.h: Declare "struct xmethod_worker".
4377 Declare new functions value_of_xmethod, call_xmethod.
4379 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4380 Pedro Alves <palves@redhat.com>
4382 PR breakpoints/17000
4383 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4384 New function, extracted from software_breakpoint_inserted_here_p.
4385 (software_breakpoint_inserted_here_p): Replace factored out code
4386 by call to find_non_raw_software_breakpoint_inserted_here.
4387 (bp_target_info_copy_insertion_state): New function.
4388 (bkpt_insert_location): Handle the case of a single-step
4389 breakpoint already inserted at the same address.
4390 (bkpt_remove_location): Handle the case of a single-step
4391 breakpoint still inserted at the same address.
4392 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4393 breakpoint already inserted at the same address.
4394 (deprecated_remove_raw_breakpoint): Handle the case of a
4395 non-raw breakpoint still inserted at the same address.
4396 (find_single_step_breakpoint): New function, extracted from
4397 single_step_breakpoint_inserted_here_p.
4398 (find_single_step_breakpoint): New function,
4399 factored out from single_step_breakpoint_inserted_here_p.
4400 (single_step_breakpoint_inserted_here_p): Reimplement.
4402 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4404 Pushed by Joel Brobecker <brobecker@adacore.com>
4405 * source.c (show_substitute_path_command): Fix display of matching
4408 2014-06-03 Gary Benson <gbenson@redhat.com>
4410 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4412 2014-06-02 Doug Evans <xdje42@gmail.com>
4414 Add parameter support for Guile.
4415 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4416 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4417 (scm-param.o): New rule.
4418 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4419 (gdbscm_misc_error): Declare.
4420 (gdbscm_canonicalize_command_name): Declare.
4421 (gdbscm_scm_to_host_string): Declare.
4422 (gdbscm_scm_from_host_string): Declare.
4423 (gdbscm_initialize_parameters): Declare.
4424 * guile/guile.c (initialize_gdb_module): Call
4425 gdbscm_initialize_parameters.
4426 * guile/lib/gdb.scm: Export parameter symbols.
4427 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4428 cmdscm_canonicalize_name and made public. All callers updated.
4429 * guile/scm-exception.c (gdbscm_misc_error): New function.
4430 * guile/scm-param.c: New file.
4431 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4432 (gdbscm_scm_to_host_string): New function.
4433 (gdbscm_scm_from_host_string): New function.
4434 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4436 2014-06-02 Doug Evans <xdje42@gmail.com>
4438 Add command support for Guile.
4439 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4440 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4441 (scm-cmd.o): New rule.
4442 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4443 (gdbscm_user_error_p): Declare.
4444 (gdbscm_parse_command_name): Declare.
4445 (gdbscm_valid_command_class_p): Declare.
4446 (gdbscm_initialize_commands): Declare.
4447 * guile/guile.c (initialize_gdb_module): Call
4448 gdbscm_initialize_commands.
4449 * guile/lib/gdb.scm: Export command symbols.
4450 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4451 (throw-user-error): New function.
4452 * guile/scm-cmd.c: New file.
4453 * guile/scm-exception.c (user_error_symbol): New static global.
4454 (gdbscm_user_error_p): New function.
4455 (gdbscm_initialize_exceptions): Set user_error_symbol.
4456 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4458 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4460 * top.c (command_loop): Handle comments here...
4461 (command_line_input): ... not here.
4463 2014-06-02 Doug Evans <xdje42@gmail.com>
4465 Add progspace support for Guile.
4466 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4467 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4468 (scm-progspace.o): New rule.
4469 * guile/guile-internal.h (pspace_smob): New typedef.
4470 (psscm_pspace_smob_pretty_printers): Declare.
4471 (psscm_pspace_smob_from_pspace): Declare.
4472 (psscm_scm_from_pspace): Declare.
4473 * guile/guile.c (initialize_gdb_module): Call
4474 gdbscm_initialize_pspaces.
4475 * guile/lib/gdb.scm: Export progspace symbols.
4476 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4478 (append-pretty-printer!): Ditto.
4479 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4481 * guile/scm-progspace.c: New file.
4483 2014-06-03 Alan Modra <amodra@gmail.com>
4485 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4486 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4488 2014-06-02 Doug Evans <dje@google.com>
4490 Add support for skeletonless type units.
4491 * dwarf2read.c (struct dwarf2_per_objfile): New member
4492 n_allocated_type_units.
4493 (struct dwarf2_per_objfile) <tu_stats>: New member
4494 nr_all_type_units_reallocs.
4495 (create_signatured_type_table_from_index): Initialize
4496 n_allocated_type_units
4497 (create_all_type_units): Ditto.
4498 (add_type_unit): Move up in file. New arg slot.
4499 All callers updated. Increase space for all_type_units more
4501 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4502 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4503 (lookup_dwp_signatured_type): Ditto.
4504 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4505 All callers updated.
4506 (build_type_psymtabs_1): Leave type_unit_groups as
4507 NULL if no TUs present.
4508 (print_tu_stats): New function.
4509 (process_skeletonless_type_unit): New function.
4510 (process_dwo_file_for_skeletonless_type_units): New
4512 (process_skeletonless_type_units): New function.
4513 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4514 Call print tu_stats if debugging enabled.
4516 2014-06-02 Pedro Alves <palves@redhat.com>
4518 * breakpoint.c (build_target_command_list): Don't build a command
4519 list if we have any duplicate location that isn't a dprintf.
4521 2014-06-02 Pedro Alves <palves@redhat.com>
4523 * breakpoint.c (dprintf_breakpoint_hit): New function.
4524 (initialize_breakpoint_ops): Install it as dprintf's
4525 breakpoint_hit method.
4527 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4529 * source.c (substitute_path_rule_matches): Simplify using
4530 filename_ncmp instead of FILENAME_CMP.
4532 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4534 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4536 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4538 * configure.ac: When Guile is available, check for the
4539 availability of 'scm_new_smob'.
4540 * configure, config.h.in: Regenerate.
4541 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4544 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4546 * frame.c (struct frame_info): Add stop_string field.
4547 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4548 (get_prev_frame_always): Old content moved into
4549 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4550 TRY_CATCH, handle MEMORY_ERROR exceptions.
4551 (frame_stop_reason_string): New function definition.
4552 * frame.h (unwind_stop_reason_to_string): Extend comment to
4553 mention frame_stop_reason_string.
4554 (frame_stop_reason_string): New function declaration.
4555 * stack.c (frame_info): Switch to frame_stop_reason_string.
4556 (backtrace_command_1): Switch to frame_stop_reason_string.
4557 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4558 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4559 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4561 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4563 * frame.c (frame_stop_reason_string): Rename to ...
4564 (unwind_stop_reason_to_string): this.
4565 * frame.h (frame_stop_reason_string): Rename to ...
4566 (unwind_stop_reason_to_string): this.
4567 * stack.c (frame_info): Update call to frame_stop_reason_string.
4568 (backtrace_command_1): Likewise.
4569 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4570 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4572 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4574 * frame.c (remove_prev_frame): New function.
4575 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4578 2014-05-29 Pedro Alves <palves@redhat.com>
4580 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4581 and make it const. When a single-step decays to a continue,
4582 clear 'step', not 'hw_step'. Pass whether the caller wanted
4583 to step to user_visible_resume_ptid, not what we ask the
4586 2014-05-29 Pedro Alves <palves@redhat.com>
4588 * infrun.c (process_event_stop_test, handle_step_into_function)
4589 (handle_step_into_function_backward): Adjust.
4590 Don't set the even thread's stop_step and call stop_waiting before
4591 calling end_stepping_range. Instead do that ...
4592 (end_stepping_range): ... here. Take an ecs pointer parameter.
4594 2014-05-29 Pedro Alves <palves@redhat.com>
4596 * infrun.c (stop_stepping): Rename to ...
4597 (stop_waiting): ... this.
4598 (proceed): Update comment.
4599 (process_event_stop_test, handle_inferior_event)
4600 (handle_signal_stop, handle_step_into_function)
4601 (handle_step_into_function_backward): Update.
4603 2014-05-29 Pedro Alves <palves@redhat.com>
4605 * infcall.c (run_inferior_call): Don't check whether the current
4606 thread is running after the proceed call.
4608 2014-05-29 Pedro Alves <palves@redhat.com>
4609 Tom Tromey <tromey@redhat.com>
4611 * NEWS: Mention "maint set target-async", "set mi-async", and that
4612 background execution commands are now always available.
4613 * target.h (target_async_permitted): Update comment.
4614 * target.c (target_async_permitted, target_async_permitted_1):
4616 (set_target_async_command): Rename to ...
4617 (maint_set_target_async_command): ... this.
4618 (show_target_async_command): Rename to ...
4619 (maint_show_target_async_command): ... this.
4620 (_initialize_target): Adjust.
4621 * infcmd.c (prepare_execution_command): Make extern.
4622 * inferior.h (prepare_execution_command): Declare.
4623 * infrun.c (set_observer_mode): Leave target async alone.
4624 * mi/mi-interp.c (mi_interpreter_init): Install
4625 mi_on_sync_execution_done as sync_execution_done observer.
4626 (mi_on_sync_execution_done): New function.
4627 (mi_execute_command_input_handler): Don't print the prompt if we
4628 just started a synchronous command with an async target.
4629 (mi_on_resume): Check sync_execution before printing prompt.
4630 * mi/mi-main.h (mi_async_p): Declare.
4631 * mi/mi-main.c: Include gdbcmd.h.
4632 (mi_async_p): New function.
4633 (mi_async, mi_async_1): New globals.
4634 (set_mi_async_command, show_mi_async_command, mi_async): New
4636 (exec_continue): Call prepare_execution_command.
4637 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4638 (mi_execute_async_cli_command): Use mi_async_p.
4639 (_initialize_mi_main): Install "set mi-async". Make
4640 "target-async" a deprecated alias.
4642 2014-05-29 Pedro Alves <palves@redhat.com>
4644 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4645 (_initialize_cli_interp): Adjust.
4646 * event-loop.c: Include "observer.h".
4647 (start_event_loop): Notify 'command_error' observers instead of
4648 calling display_gdb_prompt. Remove FIXME comment.
4649 * event-top.c (display_gdb_prompt): Remove call into the
4651 * inf-loop.c: Include "observer.h".
4652 (inferior_event_handler): Notify 'command_error' observers instead
4653 of calling display_gdb_prompt.
4654 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4655 observers instead of calling display_gdb_prompt.
4656 * interps.c (interp_set): Don't call display_gdb_prompt.
4657 (current_interp_display_prompt_p): Delete.
4658 * interps.h (interp_prompt_p): Delete declaration.
4659 (interp_prompt_p_ftype): Delete.
4660 (struct interp_procs) <prompt_proc_p>: Delete field.
4661 (current_interp_display_prompt_p): Delete declaration.
4662 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4663 (_initialize_mi_interp): Adjust.
4664 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4665 'command_error' observers.
4666 (tui_on_sync_execution_done, tui_on_command_error): New
4668 (tui_display_prompt_p): Delete.
4669 (_initialize_tui_interp): Adjust.
4671 2014-05-29 Pedro Alves <palves@redhat.com>
4674 * cli/cli-interp.c: Include infrun.h and observer.h.
4675 (cli_uiout, cli_interp): New globals.
4676 (cli_on_signal_received, cli_on_end_stepping_range)
4677 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4679 (cli_interpreter_init): Install them as 'end_stepping_range',
4680 'signal_received' 'signal_exited', 'exited' and 'no_history'
4682 (_initialize_cli_interp): Remove cli_interp local.
4683 * infrun.c (handle_inferior_event): Call the several stop reason
4684 observers instead of printing the stop reason directly.
4685 (end_stepping_range): New function.
4686 (print_end_stepping_range_reason, print_signal_exited_reason)
4687 (print_exited_reason, print_signal_received_reason)
4688 (print_no_history_reason): Make static, and add an uiout
4689 parameter. Print to that instead of to CURRENT_UIOUT.
4690 * infrun.h (print_end_stepping_range_reason)
4691 (print_signal_exited_reason, print_exited_reason)
4692 (print_signal_received_reason print_no_history_reason): New
4694 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4696 <cli_uiout>: New field.
4697 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4698 uiout for CLI output. Install 'signal_received',
4699 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4701 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4702 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4703 (mi_on_no_history): New functions.
4704 (ui_out_free_cleanup): Delete function.
4705 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4706 instead use the one already stored in the MI interpreter data.
4707 (mi_ui_out): Adjust.
4708 * tui/tui-interp.c: Include infrun.h and observer.h.
4709 (tui_interp): New global.
4710 (tui_on_signal_received, tui_on_end_stepping_range)
4711 (tui_on_signal_exited, tui_on_exited)
4712 (tui_on_no_history): New functions.
4713 (tui_init): Install them as 'end_stepping_range',
4714 'signal_received' 'signal_exited', 'exited' and 'no_history'
4716 (_initialize_tui_interp): Delete tui_interp local.
4718 2014-05-29 Pedro Alves <palves@redhat.com>
4721 * linux-nat.c (linux_nat_resume_callback): Rename the second
4722 parameter to 'except'. Skip LP if it points to EXCEPT.
4723 (linux_nat_resume): Don't mark the event lwp as not stopped
4724 before resuming sibling lwps. Instead ask
4725 linux_nat_resume_callback to skip the event lwp. Mark it as not
4726 stopped after actually resuming it.
4727 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4729 (wait_lwp): Mark the lwp as stopped here.
4730 (stop_wait_callback): Mark the lwp as not stopped right after
4731 resuming it. Don't mark lwps as stopped here.
4732 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4733 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4735 2014-05-29 Pedro Alves <palves@redhat.com>
4738 * infrun.c (resume): Determine how much to resume depending on
4739 whether the caller wanted a step, not whether we can hardware step
4740 the target. Mark all threads that we intend to run as running,
4741 unless we're calling an inferior function.
4742 (normal_stop): If the thread is running an infcall, don't finish
4744 * target.c (target_resume): Don't mark threads as running here.
4746 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4748 * serial.c (_initialize_serial): Remove support for
4749 the "set remotebaud" and "show remotebaud" commands.
4750 * NEWS: Add entry documenting the removal of that command.
4752 2014-05-28 Yao Qi <yao@codesourcery.com>
4754 * charset.c: Fix typo in comments.
4756 2014-05-27 Gary Benson <gbenson@redhat.com>
4758 * utils.c (internal_vproblem): Prompt for a bug report.
4760 2014-05-26 Andy Wingo <wingo@igalia.com>
4762 * guile/scm-arch.c (arscm_mark_arch_smob):
4763 * guile/scm-block.c (bkscm_mark_block_smob)
4764 (bkscm_mark_block_syms_progress_smob):
4765 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4766 * guile/scm-exception.c (exscm_mark_exception_smob):
4767 * guile/scm-frame.c (frscm_mark_frame_smob):
4768 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4769 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4770 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4771 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4772 (ppscm_mark_pretty_printer_worker_smob):
4773 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4774 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4775 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4776 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4778 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4781 2014-05-26 Andy Wingo <wingo@igalia.com>
4782 Doug Evans <xdje42@gmail.com>
4784 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4785 empty_base_class. All uses updated.
4786 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4787 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4789 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4790 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4791 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4792 (gdbscm_gsmob_has_property_p, add_property_name)
4793 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4794 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4795 (gdb-object-has-property?, gdb-object-properties): Remove.
4796 (gdb-object-kind): Renamed from gsmob-kind.
4798 2014-05-26 Andy Wingo <wingo@igalia.com>
4800 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4801 * configure: Regenerate.
4803 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4805 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4807 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4809 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4810 (replay_memory_access_read_only, replay_memory_access_read_write)
4811 (replay_memory_access_types, replay_memory_access)
4812 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4813 (cmd_set_record_btrace, cmd_show_record_btrace)
4814 (cmd_show_replay_memory_access): New.
4815 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4816 (record_btrace_remove_breakpoint): Replace
4817 record_btrace_allow_memory_access with replay_memory_access.
4818 (_initialize_record_btrace): Add commands.
4819 * NEWS: Announce it.
4821 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4823 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4825 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4827 * MAINTAINERS (Write After Approval): Move self back from
4830 2014-05-22 Pedro Alves <palves@redhat.com>
4832 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4833 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4834 (disable_randomization, enum exec_direction_kind)
4835 (execution_direction, stop_registers, start_remote)
4836 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4837 (wait_for_inferior, normal_stop, get_last_target_status)
4838 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4839 (insert_step_resume_breakpoint_at_sal)
4840 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4841 (set_step_info, print_stop_event, signal_stop_state)
4842 (signal_print_state, signal_pass_state, signal_stop_update)
4843 (signal_print_update, signal_pass_update)
4844 (update_signals_program_target, clear_exit_convenience_vars)
4845 (displaced_step_dump_bytes, update_observer_mode)
4846 (signal_catch_update, gdb_signal_from_command): Move
4848 * infrun.h: ... to this new file.
4849 * amd64-tdep.c: Include infrun.h.
4850 * annotate.c: Include infrun.h.
4851 * arch-utils.c: Include infrun.h.
4852 * arm-linux-tdep.c: Include infrun.h.
4853 * arm-tdep.c: Include infrun.h.
4854 * break-catch-sig.c: Include infrun.h.
4855 * breakpoint.c: Include infrun.h.
4856 * common/agent.c: Include infrun.h instead of inferior.h.
4857 * corelow.c: Include infrun.h.
4858 * event-top.c: Include infrun.h.
4859 * go32-nat.c: Include infrun.h.
4860 * i386-tdep.c: Include infrun.h.
4861 * inf-loop.c: Include infrun.h.
4862 * infcall.c: Include infrun.h.
4863 * infcmd.c: Include infrun.h.
4864 * infrun.c: Include infrun.h.
4865 * linux-fork.c: Include infrun.h.
4866 * linux-nat.c: Include infrun.h.
4867 * linux-thread-db.c: Include infrun.h.
4868 * monitor.c: Include infrun.h.
4869 * nto-tdep.c: Include infrun.h.
4870 * procfs.c: Include infrun.h.
4871 * record-btrace.c: Include infrun.h.
4872 * record-full.c: Include infrun.h.
4873 * remote-m32r-sdi.c: Include infrun.h.
4874 * remote-mips.c: Include infrun.h.
4875 * remote-notif.c: Include infrun.h.
4876 * remote-sim.c: Include infrun.h.
4877 * remote.c: Include infrun.h.
4878 * reverse.c: Include infrun.h.
4879 * rs6000-tdep.c: Include infrun.h.
4880 * s390-linux-tdep.c: Include infrun.h.
4881 * solib-irix.c: Include infrun.h.
4882 * solib-osf.c: Include infrun.h.
4883 * solib-svr4.c: Include infrun.h.
4884 * target.c: Include infrun.h.
4885 * top.c: Include infrun.h.
4886 * windows-nat.c: Include infrun.h.
4887 * mi/mi-interp.c: Include infrun.h.
4888 * mi/mi-main.c: Include infrun.h.
4889 * python/py-threadevent.c: Include infrun.h.
4891 2014-05-22 Pedro Alves <palves@redhat.com>
4893 * infrun.c (handle_inferior_event): Store the exit code for
4894 --return-child-result here, instead of ...
4895 (print_exited_reason): ... here.
4897 2014-05-21 Pedro Alves <palves@redhat.com>
4900 * gdbthread.h (struct thread_control_state): New field
4902 * infrun.c (follow_fork): Copy the new thread control field to the
4904 (clear_proceed_status_thread): Clear the new thread control field.
4905 (proceed): Set the new thread control field.
4906 * interps.h (command_interp): Declare.
4907 * interps.c (command_interpreter): New global.
4908 (command_interp): New function.
4909 (interp_exec): Set `command_interpreter' while here.
4910 * cli-out.c (cli_uiout_dtor): New function.
4911 (cli_ui_out_impl): Install it.
4912 * mi/mi-interp.c: Include cli-out.h.
4913 (mi_cmd_interpreter_exec): Add comment.
4914 (restore_current_uiout_cleanup): New function.
4915 (ui_out_free_cleanup): New function.
4916 (mi_on_normal_stop): If finishing an execution command started by
4917 a CLI command, or any kind of breakpoint-like event triggered,
4918 print the stop event to the output (CLI) stream.
4919 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4921 2014-05-21 Pedro Alves <palves@redhat.com>
4923 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4924 current source line having changed.
4925 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4926 * infrun.c (normal_stop): Adjust call to
4927 set_current_sal_from_frame.
4928 * source.c (clear_lines_listed_range): New function.
4929 (set_current_source_symtab_and_line, identify_source_line): Clear
4930 the lines listed range.
4931 (line_info): Handle the first "info line" after the current source
4932 line having changed.
4933 * stack.c (print_stack_frame): Remove center handling.
4934 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4937 2014-05-21 Pedro Alves <palves@redhat.com>
4939 * inf-child.c (inf_child_mourn_inferior): New function.
4940 * inf-child.h (inf_child_mourn_inferior): New declaration.
4941 * darwin-nat.c (darwin_mourn_inferior): Use
4942 inf_child_mourn_inferior.
4943 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4944 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4945 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4946 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4947 * windows-nat.c (windows_mourn_inferior): Likewise.
4949 2014-05-21 Doug Evans <xdje42@gmail.com>
4951 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4953 2014-05-21 Doug Evans <xdje42@gmail.com>
4955 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4956 (gdbscm_out_of_range_error): Ditto.
4957 (gdbscm_memory_error): Ditto.
4958 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4959 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4960 (gdbscm_out_of_range_error): Update.
4961 (gdbscm_memory_error): Update.
4962 (gdbscm_scm_to_target_string_unsafe): Delete.
4964 2014-05-21 Pedro Alves <palves@redhat.com>
4966 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4968 (inf_child_open_target): New function.
4969 (inf_child_open): Use inf_child_open_target to push the target
4970 instead of erroring out.
4971 (inf_child_disconnect, inf_child_close)
4972 (inf_child_maybe_unpush_target): New functions.
4973 (inf_child_target): Install inf_child_disconnect and
4974 inf_child_close. Store a pointer to the returned object.
4975 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4977 * target.c (auto_connect_native_target): New global.
4978 (show_default_run_target): New function.
4979 (find_default_run_target): Return NULL if automatically connecting
4980 to the native target is disabled.
4981 (_initialize_target): Install set/show auto-connect-native-target.
4982 * NEWS: Mention "set auto-connect-native-target", and "target
4984 * linux-nat.c (super_close): New global.
4985 (linux_nat_close): Call super_close.
4986 (linux_nat_add_target): Store a pointer to the base class's
4988 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4989 inf_child_maybe_unpush.
4990 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4992 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4993 the inferior. Use inf_child_maybe_unpush_target.
4994 (inf_ttrace_attach): Don't push the target if it is already
4996 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4997 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4998 after mourning the inferior. Use inf_child_maybe_unpush_target.
4999 (darwin_attach_pid): Don't push the target if it is already
5001 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5002 mourning the inferior. Use inf_child_maybe_unpush_target.
5003 (gnu_detach): Use inf_child_maybe_unpush_target.
5004 * go32-nat.c (go32_create_inferior): Don't push the target if it
5006 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5007 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5008 (procfs_open): Rename to ...
5009 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5010 comments. Can target_preopen before changing node. Call
5011 inf_child_open_target to push the target explicitly.
5012 (procfs_attach): Don't push the target if it is already pushed.
5013 (procfs_detach): Use inf_child_maybe_unpush_target.
5014 (procfs_create_inferior): Don't push the target if it is already
5016 (nto_native_ops): New global.
5017 (procfs_open): Reimplement.
5018 (procfs_native_open): New function.
5019 (init_procfs_targets): Install procfs_native_open as to_open of
5020 "target native". Store a pointer to the "native" target in
5022 * procfs.c (procfs_attach): Don't push the target if it is already
5024 (procfs_detach): Use inf_child_maybe_unpush_target.
5025 (procfs_mourn_inferior): Only unpush the target after mourning the
5026 inferior. Use inf_child_maybe_unpush_target.
5027 (procfs_init_inferior): Don't push the target if it is already
5029 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5030 if it is already pushed.
5032 2014-05-21 Pedro Alves <palves@redhat.com>
5034 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5035 and "procfs" targets are now called "native" instead.
5037 2014-05-21 Pedro Alves <palves@redhat.com>
5039 * go32-nat.c (go32_open): Delete.
5040 (go32_target): Don't override the to_open method.
5042 2014-05-21 Pedro Alves <palves@redhat.com>
5044 * nto-procfs.c (procfs_can_run): New function.
5045 (nto_procfs_ops): New global.
5046 (init_procfs_targets): New, based on procfs_target. Install
5047 "target native" in addition to "target procfs".
5048 (_initialize_procfs): Call init_procfs_targets instead of adding
5051 2014-05-21 Pedro Alves <palves@redhat.com>
5053 * windows-nat.c (windows_target): Don't override to_shortname,
5054 to_longname or to_doc.
5056 2014-05-21 Pedro Alves <palves@redhat.com>
5058 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5061 2014-05-21 Pedro Alves <palves@redhat.com>
5063 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5064 to_shortname, to_longname or to_doc.
5066 2014-05-21 Pedro Alves <palves@redhat.com>
5068 * go32-nat.c (go32_target): Don't override to_shortname,
5069 to_longname or to_doc.
5071 2014-05-21 Pedro Alves <palves@redhat.com>
5073 * inf-child.c (inf_child_open): Remove mention of "child".
5074 (inf_child_target): Rename target to "native" instead of "child".
5076 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5078 * Makefile.in (SFILES): Delete "regset.c".
5079 (COMMON_OBS): Delete "regset.o".
5081 * regset.h (regset_alloc): Delete prototype.
5083 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5085 * sparc-linux-tdep.c (sparc32_linux_gregset)
5086 (sparc32_linux_fpregset): New static regset structures.
5087 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5088 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5090 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5091 (sparc64_linux_fpregset): New static regset structures.
5092 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5093 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5094 New static regset structures.
5095 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5096 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5097 New static regset structures.
5098 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5099 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5100 New static regset structures.
5101 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5102 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5103 New static regset structures.
5104 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5106 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5108 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5109 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5110 register maps ("regmaps") from "*regset" to "*regmap". Do this
5111 for all regmap types and variables.
5112 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5113 (sparc32_linux_supply_core_gregset)
5114 (sparc32_linux_collect_core_gregset)
5115 (sparc32_linux_supply_core_fpregset)
5116 (sparc32_linux_collect_core_fpregset): Likewise.
5117 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5118 (sparc_gregmap, sparc_fpregmap): ... these.
5119 (sparc_supply_gregset, sparc_collect_gregset)
5120 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5121 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5122 (_initialize_sparc_nat): Rename regmaps.
5123 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5124 (sparc_gregmap, sparc_fpregmap): ... these.
5125 (sparc_supply_gregset, sparc_collect_gregset)
5126 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5127 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5129 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5130 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5132 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5134 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5135 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5136 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5138 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5139 (sparc32_bsd_fpregset): Rename to...
5140 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5141 (sparc32_bsd_fpregmap): ... these.
5142 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5143 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5144 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5145 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5146 (struct sparc_gregmap, struct sparc_fpregmap)
5147 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5148 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5149 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5150 (sparc32_supply_regset, sparc32_collect_gregset)
5151 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5153 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5154 (sparc64_linux_ptrace_gregmap): ... this.
5155 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5156 (_initialize_sparc64_linux_nat): Rename regmaps.
5157 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5158 (sparc64_linux_core_gregmap): ... this.
5159 (sparc64_linux_supply_core_gregset)
5160 (sparc64_linux_collect_core_gregset)
5161 (sparc64_linux_supply_core_fpregset)
5162 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5163 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5164 (sparc64_sol2_fpregset): Rename to...
5165 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5166 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5167 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5169 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5170 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5171 (sparc64_bsd_fpregset): Rename to...
5172 (struct sparc_gregmap, sparc64_sol2_gregmap)
5173 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5174 (sparc64_bsd_fpregmap): ... these.
5175 (sparc64_supply_gregset, sparc64_collect_gregset)
5176 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5178 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5179 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5180 (sparc64fbsd_gregmap): ... this.
5181 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5182 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5184 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5185 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5186 (sparc64nbsd_collect_fpregset): Likewise.
5187 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5188 (sparc64nbsd_gregmap): ... this.
5189 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5191 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5192 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5193 (sparc64obsd_gregmap): ... this.
5194 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5196 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5197 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5198 (sparc32nbsd_gregmap): ... this.
5199 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5202 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5204 * score-tdep.c (score7_linux_gregset): New static regset
5206 (score7_linux_regset_from_core_section): Remove dynamic regset
5208 (score_gdbarch_init): Drop allocation of tdep structure.
5209 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5211 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5213 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5215 (am33_regset_from_core_section): Remove dynamic regset
5218 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5220 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5221 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5223 (mips_linux_regset_from_core_section): Remove dynamic regset
5225 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5226 'gregset64', 'fpregset', and 'fpregset64'.
5227 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5228 deleted tdep fields.
5230 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5232 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5234 (amd64_regset_from_core_section): Remove dynamic regset
5236 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5238 (amd64obsd_regset_from_core_section): Remove dynamic regset
5240 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5242 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5243 x86-common regset supply function.
5244 * i386-tdep.c (i386_collect_gregset): Make static.
5245 (i386_gregset): New global regset structure.
5246 (i386_fpregset, i386_xstateregset): New static regset structures.
5247 (i386_regset_from_core_section): Remove dynamic regset
5249 (i386_gdbarch_init): Remove initialization of tdep fields
5250 'gregset', 'fpregset', and 'xstateregset'.
5251 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5252 'fpregset', and 'xstateregset'.
5253 (i386_collect_gregset): Remove prototype.
5254 (i386_gregset): New declaration.
5255 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5257 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5260 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5262 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5263 (arm_linux_vfpregset): New static regset structures.
5264 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5266 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5267 and 'vfpregset' fields.
5269 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5271 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5272 (aarch64_linux_fpregset): New static regset structures.
5273 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5274 of regset structures.
5275 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5278 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5280 * regset.h (struct regset): Remove gdbarch field.
5281 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5282 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5283 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5285 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5286 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5287 (ppc32_linux_vsxregset): Likewise.
5288 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5289 via the regcache instead of the regset.
5290 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5291 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5292 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5293 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5296 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5298 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5299 Constify structures.
5300 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5301 (alphanbsd_aout_gregset): Likewise.
5302 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5303 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5305 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5306 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5308 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5309 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5310 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5311 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5312 * m88k-tdep.c (m88k_gregset): Likewise.
5313 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5314 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5315 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5316 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5317 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5318 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5319 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5320 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5321 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5323 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5324 * sh-tdep.h (sh_corefile_gregset): Likewise.
5325 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5326 * vax-tdep.c (vax_gregset): Likewise.
5328 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5330 Fix TLS access for -static -pthread.
5331 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5332 (try_thread_db_load_1): Initialize it.
5333 (thread_db_get_thread_local_address): Call it if LM is zero.
5334 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5335 * target.h (struct target_ops) (to_get_thread_local_address): Add
5336 load_module_addr comment.
5338 2014-05-21 Pedro Alves <palves@redhat.com>
5340 * dcache.c (dcache_read_memory_partial): If reading the cache line
5341 fails, fallback to reading just the memory the caller wanted.
5343 2014-05-20 Doug Evans <dje@google.com>
5345 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5346 instead of get_current_arch.
5348 2014-05-20 Pedro Alves <palves@redhat.com>
5350 * NEWS: Mention that compare-sections now works with all targets.
5352 * remote.c (PACKET_qCRC): New enum value.
5353 (remote_verify_memory): Don't send qCRC if the target has no
5354 execution. Use packet_support/packet_ok. If the target doesn't
5355 support the qCRC packet, fallback to a deep memory copy.
5356 (compare_sections_command): Say "target image" instead of "remote
5358 (_initialize_remote): Add PACKET_qCRC to the list of config
5359 packets that have no associated command. Extend comment.
5360 * target.c (simple_verify_memory, default_verify_memory): New
5362 * target.h (struct target_ops) <to_verify_memory>: Default to
5363 default_verify_memory.
5364 (simple_verify_memory): New declaration.
5365 * target-delegates.c: Regenerate.
5367 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5369 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5371 2014-05-20 Hui Zhu <hui@codesourcery.com>
5372 Yao Qi <yao@codesourcery.com>
5375 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5376 and change address of sp and pc.
5378 2014-05-19 Tom Tromey <tromey@redhat.com>
5380 * gdbtypes.c (rank_function): Use XNEWVEC.
5381 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5383 2014-05-19 Doug Evans <dje@google.com>
5385 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5386 build_type_unit_groups and moved closer to only caller. Remove
5387 arguments. All references updated. Remove outdated .gdb_index
5389 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5390 build_type_psymtabs_1.
5392 2014-05-19 Doug Evans <dje@google.com>
5394 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5395 n_type_unit_groups, all_type_unit_groups. All uses removed.
5396 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5397 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5398 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5399 (add_type_unit_group_to_table): Delete.
5401 2014-05-19 Doug Evans <dje@google.com>
5403 * eval.c (evaluate_subexp_standard): Add some comments.
5405 2014-05-17 Doug Evans <xdje42@gmail.com>
5407 * progspace.c (remove_program_space): Delete, unused.
5408 * progspace.h (remove_program_space): Ditto.
5410 2014-05-17 Doug Evans <xdje42@gmail.com>
5412 * inferior.c (prune_inferiors): Fix comment.
5413 (remove_inferior_command): Call prune_program_spaces.
5415 2014-05-16 Doug Evans <dje@google.com>
5417 New command line option -D.
5419 * main.c (set_gdb_data_directory): New function.
5420 (captured_main): Recognize -D. Flag error for --data-directory "".
5421 Call set_gdb_data_directory.
5422 (print_gdb_help): Print --data-directory, -D.
5423 * main.h (set_gdb_data_directory): Declare.
5424 * top.c (staged_gdb_datadir): New static global.
5425 (set_gdb_datadir): Call set_gdb_data_directory
5426 (show_gdb_datadir): New function.
5427 (init_main): Update init of data-directory parameter.
5429 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5431 Import the "dirfd" gnulib module.
5432 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5433 * gnulib/aclocal.m4: Update.
5434 * gnulib/config.in: Update.
5435 * gnulib/configure: Update.
5436 * gnulib/import/Makefile.am: Update.
5437 * gnulib/import/Makefile.in: Update.
5438 * gnulib/import/dirfd.c: New.
5439 * gnulib/import/m4/dirfd.m4: New.
5440 * gnulib/import/m4/gnulib-cache.m4: Update.
5441 * gnulib/import/m4/gnulib-comp.m4: Update.
5443 2014-05-16 Pierre Muller <muller@sourceware.org>
5444 Yao Qi <yao@codesourcery.com>
5446 * valprint.c (print_wchar): Move the code on checking whether
5447 W is a printable wide char to the default branch of switch
5448 statement below. Call wchar_printable instead of gdb_iswprint.
5450 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5452 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5453 ldr.w and ldrd instructions.
5455 2014-05-15 Doug Evans <dje@google.com>
5457 * dwarf2read.c (read_structure_type): Delete outdated comments.
5459 2014-05-14 Tom Tromey <tromey@redhat.com>
5461 * macrocmd.c (print_macro_definition): Reindent.
5463 2014-05-13 Doug Evans <xdje42@gmail.com>
5465 * python/py-cmd.c (cmdpy_completer): Add comment.
5466 (completers): Make const.
5468 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5470 * infrun.c (resume): Remove should_resume (unused). Move up
5471 declaration of resume_ptid.
5473 2014-05-13 Tom Tromey <tromey@redhat.com>
5475 * language.h (unop_type_check): Remove.
5476 (binop_type_check): Don't declare.
5478 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5480 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5481 call to regcache_raw_collect.
5483 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5485 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5486 mi_console->quote as the quoting character.
5488 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5490 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5492 2014-04-29 Tom Tromey <tromey@redhat.com>
5494 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5495 "show debug varobj".
5497 2014-05-07 Kyle McMartin <kyle@redhat.com>
5499 Pushed by Joel Brobecker <brobecker@adacore.com>.
5500 * aarch64-tdep.c (aarch64_software_single_step): New function.
5501 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5502 with aarch64_software_single_step.
5504 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5508 2014-05-05 Keith Seitz <keiths@redhat.com>
5510 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5511 variable or history value is successfully parsed.
5513 2014-05-05 Yao Qi <yao@codesourcery.com>
5514 Pedro Alves <palves@redhat.com>
5516 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5517 address of blocks that intersects the requested range. Trim
5518 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5520 * ctf.c (ctf_xfer_partial): Likewise.
5522 2014-05-05 Yao Qi <yao@codesourcery.com>
5524 * printcmd.c (display_command): Remove the check to
5525 target_has_execution.
5527 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5529 * ppcobsd-nat.c: Include "obsd-nat.h".
5530 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5532 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5534 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5536 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5537 and 16-bit signed and unsigned arguments. Update comment.
5538 (stap_parse_probe_arguments): Extend code to handle such
5539 arguments. Use warning instead of complaint to notify about
5540 unrecognized bitness.
5542 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5544 PR breakpoints/16889
5545 * stap-probe.c (stap_parse_probe_arguments): Simplify
5546 check for non-prefixed probes (i.e., probes whose
5547 arguments do not start with "N@"). Always set the
5548 argument type to a sane value.
5550 2014-05-01 David Taylor <dtaylor@emc.com>
5552 * remote.c (compare_sections_command): Add -r option to compare
5553 all loadable read-only sections.
5555 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5557 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5558 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5560 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5561 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5562 Remove unused CORE_ADDR argument. Update all callers.
5564 2014-04-29 Pedro Alves <palves@redhat.com>
5566 * remote.c (struct packet_config) <detect>: Extend comment.
5567 (add_packet_config_cmd): Don't set the config's detect or support
5569 (init_all_packet_configs): Also initialize the config's 'detect'
5571 (reset_all_packet_configs_support): New function.
5572 (remote_open_1): Call reset_all_packet_configs_support instead of
5573 init_all_packet_configs.
5574 (_initialize_remote): Initialize all packet configs. Assert that
5575 all packets have an associated command, except a few known
5578 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5580 * dwarf2read.c (read_subrange_type): Handle dynamic
5581 DW_AT_lower_bound attributes.
5583 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5585 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5586 dynamic bounds before computing its upper bound.
5587 (ada_discrete_type_low_bound): Same as above with the lower bound.
5589 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5591 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5592 range types. Adjust the array handling implementation to
5593 take advantage of this change.
5594 (resolve_dynamic_range): New function, mostly extracted from
5595 resolve_dynamic_bounds.
5596 (resolve_dynamic_array): New function, mostly extracted from
5597 resolve_dynamic_bounds.
5598 (resolve_dynamic_bounds): Delete.
5599 (resolve_dynamic_type): Reimplement. Add handling of
5600 TYPE_CODE_RANGE types.
5602 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5604 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5605 handling of parallel ___XA types.
5607 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5609 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5610 unnecessary second call to static_unwrap_type.
5612 2014-04-27 Hui Zhu <hui@codesourcery.com>
5614 * stack.c (print_frame_info): Call do_gdb_disassembly with
5615 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5617 2014-04-26 Doug Evans <xdje42@gmail.com>
5619 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5621 2014-04-25 Pedro Alves <palves@redhat.com>
5624 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5625 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5626 and newline from built string.
5627 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5628 (linux_ptrace_attach_fail_reason): ... this.
5629 * linux-nat.c (linux_nat_attach): Adjust to use
5630 linux_ptrace_attach_fail_reason.
5632 2014-04-25 Pedro Alves <palves@redhat.com>
5634 * remote.c (struct remote_state): Remove multi_process_aware,
5635 non_stop_aware, cond_tracepoints, cond_breakpoints,
5636 breakpoint_commands, fast_tracepoints, static_tracepoints,
5637 install_in_trace, disconnected_tracing,
5638 enable_disable_tracepoints, string_tracing, and
5639 augmented_libraries_svr4_read fields.
5640 (remote_multi_process_p): Move further below in the file.
5641 (struct packet_config): Add comments.
5642 (update_packet_config): Delete function.
5643 (show_packet_config_cmd): Use packet_config_support.
5644 (add_packet_config_cmd): Use NULL as set callback.
5645 (packet_ok): "set remote foo-packet"-style commands no longer
5646 change config->supported -- adjust.
5647 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5648 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5649 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5650 (PACKET_QNonStop, PACKET_multiprocess_feature)
5651 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5652 (PACKET_DisconnectedTracing_feature)
5653 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5654 (set_remote_protocol_packet_cmd): Delete function.
5655 (packet_config_support, packet_support): New functions.
5656 (set_remote_protocol_Z_packet_cmd): Don't call
5657 update_packet_config.
5658 (remote_query_attached, remote_pass_signals)
5659 (remote_program_signals, remote_threads_info)
5660 (remote_threads_extra_info, remote_start_remote): Use
5662 (remote_start_remote): Use packet_config_support and
5664 (init_all_packet_configs): Set all packets to unknown support,
5665 instead of calling update_packet_config.
5666 (remote_check_symbols): Use packet_support.
5667 (remote_supported_packet): Unconditionally set the packet config's
5669 (remote_multi_process_feature, remote_non_stop_feature)
5670 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5671 (remote_breakpoint_commands_feature)
5672 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5673 (remote_install_in_trace_feature)
5674 (remote_disconnected_tracing_feature)
5675 (remote_enable_disable_tracepoint_feature)
5676 (remote_string_tracing_feature)
5677 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5678 (remote_protocol_features): Adjust to use remote_supported_packet
5679 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5680 "ConditionalTracepoints", "ConditionalBreakpoints",
5681 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5682 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5683 "EnableDisableTracepoints", and "tracenz".
5684 (remote_query_supported): Use packet_support.
5685 (remote_open_1): Adjust.
5686 (extended_remote_attach_1): Use packet_support. Switch on the
5687 result of packet_ok instead of checking whether the packet ended
5689 (remote_vcont_resume): Use packet_support.
5690 (remote_resume, remote_stop_ns, fetch_register_using_p)
5691 (remote_prepare_to_store, store_register_using_P)
5692 (check_binary_download, remote_write_bytes): Use packet_support.
5693 (remote_vkill): Use packet_support. Switch on the result of
5694 packet_ok instead of checking whether the packet ended up
5696 (extended_remote_supports_disable_randomization): Use
5698 (extended_remote_run): Switch on the result of packet_ok instead
5699 of checking whether the packet ended up disabled.
5700 (remote_insert_breakpoint, remote_remove_breakpoint)
5701 (remote_insert_watchpoint, remote_remove_watchpoint)
5702 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5704 (remote_search_memory): Use packet_config_support.
5705 (remote_get_thread_local_address, remote_get_tib_address)
5706 (remote_hostio_send_command, remote_can_execute_reverse): Use
5708 (remote_supports_cond_tracepoints)
5709 (remote_supports_cond_breakpoints)
5710 (remote_supports_fast_tracepoints)
5711 (remote_supports_static_tracepoints)
5712 (remote_supports_install_in_trace)
5713 (remote_supports_enable_disable_tracepoint)
5714 (remote_supports_string_tracing)
5715 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5716 the packet config says the feature is enabled or disabled.
5717 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5718 (remote_get_trace_status): Use packet_support.
5719 (remote_set_disconnected_tracing): Adjust to check whether the
5720 feature is enabled with packet_support.
5721 (remote_set_trace_buffer_size, remote_use_agent)
5722 (remote_can_use_agent, remote_supports_btrace): Use
5724 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5725 Use packet_config_support.
5726 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5727 the packet config says the feature is enabled or disabled.
5728 (set_range_stepping): Use packet_support.
5730 2014-04-25 Tom Tromey <tromey@redhat.com>
5732 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5735 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5737 * NEWS: Mention support for C99 variable length arrays.
5739 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5741 * ada-lang.c (standard_exc): Expand introductory comment.
5743 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5744 Walfred Tedeschi <walfred.tedeschi@intel.com>
5746 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5748 (amd64_linux_read_description): Add code to handle AVX512 xstate
5749 mask and return respective tdesc.
5750 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5751 and features/i386/x32-avx512-linux.c.
5752 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5753 (amd64_linux_core_read_description): Add code to handle AVX512
5754 xstate mask and return respective tdesc.
5755 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5756 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5758 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5759 (tdesc_amd64_avx512_linux): New prototype.
5760 (tdesc_x32_avx512_linux): Likewise.
5761 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5762 features/i386/x32-avx512.c.
5763 (amd64_ymm_avx512_names): New register names for pseudo
5765 (amd64_ymmh_avx512_names): New register names for raw registers
5767 (amd64_k_names): New register names for K registers.
5768 (amd64_zmmh_names): New register names for ZMM raw registers.
5769 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5770 (amd64_xmm_avx512_names): New register names for XMM16-31
5772 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5774 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5775 if feature is present.
5776 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5777 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5778 (AMD64_NUM_REGS): Adjust to new number of registers.
5779 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5780 registers supplied via XSTATE by AVX512 registers.
5781 (i386_linux_read_description): Add case for AVX512.
5782 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5783 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5784 (i386_linux_core_read_description): Add case for AVX512.
5785 (i386_linux_init_abi): Install supported register note section
5787 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5789 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5790 registers to be number of zmm7h + 1.
5791 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5792 * i386-tdep.c: Include features/i386/i386-avx512.c.
5793 (i386_zmm_names): Add ZMM pseudo register names array.
5794 (i386_zmmh_names): Add ZMM raw register names array.
5795 (i386_k_names): Add K raw register names array.
5796 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5797 registers. AVX512 has 16 more ZMM registers than there are YMM
5799 (i386_zmmh_regnum_p): Add function to look up register number of
5801 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5802 (i386_k_regnum_p): Likewise for K raw registers.
5803 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5804 registers added by AVX512.
5805 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5806 registers added by AVX512.
5807 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5809 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5810 (i386_pseudo_register_name): Add ZMM pseudo registers.
5811 (i386_zmm_type): Construct and return vector registers type for ZMM
5813 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5814 ZMM0-31 pseudo registers and K registers.
5815 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5816 and YMM16-31 registers from register cache.
5817 (i386_pseudo_register_write): Add code to write K, ZMM and
5819 (i386_register_reggroup_p): Add code to include/exclude AVX512
5820 registers in/from respective register groups.
5821 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5822 registers if feature is present in xcr0.
5823 (i386_gdbarch_init): Add code to initialize AVX512 feature
5824 variables in tdep structure, wire in pseudo registers and call
5825 initialize_tdesc_i386_avx512.
5826 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5828 (i386_regnum): Add AVX512 registers.
5829 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5830 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5831 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5832 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5834 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5835 (i386_ymm_avx512_regnum_p): Likewise.
5836 (i386_k_regnum_p): Likewise.
5837 (i386_zmm_regnum_p): Likewise.
5838 (i386_zmmh_regnum_p): Likewise.
5839 * i387-tdep.c : Update year in copyright notice.
5840 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5842 (XSAVE_YMM_AVX512_ADDR): New macro.
5843 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5845 (XSAVE_XMM_AVX512_ADDR): New macro.
5846 (xsave_avx512_k_offset): New table for K register offsets in
5848 (XSAVE_AVX512_K_ADDR): New macro.
5849 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5851 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5852 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5854 (i387_collect_xsave): Add code to collect AVX512 registers from
5856 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5857 of XMM16-31 registers.
5858 (I387_NUM_K_REGS): New define for number of K registers.
5859 (I387_K0_REGNUM): New define for K0 register number.
5860 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5861 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5862 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5864 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5865 (I387_XMM16_REGNUM): New define for XMM16 register number.
5866 (I387_YMM0_REGNUM): New define for YMM0 register number.
5867 (I387_KEND_REGNUM): New define for last K register number.
5868 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5869 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5871 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5873 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5875 * features/Makefile: Add AVX512 related files.
5876 * features/i386/32bit-avx512.xml: New file.
5877 * features/i386/64bit-avx512.xml: Likewise.
5878 * features/i386/amd64-avx512-linux.c: Likewise.
5879 * features/i386/amd64-avx512-linux.xml: Likewise.
5880 * features/i386/amd64-avx512.c: Likewise.
5881 * features/i386/amd64-avx512.xml: Likewise.
5882 * features/i386/i386-avx512-linux.c: Likewise.
5883 * features/i386/i386-avx512-linux.xml: Likewise.
5884 * features/i386/i386-avx512.c: Likewise.
5885 * features/i386/i386-avx512.xml: Likewise.
5886 * features/i386/x32-avx512-linux.c: Likewise.
5887 * features/i386/x32-avx512-linux.xml: Likewise.
5888 * features/i386/x32-avx512.c: Likewise.
5889 * features/i386/x32-avx512.xml: Likewise.
5890 * regformats/i386/amd64-avx512-linux.dat: New file.
5891 * regformats/i386/amd64-avx512.dat: Likewise.
5892 * regformats/i386/i386-avx512-linux.dat: Likewise.
5893 * regformats/i386/i386-avx512.dat: Likewise.
5894 * regformats/i386/x32-avx512-linux.dat: Likewise.
5895 * regformats/i386/x32-avx512.dat: Likewise.
5896 * NEWS: Add note about new support for AVX512.
5899 2014-04-23 Pedro Alves <palves@redhat.com>
5901 * breakpoint.c (insert_bp_location): Tolerate errors if the
5902 breakpoint is set in a user-loaded objfile.
5903 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5904 location is marked shlib_disabled. If the breakpoint is set in a
5905 user-loaded objfile is a GDB-side memory breakpoint, validate it
5906 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5907 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5909 * mem-break.c (memory_validate_breakpoint): New function.
5910 * objfiles.c (userloaded_objfile_contains_address_p): New
5912 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5913 * target.h (memory_validate_breakpoint): New declaration.
5915 2014-04-23 Pedro Alves <palves@redhat.com>
5917 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5918 the breakpoint is set in a shared library, only suppress
5919 errors for software breakpoints, not hardware breakpoints.
5921 2014-04-22 Pedro Alves <palves@redhat.com>
5923 * infrun.c (schedlock_applies): New function, factored out from
5924 find_thread_needs_step_over.
5925 (find_thread_needs_step_over): Use it.
5926 (switch_back_to_stepped_thread): Always clear trap_expected if the
5927 step over is finished. Return early if scheduler locking applies.
5928 Look for the stepping thread and a potential step-over thread with
5930 (currently_stepping_or_nexting_callback): Delete.
5932 2014-04-22 Nick Clifton <nickc@redhat.com>
5934 * NEWS: Mention that ARM sim now supports tracing.
5936 2014-04-22 Yao Qi <yao@codesourcery.com>
5938 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5940 * tracefile.c (tracefile_fetch_registers): ... it. New
5942 * tracefile.h (tracefile_fetch_registers): Declare.
5943 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5944 tracefile_fetch_registers.
5946 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5949 * windows-nat.c (thread_rec): Don't display a warning when
5950 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5951 fails for any reason, set th->suspended to -1, so that we don't
5952 try to resume such a thread. Also, don't return NULL in these
5953 cases, to avoid completely ruin the session due to "PC register is
5954 not available" error.
5955 (do_windows_fetch_inferior_registers): Check errors in
5956 GetThreadContext call.
5957 (windows_continue): Accept an additional argument KILLED; if not
5958 zero, ignore errors in the SetThreadContext call, since the
5959 inferior was killed and is shutting down.
5960 (windows_resume, get_windows_debug_event)
5961 (windows_create_inferior, windows_mourn_inferior)
5962 (windows_kill_inferior): All callers of windows_continue changed
5963 to adjust to its new calling sequence.
5965 2014-04-19 Yao Qi <yao@codesourcery.com>
5967 * ctf.c (ctf_open): Call post_create_inferior.
5969 2014-04-19 Yao Qi <yao@codesourcery.com>
5971 * ctf.c (handle_id): New static variable.
5972 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5973 value. Get the declaration of event "register" and get length
5974 of field "contents".
5976 2014-04-19 Yao Qi <yao@codesourcery.com>
5978 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5980 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5982 * valops.c (oload_method_static): Remove unnecessary argument
5983 METHOD. Update all callers.
5985 2014-04-18 Pedro alves <palves@redhat.com>
5986 Tom Tromey <tromey@redhat.com>
5989 * frame.c (get_prev_frame_1): Rename to ...
5990 (get_prev_frame_always): ... this, and make extern. Adjust.
5991 (skip_artificial_frames): Use get_prev_frame_always.
5992 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5993 (get_frame_unwind_stop_reason): Adjust to rename.
5994 * frame.h (get_prev_frame_always): Declare.
5995 * inline-frame.c: Include frame.h.
5996 (inline_frame_this_id): Use get_prev_frame_always.
5998 2014-04-18 Tristan Gingold <gingold@adacore.com>
6000 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6001 code by using bfd_mach_o_get_base_address.
6003 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6005 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6006 (spu_ax_pseudo_register_collect): New function.
6007 (spu_ax_pseudo_register_push_stack): Likewise.
6008 (spu_dwarf_reg_to_regnum): Likewise.
6009 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6011 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6013 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6014 Replace FRAME argument with FRAME_ID.
6015 * gdbarch.c, gdbarch.h: Regenerate.
6016 * findvar.c (default_value_from_register): Add GDBARCH argument;
6017 replace FRAME by FRAME_ID. No longer call get_frame_id.
6018 (value_from_register): Update call to gdbarch_value_from_register.
6019 * value.h (default_value_from_register): Update prototype.
6020 * s390-linux-tdep.c (s390_value_from_register): Update interface
6021 and call to default_value_from_register.
6022 * spu-tdep.c (spu_value_from_register): Likewise.
6024 * findvar.c (address_from_register): Remove TYPE argument.
6025 Do not call value_from_register; use gdbarch_value_from_register
6026 with null_frame_id instead.
6027 * value.h (address_from_register): Update prototype.
6028 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6029 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6030 address_from_register interface change.
6032 2014-04-17 Yao Qi <yao@codesourcery.com>
6034 * gdbtypes.h: Update comments to link to types and macros'
6037 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6039 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6041 2014-04-16 Keith Seitz <keiths@redhat.com>
6044 * dwarf2read.c (skip_one_die): Check that all relative-offset
6045 sibling DIEs fall within range of the current reader's buffer.
6046 (read_partial_die): Likewise.
6048 2014-04-16 Keith Seitz <keiths@redhat.com>
6051 * cp-namespace.c (lookup_symbol_file): If the type name of
6052 `this' is NULL, return immediately.
6054 2014-04-14 Keith Seitz <keiths@redhat.com>
6057 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6058 from symbol_matches_domain in symtab.c. All local callers
6059 of symbol_matches_domain updated.
6060 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6061 search STRUCT_DOMAIN.
6062 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6063 independently. standard_lookup will do that automatically.
6064 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6065 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6066 (cp_lookup_symbol_in_namespace): Likewise.
6067 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6068 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6069 may return a STRUCT_DOMAIN match.
6070 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6071 * cp-support.c: Include language.h.
6072 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6074 * psymtab.c (match_partial_symbol): Compare the requested
6075 domain with the symbol's domain directly.
6076 (lookup_partial_symbol): Likewise.
6077 * symtab.c (lookup_symbol_in_language): Explain when/why
6078 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6079 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6080 appropriate languages.
6081 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6082 and moved to ada-lang.c
6083 (lookup_block_symbol): Explain that this function only returns
6084 symbol matching the requested DOMAIN.
6085 Compare the requested domain with the symbol's domain directly.
6086 (iterate_over_symbols): Compare the requested domain with the
6087 symbol's domain directly.
6088 * symtab.h (symbol_matches_domain): Remove.
6090 2014-04-14 Tom Tromey <tromey@redhat.com>
6093 * c-exp.y (type_aggregate_p): New function.
6094 (qualified_name, classify_inner_name): Use it.
6095 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6096 and TYPE_TARGET_TYPE of an enum type.
6097 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6099 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6100 handle TYPE_DECLARED_CLASS.
6101 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6103 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6104 * valops.c (enum_constant_from_type): New function.
6105 (value_aggregate_elt): Use it.
6106 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6109 2014-04-14 Tom Tromey <tromey@redhat.com>
6111 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6112 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6114 * value.h (value_aggregate_elt): Update.
6116 2014-04-14 Tom Tromey <tromey@redhat.com>
6118 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6120 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6122 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6123 (evaluate_subexp_standard): Pass noside argument.
6124 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6125 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6126 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6127 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6128 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6130 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6132 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6133 points to a constant blob.
6135 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6137 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6138 property and store it as the high bound and flag the range accordingly.
6139 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6140 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6141 * gdbtypes.h (enum range_flags): New enum.
6142 (struct range_bounds): Add flags member.
6144 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6146 * c-typeprint.c (c_type_print_varspec_suffix): Added
6147 check for not yet resolved high bound. If unresolved, print
6148 "variable length" string to the console instead of random
6151 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6153 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6155 (ada_template_to_fixed_record_type_1): Likewise.
6156 (ada_to_fixed_type_1): Likewise.
6157 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6158 (cp_print_value): Likewise.
6159 * d-valprint.c (dynamic_array_type): Likewise.
6160 * findvar.c (address_of_variable): Likewise.
6161 * jv-valprint.c (java_value_print): Likewise.
6162 * valops.c (value_ind): Likewise.
6163 * value.c (coerce_ref): Likewise.
6165 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6167 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6168 value and retrieve the dynamic type size.
6170 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6172 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6173 passed to sizeof is dynamic evaluate the argument to compute the length.
6175 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6176 Joel Brobecker <brobecker@adacore.com>
6178 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6179 (dwarf2_evaluate_property): New function.
6180 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6181 * dwarf2read.c (attr_to_dynamic_prop): New function.
6182 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6184 * gdbtypes.c: Include dwarf2loc.h.
6185 (is_dynamic_type): New function.
6186 (resolve_dynamic_type): New function.
6187 (resolve_dynamic_bounds): New function.
6188 (get_type_length): New function.
6189 (check_typedef): Use get_type_length to compute type length.
6190 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6191 (TYPE_LOW_BOUND_KIND): New macro.
6192 (is_dynamic_type): New function prototype.
6193 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6194 to resolve dynamic properties of the type. Update comment.
6195 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6197 2014-04-14 Richard Henderson <rth@redhat.com>
6199 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6201 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6202 Doug Evans <xdje42@gmail.com>
6204 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6205 dereference TYPE_CODE_REF values.
6207 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6209 Revert the following changes due to regressions:
6211 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6212 (dwarf2_evaluate_property): New function.
6213 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6214 * dwarf2read.c (attr_to_dynamic_prop): New function.
6215 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6217 * gdbtypes.c: Include dwarf2loc.h.
6218 (is_dynamic_type): New function.
6219 (resolve_dynamic_type): New function.
6220 (resolve_dynamic_bounds): New function.
6221 (get_type_length): New function.
6222 (check_typedef): Use get_type_length to compute type length.
6223 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6224 (TYPE_LOW_BOUND_KIND): New macro.
6225 (is_dynamic_type): New function prototype.
6226 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6227 to resolve dynamic properties of the type. Update comment.
6228 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6230 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6231 passed to sizeof is dynamic evaluate the argument to compute the length.
6233 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6234 value and retrieve the dynamic type size.
6236 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6237 (ada_template_to_fixed_record_type_1): Likewise.
6238 (ada_to_fixed_type_1): Likewise.
6239 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6240 (cp_print_value): Likewise.
6241 * d-valprint.c (dynamic_array_type): Likewise.
6242 * eval.c (evaluate_subexp_with_coercion): Likewise.
6243 * findvar.c (address_of_variable): Likewise.
6244 * jv-valprint.c (java_value_print): Likewise.
6245 * valops.c (value_ind): Likewise.
6246 * value.c (coerce_ref): Likewise.
6248 * c-typeprint.c (c_type_print_varspec_suffix): Added
6249 check for not yet resolved high bound. If unresolved, print
6250 "variable length" string to the console instead of random
6253 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6254 property and store it as the high bound and flag the range accordingly.
6255 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6256 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6257 * gdbtypes.h (enum range_flags): New enum.
6258 (struct range_bounds): Add flags member.
6260 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6261 points to a constant blob.
6263 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6264 (evaluate_subexp_standard): Pass noside argument.
6265 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6266 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6267 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6268 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6269 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6271 2014-04-11 Keith Seitz <keiths@redhat.com>
6274 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6275 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6278 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6280 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6281 (evaluate_subexp_standard): Pass noside argument.
6282 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6283 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6284 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6285 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6286 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6288 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6290 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6291 points to a constant blob.
6293 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6295 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6296 property and store it as the high bound and flag the range accordingly.
6297 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6298 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6299 * gdbtypes.h (enum range_flags): New enum.
6300 (struct range_bounds): Add flags member.
6302 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6304 * c-typeprint.c (c_type_print_varspec_suffix): Added
6305 check for not yet resolved high bound. If unresolved, print
6306 "variable length" string to the console instead of random
6309 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6311 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6312 (ada_template_to_fixed_record_type_1): Likewise.
6313 (ada_to_fixed_type_1): Likewise.
6314 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6315 (cp_print_value): Likewise.
6316 * d-valprint.c (dynamic_array_type): Likewise.
6317 * eval.c (evaluate_subexp_with_coercion): Likewise.
6318 * findvar.c (address_of_variable): Likewise.
6319 * jv-valprint.c (java_value_print): Likewise.
6320 * valops.c (value_ind): Likewise.
6321 * value.c (coerce_ref): Likewise.
6323 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6325 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6326 value and retrieve the dynamic type size.
6328 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6330 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6331 passed to sizeof is dynamic evaluate the argument to compute the length.
6333 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6335 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6336 (dwarf2_evaluate_property): New function.
6337 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6338 * dwarf2read.c (attr_to_dynamic_prop): New function.
6339 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6341 * gdbtypes.c: Include dwarf2loc.h.
6342 (is_dynamic_type): New function.
6343 (resolve_dynamic_type): New function.
6344 (resolve_dynamic_bounds): New function.
6345 (get_type_length): New function.
6346 (check_typedef): Use get_type_length to compute type length.
6347 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6348 (TYPE_LOW_BOUND_KIND): New macro.
6349 (is_dynamic_type): New function prototype.
6350 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6351 to resolve dynamic properties of the type. Update comment.
6352 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6354 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6356 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6357 declaring high/low bounds and change uses accordingly. Call
6358 create_range_type instead of create_static_range_type.
6359 * gdbtypes.c (create_range_type): New function.
6360 (create_range_type): Convert bounds into struct bound_prop and pass
6361 them to create_range_type.
6362 * gdbtypes.h (struct bound_prop): New struct.
6363 (create_range_type): New function prototype.
6364 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6365 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6366 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6368 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6370 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6372 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6373 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6374 * ada-lang.c: All uses of create_range_type updated.
6375 * coffread.c: All uses of create_range_type updated.
6376 * dwarf2read.c: All uses of create_range_type updated.
6377 * f-exp.y: All uses of create_range_type updated.
6378 * m2-valprint.c: All uses of create_range_type updated.
6379 * mdebugread.c: All uses of create_range_type updated.
6380 * stabsread.c: All uses of create_range_type updated.
6381 * valops.c: All uses of create_range_type updated.
6382 * valprint.c: All uses of create_range_type updated.
6384 2014-04-10 Pedro Alves <palves@redhat.com>
6386 * breakpoint.c (single_step_breakpoints)
6387 (single_step_gdbarch): Move up in the file.
6388 (one_breakpoint_xfer_memory): New function, factored out from ...
6389 (breakpoint_xfer_memory): ... here. Also process single-step
6392 2014-04-09 Tristan Gingold <gingold@adacore.com>
6394 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6396 (darwin_decode_exception_message): Free port only after use.
6398 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6400 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6401 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6402 when setting the size of call_length.
6404 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6406 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6407 dereference TYPE_CODE_REF values.
6409 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6411 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6412 end of warning message.
6414 2014-04-03 Doug Evans <dje@google.com>
6416 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6417 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6419 2014-04-02 Alan Modra <amodra@gmail.com>
6421 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6422 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6423 (struct symbol_file_add_from_memory_args): Add size field.
6424 (find_vdso_size): New function.
6425 (add_vsyscall_page): Attempt to find vdso size.
6427 2014-04-01 Doug Evans <dje@google.com>
6429 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6431 2014-04-01 Tristan Gingold <gingold@adacore.com>
6433 * darwin-nat.c (darwin_encode_reply): Add prototype.
6434 (darwin_decode_exception_message): Reply to unknown inferiors.
6435 (darwin_decode_message): Handle message by id. Ignore message
6436 to unknown inferior.
6437 (darwin_wait): Discard unknown messages, add debug trace.
6439 2014-03-31 Doug Evans <dje@google.com>
6441 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6444 2014-03-31 Doug Evans <dje@google.com>
6446 New option "set print symbol-loading".
6448 * solib.c (solib_read_symbols): Only print symbol loading messages
6450 (solib_add): If symbol loading is in "brief" mode, notify user
6451 symbols are being loaded.
6452 (reload_shared_libraries_1): Ditto.
6453 * symfile.c (print_symbol_loading_off): New static global.
6454 (print_symbol_loading_brief): New static global.
6455 (print_symbol_loading_full): New static global.
6456 (print_symbol_loading_enums): New static global.
6457 (print_symbol_loading): New static global.
6458 (print_symbol_loading_p): New function.
6459 (symbol_file_add_with_addrs): Only print symbol loading messages
6461 (_initialize_symfile): Register "print symbol-loading" set/show
6463 * symfile.h (print_symbol_loading_p): Declare.
6465 2014-03-30 Doug Evans <xdje42@gmail.com>
6467 * infrun.c (set_last_target_status): New function.
6468 (handle_inferior_event): Call it.
6470 2014-03-30 Doug Evans <xdje42@gmail.com>
6472 * inferior.h (enum stop_kind): Improve comment.
6474 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6476 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6477 a reference, strip the reference layer before calling
6478 the lang_ops value_has_mutated callback.
6480 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6482 Remove some globals from our parser.
6483 * language.c (unk_lang_parser): Add "struct parser_state"
6485 * language.h (struct language_defn) <la_parser>: Likewise.
6486 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6487 (initialize_expout): Add "struct parser_state" argument.
6488 Rewrite function to use the parser state.
6489 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6490 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6491 write_exp_elt_longcst, write_exp_elt_dblcst,
6492 write_exp_elt_decfloatcst, write_exp_elt_type,
6493 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6494 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6495 write_dollar_variable): Likewise.
6496 (parse_exp_in_context_1): Use parser state.
6497 (insert_type_address_space): Add "struct parser_state" argument.
6499 (increase_expout_size): New function.
6500 * parser-defs.h: Forward declare "struct language_defn" and
6501 "struct parser_state".
6502 (expout, expout_size, expout_ptr): Remove extern declarations.
6503 (parse_gdbarch, parse_language): Rewrite macro declarations to
6504 accept the parser state.
6505 (struct parser_state): New struct.
6506 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6507 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6508 write_exp_elt_decfloatcst, write_exp_elt_type,
6509 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6510 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6511 write_exp_msymbol, write_dollar_variable,
6512 mark_struct_expression, insert_type_address_space): Add "struct
6513 parser_state" argument.
6514 (increase_expout_size): New function.
6515 * utils.c (do_clear_parser_state): New function.
6516 (make_cleanup_clear_parser_state): Likewise.
6517 * utils.h (make_cleanup_clear_parser_state): New function
6519 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6520 Update calls to write_exp* in order to pass the parser state.
6521 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6522 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6523 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6524 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6525 * stap-probe.c (stap_parse_register_operand): Likewise.
6526 (stap_parse_single_operand): Likewise.
6527 (stap_parse_argument_1): Likewise.
6528 (stap_parse_argument): Use parser state.
6529 * stap-probe.h: Include "parser-defs.h".
6530 (struct stap_parse_info) <pstate>: New field.
6531 * c-exp.y (parse_type): Rewrite to use parser state.
6532 (yyparse): Redefine to c_parse_internal.
6533 (pstate): New global variable.
6534 (parse_number): Add "struct parser_state" argument.
6535 (write_destructor_name): Likewise.
6536 (type_exp): Update calls to write_exp* and similars in order to
6538 (exp1, exp, variable, qualified_name, space_identifier,
6539 typename, typebase): Likewise.
6540 (write_destructor_name, parse_number, lex_one_token,
6541 classify_name, classify_inner_name, c_parse): Add "struct
6542 parser_state" argument. Update function to use parser state.
6543 * c-lang.h: Forward declare "struct parser_state".
6544 (c_parse): Add "struct parser_state" argument.
6545 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6546 (yyparse): Redefine macro to ada_parse_internal.
6547 (pstate): New variable.
6548 (write_int, write_object_renaming, write_var_or_type,
6549 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6550 type_int, type_long, type_long_long, type_float, type_double,
6551 type_long_double, type_char, type_boolean, type_system_address):
6552 Add "struct parser_state" argument.
6553 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6554 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6555 var_or_type, aggregate, aggregate_component_list,
6556 positional_list, others, component_group,
6557 component_associations): Update calls to write_exp* and similar
6558 functions in order to use parser state.
6559 (ada_parse, write_var_from_sym, write_int,
6560 write_exp_op_with_string, write_object_renaming,
6561 find_primitive_type, write_selectors, write_ambiguous_var,
6562 write_var_or_type, write_name_assoc, type_int, type_long,
6563 type_long_long, type_float, type_double, type_long_double,
6564 type_char, type_boolean, type_system_address): Add "struct
6565 parser_state" argument. Adjust function to use parser state.
6566 * ada-lang.c (parse): Likewise.
6567 * ada-lang.h: Forward declare "struct parser_state".
6568 (ada_parse): Add "struct parser_state" argument.
6569 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6570 calls to both functions.
6571 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6573 (yyparse): Redefine macro to f_parse_internal.
6574 (pstate): New variable.
6575 (parse_number): Add "struct parser_state" argument.
6576 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6577 and similars in order to use parser state.
6578 (parse_number): Adjust code to use parser state.
6580 (f_parse): New function.
6581 * f-lang.h: Forward declare "struct parser_state".
6582 (f_parse): Add "struct parser_state" argument.
6583 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6585 (yyparse): Redefine macro for java_parse_internal.
6586 (pstate): New variable.
6587 (push_expression_name, push_expression_name, insert_exp): Add
6588 "struct parser_state" argument.
6589 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6590 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6591 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6592 PostIncrementExpression, PostDecrementExpression,
6593 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6594 UnaryExpressionNotPlusMinus, CastExpression,
6595 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6596 RelationalExpression, EqualityExpression, AndExpression,
6597 ExclusiveOrExpression, InclusiveOrExpression,
6598 ConditionalAndExpression, ConditionalOrExpression,
6599 ConditionalExpression, Assignment, LeftHandSide): Update
6600 calls to write_exp* and similars in order to use parser state.
6601 (parse_number): Ajust code to use parser state.
6603 (java_parse): New function.
6604 (push_variable): Add "struct parser_state" argument. Adjust
6605 code to user parser state.
6606 (push_fieldnames, push_qualified_expression_name,
6607 push_expression_name, insert_exp): Likewise.
6608 * jv-lang.h: Forward declare "struct parser_state".
6609 (java_parse): Add "struct parser_state" argument.
6610 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6612 (yyparse): Redefine macro to m2_parse_internal.
6613 (pstate): New variable.
6614 (type_exp, exp, fblock, variable, type): Update calls to
6615 write_exp* and similars to use parser state.
6617 (m2_parse): New function.
6618 * m2-lang.h: Forward declare "struct parser_state".
6619 (m2_parse): Add "struct parser_state" argument.
6620 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6621 * objc-lang.h: Forward declare "struct parser_state".
6622 (end_msglist): Add "struct parser_state" argument.
6623 * p-exp.y (parse_type): Rewrite macro to use parser state.
6624 (yyparse): Redefine macro to pascal_parse_internal.
6625 (pstate): New variable.
6626 (parse_number): Add "struct parser_state" argument.
6627 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6628 write_exp* and similars in order to use parser state.
6629 (parse_number, yylex): Adjust code to use parser state.
6630 (pascal_parse): New function.
6631 * p-lang.h: Forward declare "struct parser_state".
6632 (pascal_parse): Add "struct parser_state" argument.
6633 * go-exp.y (parse_type): Rewrite macro to use parser state.
6634 (yyparse): Redefine macro to go_parse_internal.
6635 (pstate): New variable.
6636 (parse_number): Add "struct parser_state" argument.
6637 (type_exp, exp1, exp, variable, type): Update calls to
6638 write_exp* and similars in order to use parser state.
6639 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6640 to use parser state.
6641 (go_parse): Likewise.
6642 * go-lang.h: Forward declare "struct parser_state".
6643 (go_parse): Add "struct parser_state" argument.
6645 2014-03-27 Doug Evans <dje@google.com>
6647 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6649 2014-03-27 Doug Evans <dje@google.com>
6651 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6652 Remove argument abbrev_section. All callers updated.
6654 2014-03-27 Doug Evans <dje@google.com>
6656 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6657 addr_base, ranges_base.
6659 2014-03-26 Keith Seitz <keiths@redhat.com>
6661 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6662 types, not VAR_DOMAIN.
6664 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6666 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6668 * features/nios2-linux.c: Regenerated.
6669 * features/nios2.c: Regenerated.
6671 2014-03-25 Pedro Alves <palves@redhat.com>
6673 * cli/cli-script.c (script_from_file): Force the interpreter to
6676 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6678 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6679 small stack allocation.
6681 2014-03-24 Tristan Gingold <gingold@adacore.com>
6683 * darwin-nat.c (exc_server): Remove unused prototype.
6684 (darwin_dump_message): Correctly display data on x86_64.
6685 (darwin_encode_reply): Fix style.
6686 Add comments and fix indentation.
6688 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6690 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6692 2014-03-22 Doug Evans <xdje42@gmail.com>
6694 * infcmd.c: Whitespace fixes.
6695 (interrupt_command): Merge two function comments into one.
6697 2014-03-22 Doug Evans <xdje42@gmail.com>
6699 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6702 2014-03-22 Yao Qi <yao@codesourcery.com>
6704 * remote.c (target_read_live_memory): Remove.
6705 (memory_xfer_live_readonly_partial): Rename it to
6706 remote_xfer_live_readonly_partial. Remove argument 'object'.
6707 All callers updated. Call remote_read_bytes_1
6708 instead of target_read_live_memory.
6709 * tracepoint.c (set_traceframe_number): Remove.
6710 (make_cleanup_restore_traceframe_number): Likewise .
6711 * tracepoint.h (set_traceframe_number): Remove declaration.
6712 (make_cleanup_restore_traceframe_number): Likewise.
6714 2014-03-22 Yao Qi <yao@codesourcery.com>
6716 * remote.c (remote_read_bytes): Move code on reading from the
6718 (remote_read_bytes_1): ... here. New function.
6720 2014-03-22 Yao Qi <yao@codesourcery.com>
6722 * ctf.c (ctf_xfer_partial): Check the return value of
6723 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6724 return TARGET_XFER_UNAVAILABLE.
6725 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6726 * target.c (target_read_live_memory): Move it to remote.c.
6727 (memory_xfer_live_readonly_partial): Likewise.
6728 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6729 * remote.c (target_read_live_memory): Moved from target.c.
6730 (memory_xfer_live_readonly_partial): Likewise.
6731 (remote_read_bytes): Factored out from
6732 memory_xfer_partial_1.
6734 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6736 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6739 2014-03-21 Pedro Alves <palves@redhat.com>
6741 * infrun.c (normal_stop): Extend comment.
6743 2014-03-21 Hui Zhu <hui@codesourcery.com>
6744 Pedro Alves <palves@redhat.com>
6746 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6748 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6749 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6750 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6752 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6754 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6755 `z' formatted output modifier.
6757 2014-03-20 Tom Tromey <tromey@redhat.com>
6758 Sergio Durigan Junior <sergiodj@redhat.com>
6760 * probe.c (parse_probes): Turn assert into an ordinary error.
6761 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6762 exceptions when parsing probes. Rearrange the code for clarity.
6764 2014-03-20 Tom Tromey <tromey@redhat.com>
6767 * top.c (execute_command): Only dispatch events if the command
6770 2014-03-20 Tom Tromey <tromey@redhat.com>
6773 * infcall.c: Include event-top.h.
6774 (run_inferior_call): Call async_disable_stdin if needed.
6776 2014-03-20 Pedro Alves <palves@redhat.com>
6778 * infrun.c (prepare_to_proceed): Delete.
6779 (thread_still_needs_step_over): New function.
6780 (find_thread_needs_step_over): New function.
6781 (proceed): If the current thread needs a step-over, set its
6782 steping_over_breakpoint flag. Adjust to use
6783 find_thread_needs_step_over instead of prepare_to_proceed.
6784 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6785 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6787 (switch_back_to_stepped_thread): Step over breakpoints of all
6788 threads not the stepping thread, before switching back to the
6791 2014-03-20 Pedro Alves <palves@redhat.com>
6793 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6795 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6796 * infrun.c (saved_singlestep_ptid)
6797 (stepping_past_singlestep_breakpoint): Delete.
6798 (resume): Remove stepping_past_singlestep_breakpoint handling.
6799 (proceed): Store the prev_pc of the stepping thread too.
6800 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6802 (enum infwait_states): Delete infwait_thread_hop_state.
6803 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6805 (handle_inferior_event): Adjust.
6806 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6807 handling and the thread-hop code. Before removing single-step
6808 breakpoints, check whether the thread hit a single-step breakpoint
6809 of another thread. If it did, the trap is not a random signal.
6810 (switch_back_to_stepped_thread): If the event thread hit a
6811 single-step breakpoint, unblock it before switching to the
6812 stepping thread. Handle the case of the stepped thread having
6814 (keep_going): Handle the case of the current thread moving past a
6815 single-step breakpoint.
6817 2014-03-20 Pedro Alves <palves@redhat.com>
6820 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6821 are being stepped over.
6822 (breakpoint_address_match): Make extern.
6823 * breakpoint.h (breakpoint_address_match): New declaration.
6824 * inferior.h (stepping_past_instruction_at): New declaration.
6825 * infrun.c (struct step_over_info): New type.
6826 (step_over_info): New global.
6827 (set_step_over_info, clear_step_over_info)
6828 (stepping_past_instruction_at): New functions.
6829 (handle_inferior_event): Clear the step-over info when
6830 trap_expected is cleared.
6831 (resume): Remove now stale comment.
6832 (clear_proceed_status): Clear step-over info.
6833 (proceed): Adjust step-over handling to set or clear the step-over
6834 info instead of removing all breakpoints.
6835 (handle_signal_stop): When setting up a thread-hop, don't remove
6837 (stop_stepping): Clear step-over info.
6838 (keep_going): Adjust step-over handling to set or clear step-over
6839 info and then always inserting breakpoints, instead of removing
6840 all breakpoints when stepping over one.
6842 2014-03-20 Pedro Alves <palves@redhat.com>
6844 * infrun.c (previous_inferior_ptid): Adjust comment.
6845 (deferred_step_ptid): Delete.
6846 (infrun_thread_ptid_changed, prepare_to_proceed)
6847 (init_wait_for_inferior): Adjust.
6848 (handle_signal_stop): Delete deferred_step_ptid handling.
6850 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6853 * defs.h (sync_quit_force_run): New declaration.
6854 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6855 * event-top.c (async_sigterm_handler): New declaration.
6856 (async_sigterm_token): New variable.
6857 (async_init_signals): Create also async_sigterm_token.
6858 (async_sigterm_handler): New function.
6859 (sync_quit_force_run): New variable.
6860 (handle_sigterm): Replace quit_force call by other calls.
6861 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6863 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6865 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6866 offset into SPE pseudo registers.
6868 2014-03-18 Pedro Alves <palves@redhat.com>
6871 * inferior.h (print_stop_event): Declare.
6872 * infrun.c (print_stop_event): New, factored out from ...
6873 (normal_stop): ... this.
6874 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6875 of bpstat_print/print_stack_frame.
6877 2014-03-17 Tom Tromey <tromey@redhat.com>
6879 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6881 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6883 * ada-lang.c (decode_constrained_packed_array): Perform a
6884 minimal coercion for reference with coerce_ref instead of
6887 2014-03-17 Tristan Gingold <gingold@adacore.com>
6889 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6890 (darwin_solib_create_inferior_hook): Emit a warning if version
6893 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6895 * python/py-value.c (get_field_flag): Cast flag_name argument to
6896 PyObject_GetAttrString to support Python 2.4.
6898 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6900 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6901 (Global Maintainers): Remove Jan Kratochvil.
6903 2014-03-14 Pedro Alves <palves@redhat.com>
6905 * inferior.h (terminal_ours_for_output): Rename to ...
6906 (child_terminal_ours_for_output): ... this.
6907 (terminal_save_ours): Rename to ...
6908 (child_terminal_save_ours): ... this.
6909 (terminal_ours): Rename to ...
6910 (child_terminal_ours): ... this.
6911 (terminal_inferior): Rename to ...
6912 (child_terminal_inferior): ... this.
6913 (terminal_init_inferior): Rename to ...
6914 (child_terminal_init_inferior): ... this.
6915 (terminal_init_inferior_with_pgrp): Rename to ...
6916 (child_terminal_init_inferior_with_pgrp): ... this.
6917 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6918 (child_terminal_init_with_pgrp): ... this.
6919 (terminal_save_ours): Rename to ...
6920 (child_terminal_save_ours): ... this.
6921 (terminal_init_inferior): Rename to ...
6922 (child_terminal_init): ... this. Adjust.
6923 (terminal_inferior): Rename to ...
6924 (child_terminal_inferior): ... this.
6925 (terminal_ours_for_output): Rename to ...
6926 (child_terminal_ours_for_output): ... this. Adjust.
6927 (terminal_ours): Rename to ...
6928 (child_terminal_ours): ... this.
6929 (terminal_ours_1): Rename to ...
6930 (child_terminal_ours_1): ... this. Adjust.
6931 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6932 * windows-nat.c (do_initial_windows_stuff): Adjust.
6933 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6934 (gnu_terminal_init): ... this. Adjust.
6935 (gnu_target): Adjust.
6936 * inf-child.c (inf_child_target): Adjust.
6938 2014-03-13 Doug Evans <xdje42@gmail.com>
6941 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6944 2014-03-13 Doug Evans <xdje42@gmail.com>
6946 * value.c (record_latest_value): Call release_value_or_incref
6947 instead of release_value.
6949 2014-03-13 Pedro Alves <palves@redhat.com>
6951 * procfs.c (procfs_target): Don't override to_shortname,
6952 to_longname or to_doc.
6954 2014-03-13 Pedro Alves <palves@redhat.com>
6956 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6957 Unix in user visible strings.
6959 2014-03-12 Stan Shebs <stan@codesourcery.com>
6961 * gdbtypes.h: Annotate comments for Doxygen, add a page
6962 block comment with some general info.
6964 2014-03-12 Pedro Alves <palves@redhat.com>
6966 * infcmd.c (prepare_execution_command): New function, factored out
6967 from several execution commands.
6968 (run_command_1, continue_command, step_1, jump_command)
6969 (signal_command, until_command, advance_command, finish_command)
6970 (attach_command): Use prepare_execution_command.
6972 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6974 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6977 (struct arm_linux_thread_points): Removed.
6978 (struct arm_linux_process_info): New.
6979 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6980 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6981 (arm_linux_find_breakpoints_by_tid): Removed.
6982 (struct arch_lwp_info): New.
6983 (arm_linux_find_process_pid): New functions.
6984 (arm_linux_add_process): New functions.
6985 (arm_linux_process_info_get): New functions.
6986 (arm_linux_forget_process): New function.
6987 (arm_linux_get_debug_reg_state): New function.
6988 (struct update_registers_data): New.
6989 (update_registers_callback): New function.
6990 (arm_linux_insert_hw_breakpoint1): Updated.
6991 (arm_linux_remove_hw_breakpoint1): Updated.
6992 (arm_linux_insert_hw_breakpoint): Updated.
6993 (arm_linux_remove_hw_breakpoint): Updated.
6994 (arm_linux_insert_watchpoint): Updated.
6995 (arm_linux_remove_watchpoint): Updated.
6996 (arm_linux_new_thread): Updated.
6997 (arm_linux_prepare_to_resume): New function.
6998 (arm_linux_new_fork): New function.
6999 (_initialize_arm_linux_nat): Updated.
7001 2014-03-12 Pedro Alves <palves@redhat.com>
7003 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7005 2014-03-12 Tom Tromey <tromey@redhat.com>
7007 * inf-child.c (return_zero): New function.
7008 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7009 * aix-thread.c (aix_thread_inferior_created): New function.
7010 (aix_thread_attach): Remove.
7011 (init_aix_thread_ops): Don't set to_attach.
7012 (_initialize_aix_thread): Register inferior_created observer.
7013 * corelow.c (init_core_ops): Don't set to_attach or
7015 * exec.c (init_exec_ops): Don't set to_attach or
7017 * infcmd.c (run_command_1): Use find_run_target. Make direct
7019 (attach_command): Use find_attach_target. Make direct target
7021 * record-btrace.c (init_record_btrace_ops): Don't set
7023 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7025 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7026 set to_create_inferior.
7027 * target.c (complete_target_initialization): Add assertion.
7028 (target_create_inferior): Remove.
7029 (find_default_attach, find_default_create_inferior): Remove.
7030 (find_attach_target, find_run_target): New functions.
7031 (find_default_is_async_p, find_default_can_async_p)
7032 (target_supports_non_stop, target_attach): Remove.
7033 (init_dummy_target): Don't set to_create_inferior or
7034 to_supports_non_stop.
7035 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7036 TARGET_DEFAULT_FUNC.
7037 <to_create_inferior>: Add comment.
7038 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7039 TARGET_DEFAULT_RETURN.
7040 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7041 (find_attach_target, find_run_target): Declare.
7042 (target_create_inferior): Remove.
7043 (target_has_execution_1): Update comment.
7044 (target_supports_non_stop): Remove.
7045 * target-delegates.c: Rebuild.
7047 2014-03-12 Pedro Alves <palves@redhat.com>
7049 * inf-child.h: Update comment to not mention Unix.
7051 2014-03-12 Pedro Alves <palves@redhat.com>
7053 * inf-child.c: Update top comment to not mention Unix. Add
7054 generic comment describing how this target is meant to be used.
7055 (inf_child_post_attach, inf_child_post_startup_inferior)
7056 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7059 2014-03-12 Pedro Alves <palves@redhat.com>
7061 * nto-procfs.c: Include inf-child.h.
7062 (procfs_ops): Delete global.
7063 (procfs_can_run): Delete method.
7064 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7065 target pointer instead of referencing procfs_ops.
7066 (procfs_prepare_to_store): Delete.
7067 (init_procfs_ops): Delete function.
7068 (procfs_target): New function, based on init_procfs_ops, but
7069 inherit inf_child_target.
7070 (_initialize_procfs): Use procfs_target.
7072 2014-03-12 Pedro Alves <palves@redhat.com>
7074 * windows-nat.c: Include inf-child.h.
7075 (windows_ops): Delete global.
7076 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7078 (init_windows_ops): Delete function.
7079 (windows_target): New function, based on init_windows_ops, but
7080 inherit inf_child_target.
7081 (_initialize_windows_nat): Use windows_target. Install x86
7082 specific target methods here.
7084 2014-03-10 Doug Evans <xdje42@gmail.com>
7086 * guile/guile.c (call_initialize_gdb_module): New function.
7087 (initialize_guile): Replace call to scm_init_guile with call to
7090 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7092 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7093 in call to TYPE_CODE macro.
7095 2014-03-10 Jerome Guitton <guitton@adacore.com>
7097 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7098 Resolve tagged types to full view.
7100 2014-03-10 Hui Zhu <hui@codesourcery.com>
7102 * target.h (target_insert_breakpoint): Remove "hardware" from its
7105 2014-03-07 Doug Evans <dje@google.com>
7107 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7109 2014-03-07 Doug Evans <dje@google.com>
7111 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7112 Remove unused local comp_dir_attr. Assert exactly one of
7113 stub_comp_unit_die, stub_comp_dir is non-NULL.
7115 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7117 * target.h (complete_target_initialization, add_target):
7120 2014-03-07 Pedro Alves <palves@redhat.com>
7122 * go32-nat.c: Include inf-child.h.
7123 (go32_ops): Delete global.
7124 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7126 (go32_create_inferior): Push the passed in target pointer instead
7127 of referencing go32_ops.
7128 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7129 (go32_target): New function, based on init_go32_ops, but inherit
7131 (_initialize_go32_nat): Use go32_target. Move parts of
7134 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7136 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7137 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7138 SYMBOL_VALUE_ADDRESS.
7139 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7141 2014-03-06 Yao Qi <yao@codesourcery.com>
7143 * breakpoint.c (get_tracepoint_by_number): Remove argument
7144 optional_p. All callers updated. Adjust comments. Update
7146 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7148 2014-03-06 Yao Qi <yao@codesourcery.com>
7150 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7151 early if get_number returns zero. Use 'p' instead of 'args'.
7153 2014-03-06 Yao Qi <yao@codesourcery.com>
7155 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7158 2014-03-06 Yao Qi <yao@codesourcery.com>
7160 PR breakpoints/16508
7161 * tracepoint.c (check_trace_running): New function.
7162 (trace_find_command): Move code to check_trace_running and
7163 call check_trace_running.
7164 (trace_find_pc_command): Likewise.
7165 (trace_find_tracepoint_command): Likewise.
7166 (trace_find_line_command): Likewise.
7167 (trace_find_range_command): Likewise.
7168 * tracepoint.h (check_trace_running): Likewise.
7169 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7171 2014-03-06 Yao Qi <yao@codesourcery.com>
7173 * target.h (struct target_ops) <to_traceframe_info>: Use
7174 TARGET_DEFAULT_NORETURN (tcomplain ()).
7175 * target-delegates.c: Regenerated.
7177 2014-03-05 Pedro Alves <palves@redhat.com>
7180 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7181 void. Update comment.
7182 (dcache_xfer_memory): Delete.
7183 (dcache_read_memory_partial): New, based on the read bits of
7185 (dcache_update): Add status parameter. Use ULONGEST for len, and
7186 adjust. Discard cache lines if the reason for the update was
7188 * dcache.h (dcache_xfer_memory): Delete declaration.
7189 (dcache_read_memory_partial): New declaration.
7190 (dcache_update): Update prototype.
7191 * target.c (raw_memory_xfer_partial): Update the dcache here.
7192 (memory_xfer_partial_1): Don't handle dcache writes here.
7194 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7196 * remote-sim.c (gdbsim_load): Add const to prog.
7198 2014-03-03 Tom Tromey <tromey@redhat.com>
7200 * elfread.c (probe_key): Change to bfd_data.
7201 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7202 now per-BFD, not per-objfile.
7203 * stap-probe.c (stap_probe_destroy): Update comment.
7204 (handle_stap_probe): Allocate on the per-BFD obstack.
7206 2014-03-03 Tom Tromey <tromey@redhat.com>
7208 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7209 * breakpoint.c (create_longjmp_master_breakpoint): Use
7211 (add_location_to_breakpoint, bkpt_probe_insert_location)
7212 (bkpt_probe_remove_location): Update.
7213 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7214 * elfread.c (elf_symfile_relocate_probe): Remove.
7215 (elf_probe_fns): Update.
7216 (insert_exception_resume_breakpoint): Change type of "probe"
7217 parameter to bound_probe.
7218 (check_exception_resume): Update.
7219 * objfiles.c (objfile_relocate1): Don't relocate probes.
7220 * probe.c (bound_probe_s): New typedef.
7221 (parse_probes): Use get_probe_address. Set sal's objfile.
7222 (find_probe_by_pc): Return a bound_probe.
7223 (collect_probes): Return a VEC(bound_probe_s).
7224 (compare_probes): Update.
7225 (gen_ui_out_table_header_info): Change type of "probes"
7227 (info_probes_for_ops): Update.
7228 (get_probe_address): New function.
7229 (probe_safe_evaluate_at_pc): Update.
7230 * probe.h (struct probe_ops) <get_probe_address>: New field.
7231 <set_semaphore, clear_semaphore>: Add objfile parameter.
7232 (struct probe) <objfile>: Remove field.
7234 <address>: Update comment.
7235 (struct bound_probe): New.
7236 (find_probe_by_pc): Return a bound_probe.
7237 (get_probe_address): Declare.
7238 * solib-svr4.c (struct probe_and_action) <address>: New field.
7239 (hash_probe_and_action, equal_probe_and_action): Update.
7240 (register_solib_event_probe): Add address parameter.
7241 (solib_event_probe_at): Update.
7242 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7244 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7245 (stap_get_probe_address): New function.
7246 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7247 (compile_probe_arg): Update.
7248 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7250 (handle_stap_probe): Don't relocate the probe.
7251 (stap_relocate): Remove.
7252 (stap_gen_info_probes_table_values): Update.
7253 (stap_probe_ops): Remove stap_relocate.
7254 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7255 (debug_sym_probe_fns): Update.
7256 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7257 * symtab.c (init_sal): Use memset.
7258 * symtab.h (struct symtab_and_line) <objfile>: New field.
7259 * tracepoint.c (start_tracing, stop_tracing): Update.
7261 2014-03-03 Tom Tromey <tromey@redhat.com>
7263 * probe.h (parse_probes, find_probe_by_pc)
7264 (find_probes_in_objfile): Fix comments.
7266 2014-03-02 Doug Evans <xdje42@gmail.com>
7268 * infrun.c (handle_signal_stop): Replace test for
7269 TARGET_WAITKIND_STOPPED with an assert.
7271 2014-03-02 Doug Evans <xdje42@gmail.com>
7273 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7275 2014-03-02 Doug Evans <xdje42@gmail.com>
7277 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7279 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7281 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7283 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7285 * i386obsd-nat.c: Include "obsd-nat.h".
7286 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7288 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7290 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7292 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7294 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7296 * mips64obsd-nat.c: Include "obsd-nath".
7297 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7299 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7301 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7303 * amd64obsd-nat.c: Include "obsd-nat,h.
7304 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7306 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7308 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7310 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7311 (find_overload_match): Update call to find_oload_champ.
7312 (find_oload_champ_namespace_loop): Likewise
7314 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7316 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7318 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7319 * config/sparc/obsd64.mh: New file.
7320 * sparc64obsd-nat.c: New file.
7322 * obsd-nat.h: New file.
7323 * obsd-nat.c: New file.
7324 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7325 (ALLDEPFILES): Add obsd-nat.c.
7327 2014-02-28 Tom Tromey <tromey@redhat.com>
7329 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7330 * cli-out.h (cli_ui_out_impl): Now const.
7331 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7332 * ui-out.c (struct ui_out) <impl>: Now const.
7333 (default_ui_out_impl): Now const.
7334 (ui_out_new): Make 'impl' parameter const.
7335 * ui-out.h (ui_out_new): Update.
7337 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7339 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7341 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7343 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7345 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7347 Additional PR 8882 fix.
7348 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7350 2014-02-27 Pedro Alves <palves@redhat.com>
7352 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7355 2014-02-27 Pedro Alves <palves@redhat.com>
7358 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7359 * nat/linux-waitpid.c: Include string.h.
7360 (status_to_str): Moved here and made extern.
7361 * nat/linux-waitpid.h (status_to_str): New declaration.
7363 2014-02-27 Hui Zhu <hui@codesourcery.com>
7366 * infrun.c (ptid_match): Move ...
7367 * common/ptid.c (ptid_match): ... here.
7368 * inferior.h (ptid_match): Move ...
7369 * common/ptid.h (ptid_match): ... here.
7371 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7373 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7374 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7377 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7379 * obsd-tdep.c (obsd_auxv_parse): New function.
7380 (obsd_init_abi): Set auxv_parse.
7382 * gdbarch.sh (auxv_parse): New.
7383 * gdbarch.h: Regenerated.
7384 * gdbarch.c: Regenerated.
7385 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7387 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7389 * guile/scm-value.c (gdbscm_history_append_x): New function.
7390 (value_functions): Add it.
7392 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7394 * dwarf2read.c (attr_value_as_address): New function.
7395 (dwarf2_find_base_address, read_call_site_scope): Use
7396 attr_value_as_address in place of DW_ADDR.
7397 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7398 the low and high addresses. Slight rework of the handling
7399 of the high pc being a constant form, and limit it to
7400 DWARF verson 4 or higher.
7401 (dwarf2_record_block_ranges): Likewise.
7402 (read_partial_die): Likewise.
7403 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7405 2014-02-26 Tom Tromey <tromey@redhat.com>
7407 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7409 2014-02-26 Tom Tromey <tromey@redhat.com>
7411 * elfread.c (elf_read_minimal_symbols): Return early if
7412 minimal symbols have already been read. Add "ei" parameter.
7413 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7414 * minsyms.c (prim_record_minimal_symbol_full): Update.
7415 * objfiles.h (struct objstats) <n_minsyms>: Move...
7416 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7417 * symmisc.c (print_objfile_statistics): Update.
7419 2014-02-26 Tom Tromey <tromey@redhat.com>
7421 * elfread.c (elf_read_minimal_symbols): New function, from
7423 (elf_symfile_read): Call it.
7425 2014-02-26 Tom Tromey <tromey@redhat.com>
7427 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7428 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7429 (lookup_minimal_symbol_solib_trampoline)
7430 (lookup_minimal_symbol_by_pc_section_1)
7431 (lookup_minimal_symbol_and_objfile): Update.
7432 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7433 Don't allocate a minimal symbol if minsyms have already been read.
7434 (build_minimal_symbol_hash_tables): Update.
7435 (install_minimal_symbols): Do nothing if minsyms already read.
7436 Use the per-BFD obstack.
7437 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7438 * objfiles.c (allocate_objfile): Call
7439 terminate_minimal_symbol_table later.
7440 (have_minimal_symbols): Update.
7441 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7442 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7443 Move from struct objfile.
7444 <minsyms_read>: New field.
7445 (struct objfile) <msymbols, minimal_symbol_count,
7446 msymbol_hash, msymbol_demangled_hash>: Move.
7447 (ALL_OBJFILE_MSYMBOLS): Update.
7448 * symfile.c (read_symbols): Set minsyms_read.
7449 (reread_symbols): Update.
7450 * symmisc.c (dump_objfile, dump_msymbols): Update.
7452 2014-02-26 Tom Tromey <tromey@redhat.com>
7454 * minsyms.c (msymbols_sort): Remove.
7455 * minsyms.h (msymbols_sort): Remove.
7456 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7457 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7458 * elfread.c (elf_symtab_read): Don't add section offsets.
7459 * xcoffread.c (record_minimal_symbol): Don't add section offset
7460 to minimal symbol address.
7461 * somread.c (text_offset, data_offset): Remove.
7462 (som_symtab_read): Don't add section offsets to minimal symbol
7464 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7465 Don't add section offsets to minimal symbols.
7466 * coffread.c (coff_symtab_read): Don't add section offsets
7467 to minimal symbol addresses.
7468 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7469 to minimal symbol addresses.
7470 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7471 section offset to minimal symbol addresses.
7472 * mdebugread.c (parse_partial_symbols): Don't add section
7473 offset to minimal symbol addresses.
7474 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7475 offset to minimal symbol addresses.
7477 2014-02-26 Tom Tromey <tromey@redhat.com>
7479 * ada-lang.c (ada_main_name): Update.
7480 (ada_add_standard_exceptions): Update.
7481 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7482 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7483 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7484 * auxv.c (ld_so_xfer_auxv): Update.
7485 * avr-tdep.c (avr_scan_prologue): Update.
7486 * ax-gdb.c (gen_var_ref): Update.
7487 * blockframe.c (get_pc_function_start)
7488 (find_pc_partial_function_gnu_ifunc): Update.
7489 * breakpoint.c (create_overlay_event_breakpoint)
7490 (create_longjmp_master_breakpoint)
7491 (create_std_terminate_master_breakpoint)
7492 (create_exception_master_breakpoint): Update.
7493 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7494 * c-valprint.c (c_val_print): Update.
7495 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7496 * common/agent.c (agent_look_up_symbols): Update.
7497 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7498 * dwarf2loc.c (call_site_to_target_addr): Update.
7499 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7500 * elfread.c (elf_gnu_ifunc_record_cache)
7501 (elf_gnu_ifunc_resolve_by_got): Update.
7502 * findvar.c (default_read_var_value): Update.
7503 * frame.c (inside_main_func): Update.
7504 * frv-tdep.c (frv_frame_this_id): Update.
7505 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7506 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7508 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7509 (hppa_hpux_find_dummy_bpaddr): Update.
7510 * hppa-tdep.c (hppa_symbol_address): Update.
7511 * infcmd.c (until_next_command): Update.
7512 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7514 * linespec.c (minsym_found, add_minsym): Update.
7515 * linux-nat.c (get_signo): Update.
7516 * linux-thread-db.c (inferior_has_bug): Update.
7517 * m32c-tdep.c (m32c_return_value)
7518 (m32c_m16c_address_to_pointer): Update.
7519 * m32r-tdep.c (m32r_frame_this_id): Update.
7520 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7521 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7522 * maint.c (maintenance_translate_address): Update.
7523 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7524 (frob_address): New function.
7525 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7526 frob_address. Rename parameter to "pc_in".
7527 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7529 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7531 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7532 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7533 * objc-lang.c (find_objc_msgsend): Update.
7534 * objfiles.c (objfile_relocate1): Update.
7535 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7536 * p-valprint.c (pascal_val_print): Update.
7537 * parse.c (write_exp_msymbol): Update.
7538 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7539 (ppc_elfv2_skip_entrypoint): Update.
7540 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7541 * printcmd.c (build_address_symbolic, msym_info)
7542 (address_info): Update.
7543 * proc-service.c (ps_pglobal_lookup): Update.
7544 * psymtab.c (find_pc_sect_psymtab_closer)
7545 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7546 Change msymbol parameter to bound_minimal_symbol.
7547 * ravenscar-thread.c (get_running_thread_id): Update.
7548 * remote.c (remote_check_symbols): Update.
7549 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7551 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7552 * solib-dsbt.c (lm_base): Update.
7553 * solib-frv.c (lm_base, main_got): Update.
7554 * solib-irix.c (locate_base): Update.
7555 * solib-som.c (som_solib_create_inferior_hook)
7556 (link_map_start): Update.
7557 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7558 * solib-svr4.c (elf_locate_base, enable_break): Update.
7559 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7560 (flush_ea_cache): Update.
7561 * stabsread.c (define_symbol, scan_file_globals): Update.
7562 * stack.c (find_frame_funname): Update.
7563 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7564 (debug_qf_find_pc_sect_symtab): Update.
7565 * symfile.c (simple_read_overlay_table)
7566 (simple_overlay_update): Update.
7567 * symfile.h (struct quick_symbol_functions)
7568 <find_pc_sect_symtab>: Change type of msymbol to
7569 bound_minimal_symbol.
7570 * symmisc.c (dump_msymbols): Update.
7571 * symtab.c (find_pc_sect_symtab_via_partial)
7572 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7573 (search_symbols, print_msymbol_info): Update.
7574 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7575 (MSYMBOL_VALUE_ADDRESS): Redefine.
7576 (BMSYMBOL_VALUE_ADDRESS): New macro.
7577 * tracepoint.c (scope_info): Update.
7578 * tui/tui-disasm.c (tui_find_disassembly_address)
7579 (tui_get_begin_asm_address): Update.
7580 * valops.c (find_function_in_inferior): Update.
7581 * value.c (value_static_field, value_fn_field): Update.
7583 2014-02-26 Tom Tromey <tromey@redhat.com>
7585 * ada-lang.c (ada_update_initial_language): Update.
7586 (ada_main_name, ada_has_this_exception_support): Update.
7587 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7588 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7589 * arm-tdep.c (arm_skip_stub): Update.
7590 * auxv.c (ld_so_xfer_auxv): Update.
7591 * avr-tdep.c (avr_scan_prologue): Update.
7592 * ax-gdb.c (gen_var_ref): Update.
7593 * breakpoint.c (struct breakpoint_objfile_data)
7594 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7595 type to bound_minimal_symbol.
7596 (create_overlay_event_breakpoint)
7597 (create_longjmp_master_breakpoint)
7598 (create_std_terminate_master_breakpoint)
7599 (create_exception_master_breakpoint): Update.
7600 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7601 * c-exp.y (classify_name): Update.
7602 * coffread.c (coff_symfile_read): Update.
7603 * common/agent.c (agent_look_up_symbols): Update.
7604 * d-lang.c (d_main_name): Update.
7605 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7606 * dec-thread.c (enable_dec_thread): Update.
7607 * dwarf2loc.c (call_site_to_target_addr): Update.
7608 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7609 * eval.c (evaluate_subexp_standard): Update.
7610 * findvar.c (struct minsym_lookup_data) <result>: Change type
7611 to bound_minimal_symbol.
7613 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7614 * frame.c (inside_main_func): Update.
7615 * frv-tdep.c (frv_frame_this_id): Update.
7616 * gcore.c (call_target_sbrk): Update.
7617 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7618 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7620 * go-lang.c (go_main_name): Update.
7621 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7622 (hppa_hpux_find_import_stub_for_addr): Update.
7623 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7624 Update. Change return type.
7625 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7627 * jit.c (jit_breakpoint_re_set_internal): Update.
7628 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7630 * linux-nat.c (get_signo): Update.
7631 * linux-thread-db.c (inferior_has_bug): Update
7632 * m32c-tdep.c (m32c_return_value)
7633 (m32c_m16c_address_to_pointer): Update.
7634 * m32r-tdep.c (m32r_frame_this_id): Update.
7635 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7636 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7637 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7638 lookup_minimal_symbol. Change return type.
7639 (lookup_minimal_symbol): Remove.
7640 (lookup_bound_minimal_symbol): Update.
7641 (lookup_minimal_symbol_text): Change return type.
7642 (lookup_minimal_symbol_solib_trampoline): Change return type.
7643 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7644 (lookup_minimal_symbol_solib_trampoline): Change return type.
7645 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7646 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7647 (value_nsstring, find_imps): Update.
7648 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7649 * p-lang.c (pascal_main_name): Update.
7650 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7651 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7652 * proc-service.c (ps_pglobal_lookup): Update.
7653 * ravenscar-thread.c (get_running_thread_msymbol): Change
7655 (has_ravenscar_runtime, get_running_thread_id): Update.
7656 * remote.c (remote_check_symbols): Update.
7657 * sol-thread.c (ps_pglobal_lookup): Update.
7658 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7659 * solib-dsbt.c (lm_base): Update.
7660 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7662 * solib-irix.c (locate_base): Update.
7663 * solib-som.c (som_solib_create_inferior_hook)
7664 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7666 * solib-spu.c (spu_enable_break): Update.
7667 * solib-svr4.c (elf_locate_base, enable_break): Update.
7668 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7669 (flush_ea_cache): Update.
7670 * stabsread.c (define_symbol): Update.
7671 * symfile.c (simple_read_overlay_table): Update.
7672 * symtab.c (find_pc_sect_line): Update.
7673 * tracepoint.c (scope_info): Update.
7674 * tui-disasm.c (tui_get_begin_asm_address): Update.
7675 * value.c (value_static_field): Update.
7677 2014-02-26 Tom Tromey <tromey@redhat.com>
7679 * minsyms.c (prim_record_minimal_symbol_full): Use
7680 SET_MSYMBOL_VALUE_ADDRESS.
7681 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7682 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7683 SET_MSYMBOL_VALUE_ADDRESS.
7684 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7685 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7687 2014-02-26 Tom Tromey <tromey@redhat.com>
7689 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7690 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7691 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7692 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7693 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7694 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7695 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7696 * ada-lang.c (ada_main_name): Update.
7697 (ada_lookup_simple_minsym): Update.
7698 (ada_make_symbol_completion_list): Update.
7699 (ada_add_standard_exceptions): Update.
7700 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7701 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7702 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7703 * arm-tdep.c (skip_prologue_function): Update.
7704 (arm_skip_stack_protector, arm_skip_stub): Update.
7705 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7706 (arm_wince_skip_main_prologue): Update.
7707 * auxv.c (ld_so_xfer_auxv): Update.
7708 * avr-tdep.c (avr_scan_prologue): Update.
7709 * ax-gdb.c (gen_var_ref): Update.
7710 * block.c (call_site_for_pc): Update.
7711 * blockframe.c (get_pc_function_start): Update.
7712 (find_pc_partial_function_gnu_ifunc): Update.
7713 * breakpoint.c (create_overlay_event_breakpoint): Update.
7714 (create_longjmp_master_breakpoint): Update.
7715 (create_std_terminate_master_breakpoint): Update.
7716 (create_exception_master_breakpoint): Update.
7717 (resolve_sal_pc): Update.
7718 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7719 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7721 * c-valprint.c (c_val_print): Update.
7722 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7723 * coffread.c (coff_symfile_read): Update.
7724 * common/agent.c (agent_look_up_symbols): Update.
7725 * dbxread.c (find_stab_function_addr): Update.
7726 (end_psymtab): Update.
7727 * dwarf2loc.c (call_site_to_target_addr): Update.
7728 (func_verify_no_selftailcall): Update.
7729 (tailcall_dump): Update.
7730 (call_site_find_chain_1): Update.
7731 (dwarf_expr_reg_to_entry_parameter): Update.
7732 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7733 (elf_gnu_ifunc_resolve_by_got): Update.
7734 * f-valprint.c (info_common_command): Update.
7735 * findvar.c (read_var_value): Update.
7736 * frame.c (get_prev_frame_1): Update.
7737 (inside_main_func): Update.
7738 * frv-tdep.c (frv_skip_main_prologue): Update.
7739 (frv_frame_this_id): Update.
7740 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7741 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7742 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7743 (gnuv3_skip_trampoline): Update.
7744 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7745 (hppa64_hpux_in_solib_call_trampoline): Update.
7746 (hppa_hpux_skip_trampoline_code): Update.
7747 (hppa64_hpux_search_dummy_call_sequence): Update.
7748 (hppa_hpux_find_import_stub_for_addr): Update.
7749 (hppa_hpux_find_dummy_bpaddr): Update.
7750 * hppa-tdep.c (hppa_symbol_address)
7751 (hppa_lookup_stub_minimal_symbol): Update.
7752 * i386-tdep.c (i386_skip_main_prologue): Update.
7753 (i386_pe_skip_trampoline_code): Update.
7754 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7755 * infcall.c (get_function_name): Update.
7756 * infcmd.c (until_next_command): Update.
7757 * jit.c (jit_breakpoint_re_set_internal): Update.
7758 (jit_inferior_init): Update.
7759 * linespec.c (minsym_found): Update.
7760 (add_minsym): Update.
7761 * linux-fork.c (info_checkpoints_command): Update.
7762 * linux-nat.c (get_signo): Update.
7763 * linux-thread-db.c (inferior_has_bug): Update.
7764 * m32c-tdep.c (m32c_return_value): Update.
7765 (m32c_m16c_address_to_pointer): Update.
7766 (m32c_m16c_pointer_to_address): Update.
7767 * m32r-tdep.c (m32r_frame_this_id): Update.
7768 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7769 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7770 * maint.c (maintenance_translate_address): Update.
7771 * minsyms.c (add_minsym_to_hash_table): Update.
7772 (add_minsym_to_demangled_hash_table): Update.
7773 (msymbol_objfile): Update.
7774 (lookup_minimal_symbol): Update.
7775 (iterate_over_minimal_symbols): Update.
7776 (lookup_minimal_symbol_text): Update.
7777 (lookup_minimal_symbol_by_pc_name): Update.
7778 (lookup_minimal_symbol_solib_trampoline): Update.
7779 (lookup_minimal_symbol_by_pc_section_1): Update.
7780 (lookup_minimal_symbol_and_objfile): Update.
7781 (prim_record_minimal_symbol_full): Update.
7782 (compare_minimal_symbols): Update.
7783 (compact_minimal_symbols): Update.
7784 (build_minimal_symbol_hash_tables): Update.
7785 (install_minimal_symbols): Update.
7786 (terminate_minimal_symbol_table): Update.
7787 (find_solib_trampoline_target): Update.
7788 (minimal_symbol_upper_bound): Update.
7789 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7790 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7791 (mips_skip_pic_trampoline_code): Update.
7792 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7793 * objc-lang.c (selectors_info): Update.
7794 (classes_info): Update.
7795 (find_methods): Update.
7796 (find_imps): Update.
7797 (find_objc_msgsend): Update.
7798 * objfiles.c (objfile_relocate1): Update.
7799 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7800 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7801 * p-valprint.c (pascal_val_print): Update.
7802 * parse.c (write_exp_msymbol): Update.
7803 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7804 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7805 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7806 * printcmd.c (build_address_symbolic): Update.
7808 (address_info): Update.
7809 * proc-service.c (ps_pglobal_lookup): Update.
7810 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7811 (find_pc_sect_psymtab): Update.
7812 * python/py-framefilter.c (py_print_frame): Update.
7813 * ravenscar-thread.c (get_running_thread_id): Update.
7814 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7816 * remote.c (remote_check_symbols): Update.
7817 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7818 (rs6000_skip_trampoline_code): Update.
7819 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7820 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7821 * solib-dsbt.c (lm_base): Update.
7822 * solib-frv.c (lm_base): Update.
7824 * solib-irix.c (locate_base): Update.
7825 * solib-som.c (som_solib_create_inferior_hook): Update.
7826 (som_solib_desire_dynamic_linker_symbols): Update.
7827 (link_map_start): Update.
7828 * solib-spu.c (spu_enable_break): Update.
7829 (ocl_enable_break): Update.
7830 * solib-svr4.c (elf_locate_base): Update.
7831 (enable_break): Update.
7832 * spu-tdep.c (spu_get_overlay_table): Update.
7833 (spu_catch_start): Update.
7834 (flush_ea_cache): Update.
7835 * stabsread.c (define_symbol): Update.
7836 (scan_file_globals): Update.
7837 * stack.c (find_frame_funname): Update.
7838 (frame_info): Update.
7839 * symfile.c (simple_read_overlay_table): Update.
7840 (simple_overlay_update): Update.
7841 * symmisc.c (dump_msymbols): Update.
7842 * symtab.c (fixup_section): Update.
7843 (find_pc_sect_line): Update.
7844 (skip_prologue_sal): Update.
7845 (search_symbols): Update.
7846 (print_msymbol_info): Update.
7847 (rbreak_command): Update.
7848 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7849 (completion_list_objc_symbol): Update.
7850 (default_make_symbol_completion_list_break_on): Update.
7851 * tracepoint.c (scope_info): Update.
7852 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7853 (tui_get_begin_asm_address): Update.
7854 * valops.c (find_function_in_inferior): Update.
7855 * value.c (value_static_field): Update.
7856 (value_fn_field): Update.
7858 2014-02-26 Tom Tromey <tromey@redhat.com>
7860 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7861 bound minimal symbols. Move code that knows about minsym
7863 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7865 * minsyms.h (minimal_symbol_upper_bound): Declare.
7866 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7867 minimal_symbol_upper_bound.
7869 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7871 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7872 Use the type's name if its basic type does not have a tag.
7874 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7876 * dwarf2read.c (read_subrange_type): Add comment.
7878 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7880 * dwarf2read.c (update_enumeration_type_from_children): New
7881 function, mostly extracted from process_structure_scope.
7882 (read_enumeration_type): Call update_enumeration_type_from_children.
7883 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7884 and flag_flag_enum fields.
7886 2014-02-26 Pedro Alves <palves@redhat.com>
7888 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7889 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7890 to_xfer_partial method.
7892 2014-02-26 Pedro Alves <palves@redhat.com>
7894 * target.c (complete_target_initialization): Don't install
7895 default_xfer_partial as to_xfer_partial hook.
7897 (update_current_target): Don't INHERIT nor de_fault
7898 deprecated_xfer_memory. Delete de_fault macro.
7899 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7900 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7901 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7904 2014-02-26 Pedro Alves <palves@redhat.com>
7906 * go32-nat.c (my_write_child): New function.
7907 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7908 (go32_xfer_partial): New function.
7909 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7910 Instead install a to_xfer_partial hook.
7912 2014-02-26 Pedro Alves <palves@redhat.com>
7914 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7915 to_xfer_partial helper. Rewrite.
7916 (procfs_xfer_partial): New function.
7917 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7918 Install a to_xfer_partial hook.
7920 2014-02-26 Pedro Alves <palves@redhat.com>
7922 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7923 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7924 (m32r_xfer_partial): New function.
7925 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7926 Install a to_xfer_partial hook.
7928 2014-02-26 Pedro Alves <palves@redhat.com>
7930 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7932 (mips_xfer_partial): New function.
7933 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7934 hook. Install a to_xfer_partial hook.
7936 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7938 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7939 * gdbtypes.c (create_array_type_with_stride): New function,
7940 renaming create_array_type, but with an added parameter
7941 called "bit_stride".
7942 (create_array_type): Re-implement using
7943 create_array_type_with_stride.
7944 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7945 and DW_AT_bit_stride attributes.
7947 2014-02-26 Pedro Alves <palves@redhat.com>
7949 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7950 task-specific breakpoints.
7952 2014-02-25 Pedro Alves <palves@redhat.com>
7954 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7955 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7957 2014-02-25 Stan Shebs <stan@codesourcery.com>
7959 * defs.h: Annotate comments for Doxygen.
7961 2014-02-25 Tom Tromey <tromey@redhat.com>
7963 * target.h (target_ignore): Don't declare.
7964 * target.c (target_ignore): Remove.
7966 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7969 * auto-load.c (auto_load_objfile_script_1): Change filename to
7972 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7974 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7975 documentation. Adjust prototype to match the target_ops
7976 to_xfer_partial method. Adjust implementation accordingly.
7978 2014-02-25 Hui Zhu <hui@codesourcery.com>
7980 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7983 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7985 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7986 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7987 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7988 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7989 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7990 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7991 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7992 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7994 (rl78_register_type): Use a data pointer type for SP and
7995 new pseudo registers mentioned above. Use a 16 bit integer
7996 type for all other register pairs.
7997 (rl78_register_name, rl78_g10_register_name): Update for
7998 new pseudo registers.
7999 (rl78_pseudo_register_read): Likewise.
8000 (rl78_pseudo_register_write): Likewise.
8001 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8002 to the newly added pseudo registers.
8004 2014-02-24 Doug Evans <dje@google.com>
8006 * value.c (record_latest_value): Fix comment.
8007 * printcmd.c (print_command_1): Remove code to handle -1 return from
8008 record_latest_value.
8010 2014-02-24 Pedro Alves <palves@redhat.com>
8012 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8013 deprecated_xfer_memory hook.
8014 (procfs_xfer_partial): Call procfs_xfer_memory instead
8015 of the deprecated_xfer_memory target hook.
8016 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8019 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8021 * windows-nat.c (windows_xfer_shared_libraries): Return
8022 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8023 requested object is TARGET_OBJECT_LIBRARIES.
8025 2014-02-24 Yao Qi <yao@codesourcery.com>
8027 * target.h (enum target_xfer_status)
8028 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8029 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8031 * corefile.c (memory_error_message): User updated.
8032 * exec.c (section_table_read_available_memory): Likewise.
8033 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8034 * target.c (target_xfer_status_to_string): Likewise.
8035 (raw_memory_xfer_partial): Likewise.
8036 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8037 * valops.c (read_value_memory): Likewise.
8038 * exec.h: Update comments.
8040 2014-02-24 Yao Qi <yao@codesourcery.com>
8042 * target.c (target_xfer_status_to_string): Rename argument err
8044 * target.h (target_xfer_status_to_string): Update declaration.
8045 Replace target_xfer_error_to_string with
8046 target_xfer_status_to_string in comment.
8048 2014-02-24 Yao Qi <yao@codesourcery.com>
8050 * mips-linux-nat.c (super_close): Update its type.
8051 (mips_linux_close): Pass 'self' to super_close.
8053 2014-02-24 Yao Qi <yao@codesourcery.com>
8055 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8056 * corefile.c (read_memory): Adjusted.
8057 * target.c (target_write_with_progress): Adjusted.
8059 2014-02-23 Yao Qi <yao@codesourcery.com>
8063 2013-10-25 Yao Qi <yao@codesourcery.com>
8065 * remote.c (remote_traceframe_info): Return early if
8066 traceframe is not selected.
8068 2013-07-19 Yao Qi <yao@codesourcery.com>
8070 * target.c (update_current_target): Change the default action
8071 of 'to_traceframe_info' from tcomplain to return_zero.
8072 * target.h (struct target_ops) <to_traceframe_info>: Add more
8075 2014-02-23 Yao Qi <yao@codesourcery.com>
8077 * valops.c (read_value_memory): Rewrite it. Call
8078 target_xfer_partial in a loop.
8079 * exec.h (section_table_available_memory): Remove declaration.
8080 Move comments to ...
8081 * exec.c (section_table_available_memory): ... here. Make it
8084 2014-02-23 Yao Qi <yao@codesourcery.com>
8086 * exec.c (section_table_read_available_memory): New function.
8087 * exec.h (section_table_read_available_memory): Declare.
8088 * ctf.c (ctf_xfer_partial): Call
8089 section_table_read_available_memory.
8090 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8092 2014-02-23 Yao Qi <yao@codesourcery.com>
8094 * ctf.c (ctf_xfer_partial): Move code to ...
8095 * exec.c (exec_read_partial_read_only): ... it. New function.
8096 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8097 * tracefile.c: Include "exec.h".
8098 * exec.h (exec_read_partial_read_only): Declare.
8100 2014-02-23 Yao Qi <yao@codesourcery.com>
8102 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8103 (tfile_has_memory): Remove.
8104 (init_tfile_ops): Don't set fields to_has_all_memory and
8105 to_has_memory of tfile_ops.
8106 * tracefile.c (tracefile_has_all_memory): New function.
8107 (tracefile_has_memory): New function.
8108 (init_tracefile_ops): Initialize fields to_has_all_memory and
8109 to_has_memory of 'ops'.
8111 2014-02-23 Yao Qi <yao@codesourcery.com>
8113 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8114 (ctf_thread_alive, ctf_get_trace_status): Remove.
8115 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8117 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8118 (tfile_has_stack, tfile_has_registers): Remove.
8119 (tfile_thread_alive): Remove.
8120 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8122 * tracefile.c (tracefile_has_stack): New function.
8123 (tracefile_has_registers): New function.
8124 (tracefile_thread_alive): New function.
8125 (tracefile_get_trace_status): New function.
8126 (init_tracefile_ops): New function.
8127 * tracefile.h (init_tracefile_ops): Declare.
8129 2014-02-23 Yao Qi <yao@codesourcery.com>
8131 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8132 (O_LARGEFILE): Likewise.
8133 (tfile_ops): Likewise.
8134 (TRACE_HEADER_SIZE): Likewise.
8135 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8136 (cur_data_size): Likewise.
8137 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8138 (tfile_close, tfile_files_info): Likewise.
8139 (tfile_get_trace_status): Likewise.
8140 (tfile_get_tracepoint_status): Likewise.
8141 (tfile_get_traceframe_address): Likewise.
8142 (tfile_trace_find, match_blocktype): Likewise.
8143 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8144 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8145 (tfile_get_trace_state_variable_value): Likewise.
8146 (tfile_has_all_memory, tfile_has_memory): Likewise.
8147 (tfile_has_stack, tfile_has_registers): Likewise.
8148 (tfile_thread_alive, build_traceframe_info): Likewise.
8149 (tfile_traceframe_info, init_tfile_ops): Likewise.
8150 (_initialize_tracepoint): Don't call init_tfile_ops
8151 and add_target_with_completer.
8152 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8153 exec.h, completer.h and filenames.h.
8154 (_initialize_tracefile_tfile): New function.
8156 2014-02-23 Yao Qi <yao@codesourcery.com>
8158 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8160 (HFILES_NO_SRCDIR): Add tracefile.h.
8161 * ctf.c: Include "tracefile.h".
8162 * tracefile.h: New file.
8163 * tracefile.c: New file
8164 * tracefile-tfile.c: New file.
8165 * tracepoint.c: Include "tracefile.h".
8166 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8167 (stop_reason_names): Add const.
8168 (trace_file_writer_xfree): Move it to tracefile.c.
8169 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8170 (trace_save_ctf): Likewise.
8171 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8172 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8173 (tfile_write_header, tfile_write_regblock_type): Likewise.
8174 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8175 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8176 (tfile_write_raw_data, tfile_end): Likewise.
8177 (tfile_trace_file_writer_new): Likewise.
8178 (free_uploaded_tp): Make it extern.
8179 (free_uploaded_tsv): Make it extern.
8180 (_initialize_tracepoint): Move code to register command 'tsave'
8182 * tracepoint.h (stop_reason_names): Declare.
8183 (struct trace_frame_write_ops): Move it to tracefile.h.
8184 (struct trace_file_write_ops): Likewise.
8185 (struct trace_file_writer): Likewise.
8186 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8188 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8191 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8193 (get_cores_used_by_process): New parameter num_cores, use it.
8194 (linux_xfer_osdata_processes): Pass num_cores to it.
8195 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8198 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8200 * target.c (memory_xfer_partial): Fix length arg in call to
8201 breakpoint_xfer_memory.
8203 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8206 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8207 number comes after the + or - signs. Adjust length of register
8208 name to be extracted.
8210 2014-02-20 Tom Tromey <tromey@redhat.com>
8212 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8213 (ada_varobj_ops): Mark "extern".
8215 2014-02-20 Tom Tromey <tromey@redhat.com>
8217 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8219 2014-02-20 Doug Evans <xdje42@gmail.com>
8221 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8222 All callers updated.
8223 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8224 All callers updated.
8225 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8226 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8228 2014-02-20 lin zuojian <manjian2006@gmail.com>
8229 Joel Brobecker <brobecker@adacore.com>
8230 Doug Evans <xdje42@gmail.com>
8233 * dwarf2read.c (struct die_info): New member in_process.
8234 (reset_die_in_process): New function.
8235 (process_die): Set it at the start, reset when returning.
8236 (inherit_abstract_dies): Only call process_die if origin_child_die
8237 not already being processed.
8239 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8241 * windows-nat.c (handle_unload_dll): Add function documentation.
8242 (do_initial_windows_stuff): Add comment explaining why we wait
8243 until after inferior initialization has finished before
8244 processing all DLLs.
8246 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8248 * windows-nat.c (get_module_name): Delete.
8249 (windows_get_exec_module_filename): New function, mostly
8250 inspired from get_module_name.
8251 (windows_pid_to_exec_file): Replace call to get_module_name
8252 by call to windows_get_exec_module_filename.
8254 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8256 * windows-nat.c (handle_load_dll): Rewrite this function's
8257 introductory comment. Remove code using get_module_name
8258 to get the DLL's name.
8260 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8262 * windows-nat.c (get_windows_debug_event): Ignore
8263 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8264 if windows_initialization_done == 0.
8265 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8266 Adjust implementation to always load all DLLs.
8267 (do_initial_windows_stuff): Replace call to
8268 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8270 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8272 * windows-nat.c (_initialize_windows_nat): Deprecate the
8273 "dll-symbols" command. Turn the "add-shared-symbol-files"
8274 and "assf" aliases into commands, and deprecate them as well.
8275 * NEWS: Add entry explaining that "dll-symbols" and its two
8276 aliases are now deprecated.
8278 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8280 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8281 new-line in debug string. Remove trailing spaces.
8283 2014-02-19 Stan Shebs <stan@codesourcery.com>
8285 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8287 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8289 * NEWS: Add entry for the new feature
8290 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8293 2014-02-19 Stan Shebs <stan@codesourcery.com>
8295 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8297 2014-02-19 Pedro Alves <palves@redhat.com>
8299 * common/ptid.h (struct ptid): Mention that process_stratum
8300 targets should prefer ptid.lwp.
8302 2014-02-19 Pedro Alves <palves@redhat.com>
8304 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8305 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8306 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8307 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8308 store remote thread ids rather than ptid.tid.
8309 (_initialize_remote): Adjust.
8311 2014-02-19 Tom Tromey <tromey@redhat.com>
8313 * target.c (target_get_unwinder): Rewrite.
8314 (target_get_tailcall_unwinder): Rewrite.
8315 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8316 (record_btrace_to_get_tailcall_unwinder): New function.
8317 (init_record_btrace_ops): Update.
8318 * target.h (struct target_ops) <to_get_unwinder,
8319 to_get_tailcall_unwinder>: Now function pointers. Use
8320 TARGET_DEFAULT_RETURN.
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8326 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8328 2014-02-19 Tom Tromey <tromey@redhat.com>
8330 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8332 * target-delegates.c: Rebuild.
8333 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8334 TARGET_DEFAULT_FUNC.
8335 * target.c (default_target_decr_pc_after_break): Rename from
8336 forward_target_decr_pc_after_break. Simplify.
8337 (target_decr_pc_after_break): Rely on delegation.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target.c (update_current_target): Do not INHERIT to_doc or
8342 to_magic. Do not de_fault to_open or to_close.
8344 2014-02-19 Tom Tromey <tromey@redhat.com>
8346 * gcore.h (objfile_find_memory_regions): Declare.
8347 * gcore.c (objfile_find_memory_regions): No longer static. Add
8349 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8350 * exec.c: Include gcore.h.
8351 (exec_set_find_memory_regions): Remove.
8352 (exec_find_memory_regions): Remove.
8353 (exec_do_find_memory_regions): Remove.
8354 (init_exec_ops): Update.
8355 * defs.h (exec_set_find_memory_regions): Remove.
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * target-delegates.c: Rebuild.
8360 * target.h (struct target_ops) <to_extra_thread_info,
8361 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8362 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8363 not 0, in TARGET_DEFAULT_RETURN.
8365 2014-02-19 Tom Tromey <tromey@redhat.com>
8367 * target.c (complete_target_initialization): Remove casts. Use
8368 return_zero_has_execution.
8369 (return_zero): Add "ignore" argument.
8370 (return_zero_has_execution): New function.
8371 (init_dummy_target): Remove casts. Use
8372 return_zero_has_execution.
8374 2014-02-19 Tom Tromey <tromey@redhat.com>
8376 * target.c (update_current_target): Update comments. Do not
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8383 * corelow.c (core_read_description): Delegate when needed.
8384 * remote.c (remote_read_description): Delegate when needed.
8385 * target-delegates.c: Rebuild.
8386 * target.c (target_read_description): Rewrite.
8387 * target.h (struct target_ops) <to_read_description>: Update
8388 comment. Use TARGET_DEFAULT_RETURN.
8390 2014-02-19 Tom Tromey <tromey@redhat.com>
8392 * target-delegates.c: Rebuild.
8393 * target.c (update_current_target): Don't inherit or default
8395 (find_default_run_target): Check against delegate_can_run.
8396 * target.h (struct target_ops) <to_can_run>: Use
8397 TARGET_DEFAULT_RETURN.
8399 2014-02-19 Tom Tromey <tromey@redhat.com>
8401 * target-delegates.c: Rebuild.
8402 * target.c (target_disconnect): Unconditionally delegate.
8403 * target.h (struct target_ops) <to_disconnect>: Use
8404 TARGET_DEFAULT_NORETURN.
8406 2014-02-19 Tom Tromey <tromey@redhat.com>
8408 * record.c (record_stop): Unconditionally delegate.
8409 * target-delegates.c: Rebuild.
8410 * target.c (target_stop_recording): Unconditionally delegate.
8411 * target.h (struct target_ops) <to_stop_recording>: Use
8412 TARGET_DEFAULT_IGNORE.
8414 2014-02-19 Tom Tromey <tromey@redhat.com>
8416 * target-delegates.c: Rebuild.
8417 * target.c (target_enable_btrace): Unconditionally delegate.
8418 * target.h (struct target_ops) <to_enable_btrace>: Use
8419 TARGET_DEFAULT_NORETURN.
8421 2014-02-19 Tom Tromey <tromey@redhat.com>
8423 * target-delegates.c: Rebuild.
8424 * target.c (target_read_btrace): Unconditionally delegate.
8425 * target.h (struct target_ops) <to_read_btrace>: Use
8426 TARGET_DEFAULT_NORETURN.
8428 2014-02-19 Tom Tromey <tromey@redhat.com>
8430 * target-delegates.c: Rebuild.
8431 * target.c (target_teardown_btrace): Unconditionally delegate.
8432 * target.h (struct target_ops) <to_teardown_btrace>: Use
8433 TARGET_DEFAULT_NORETURN.
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8437 * target-delegates.c: Rebuild.
8438 * target.c (target_disable_btrace): Unconditionally delegate.
8439 * target.h (struct target_ops) <to_disable_btrace>: Use
8440 TARGET_DEFAULT_NORETURN.
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8444 * target-delegates.c: Rebuild.
8445 * target.c (default_search_memory): New function.
8446 (simple_search_memory): Update comment.
8447 (target_search_memory): Unconditionally delegate.
8448 * target.h (struct target_ops) <to_search_memory>: Use
8449 TARGET_DEFAULT_FUNC.
8451 2014-02-19 Tom Tromey <tromey@redhat.com>
8453 * auxv.c (default_auxv_parse): No longer static.
8454 (target_auxv_parse): Unconditionally delegate.
8455 * auxv.h (default_auxv_parse): Declare.
8456 * target-delegates.c: Rebuild.
8457 * target.c: Include auxv.h.
8458 * target.h (struct target_ops) <to_auxv_parse>: Use
8459 TARGET_DEFAULT_FUNC.
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8463 * target-delegates.c: Rebuild.
8464 * target.c (target_memory_map): Unconditionally delegate.
8465 * target.h (struct target_ops) <to_memory_map>: Use
8466 TARGET_DEFAULT_RETURN.
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8470 * target-delegates.c: Rebuild.
8471 * target.c (target_thread_alive): Unconditionally delegate.
8472 * target.h (struct target_ops) <to_thread_alive>: Use
8473 TARGET_DEFAULT_RETURN.
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8477 * target-delegates.c: Rebuild.
8478 * target.c (target_save_record): Unconditionally delegate.
8479 * target.h (struct target_ops) <to_save_record>: Use
8480 TARGET_DEFAULT_NORETURN.
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8484 * target-delegates.c: Rebuild.
8485 * target.c (target_delete_record): Unconditionally delegate.
8486 * target.h (struct target_ops) <to_delete_record>: Use
8487 TARGET_DEFAULT_NORETURN.
8489 2014-02-19 Tom Tromey <tromey@redhat.com>
8491 * target-delegates.c: Rebuild.
8492 * target.c (target_record_is_replaying): Unconditionally
8494 * target.h (struct target_ops) <to_record_is_replaying>: Use
8495 TARGET_DEFAULT_RETURN.
8497 2014-02-19 Tom Tromey <tromey@redhat.com>
8499 * target-delegates.c: Rebuild.
8500 * target.c (target_goto_record_begin): Unconditionally delegate.
8501 * target.h (struct target_ops) <to_goto_record_begin>: Use
8502 TARGET_DEFAULT_NORETURN.
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8506 * target-delegates.c: Rebuild.
8507 * target.c (target_goto_record_end): Unconditionally delegate.
8508 * target.h (struct target_ops) <to_goto_record_end>: Use
8509 TARGET_DEFAULT_NORETURN.
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8513 * target-delegates.c: Rebuild.
8514 * target.c (target_goto_record): Unconditionally delegate.
8515 * target.h (struct target_ops) <to_goto_record>: Use
8516 TARGET_DEFAULT_NORETURN.
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8520 * target-delegates.c: Rebuild.
8521 * target.c (target_insn_history): Unconditionally delegate.
8522 * target.h (struct target_ops) <to_insn_history>: Use
8523 TARGET_DEFAULT_NORETURN.
8525 2014-02-19 Tom Tromey <tromey@redhat.com>
8527 * target-delegates.c: Rebuild.
8528 * target.c (target_insn_history_from): Unconditionally delegate.
8529 * target.h (struct target_ops) <to_insn_history_from>: Use
8530 TARGET_DEFAULT_NORETURN.
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8534 * target-delegates.c: Rebuild.
8535 * target.c (target_insn_history_range): Unconditionally delegate.
8536 * target.h (struct target_ops) <to_insn_history_range>: Use
8537 TARGET_DEFAULT_NORETURN.
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8541 * target-delegates.c: Rebuild.
8542 * target.c (target_call_history): Unconditionally delegate.
8543 * target.h (struct target_ops) <to_call_history>: Use
8544 TARGET_DEFAULT_NORETURN.
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8548 * target-delegates.c: Rebuild.
8549 * target.c (target_call_history_from): Unconditionally delegate.
8550 * target.h (struct target_ops) <to_call_history_from>: Use
8551 TARGET_DEFAULT_NORETURN.
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target-delegates.c: Rebuild.
8556 * target.c (target_call_history_range): Unconditionally delegate.
8557 * target.h (struct target_ops) <to_call_history_range>: Use
8558 TARGET_DEFAULT_NORETURN.
8560 2014-02-19 Tom Tromey <tromey@redhat.com>
8562 * target-delegates.c: Rebuild.
8563 * target.c (target_verify_memory): Unconditionally delegate.
8564 * target.h (struct target_ops) <to_verify_memory>: Use
8565 TARGET_DEFAULT_NORETURN.
8567 2014-02-19 Tom Tromey <tromey@redhat.com>
8569 * target-delegates.c: Rebuild.
8570 * target.c (target_core_of_thread): Unconditionally delegate.
8571 * target.h (struct target_ops) <to_core_of_thread>: Use
8572 TARGET_DEFAULT_RETURN.
8574 2014-02-19 Tom Tromey <tromey@redhat.com>
8576 * target-delegates.c: Rebuild.
8577 * target.c (target_flash_done): Unconditionally delegate.
8578 * target.h (struct target_ops) <to_flash_done>: Use
8579 TARGET_DEFAULT_NORETURN.
8581 2014-02-19 Tom Tromey <tromey@redhat.com>
8583 * target-delegates.c: Rebuild.
8584 * target.c (target_flash_erase): Unconditionally delegate.
8585 * target.h (struct target_ops) <to_flash_erase>: Use
8586 TARGET_DEFAULT_NORETURN.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target-delegates.c: Rebuild.
8591 * target.c (target_get_section_table): Unconditionally delegate.
8592 * target.h (struct target_ops) <to_get_section_table>: Use
8593 TARGET_DEFAULT_RETURN.
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8597 * target-delegates.c: Rebuild.
8598 * target.c (target_pid_to_str): Unconditionally delegate.
8599 (init_dummy_target): Don't initialize to_pid_to_str.
8600 (default_pid_to_str): Rename from dummy_pid_to_str.
8601 * target.h (struct target_ops) <to_pid_to_str>: Use
8602 TARGET_DEFAULT_FUNC.
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8606 * target-delegates.c: Rebuild.
8607 * target.c (target_find_new_threads): Unconditionally delegate.
8608 * target.h (struct target_ops) <to_find_new_threads>: Use
8609 TARGET_DEFAULT_RETURN.
8611 2014-02-19 Tom Tromey <tromey@redhat.com>
8613 * target-delegates.c: Rebuild.
8614 * target.c (target_program_signals): Unconditionally delegate.
8615 * target.h (struct target_ops) <to_program_signals>: Use
8616 TARGET_DEFAULT_IGNORE.
8618 2014-02-19 Tom Tromey <tromey@redhat.com>
8620 * target-delegates.c: Rebuild.
8621 * target.c (target_pass_signals): Unconditionally delegate.
8622 * target.h (struct target_ops) <to_pass_signals>: Use
8623 TARGET_DEFAULT_IGNORE.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target-delegates.c: Rebuild.
8628 * target.c (default_mourn_inferior): New function.
8629 (target_mourn_inferior): Unconditionally delegate.
8630 * target.h (struct target_ops) <to_mourn_inferior>: Use
8631 TARGET_DEFAULT_FUNC.
8633 2014-02-19 Tom Tromey <tromey@redhat.com>
8635 * target-delegates.c: Rebuild.
8636 * target.c (default_follow_fork): New function.
8637 (target_follow_fork): Unconditionally delegate.
8638 * target.h (struct target_ops) <to_follow_fork>: Use
8639 TARGET_DEFAULT_FUNC.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target-delegates.c: Rebuild.
8644 * target.c (target_kill): Unconditionally delegate.
8645 * target.h (struct target_ops) <to_kill>: Use
8646 TARGET_DEFAULT_NORETURN.
8648 2014-02-19 Tom Tromey <tromey@redhat.com>
8650 * target-delegates.c: Rebuild.
8651 * target.c (target_masked_watch_num_registers): Unconditionally
8653 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8654 Use TARGET_DEFAULT_RETURN.
8656 2014-02-19 Tom Tromey <tromey@redhat.com>
8658 * target-delegates.c: Rebuild.
8659 * target.c (target_remove_mask_watchpoint): Unconditionally
8661 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8662 TARGET_DEFAULT_RETURN.
8664 2014-02-19 Tom Tromey <tromey@redhat.com>
8666 * target-delegates.c: Rebuild.
8667 * target.c (target_insert_mask_watchpoint): Unconditionally
8669 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8670 TARGET_DEFAULT_RETURN.
8672 2014-02-19 Tom Tromey <tromey@redhat.com>
8674 * target-delegates.c: Rebuild.
8675 * target.c (target_ranged_break_num_registers): Unconditionally
8677 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8678 Use TARGET_DEFAULT_RETURN.
8680 2014-02-19 Tom Tromey <tromey@redhat.com>
8682 * target-delegates.c: Rebuild.
8683 * target.c (target_fetch_registers): Unconditionally delegate.
8684 * target.h (struct target_ops) <to_fetch_registers>: Use
8685 TARGET_DEFAULT_NORETURN.
8687 2014-02-19 Tom Tromey <tromey@redhat.com>
8689 * target-delegates.c: Rebuild.
8690 * target.c (update_current_target): Don't inherit or default
8692 * target.h (struct target_ops) <to_stop>: Use
8693 TARGET_DEFAULT_IGNORE.
8695 2014-02-19 Tom Tromey <tromey@redhat.com>
8697 * target-delegates.c: Rebuild.
8698 * target.c (update_current_target): Don't inherit or default
8699 to_can_run_breakpoint_commands.
8700 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8701 Use TARGET_DEFAULT_RETURN.
8703 2014-02-19 Tom Tromey <tromey@redhat.com>
8705 * target-delegates.c: Rebuild.
8706 * target.c (update_current_target): Don't inherit or default
8707 to_supports_evaluation_of_breakpoint_conditions.
8708 * target.h (struct target_ops)
8709 <to_supports_evaluation_of_breakpoint_conditions>: Use
8710 TARGET_DEFAULT_RETURN.
8712 2014-02-19 Tom Tromey <tromey@redhat.com>
8714 * target-delegates.c: Rebuild.
8715 * target.c (update_current_target): Don't inherit or default
8716 to_augmented_libraries_svr4_read.
8717 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8718 Use TARGET_DEFAULT_RETURN.
8720 2014-02-19 Tom Tromey <tromey@redhat.com>
8722 * target-delegates.c: Rebuild.
8723 * target.c (update_current_target): Don't inherit or default
8725 * target.h (struct target_ops) <to_can_use_agent>: Use
8726 TARGET_DEFAULT_RETURN.
8728 2014-02-19 Tom Tromey <tromey@redhat.com>
8730 * target-delegates.c: Rebuild.
8731 * target.c (update_current_target): Don't inherit or default
8733 * target.h (struct target_ops) <to_use_agent>: Use
8734 TARGET_DEFAULT_NORETURN.
8736 2014-02-19 Tom Tromey <tromey@redhat.com>
8738 * target-delegates.c: Rebuild.
8739 * target.c (update_current_target): Don't inherit or default
8741 (return_null): Remove.
8742 * target.h (struct target_ops) <to_traceframe_info>: Use
8743 TARGET_DEFAULT_RETURN.
8745 2014-02-19 Tom Tromey <tromey@redhat.com>
8747 * target-delegates.c: Rebuild.
8748 * target.c (update_current_target): Don't inherit or default
8749 to_static_tracepoint_markers_by_strid.
8750 * target.h (struct target_ops)
8751 <to_static_tracepoint_markers_by_strid>: Use
8752 TARGET_DEFAULT_NORETURN.
8754 2014-02-19 Tom Tromey <tromey@redhat.com>
8756 * target-delegates.c: Rebuild.
8757 * target.c (update_current_target): Don't inherit or default
8758 to_static_tracepoint_marker_at.
8759 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8760 Use TARGET_DEFAULT_RETURN.
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8764 * target-delegates.c: Rebuild.
8765 * target.c (update_current_target): Don't inherit or default
8767 * target.h (struct target_ops) <to_set_permissions>: Use
8768 TARGET_DEFAULT_IGNORE.
8770 2014-02-19 Tom Tromey <tromey@redhat.com>
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8775 * target.h (struct target_ops) <to_get_tib_address>: Use
8776 TARGET_DEFAULT_NORETURN.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8783 * target.h (struct target_ops) <to_set_trace_notes>: Use
8784 TARGET_DEFAULT_RETURN.
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't initialize
8790 to_set_trace_buffer_size.
8791 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8792 TARGET_DEFAULT_IGNORE.
8794 2014-02-19 Tom Tromey <tromey@redhat.com>
8796 * target-delegates.c: Rebuild.
8797 * target.c (update_current_target): Don't inherit or default
8798 to_set_circular_trace_buffer.
8799 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8800 TARGET_DEFAULT_IGNORE.
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8804 * target-delegates.c: Rebuild.
8805 * target.c (update_current_target): Don't inherit or default
8806 to_set_disconnected_tracing.
8807 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8808 TARGET_DEFAULT_IGNORE.
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8812 * target-delegates.c: Rebuild.
8813 * target.c (update_current_target): Don't inherit or default
8814 to_get_min_fast_tracepoint_insn_len.
8815 (return_minus_one): Remove.
8816 * target.h (struct target_ops)
8817 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8821 * target-delegates.c: Rebuild.
8822 * target.c (update_current_target): Don't inherit or default
8823 to_get_raw_trace_data.
8824 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8825 TARGET_DEFAULT_NORETURN.
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8829 * target-delegates.c: Rebuild.
8830 * target.c (update_current_target): Don't inherit or default
8831 to_upload_trace_state_variables.
8832 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8833 Use TARGET_DEFAULT_RETURN.
8835 2014-02-19 Tom Tromey <tromey@redhat.com>
8837 * target-delegates.c: Rebuild.
8838 * target.c (update_current_target): Don't inherit or default
8839 to_upload_tracepoints.
8840 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8841 TARGET_DEFAULT_RETURN.
8843 2014-02-19 Tom Tromey <tromey@redhat.com>
8845 * target-delegates.c: Rebuild.
8846 * target.c (update_current_target): Don't inherit or default
8848 * target.h (struct target_ops) <to_save_trace_data>: Use
8849 TARGET_DEFAULT_NORETURN.
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8853 * target-delegates.c: Rebuild.
8854 * target.c (update_current_target): Don't inherit or default
8855 to_get_trace_state_variable_value.
8856 * target.h (struct target_ops)
8857 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * target-delegates.c: Rebuild.
8862 * target.c (update_current_target): Don't inherit or default
8864 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8866 2014-02-19 Tom Tromey <tromey@redhat.com>
8868 * target-delegates.c: Rebuild.
8869 * target.c (update_current_target): Don't inherit or default
8871 * target.h (struct target_ops) <to_trace_stop>: Use
8872 TARGET_DEFAULT_NORETURN.
8874 2014-02-19 Tom Tromey <tromey@redhat.com>
8876 * target-delegates.c: Rebuild.
8877 * target.c (update_current_target): Don't inherit or default
8878 to_get_tracepoint_status.
8879 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8880 TARGET_DEFAULT_NORETURN.
8882 2014-02-19 Tom Tromey <tromey@redhat.com>
8884 * target-delegates.c: Rebuild.
8885 * target.c (update_current_target): Don't inherit or default
8886 to_get_trace_status.
8887 * target.h (struct target_ops) <to_get_trace_status>: Use
8888 TARGET_DEFAULT_RETURN.
8890 2014-02-19 Tom Tromey <tromey@redhat.com>
8892 * target-delegates.c: Rebuild.
8893 * target.c (update_current_target): Don't inherit or default
8895 * target.h (struct target_ops) <to_trace_start>: Use
8896 TARGET_DEFAULT_NORETURN.
8898 2014-02-19 Tom Tromey <tromey@redhat.com>
8900 * target-delegates.c: Rebuild.
8901 * target.c (update_current_target): Don't inherit or default
8902 to_trace_set_readonly_regions.
8903 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8904 Use TARGET_DEFAULT_NORETURN.
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target-delegates.c: Rebuild.
8909 * target.c (update_current_target): Don't inherit or default
8910 to_disable_tracepoint.
8911 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8912 TARGET_DEFAULT_NORETURN.
8914 2014-02-19 Tom Tromey <tromey@redhat.com>
8916 * target-delegates.c: Rebuild.
8917 * target.c (update_current_target): Don't inherit or default
8918 to_enable_tracepoint.
8919 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8920 TARGET_DEFAULT_NORETURN.
8922 2014-02-19 Tom Tromey <tromey@redhat.com>
8924 * target-delegates.c: Rebuild.
8925 * target.c (update_current_target): Don't inherit or default
8926 to_download_trace_state_variable.
8927 * target.h (struct target_ops) <to_download_trace_state_variable>:
8928 Use TARGET_DEFAULT_NORETURN.
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8932 * target-delegates.c: Rebuild.
8933 * target.c (update_current_target): Don't inherit or default
8934 to_can_download_tracepoint.
8935 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8936 TARGET_DEFAULT_RETURN.
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8940 * target-delegates.c: Rebuild.
8941 * target.c (update_current_target): Don't inherit or default
8942 to_download_tracepoint.
8943 * target.h (struct target_ops) <to_download_tracepoint>: Use
8944 TARGET_DEFAULT_NORETURN.
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8948 * target-delegates.c: Rebuild.
8949 * target.c (update_current_target): Don't inherit or default
8951 * target.h (struct target_ops) <to_trace_init>: Use
8952 TARGET_DEFAULT_RETURN.
8954 2014-02-19 Tom Tromey <tromey@redhat.com>
8956 * target-delegates.c: Rebuild.
8957 * target.c (update_current_target): Don't inherit or default
8958 to_supports_string_tracing.
8959 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8960 TARGET_DEFAULT_RETURN.
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8964 * target-delegates.c: Rebuild.
8965 * target.c (update_current_target): Don't inherit or default
8966 to_supports_enable_disable_tracepoint.
8967 * target.h (struct target_ops)
8968 <to_supports_enable_disable_tracepoint>: Use
8969 TARGET_DEFAULT_RETURN.
8971 2014-02-19 Tom Tromey <tromey@redhat.com>
8973 * target-delegates.c: Rebuild.
8974 * target.c (update_current_target): Don't inherit or default
8975 to_supports_multi_process.
8976 * target.h (struct target_ops) <to_supports_multi_process>: Use
8977 TARGET_DEFAULT_RETURN.
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8981 * target-delegates.c: Rebuild.
8982 * target.c (update_current_target): Don't inherit or default
8983 to_get_ada_task_ptid.
8984 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8985 TARGET_DEFAULT_FUNC.
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8989 * target-delegates.c: Rebuild.
8990 * target.c (update_current_target): Don't inherit or default
8991 to_thread_architecture.
8992 * target.h (struct target_ops) <to_thread_architecture>: Use
8993 TARGET_DEFAULT_FUNC.
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8997 * target-delegates.c: Rebuild.
8998 * target.c (update_current_target): Don't inherit or default
8999 to_execution_direction.
9000 * target.h (struct target_ops) <to_execution_direction>: Use
9001 TARGET_DEFAULT_FUNC.
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * target-delegates.c: Rebuild.
9006 * target.c (update_current_target): Don't inherit or default
9007 to_can_execute_reverse.
9008 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9009 TARGET_DEFAULT_RETURN.
9010 (target_can_execute_reverse): Unconditionally delegate.
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9014 * target-delegates.c: Rebuild.
9015 * target.c (update_current_target): Don't inherit or default
9017 (dummy_goto_bookmark): Remove.
9018 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9019 * target.h (struct target_ops) <to_goto_bookmark>: Use
9020 TARGET_DEFAULT_NORETURN.
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target-delegates.c: Rebuild.
9025 * target.c (update_current_target): Don't inherit or default
9027 (dummy_get_bookmark): Remove.
9028 (init_dummy_target): Don't inherit or default to_get_bookmark.
9029 * target.h (struct target_ops) <to_get_bookmark>: Use
9030 TARGET_DEFAULT_NORETURN
9032 2014-02-19 Tom Tromey <tromey@redhat.com>
9034 * target-delegates.c: Rebuild.
9035 * target.c (update_current_target): Don't inherit or default
9036 to_make_corefile_notes.
9037 (init_dummy_target): Don't initialize to_make_corefile_notes.
9038 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9039 TARGET_DEFAULT_FUNC.
9041 2014-02-19 Tom Tromey <tromey@redhat.com>
9043 * target-delegates.c: Rebuild.
9044 * target.c (update_current_target): Don't inherit or default
9045 to_find_memory_regions.
9046 (init_dummy_target): Don't initialize to_find_memory_regions.
9047 * target.h (struct target_ops) <to_find_memory_regions>: Use
9048 TARGET_DEFAULT_FUNC.
9050 2014-02-19 Tom Tromey <tromey@redhat.com>
9052 * target-delegates.c: Rebuild.
9053 * target.c (update_current_target): Don't inherit or default
9055 * target.h (struct target_ops) <to_log_command>: Use
9056 TARGET_DEFAULT_IGNORE.
9057 (target_log_command): Unconditionally delegate.
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9061 * target-delegates.c: Rebuild.
9062 * target.c (update_current_target): Don't inherit or default
9063 to_pid_to_exec_file.
9064 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9065 TARGET_DEFAULT_RETURN.
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9069 * target-delegates.c: Rebuild.
9070 * target.c (update_current_target): Don't inherit or default
9072 (target_thread_name): Unconditionally delegate.
9073 * target.h (struct target_ops) <to_thread_name>: Use
9074 TARGET_DEFAULT_RETURN.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target-delegates.c: Rebuild.
9079 * target.c (update_current_target): Don't inherit or default
9080 to_extra_thread_info.
9081 * target.h (struct target_ops) <to_extra_thread_info>: Use
9082 TARGET_DEFAULT_RETURN.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target-delegates.c: Rebuild.
9087 * target.c (update_current_target): Don't inherit or default
9089 * target.h (struct target_ops) <to_has_exited>: Use
9090 TARGET_DEFAULT_RETURN..
9092 2014-02-19 Tom Tromey <tromey@redhat.com>
9094 * target-delegates.c: Rebuild.
9095 * target.c (update_current_target): Don't inherit or default
9096 to_set_syscall_catchpoint.
9097 (return_one): Remove.
9098 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9099 TARGET_DEFAULT_RETURN.
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9103 * target-delegates.c: Rebuild.
9104 * target.c (update_current_target): Don't inherit or default
9105 to_insert_exec_catchpoint.
9106 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9107 TARGET_DEFAULT_RETURN.
9109 2014-01-08 Tom Tromey <tromey@redhat.com>
9111 * target-delegates.c: Rebuild.
9112 * target.c (update_current_target): Don't inherit or default
9113 to_insert_exec_catchpoint.
9114 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9115 TARGET_DEFAULT_RETURN.
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9119 * target-delegates.c: Rebuild.
9120 * target.c (update_current_target): Don't inherit or default
9121 to_remove_vfork_catchpoint.
9122 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9123 TARGET_DEFAULT_RETURN.
9125 2014-02-19 Tom Tromey <tromey@redhat.com>
9127 * target-delegates.c: Rebuild.
9128 * target.c (update_current_target): Don't inherit or default
9129 to_insert_vfork_catchpoint.
9130 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9131 TARGET_DEFAULT_RETURN.
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target-delegates.c: Rebuild.
9136 * target.c (update_current_target): Don't inherit or default
9137 to_remove_fork_catchpoint.
9138 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9139 TARGET_DEFAULT_RETURN.
9141 2014-02-19 Tom Tromey <tromey@redhat.com>
9143 * target-delegates.c: Rebuild.
9144 * target.c (update_current_target): Don't inherit or default
9145 to_insert_fork_catchpoint.
9146 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9147 TARGET_DEFAULT_RETURN.
9149 2014-02-19 Tom Tromey <tromey@redhat.com>
9151 * target-delegates.c: Rebuild.
9152 * target.c (update_current_target): Don't inherit or default
9153 to_post_startup_inferior.
9154 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9155 TARGET_DEFAULT_IGNORE.
9157 2014-02-19 Tom Tromey <tromey@redhat.com>
9159 * target-delegates.c: Rebuild.
9160 * target.c (update_current_target): Don't inherit or default
9162 * target.h (struct target_ops) <to_load>: Use
9163 TARGET_DEFAULT_NORETURN.
9165 2014-02-19 Tom Tromey <tromey@redhat.com>
9167 * target-delegates.c: Rebuild.
9168 * target.c (update_current_target): Don't inherit or default
9170 * target.h (struct target_ops) <to_terminal_info>: Use
9171 TARGET_DEFAULT_FUNC.
9173 2014-02-19 Tom Tromey <tromey@redhat.com>
9175 * target-delegates.c: Rebuild.
9176 * target.c (update_current_target): Don't inherit or default
9177 to_terminal_save_ours.
9178 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9179 TARGET_DEFAULT_IGNORE.
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9183 * target-delegates.c: Rebuild.
9184 * target.c (update_current_target): Don't inherit or default
9186 * target.h (struct target_ops) <to_terminal_ours>: Use
9187 TARGET_DEFAULT_IGNORE.
9189 2014-02-19 Tom Tromey <tromey@redhat.com>
9191 * target-delegates.c: Rebuild.
9192 * target.c (update_current_target): Don't inherit or default
9193 to_terminal_ours_for_output.
9194 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9195 TARGET_DEFAULT_IGNORE.
9197 2014-02-19 Tom Tromey <tromey@redhat.com>
9199 * target-delegates.c: Rebuild.
9200 * target.c (update_current_target): Don't inherit or default
9201 to_terminal_inferior.
9202 * target.h (struct target_ops) <to_terminal_inferior>: Use
9203 TARGET_DEFAULT_IGNORE.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * target-delegates.c: Rebuild.
9208 * target.c (update_current_target): Don't inherit or default
9210 * target.h (struct target_ops) <to_terminal_init>: Use
9211 TARGET_DEFAULT_IGNORE.
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9215 * target-delegates.c: Rebuild.
9216 * target.c (update_current_target): Don't inherit or default
9217 to_can_accel_watchpoint_condition.
9218 * target.h (struct target_ops)
9219 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9223 * target-delegates.c: Rebuild.
9224 * target.c (update_current_target): Don't inherit or default
9225 to_region_ok_for_hw_watchpoint.
9226 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9227 Use TARGET_DEFAULT_FUNC.
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9231 * target-delegates.c: Rebuild.
9232 * target.c (update_current_target): Don't inherit or default
9233 to_watchpoint_addr_within_range.
9234 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9235 Use TARGET_DEFAULT_FUNC.
9237 2014-02-19 Tom Tromey <tromey@redhat.com>
9239 * target-delegates.c: Rebuild.
9240 * target.c (update_current_target): Don't inherit or default
9241 to_remove_watchpoint.
9242 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9243 TARGET_DEFAULT_NORETURN.
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9247 * target-delegates.c: Rebuild.
9248 * target.c (update_current_target): Don't inherit or default
9249 to_insert_watchpoint.
9250 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9251 TARGET_DEFAULT_RETURN.
9253 2014-02-19 Tom Tromey <tromey@redhat.com>
9255 * target-delegates.c: Rebuild.
9256 * target.c (update_current_target): Don't inherit or default
9257 to_remove_hw_breakpoint.
9258 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9259 TARGET_DEFAULT_RETURN.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target-delegates.c: Rebuild.
9264 * target.c (update_current_target): Don't inherit or default
9265 to_insert_hw_breakpoint.
9266 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9267 TARGET_DEFAULT_RETURN.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target-delegates.c: Rebuild.
9272 * target.c (update_current_target): Don't inherit or default
9273 to_can_use_hw_breakpoint.
9274 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9275 TARGET_DEFAULT_RETURN.
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target-delegates.c: Rebuild.
9280 * target.c (update_current_target): Don't inherit or default
9282 * target.h (struct target_ops) <to_files_info>: Use
9283 TARGET_DEFAULT_IGNORE.
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9287 * target-delegates.c: Rebuild.
9288 * target.c (update_current_target): Don't inherit or default
9290 * target.h (struct target_ops) <to_store>: Use
9291 TARGET_DEFAULT_NORETURN.
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target-delegates.c: Rebuild.
9296 * target.c (update_current_target): Don't inherit or default
9298 * target.h (struct target_ops) <to_post_attach>: Use
9299 TARGET_DEFAULT_IGNORE.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * target-delegates.c: Rebuild.
9304 * target.c (update_current_target): Don't inherit or default
9306 (default_rcmd): New function.
9307 (do_monitor_command): Unconditionally delegate.
9308 * target.h (struct target_ops) <to_rmcd>: Use
9309 TARGET_DEFAULT_FUNC.
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9313 * target-delegates.c: Rebuild.
9314 * target.c (init_dummy_target): Don't initialize to_attach.
9315 (target_attach): Unconditionally delegate.
9316 * target.h (struct target_ops) <to_attach>: Use
9317 TARGET_DEFAULT_FUNC.
9319 2014-02-19 Tom Tromey <tromey@redhat.com>
9321 * target-delegates.c: Rebuild.
9322 * target.c (target_detach): Unconditionally delegate.
9323 (init_dummy_target): Don't initialize to_detach.
9324 * target.h (struct target_ops) <to_detach>: Use
9325 TARGET_DEFAULT_IGNORE.
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9329 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9331 (target_augmented_libraries_svr4_read): Add argument.
9332 * target.c (update_current_target): Update.
9333 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target.h (struct target_ops) <to_call_history_range>: Add
9340 * target.c (target_call_history_range): Add argument.
9341 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9343 (record_btrace_call_history_from): Update.
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9347 * target.h (struct target_ops) <to_call_history_from>: Add
9349 * target.c (target_call_history_from): Add argument.
9350 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9353 2014-02-19 Tom Tromey <tromey@redhat.com>
9355 * target.h (struct target_ops) <to_call_history>: Add argument.
9356 * target.c (target_call_history): Add argument.
9357 * record-btrace.c (record_btrace_call_history): Add 'self'
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9362 * target.h (struct target_ops) <to_insn_history_range>: Add
9364 * target.c (target_insn_history_range): Add argument.
9365 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9367 (record_btrace_insn_history_from): Update.
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * target.h (struct target_ops) <to_insn_history_from>: Add
9373 * target.c (target_insn_history_from): Add argument.
9374 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9379 * target.h (struct target_ops) <to_insn_history>: Add argument.
9380 * target.c (target_insn_history): Add argument.
9381 * record-btrace.c (record_btrace_insn_history): Add 'self'
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9386 * target.h (struct target_ops) <to_goto_record>: Add argument.
9387 * target.c (target_goto_record): Add argument.
9388 * record-full.c (record_full_goto): Add 'self' argument.
9389 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9394 * target.c (target_goto_record_end): Add argument.
9395 * record-full.c (record_full_goto_end): Add 'self' argument.
9396 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target.h (struct target_ops) <to_goto_record_begin>: Add
9402 * target.c (target_goto_record_begin): Add argument.
9403 * record-full.c (record_full_goto_begin): Add 'self' argument.
9404 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9409 * target.h (struct target_ops) <to_record_is_replaying>: Add
9411 * target.c (target_record_is_replaying): Add argument.
9412 * record-full.c (record_full_is_replaying): Add 'self' argument.
9413 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9415 (record_btrace_xfer_partial, record_btrace_store_registers)
9416 (record_btrace_prepare_to_store, record_btrace_resume)
9417 (record_btrace_wait, record_btrace_decr_pc_after_break)
9418 (record_btrace_find_new_threads, record_btrace_thread_alive):
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9423 * target.h (struct target_ops) <to_delete_record>: Add argument.
9424 * target.c (target_delete_record): Add argument.
9425 * record-full.c (record_full_delete): Add 'self' argument.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target.h (struct target_ops) <to_save_record>: Add argument.
9430 * target.c (target_save_record): Add argument.
9431 * record-full.c (record_full_save): Add 'self' argument.
9432 (record_full_save): Add 'self' argument.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target.h (struct target_ops) <to_info_record>: Add argument.
9437 * target.c (target_info_record): Add argument.
9438 * record.c (info_record_command): Add argument.
9439 * record-full.c (record_full_info): Add 'self' argument.
9440 * record-btrace.c (record_btrace_info): Add 'self' argument.
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9445 * target.c (target_stop_recording): Add argument.
9446 * record.c (record_stop): Add argument.
9447 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9452 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9453 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9454 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9456 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9457 (_initialize_amd64_linux_nat): Use it.
9458 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9459 (_initialize_i386_linux_nat): Use it.
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9463 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9464 * target.c (target_teardown_btrace): Add argument.
9465 * remote.c (remote_teardown_btrace): Add 'self' argument.
9466 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9468 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9474 * target.c (target_disable_btrace): Add argument.
9475 * remote.c (remote_disable_btrace): Add 'self' argument.
9476 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9478 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9481 2014-02-19 Tom Tromey <tromey@redhat.com>
9483 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9484 * target.c (target_enable_btrace): Add argument.
9485 * remote.c (remote_enable_btrace): Add 'self' argument.
9486 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9488 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9493 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9494 (target_can_use_agent): Add argument.
9495 * target.c (update_current_target): Update.
9496 * remote.c (remote_can_use_agent): Add 'self' argument.
9497 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9499 2014-02-19 Tom Tromey <tromey@redhat.com>
9501 * target.h (struct target_ops) <to_use_agent>: Add argument.
9502 (target_use_agent): Add argument.
9503 * target.c (update_current_target): Update.
9504 * remote.c (remote_use_agent): Add 'self' argument.
9505 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9507 2014-02-19 Tom Tromey <tromey@redhat.com>
9509 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9510 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9511 (target_traceframe_info): Add argument.
9512 * target.c (update_current_target): Update.
9513 * remote.c (remote_traceframe_info): Add 'self' argument.
9514 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9518 * target.h (target_static_tracepoint_markers_by_strid): Add
9520 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9522 * target.c (update_current_target): Update.
9523 * remote.c (struct target_ops)
9524 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9525 * linux-nat.c (struct target_ops)
9526 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9528 2014-02-19 Tom Tromey <tromey@redhat.com>
9530 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9532 (target_static_tracepoint_marker_at): Add argument.
9533 * target.c (update_current_target): Update.
9534 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9537 2014-02-19 Tom Tromey <tromey@redhat.com>
9539 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9540 (target_set_permissions): Add argument.
9541 * target.c (update_current_target): Update.
9542 * remote.c (remote_set_permissions): Add 'self' argument.
9543 (remote_start_remote): Update.
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9547 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9548 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9549 (target_get_tib_address): Add argument.
9550 * target.c (update_current_target): Update.
9551 * remote.c (remote_get_tib_address): Add 'self' argument.
9553 2014-02-19 Tom Tromey <tromey@redhat.com>
9555 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9556 (target_set_trace_notes): Add argument.
9557 * target.c (update_current_target): Update.
9558 * remote.c (remote_set_trace_notes): Add 'self' argument.
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9562 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9564 (target_set_trace_buffer_size): Add argument.
9565 * target.c (update_current_target): Update.
9566 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9570 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9572 (target_set_circular_trace_buffer): Add argument.
9573 * target.c (update_current_target): Update.
9574 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9577 2014-02-19 Tom Tromey <tromey@redhat.com>
9579 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9581 (target_set_disconnected_tracing): Add argument.
9582 * target.c (update_current_target): Update.
9583 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9585 2014-02-19 Tom Tromey <tromey@redhat.com>
9587 * target.h (struct target_ops)
9588 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9589 (target_get_min_fast_tracepoint_insn_len): Add argument.
9590 * target.c (update_current_target): Update.
9591 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9596 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9598 (target_get_raw_trace_data): Add argument.
9599 * target.c (update_current_target): Update.
9600 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9606 (target_upload_trace_state_variables): Add argument.
9607 * target.c (update_current_target): Update.
9608 * remote.c (remote_upload_trace_state_variables): Add 'self'
9610 (remote_start_remote): Update.
9612 2014-02-19 Tom Tromey <tromey@redhat.com>
9614 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9616 (target_upload_tracepoints): Add argument.
9617 * target.c (update_current_target): Update.
9618 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9619 (remote_start_remote): Update.
9621 2014-02-19 Tom Tromey <tromey@redhat.com>
9623 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9624 (target_save_trace_data): Add argument.
9625 * target.c (update_current_target): Update.
9626 * remote.c (remote_save_trace_data): Add 'self' argument.
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9630 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9632 * target.h (struct target_ops)
9633 <to_get_trace_state_variable_value>: Add argument.
9634 (target_get_trace_state_variable_value): Add argument.
9635 * target.c (update_current_target): Update.
9636 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9638 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9642 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9643 * target.h (struct target_ops) <to_trace_find>: Add argument.
9644 (target_trace_find): Add argument.
9645 * target.c (update_current_target): Update.
9646 * remote.c (remote_trace_find): Add 'self' argument.
9647 * ctf.c (ctf_trace_find): Add 'self' argument.
9649 2014-02-19 Tom Tromey <tromey@redhat.com>
9651 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9652 (target_trace_stop): Add argument.
9653 * target.c (update_current_target): Update.
9654 * remote.c (remote_trace_stop): Add 'self' argument.
9656 2014-02-19 Tom Tromey <tromey@redhat.com>
9658 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9659 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9661 (target_get_tracepoint_status): Add argument.
9662 * target.c (update_current_target): Update.
9663 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9668 * target.h (struct target_ops) <to_get_trace_status>: Add
9670 (target_get_trace_status): Add argument.
9671 * target.c (update_current_target): Update.
9672 * remote.c (remote_get_trace_status): Add 'self' argument.
9673 (remote_start_remote, remote_can_download_tracepoint): Update.
9674 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * target.h (struct target_ops) <to_trace_start>: Add argument.
9679 (target_trace_start): Add argument.
9680 * target.c (update_current_target): Update.
9681 * remote.c (remote_trace_start): Add 'self' argument.
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9685 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9687 (target_trace_set_readonly_regions): Add argument.
9688 * target.c (update_current_target): Update.
9689 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9694 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9696 (target_disable_tracepoint): Add argument.
9697 * target.c (update_current_target): Update.
9698 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9700 2014-02-19 Tom Tromey <tromey@redhat.com>
9702 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9704 (target_enable_tracepoint): Add argument.
9705 * target.c (update_current_target): Update.
9706 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9710 * target.h (struct target_ops) <to_download_trace_state_variable>:
9712 (target_download_trace_state_variable): Add argument.
9713 * target.c (update_current_target): Update.
9714 * remote.c (remote_download_trace_state_variable): Add 'self'
9717 2014-02-19 Tom Tromey <tromey@redhat.com>
9719 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9721 (target_can_download_tracepoint): Add argument.
9722 * target.c (update_current_target): Update.
9723 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9725 2014-02-19 Tom Tromey <tromey@redhat.com>
9727 * target.h (struct target_ops) <to_download_tracepoint>: Add
9729 (target_download_tracepoint): Add argument.
9730 * target.c (update_current_target): Update.
9731 * remote.c (remote_download_tracepoint): Add 'self' argument.
9733 2014-02-19 Tom Tromey <tromey@redhat.com>
9735 * target.h (struct target_ops) <to_trace_init>: Add argument.
9736 (target_trace_init): Add argument.
9737 * target.c (update_current_target): Update.
9738 * remote.c (remote_trace_init): Add 'self' argument.
9740 2014-02-19 Tom Tromey <tromey@redhat.com>
9742 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9743 * target.c (target_fileio_readlink): Add argument.
9744 * remote.c (remote_hostio_readlink): Add 'self' argument.
9745 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9750 * target.c (target_fileio_unlink): Add argument.
9751 * remote.c (remote_hostio_unlink): Add 'self' argument.
9752 (remote_file_delete): Update.
9753 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9757 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9758 * target.c (target_fileio_close): Add argument.
9759 * remote.c (remote_hostio_close): Add 'self' argument.
9760 (remote_hostio_close_cleanup): Update.
9761 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9763 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9767 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9768 * target.c (target_fileio_pread): Add argument.
9769 * remote.c (remote_hostio_pread): Add 'self' argument.
9770 (remote_bfd_iovec_pread, remote_file_get): Update.
9771 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9773 2014-02-19 Tom Tromey <tromey@redhat.com>
9775 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9776 * target.c (target_fileio_pwrite): Add argument.
9777 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9778 (remote_file_put): Update.
9779 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9781 2014-02-19 Tom Tromey <tromey@redhat.com>
9783 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9784 * target.c (target_fileio_open): Add argument.
9785 * remote.c (remote_hostio_open): Add 'self' argument.
9786 (remote_bfd_iovec_open): Add 'self' argument.
9787 (remote_file_put): Add 'self' argument.
9788 (remote_file_get): Add 'self' argument.
9789 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9791 2014-02-19 Tom Tromey <tromey@redhat.com>
9793 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9795 (target_can_run_breakpoint_commands): Add argument.
9796 * target.c (update_current_target): Update.
9797 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9799 (remote_insert_breakpoint): Add 'self' argument.
9800 (remote_insert_hw_breakpoint): Add 'self' argument.
9801 (remote_can_run_breakpoint_commands): Add 'self' argument.
9803 2014-02-19 Tom Tromey <tromey@redhat.com>
9805 * target.h (struct target_ops)
9806 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9807 (target_supports_evaluation_of_breakpoint_conditions): Add
9809 * target.c (update_current_target): Update.
9810 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9812 (remote_insert_breakpoint): Add 'self' argument.
9813 (remote_insert_hw_breakpoint): Add 'self' argument.
9814 (remote_supports_cond_breakpoints): Add 'self' argument.
9816 2014-02-19 Tom Tromey <tromey@redhat.com>
9818 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9820 (target_supports_string_tracing): Add argument.
9821 * target.c (update_current_target): Update.
9822 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9824 2014-02-19 Tom Tromey <tromey@redhat.com>
9826 * target.h (struct target_ops)
9827 <to_supports_disable_randomization>: Add argument.
9828 * target.c (find_default_supports_disable_randomization): Add
9830 (target_supports_disable_randomization): Add argument.
9831 (find_default_supports_disable_randomization): Add 'self'
9833 * remote.c (extended_remote_supports_disable_randomization): Add
9835 (remote_supports_disable_randomization): Add 'self' argument.
9836 (extended_remote_create_inferior): Update.
9837 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9840 2014-02-19 Tom Tromey <tromey@redhat.com>
9842 * target.h (struct target_ops)
9843 <to_supports_enable_disable_tracepoint>: Add argument.
9844 (target_supports_enable_disable_tracepoint): Add argument.
9845 * target.c (update_current_target): Update.
9846 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9851 * target.h (struct target_ops) <to_supports_multi_process>: Add
9853 (target_supports_multi_process): Add argument.
9854 * target.c (update_current_target): Update.
9855 * remote.c (remote_supports_multi_process): Add 'self' argument.
9856 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9858 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9863 * target.h (struct target_ops) <to_execution_direction>: Add
9865 (target_execution_direction): Add argument.
9866 * target.c (default_execution_direction): Add 'self' argument.
9867 * record-full.c (record_full_execution_direction): Add 'self'
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9874 (target_can_execute_reverse): Add argument.
9875 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9876 * record-full.c (record_full_can_execute_reverse): Add 'self'
9878 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9881 2014-02-19 Tom Tromey <tromey@redhat.com>
9883 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9884 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9886 (target_get_ada_task_ptid): Add argument.
9887 * target.c (update_current_target): Update.
9888 (default_get_ada_task_ptid): Add 'self' argument.
9889 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9890 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9891 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9893 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9895 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9897 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9899 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9900 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9906 (target_goto_bookmark): Add argument.
9907 * target.c (dummy_goto_bookmark): Add 'self' argument.
9908 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9912 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9913 (target_get_bookmark): Add argument.
9914 * target.c (dummy_get_bookmark): Add 'self' argument.
9915 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9919 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9921 (target_make_corefile_notes): Add argument.
9922 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9923 * procfs.c (procfs_make_note_section): Add 'self' argument.
9924 (procfs_make_note_section): Add 'self' argument.
9925 (procfs_make_note_section): Add 'self' argument.
9926 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9928 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9929 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9930 * exec.c (exec_make_note_section): Add 'self' argument.
9931 (exec_make_note_section): Add 'self' argument.
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9935 * target.h (struct target_ops) <to_find_memory_regions>: Add
9937 (target_find_memory_regions): Add argument.
9938 * target.c (dummy_find_memory_regions): Add 'self' argument.
9939 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9940 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9941 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9942 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9943 * exec. (exec_do_find_memory_regions): New global.
9944 (exec_set_find_memory_regions): Rewrite.
9945 (exec_find_memory_regions): New function.
9946 (init_exec_ops): Use exec_find_memory_regions.
9948 2014-02-19 Tom Tromey <tromey@redhat.com>
9950 * target.h (struct target_ops) <to_supports_non_stop>: Add
9952 * target.c (find_default_supports_non_stop): Add argument.
9953 (target_supports_non_stop): Add argument.
9954 (find_default_supports_non_stop): Add 'self' argument.
9955 * remote.c (remote_supports_non_stop): Add 'self' argument.
9956 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target.h (struct target_ops) <to_log_command>: Add argument.
9961 (target_log_command): Add argument.
9962 * serial.h (serial_log_command): Add 'self' argument.
9963 * serial.c (serial_log_command): Add 'self' argument.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9968 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9970 (target_pid_to_exec_file): Add argument.
9971 * target.c (debug_to_pid_to_exec_file): Add argument.
9972 (update_current_target): Update.
9973 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9974 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9975 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9976 (linux_handle_extended_wait): Update.
9977 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9978 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9979 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9980 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9984 * target.h (struct target_ops) <to_rcmd>: Add argument.
9985 (target_rcmd): Add argument.
9986 * target.c (debug_to_rcmd): Add argument.
9987 (update_current_target, do_monitor_command): Update.
9988 * remote.c (remote_rcmd): Add 'self' argument.
9989 * monitor.c (monitor_rcmd): Add 'self' argument.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * windows-nat.c (windows_stop): Add 'self' argument.
9994 * target.h (struct target_ops) <to_stop>: Add argument.
9995 * target.c (target_stop): Add argument.
9996 (debug_to_stop): Add argument.
9997 (update_current_target): Update.
9998 * remote.c (remote_stop): Add 'self' argument.
9999 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10000 (gdbsim_cntrl_c): Update.
10001 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10002 * procfs.c (procfs_stop): Add 'self' argument.
10003 * nto-procfs.c (procfs_stop): Add 'self' argument.
10004 * monitor.c (monitor_stop): Add 'self' argument.
10005 (monitor_open): Update.
10006 * linux-nat.c (linux_nat_stop): Add argument.
10007 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10008 * gnu-nat.c (gnu_stop): Add 'self' argument.
10009 * darwin-nat.c (darwin_stop): Add 'self' argument.
10011 2014-02-19 Tom Tromey <tromey@redhat.com>
10013 * target.h (struct target_ops) <to_thread_name>: Add argument.
10014 * target.c (target_thread_name): Add argument.
10015 (update_current_target): Update.
10016 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10020 * target.h (struct target_ops) <to_extra_thread_info>: Add
10022 (target_extra_thread_info): Add argument.
10023 * target.c (update_current_target): Update.
10024 * remote.c (remote_threads_extra_info): Add 'self' argument.
10025 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10027 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10028 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10029 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10031 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10033 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10035 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10040 * target.h (struct target_ops) <to_program_signals>: Add argument.
10041 * target.c (target_program_signals): Add argument.
10042 * remote.c (remote_program_signals): Add 'self' argument.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10047 * target.c (target_pass_signals): Add argument.
10048 * remote.c (remote_pass_signals): Add 'self' argument.
10049 (remote_start_remote): Update.
10050 * procfs.c (procfs_pass_signals): Add 'self' argument.
10051 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10052 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10053 (linux_nat_create_inferior, linux_nat_attach): Update.
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10057 * windows-nat.c (windows_can_run): Add 'self' argument.
10058 * target.h (struct target_ops) <to_can_run>: Add argument.
10059 (target_can_run): Add argument.
10060 * target.c (debug_to_can_run): Add argument.
10061 (update_current_target): Update.
10062 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10063 * inf-child.c (inf_child_can_run): Add 'self' argument.
10064 * go32-nat.c (go32_can_run): Add 'self' argument.
10066 2014-02-19 Tom Tromey <tromey@redhat.com>
10068 * target.h (struct target_ops) <to_has_exited>: Add argument.
10069 (target_has_exited): Add argument.
10070 * target.c (debug_to_has_exited): Add argument.
10071 (update_current_target): Update.
10073 2014-02-19 Tom Tromey <tromey@redhat.com>
10075 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10077 (target_set_syscall_catchpoint): Add argument.
10078 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10080 * target.c (update_current_target): Update.
10082 2014-02-19 Tom Tromey <tromey@redhat.com>
10084 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10086 (target_remove_exec_catchpoint): Add argument.
10087 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10088 (update_current_target): Update.
10089 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10096 (target_insert_exec_catchpoint): Add argument.
10097 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10098 (update_current_target): Update.
10099 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10106 (target_remove_vfork_catchpoint): Add argument.
10107 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10108 (update_current_target): Update.
10109 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10114 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10116 (target_insert_vfork_catchpoint): Add argument.
10117 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10118 (update_current_target): Update.
10119 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10122 2014-02-19 Tom Tromey <tromey@redhat.com>
10124 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10126 (target_remove_fork_catchpoint): Add argument.
10127 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10128 (update_current_target): Update.
10129 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10132 2014-02-19 Tom Tromey <tromey@redhat.com>
10134 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10136 (target_insert_fork_catchpoint): Add argument.
10137 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10138 (update_current_target): Update.
10139 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10146 (target_post_startup_inferior): Add argument.
10147 * target.c (debug_to_post_startup_inferior): Add argument.
10148 (update_current_target): Update.
10149 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10151 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10153 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10155 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10157 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10159 (super_post_startup_inferior): Likewise.
10160 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10162 (super_post_startup_inferior): Likewise.
10163 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10164 Add 'self' argument.
10165 (super_post_startup_inferior): Likewise.
10167 2014-02-19 Tom Tromey <tromey@redhat.com>
10169 * target.h (struct target_ops) <to_load>: Add argument.
10170 * target.c (target_load): Add argument.
10171 (debug_to_load): Add argument.
10172 (update_current_target): Update.
10173 * remote.c (remote_load): Add 'self' argument.
10174 * remote-sim.c (gdbsim_load): Add 'self' argument.
10175 * remote-mips.c (mips_load): Add 'self' argument.
10176 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10177 * monitor.c (monitor_load): Add 'self' argument.
10178 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10183 (target_terminal_info): Add argument.
10184 * target.c (debug_to_terminal_info): Add argument.
10185 (default_terminal_info): Likewise.
10186 * inflow.c (child_terminal_info): Add 'self' argument.
10187 * inferior.h (child_terminal_info): Add 'self' argument.
10188 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10190 2014-02-19 Tom Tromey <tromey@redhat.com>
10192 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10194 (target_terminal_save_ours): Add argument.
10195 * target.c (debug_to_terminal_save_ours): Add argument.
10196 (update_current_target): Update.
10197 * inflow.c (terminal_save_ours): Add 'self' argument.
10198 * inferior.h (terminal_save_ours): Add 'self' argument.
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10203 (target_terminal_ours): Add argument.
10204 * target.c (debug_to_terminal_ours): Add argument.
10205 (update_current_target): Update.
10206 * remote.c (remote_terminal_ours): Add 'self' argument.
10207 (remote_close): Update.
10208 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10209 * inflow.c (terminal_ours): Add 'self' argument.
10210 * inferior.h (terminal_ours): Add 'self' argument.
10211 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10213 2014-02-19 Pedro Alves <palves@redhat.com>
10214 Tom Tromey <tromey@redhat.com>
10216 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10218 (target_terminal_ours_for_output): Add argument.
10219 * target.c (debug_to_terminal_ours_for_output): Add argument.
10220 (update_current_target): Update.
10221 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10222 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10223 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10225 2014-02-19 Tom Tromey <tromey@redhat.com>
10227 * target.h (struct target_ops) <to_terminal_inferior>: Add
10229 * target.c (target_terminal_inferior): Add argument.
10230 (update_current_target): Update.
10231 * remote.c (remote_terminal_inferior): Add 'self' argument.
10232 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10233 * inflow.c (terminal_inferior): Add 'self' argument.
10234 * inferior.h (terminal_inferior): Add 'self' argument.
10235 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10236 (go32_terminal_inferior): Add 'self' argument.
10238 2014-02-19 Tom Tromey <tromey@redhat.com>
10240 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10241 (target_terminal_init): Add argument.
10242 * target.c (debug_to_terminal_init): Add argument.
10243 (update_current_target): Update.
10244 * inflow.c (terminal_init_inferior): Add 'self' argument.
10245 * inferior.h (terminal_init_inferior): Add 'self' argument.
10246 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10247 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10251 * target.h (struct target_ops)
10252 <to_can_accel_watchpoint_condition>: Add argument.
10253 (target_can_accel_watchpoint_condition): Add argument.
10254 * target.c (debug_to_can_accel_watchpoint_condition): Add
10256 (update_current_target): Update.
10257 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10262 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10264 (target_region_ok_for_hw_watchpoint): Add argument.
10265 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10266 (default_region_ok_for_hw_watchpoint): Add argument.
10267 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10268 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10270 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10272 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10274 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10276 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10278 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10280 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10281 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10283 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10284 Add 'self' argument.
10286 2014-02-19 Tom Tromey <tromey@redhat.com>
10288 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10290 (target_insert_watchpoint): Add argument.
10291 * target.c (debug_to_insert_watchpoint): Add argument.
10292 (update_current_target): Update.
10293 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10294 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10295 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10296 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10297 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10298 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10300 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10301 (procfs_insert_hw_watchpoint): Add 'self' argument.
10302 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10304 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10306 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10308 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10309 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10311 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10316 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10318 (target_remove_watchpoint): Add argument.
10319 * target.c (debug_to_remove_watchpoint): Add argument.
10320 (update_current_target): Update.
10321 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10322 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10323 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10324 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10325 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10326 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10328 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10329 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10331 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10333 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10335 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10336 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10338 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10341 2014-02-19 Tom Tromey <tromey@redhat.com>
10343 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10345 (target_remove_hw_breakpoint): Add argument.
10346 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10347 (update_current_target): Update.
10348 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10349 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10351 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10352 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10354 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10357 2014-02-19 Tom Tromey <tromey@redhat.com>
10359 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10361 (target_insert_hw_breakpoint): Add argument.
10362 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10363 (update_current_target): Update.
10364 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10365 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10367 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10368 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10369 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10371 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10374 2014-02-19 Tom Tromey <tromey@redhat.com>
10376 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10378 (target_can_use_hardware_watchpoint): Add argument.
10379 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10380 (update_current_target): Update.
10381 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10383 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10385 * remote.c (remote_check_watch_resources): Add 'self' argument.
10386 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10387 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10389 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10390 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10392 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10394 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10396 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10398 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10400 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10402 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10403 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10405 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10408 2014-02-19 Tom Tromey <tromey@redhat.com>
10410 * target.h (struct target_ops) <to_post_attach>: Add argument.
10411 (target_post_attach): Add argument.
10412 * target.c (debug_to_post_attach): Add argument.
10413 (update_current_target): Update.
10414 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10415 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10416 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10417 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10418 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10420 2014-02-19 Tom Tromey <tromey@redhat.com>
10422 * windows-nat.c (windows_close): Add 'self' argument.
10423 * tracepoint.c (tfile_close): Add 'self' argument.
10424 * target.h (struct target_ops) <to_close>: Add argument.
10425 * target.c (target_close): Add argument.
10426 (update_current_target): Update.
10427 * remote.c (remote_close): Add 'self' argument.
10428 * remote-sim.c (gdbsim_close): Add 'self' argument.
10429 * remote-mips.c (mips_close): Add 'self' argument.
10430 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10431 * record-full.c (record_full_close): Add 'self' argument.
10432 * record-btrace.c (record_btrace_close): Add 'self' argument.
10433 * monitor.h (monitor_close): Add 'self' argument.
10434 * monitor.c (monitor_close): Add 'self' argument.
10435 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10436 * linux-nat.c (linux_nat_close): Add argument.
10437 * go32-nat.c (go32_close): Add 'self' argument.
10438 * exec.c (exec_close_1): Add 'self' argument.
10439 * ctf.c (ctf_close): Add 'self' argument.
10440 * corelow.c (core_close): Add 'self' argument.
10441 (core_close_cleanup): Update.
10442 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10443 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10445 2014-02-19 Tom Tromey <tromey@redhat.com>
10447 * remote.c (remote_load): New function.
10448 (init_remote_ops): Use it.
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10452 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10454 * common/linux-btrace.h (linux_supports_btrace): Update.
10455 * remote.c (remote_supports_btrace): Add "self" argument.
10456 * target-delegates.c: Rebuild.
10457 * target.c (target_supports_btrace): Remove.
10458 * target.h (struct target_ops) <to_supports_btrace>: Add
10459 target_ops argument.
10460 (target_supports_btrace): New define.
10462 2014-02-19 Tom Tromey <tromey@redhat.com>
10464 * record-full.c (record_full_beneath_to_resume_ops)
10465 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10466 (record_full_beneath_to_wait)
10467 (record_full_beneath_to_store_registers_ops)
10468 (record_full_beneath_to_store_registers)
10469 (record_full_beneath_to_xfer_partial_ops)
10470 (record_full_beneath_to_xfer_partial)
10471 (record_full_beneath_to_insert_breakpoint_ops)
10472 (record_full_beneath_to_insert_breakpoint)
10473 (record_full_beneath_to_remove_breakpoint_ops)
10474 (record_full_beneath_to_remove_breakpoint)
10475 (record_full_beneath_to_stopped_by_watchpoint)
10476 (record_full_beneath_to_stopped_data_address)
10477 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10478 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10479 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10480 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10481 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10482 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10483 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10484 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10485 (record_full_resume, record_full_wait_1)
10486 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10487 (record_full_store_registers, record_full_xfer_partial)
10488 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10489 (record_full_async, record_full_core_xfer_partial): Use target
10491 * target-delegates.c: Rebuild.
10492 * target.c (current_xfer_partial): Remove.
10493 (update_current_target): Do not INHERIT or de_fault
10494 to_insert_breakpoint, to_remove_breakpoint,
10495 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10496 to_is_async_p, to_async. Do not set to_xfer_partial field.
10497 (default_xfer_partial): Simplify.
10498 (current_xfer_partial): Remove.
10499 (target_wait, target_resume): Simplify.
10500 (find_default_can_async_p, find_default_is_async_p): Update.
10501 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10502 to_xfer_partial, to_stopped_by_watchpoint,
10503 to_stopped_data_address.
10504 (target_store_registers): Simplify.
10505 (forward_target_remove_breakpoint)
10506 (forward_target_insert_breakpoint): Remove.
10507 (target_remove_breakpoint, target_insert_breakpoint)
10508 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10509 * target.h (struct target_ops) <to_resume, to_wait,
10510 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10511 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10512 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10514 (forward_target_remove_breakpoint)
10515 (forward_target_insert_breakpoint): Remove.
10516 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10518 (record_btrace_insert_breakpoint): Delegate directly.
10520 2014-02-19 Tom Tromey <tromey@redhat.com>
10523 * target-delegates.c: New file.
10524 * target.c: Include target-delegates.c.
10525 (init_dummy_target): Call install_dummy_methods.
10526 (complete_target_initialization): Call install_delegators.
10527 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10528 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10529 * make-target-delegates: New file.
10531 2014-02-19 Tom Tromey <tromey@redhat.com>
10533 * record.c (find_record_target): Use find_target_at.
10534 * target.c (find_target_at): New function.
10535 * target.h (find_target_at): Declare.
10537 2014-02-19 Tom Tromey <tromey@redhat.com>
10539 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10540 Add 'ops' argument.
10541 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10543 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10544 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10546 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10548 * linux-nat.c (save_sigtrap): Update.
10549 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10550 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10551 (linux_nat_close): Update.
10552 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10554 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10556 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10557 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10558 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10559 (tmp_to_async): Add 'ops' argument.
10560 (record_full_stopped_by_watchpoint, record_full_async)
10561 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10563 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10564 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10565 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10566 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10567 (remote_is_async_p, remote_async): Add 'ops' argument.
10568 (remote_stopped_data_address): Update.
10569 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10570 * target.c (update_current_target)
10571 (find_default_can_async_p, find_default_is_async_p): Update.
10572 (init_dummy_target): Update.
10573 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10574 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10575 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10576 (target_can_async_p, target_is_async_p, target_async)
10577 (target_stopped_by_watchpoint): Update.
10579 2014-02-19 Yao Qi <yao@codesourcery.com>
10582 * gdbarch.sh: Remove startup_gdbarch.
10583 * gdbarch.c: Regenerated.
10584 * gdbarch.h: Likewise.
10586 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10588 * rl78-tdep.c (rl78_g10_register_name): New function.
10589 (rl78_return_value): Add g10 support.
10590 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10593 2014-02-17 Doug Evans <xdje42@gmail.com>
10595 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10596 (SUBDIR_GUILE_SRCS): Ditto.
10597 (scm-gsmob.o): Ditto.
10599 2014-02-17 Yao Qi <yao@codesourcery.com>
10601 * gnu-nat.c (ILL_RPC): Declare defined function.
10603 2014-02-17 Yao Qi <yao@codesourcery.com>
10605 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10606 mach_msg_type_number_t.
10607 (gnu_write_inferior): Likewise.
10609 2014-02-17 Yao Qi <yao@codesourcery.com>
10611 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10613 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10614 (inf_validate_procs, inf_signal): Likewise.
10615 (S_exception_raise_request): Likewise.
10616 (do_mach_notify_dead_name): Likewise.
10617 (steal_exc_port): Likewise.
10618 (gnu_read_inferior): Change 'copy_count''s type to
10619 mach_msg_type_number_t.
10620 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10623 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10625 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10626 flag. Adjust all users; in particular...
10627 (gnu_wait): ..., don't decrement its value in here...
10628 (gnu_create_inferior): ..., and instead set the flag in here,
10629 around the startup_inferior call, and call that one with
10630 START_INFERIOR_TRAPS_EXPECTED.
10632 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10633 (ILL_RPC): ... new macro.
10634 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10635 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10636 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10637 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10638 functions with ILL_RPC macro.
10639 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10640 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10641 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10642 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10643 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10644 (S_proc_getlogin_reply, S_proc_getsid_reply)
10645 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10646 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10647 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10648 (S_proc_getnports_reply, S_proc_is_important_reply)
10649 (S_proc_get_code_reply): New stub functions, generated with
10652 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10653 collected the type check structures.
10655 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10657 2014-02-14 Doug Evans <dje@google.com>
10659 * target.c (target_write_partial): Fix result type.
10661 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10663 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10664 the proper offsets to access fpregset_t.
10666 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10668 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10669 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10670 * h8300-tdep.c (setmachinelist): Remove global.
10671 * hppa-tdep.c (hppa_sigtramp): Remove global.
10672 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10673 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10674 * ravenscar-thread.c (update_target_observer): Remove global.
10675 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10677 2014-02-12 Tom Tromey <tromey@redhat.com>
10679 * common/rsp-low.c: Update comments.
10680 * common/rsp-low.h: Update comments.
10682 2014-02-12 Tom Tromey <tromey@redhat.com>
10684 * common/rsp-low.c (convert_ascii_to_int): Remove.
10685 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10687 2014-02-12 Tom Tromey <tromey@redhat.com>
10689 * common/rsp-low.h (unhexify): Don't declare.
10690 * common/rsp-low.c (unhexify): Remove.
10692 2014-02-12 Tom Tromey <tromey@redhat.com>
10694 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10695 * common/rsp-low.c (convert_int_to_ascii): Remove.
10697 2014-02-12 Tom Tromey <tromey@redhat.com>
10699 * common/rsp-low.h (hexify): Don't declare.
10700 * common/rsp-low.c (hexify): Remove.
10702 2014-02-12 Tom Tromey <tromey@redhat.com>
10704 * common/rsp-low.c (hexify): Never take strlen of argument.
10706 2014-02-12 Tom Tromey <tromey@redhat.com>
10708 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10709 * remote.c (extended_remote_run, remote_rcmd)
10710 (remote_download_trace_state_variable, remote_save_trace_data)
10711 (remote_set_trace_notes): Update.
10712 * tracepoint.c (encode_source_string, tfile_write_status)
10713 (tfile_write_uploaded_tsv): Update.
10715 2014-02-12 Tom Tromey <tromey@redhat.com>
10717 * tracepoint.c: Include rsp-low.h.
10718 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10719 * remote.c: Include rsp-low.h.
10720 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10721 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10722 (remote_unescape_input): Move to common/rsp-low.c.
10723 * common/rsp-low.h: New file.
10724 * common/rsp-low.c: New file.
10725 * Makefile.in (SFILES): Add common/rsp-low.c.
10726 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10727 (COMMON_OBS): Add rsp-low.o.
10728 (rsp-low.o): New target.
10730 2014-02-12 Tom Tromey <tromey@redhat.com>
10732 * utils.h: Include print-utils.h.
10733 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10734 (int_string, core_addr_to_string, core_addr_to_string_nz)
10735 (hex_string, hex_string_custom): Don't declare.
10736 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10737 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10738 (hex_string_custom, int_string, core_addr_to_string)
10739 (core_addr_to_string_nz, host_address_to_string): Move to
10740 common/print-utils.c.
10741 * common/print-utils.h: New file.
10742 * common/print-utils.c: New file
10743 * Makefile.in (SFILES): Add common/print-utils.c.
10744 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10745 (COMMON_OBS): Add print-utils.o.
10746 (print-utils.o): New target.
10748 2014-02-12 Tom Tromey <tromey@redhat.com>
10750 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10752 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10754 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10756 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10758 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10759 if a PT_IO ptrace request returns sucessfully but indicates that 0
10760 bytes were transferred.
10762 2014-02-12 Pedro Alves <palves@redhat.com>
10763 Kevin Buettner <kevinb@redhat.com>
10765 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10766 TYPE_INSTANCE_FLAG_CODE_SPACE.
10768 2014-02-12 Pedro Alves <palves@redhat.com>
10770 * h8300-tdep.c (pseudo_from_raw_register)
10771 (raw_from_pseudo_register): New functions.
10772 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10775 2014-02-12 Pedro Alves <palves@redhat.com>
10777 * h8300-tdep.c (h8300_register_sim_regno): New function.
10778 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10779 gdbarch_register_sim_regno hook.
10781 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10783 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10785 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10787 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10789 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10791 * obsd-tdep.h (obsd_init_abi): New prototype.
10792 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10793 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10794 (obsd_init_abi): New functions.
10795 * i386obsd-tdep.c: Include "obsd-tdep.h".
10796 (i386obsd_init_abi): Call obsd_init_abi.
10797 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10798 (amd64obsd_init_abi): Call obsd_init_abi.
10799 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10800 obsd-tdep.c to gdb_target_obs.
10802 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10804 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10805 double float arguments to 16-byte in the argument slots.
10807 2014-02-11 Doug Evans <xdje42@gmail.com>
10809 * configure.ac: Don't crash if pkg-config is not found and guile
10810 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10812 * configure: Regenerate.
10814 2014-02-11 Yao Qi <yao@codesourcery.com>
10816 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10817 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10818 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10819 * gnu-nat.c (gnu_xfer_memory): Likewise.
10820 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10821 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10822 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10823 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10825 2014-02-11 Yao Qi <yao@codesourcery.com>
10827 * target.h (enum target_xfer_error): Rename to ...
10828 (enum target_xfer_status): ... it. New. All users updated.
10829 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10831 (TARGET_XFER_STATUS_ERROR_P): New macro.
10832 (target_xfer_error_to_string): Remove declaration.
10833 (target_xfer_status_to_string): Declare.
10834 (target_xfer_partial_ftype): Adjust it.
10835 (struct target_ops) <to_xfer_partial>: Return
10836 target_xfer_status. Add argument xfered_len. Update
10838 * target.c (target_xfer_error_to_string): Rename to ...
10839 (target_xfer_status_to_string): ... it. New. All callers
10841 (target_read_live_memory): Likewise. Call target_xfer_partial
10842 instead of target_read.
10843 (memory_xfer_live_readonly_partial): Return
10844 target_xfer_status. Add argument xfered_len.
10845 (raw_memory_xfer_partial): Likewise.
10846 (memory_xfer_partial_1): Likewise.
10847 (memory_xfer_partial): Likewise.
10848 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10849 properly. Update debug message.
10850 (default_xfer_partial, current_xfer_partial): Likewise.
10851 (target_write_partial): Likewise.
10852 (target_read_partial): Likewise. All callers updated.
10853 (read_whatever_is_readable): Likewise.
10854 (target_write_with_progress): Likewise.
10855 (target_read_alloc_1): Likewise.
10857 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10858 * auxv.c (procfs_xfer_auxv): Likewise.
10859 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10860 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10861 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10862 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10863 * corefile.c (read_memory): Adjust.
10864 * corelow.c (core_xfer_partial): Likewise.
10865 * ctf.c (ctf_xfer_partial): Likewise.
10866 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10868 (darwin_xfer_partial): Likewise.
10869 * exec.c (section_table_xfer_memory_partial): Likewise. All
10871 (exec_xfer_partial): Likewise.
10872 * exec.h (section_table_xfer_memory_partial): Update
10874 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10876 (gnu_xfer_partial): Likewise.
10877 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10878 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10879 (ia64_hpux_xfer_solib_got): Likewise.
10880 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10881 type of 'partial_len' to ULONGEST.
10882 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10883 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10884 (linux_nat_xfer_partial): Likewise.
10885 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10886 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10887 * monitor.c (monitor_xfer_memory): Likewise.
10888 (monitor_xfer_partial): Likewise.
10889 * procfs.c (procfs_xfer_partial): Likewise.
10890 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10891 * record-full.c (record_full_xfer_partial): Likewise.
10892 (record_full_core_xfer_partial): Likewise.
10893 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10894 (gdbsim_xfer_partial): Likewise.
10895 * remote.c (remote_write_bytes_aux): Likewise. All callers
10897 (remote_write_bytes, remote_read_bytes): Likewise. All
10899 (remote_flash_erase): Likewise. All callers updated.
10900 (remote_write_qxfer): Likewise. All callers updated.
10901 (remote_read_qxfer): Likewise. All callers updated.
10902 (remote_xfer_partial): Likewise.
10903 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10904 (rs6000_xfer_shared_libraries): Likewise.
10905 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10906 (sol_thread_xfer_partial): Likewise.
10907 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10908 (sparc_xfer_partial): Likewise.
10909 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10911 (spu_xfer_partial): Likewise.
10912 * spu-multiarch.c (spu_xfer_partial): Likewise.
10913 * tracepoint.c (tfile_xfer_partial): Likewise.
10914 * windows-nat.c (windows_xfer_memory): Likewise.
10915 (windows_xfer_shared_libraries): Likewise.
10916 (windows_xfer_partial): Likewise.
10917 * valprint.c: Replace 'target_xfer_error' with
10918 'target_xfer_status' in comments.
10920 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10922 Checked in by Joel Brobecker <brobecker@adacore.com>.
10923 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10925 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10927 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10928 function parameters.
10930 2014-02-10 Will Newton <will.newton@linaro.org>
10932 * elfread.c (elf_rel_plt_read): Look for a .got section if
10933 looking up .got.plt fails.
10934 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10935 on address passed to elf_gnu_ifunc_record_cache.
10936 (elf_gnu_ifunc_resolve_addr): Likewise.
10937 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10939 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10941 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10942 (X_RETTURN): New macro.
10943 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10945 * sparc64-tdep.c (sparc64_init_abi): Hook
10946 sparc_in_function_epilogue_p.
10948 2014-02-10 Gary Benson <gbenson@redhat.com>
10950 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10951 Rename name_matcher to symbol_matcher.
10953 2014-02-10 Gary Benson <gbenson@redhat.com>
10955 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10956 Use expand_symtabs_file_matcher_ftype and
10957 expand_symtabs_symbol_matcher_ftype.
10959 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10961 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10962 (struct ada_symbol_cache): New.
10963 (ada_free_symbol_cache): Forward declare.
10964 (struct ada_pspace_data): New.
10965 (ada_pspace_data_handle): New static global.
10966 (get_ada_pspace_data, ada_pspace_data_cleanup)
10967 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10968 (cache_space, cache): Delete, now folded inside struct
10970 (ada_get_symbol_cache): New function.
10971 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10973 (_initialize_ada_language): Remove initialization of cache_space.
10974 Move call to observer_attach_inferior_exit up, grouping it
10975 with the other observer registrations inside this function.
10976 Rename command to be more general. Add call to
10977 register_program_space_data_with_cleanup.
10979 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10981 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10982 ada_new_objfile_observer.
10983 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10984 (_initialize_tasks): Update uses of ada_new_objfile_observer
10985 and ada_tasks_normal_stop_observer.
10987 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10989 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10990 returned by the 'Length attribute to integer.
10992 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10994 * ada-lang.c (_initialize_ada_language): Initialize
10995 cache_space obstack.
10997 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10999 * ada-lang.c (HASH_SIZE): New macro.
11000 (struct cache_entry): New type.
11001 (cache_space, cache): New static globals.
11002 (ada_clear_symbol_cache, find_entry): New functions.
11003 (lookup_cached_symbol, cache_symbol): Implement.
11004 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11005 (_initialize_ada_language): Attach ada_new_objfile_observer
11006 and ada_free_objfile_observer.
11008 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11010 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11011 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11012 struct block * parameter.
11013 (ada_lookup_symbol_list_worker): Constify local variable "block".
11014 Remove cast which is no longer necessary.
11016 2014-02-10 Doug Evans <xdje42@gmail.com>
11018 Add Guile as an extension language.
11019 * NEWS: Mention Guile scripting.
11020 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11021 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11022 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11023 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11024 (CLIBS): Add GUILE_LIBS.
11025 (install-guile): New rule.
11026 (guile.o): New rule.
11027 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11028 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11029 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11030 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11031 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11032 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11033 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11034 * configure.ac: New option --with-guile.
11035 * configure: Regenerate.
11036 * config.in: Regenerate.
11037 * auto-load.c: Remove #include "python/python.h". Add #include
11038 "gdb/section-scripts.h".
11039 (source_section_scripts): Handle Guile scripts.
11040 (_initialize_auto_load): Add name of Guile objfile script to
11041 scripts-directory help text.
11042 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11043 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11044 (struct breakpoint): New member scm_bp_object.
11045 * defs.h (enum command_control_type): New value guile_control.
11046 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11048 (show_user): Update comment.
11049 (_initialize_cli_cmds): Update help text for "show user". Update help
11050 text for max-user-call-depth.
11051 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11053 (multi_line_command_p): Add guile_control.
11054 (print_command_lines): Handle guile_control.
11055 (execute_control_command, recurse_read_control_structure): Ditto.
11056 (process_next_line): Recognize "guile" commands.
11057 * disasm.c (gdb_disassemble_info): Make non-static.
11058 * disasm.h: #include "dis-asm.h".
11059 (struct gdbarch): Add forward decl.
11060 (gdb_disassemble_info): Declare.
11061 * extension.c: #include "guile/guile.h".
11062 (extension_languages): Add guile.
11063 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11064 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11065 * gdbtypes.c (get_unsigned_type_max): New function.
11066 (get_signed_type_minmax): New function.
11067 * gdbtypes.h (get_unsigned_type_max): Declare.
11068 (get_signed_type_minmax): Declare.
11069 * guile/README: New file.
11070 * guile/guile-internal.h: New file.
11071 * guile/guile.c: New file.
11072 * guile/guile.h: New file.
11073 * guile/scm-arch.c: New file.
11074 * guile/scm-auto-load.c: New file.
11075 * guile/scm-block.c: New file.
11076 * guile/scm-breakpoint.c: New file.
11077 * guile/scm-disasm.c: New file.
11078 * guile/scm-exception.c: New file.
11079 * guile/scm-frame.c: New file.
11080 * guile/scm-gsmob.c: New file.
11081 * guile/scm-iterator.c: New file.
11082 * guile/scm-lazy-string.c: New file.
11083 * guile/scm-math.c: New file.
11084 * guile/scm-objfile.c: New file.
11085 * guile/scm-ports.c: New file.
11086 * guile/scm-pretty-print.c: New file.
11087 * guile/scm-safe-call.c: New file.
11088 * guile/scm-string.c: New file.
11089 * guile/scm-symbol.c: New file.
11090 * guile/scm-symtab.c: New file.
11091 * guile/scm-type.c: New file.
11092 * guile/scm-utils.c: New file.
11093 * guile/scm-value.c: New file.
11094 * guile/lib/gdb.scm: New file.
11095 * guile/lib/gdb/boot.scm: New file.
11096 * guile/lib/gdb/experimental.scm: New file.
11097 * guile/lib/gdb/init.scm: New file.
11098 * guile/lib/gdb/iterator.scm: New file.
11099 * guile/lib/gdb/printing.scm: New file.
11100 * guile/lib/gdb/types.scm: New file.
11101 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11102 (VPATH): Add $(GUILE_SRCDIR).
11103 (GUILE_DIR): New variable.
11104 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11105 (all): Add stamp-guile dependency.
11106 (stamp-guile): New rule.
11107 (clean-guile, install-guile, uninstall-guile): New rules.
11108 (install-only): Add install-guile dependency.
11109 (uninstall): Add uninstall-guile dependency.
11110 (clean): Add clean-guile dependency.
11112 2014-02-09 Doug Evans <xdje42@gmail.com>
11114 Revert this patch (which I approved, mea culpa).
11116 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11118 * Makefile.in (all-lib): Remove.
11119 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11121 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11123 Fix Python stack corruption.
11124 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11127 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11129 * Makefile.in (all-lib): Remove.
11130 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11132 2014-02-07 Doug Evans <dje@google.com>
11134 * extension-priv.h (extension_language_script_ops): Add comment.
11135 (extension_language_ops): Add comment.
11136 (active_ext_lang_state): Fix typo in comment.
11138 2014-02-07 Pedro Alves <palves@redhat.com>
11140 PR breakpoints/16292
11141 * infrun.c (handle_signal_stop) <signal arrives while stepping
11142 over a breakpoint>: Switch back to the stepping thread.
11144 2014-02-07 Yao Qi <yao@codesourcery.com>
11146 * target.c (target_xfer_partial): Return zero if LEN is zero.
11148 2014-02-07 Yao Qi <yao@codesourcery.com>
11150 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11151 (ld_so_xfer_auxv): Likewise.
11152 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11153 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11154 * corelow.c (core_xfer_partial): Likewise.
11155 * ctf.c (ctf_xfer_partial): Likewise.
11156 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11157 (darwin_xfer_partial): Likewise.
11158 * exec.c (exec_xfer_partial): Likewise.
11159 * gnu-nat.c (gnu_xfer_partial): Likewise.
11160 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11161 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11162 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11163 * linux-nat.c (linux_xfer_siginfo): Likewise.
11164 (linux_proc_xfer_spu): Likewise.
11165 * procfs.c (procfs_xfer_partial): Likewise.
11166 * record-full.c (record_full_xfer_partial): Likewise.
11167 (record_full_core_xfer_partial): Likewise.
11168 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11169 * remote.c (remote_write_qxfer): Likewise.
11170 (remote_write_qxfer, remote_read_qxfer): Likewise.
11171 (remote_xfer_partial): Likewise.
11172 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11173 (rs6000_xfer_shared_libraries): Likewise.
11174 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11175 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11176 (spu_xfer_partial): Likewise.
11177 * target.c (memory_xfer_partial_1): Likewise.
11178 * tracepoint.c (tfile_xfer_partial): Likewise.
11179 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11180 (windows_xfer_partial): Likewise.
11182 2014-02-07 Yao Qi <yao@codesourcery.com>
11184 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11186 (core_xfer_shared_libraries_aix): Likewise.
11187 * gdbarch.c, gdbarch.h: Regenerated.
11188 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11189 ULONGEST. Change 'len_avail' type to ULONGEST.
11190 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11191 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11193 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11195 2014-02-07 Yao Qi <yao@codesourcery.com>
11197 * corefile.c (memory_error): Get 'exception' from ERR and pass
11198 'exception' to throw_error.
11200 2014-02-06 Doug Evans <xdje42@gmail.com>
11202 * configure.ac (libpython checking): Remove all but python.o from
11203 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11204 * configure: Regenerate.
11206 * Makefile.in (SFILES): Add extension.c.
11207 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11208 (COMMON_OBS): Add extension.o.
11209 * extension.h: New file.
11210 * extension-priv.h: New file.
11211 * extension.c: New file.
11213 * python/python-internal.h: #include "extension.h".
11214 (gdbpy_auto_load_enabled): Declare.
11215 (gdbpy_apply_val_pretty_printer): Declare.
11216 (gdbpy_apply_frame_filter): Declare.
11217 (gdbpy_preserve_values): Declare.
11218 (gdbpy_breakpoint_cond_says_stop): Declare.
11219 (gdbpy_breakpoint_has_cond): Declare.
11220 (void source_python_script_for_objfile): Delete.
11221 * python/python.c: #include "extension-priv.h".
11222 Delete inclusion of "observer.h".
11223 (extension_language_python): Moved here and renamed from
11224 script_language_python in py-auto-load.c.
11225 Redefined to be of type extension_language_defn.
11226 (python_extension_script_ops): New global.
11227 (python_extension_ops): New global.
11228 (struct python_env): New member previous_active.
11229 (restore_python_env): Call restore_active_ext_lang.
11230 (ensure_python_env): Call set_active_ext_lang.
11231 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11233 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11235 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11237 (gdbpy_eval_from_control_command): Renamed from
11238 eval_python_from_control_command, made static. New arg extlang.
11239 (gdbpy_source_script) Renamed from source_python_script, made static.
11241 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11242 result to int. New arg extlang.
11243 (gdbpy_source_objfile_script): Renamed from
11244 source_python_script_for_objfile, made static. New arg extlang.
11245 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11246 static. New args extlang, extlang_printers. Change result type to
11248 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11249 static. New arg extlang. Rename arg printers to extlang_printers
11250 and change type to ext_lang_type_printers *.
11251 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11252 static. Replace argument arg with extlang, extlang_printers.
11253 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11254 (!HAVE_PYTHON, source_python_script): Delete.
11255 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11256 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11257 (!HAVE_PYTHON, start_type_printers): Delete.
11258 (!HAVE_PYTHON, apply_type_printers): Delete.
11259 (!HAVE_PYTHON, free_type_printers): Delete.
11260 (_initialize_python): Delete call to observer_attach_before_prompt.
11261 (finalize_python): Set/restore active extension language.
11262 (gdbpy_finish_initialization) Renamed from
11263 finish_python_initialization, made static. New arg extlang.
11264 (gdbpy_initialized): New function.
11265 * python/python.h: #include "extension.h". Delete #include
11266 "value.h", "mi/mi-cmds.h".
11267 (extension_language_python): Declare.
11268 (GDBPY_AUTO_FILE_NAME): Delete.
11269 (enum py_bt_status): Moved to extension.h and renamed to
11270 ext_lang_bt_status.
11271 (enum frame_filter_flags): Moved to extension.h.
11272 (enum py_frame_args): Moved to extension.h and renamed to
11273 ext_lang_frame_args.
11274 (finish_python_initialization): Delete.
11275 (eval_python_from_control_command): Delete.
11276 (source_python_script): Delete.
11277 (apply_val_pretty_printer): Delete.
11278 (apply_frame_filter): Delete.
11279 (preserve_python_values): Delete.
11280 (gdbpy_script_language_defn): Delete.
11281 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11282 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11284 * auto-load.c: #include "extension.h".
11285 (GDB_AUTO_FILE_NAME): Delete.
11286 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11287 (script_language_gdb): Delete, moved to extension.c and renamed to
11288 extension_language_gdb.
11289 (source_gdb_script_for_objfile): Delete.
11290 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11291 (loaded_script): Change type of language member to
11292 struct extension_language_defn *.
11293 (init_loaded_scripts_info): Initialize
11294 unsupported_script_warning_printed.
11295 (maybe_add_script): Make static. Change type of language arg to
11296 struct extension_language_defn *.
11297 (clear_section_scripts): Reset unsupported_script_warning_printed.
11298 (auto_load_objfile_script_1): Rewrite to use extension language API.
11299 (auto_load_objfile_script): Make public. Remove support-compiled-in
11300 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11301 (source_section_scripts): Rewrite to use extension language API.
11302 (load_auto_scripts_for_objfile): Rewrite to use
11303 auto_load_scripts_for_objfile.
11304 (collect_matching_scripts_data): Change type of language member to
11305 struct extension_language_defn *.
11306 (auto_load_info_scripts): Change type of language arg to
11307 struct extension_language_defn *.
11308 (unsupported_script_warning_print): New function.
11309 (script_not_found_warning_print): Make static.
11310 (_initialize_auto_load): Rewrite construction of scripts-directory
11312 * auto-load.h (struct objfile): Add forward decl.
11313 (struct script_language): Delete.
11314 (struct auto_load_pspace_info): Add forward decl.
11315 (struct extension_language_defn): Add forward decl.
11316 (maybe_add_script): Delete.
11317 (auto_load_objfile_script): Declare.
11318 (script_not_found_warning_print): Delete.
11319 (auto_load_info_scripts): Update prototype.
11320 (auto_load_gdb_scripts_enabled): Declare.
11321 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11322 auto_load_python_scripts_enabled and made public.
11323 (script_language_python): Delete, moved to python.c.
11324 (gdbpy_script_language_defn): Delete.
11325 (info_auto_load_python_scripts): Update to use
11326 extension_language_python.
11328 * breakpoint.c (condition_command): Replace call to
11329 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11330 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11331 with call to breakpoint_ext_lang_cond_says_stop.
11332 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11333 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11334 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11335 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11337 (local_setattro): Print name of extension language with existing
11340 * valprint.c (val_print, value_print): Update to call
11341 apply_ext_lang_val_pretty_printer.
11342 * cp-valprint.c (cp_print_value): Update call to
11343 apply_ext_lang_val_pretty_printer.
11344 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11345 (gdbpy_apply_val_pretty_printer): Renamed from
11346 apply_val_pretty_printer. New arg extlang.
11347 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11349 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11350 extension language API.
11351 * cli/cli-script.c (execute_control_command): Update to call
11352 eval_ext_lang_from_control_command.
11354 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11355 enum ext_lang_bt_status values. Update call to
11356 apply_ext_lang_frame_filter.
11357 (mi_cmd_stack_list_locals): Ditto.
11358 (mi_cmd_stack_list_args): Ditto.
11359 (mi_cmd_stack_list_variables): Ditto.
11360 * mi/mi-main.c: Delete #include "python/python-internal.h".
11361 Add #include "extension.h".
11362 (mi_cmd_list_features): Replace reference to python internal variable
11363 gdb_python_initialized with call to ext_lang_initialized_p.
11365 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11366 Update to use enum ext_lang_frame_args. Update to call
11367 apply_ext_lang_frame_filter.
11368 * python/py-framefilter.c (extract_sym): Update to use enum
11369 ext_lang_bt_status.
11370 (extract_value, py_print_type, py_print_value): Ditto.
11371 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11372 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11373 (py_print_frame): Ditto.
11374 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11375 New arg extlang. Update to use enum ext_lang_bt_status.
11377 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11378 finish_python_initialization. Replace with call to
11379 finish_ext_lang_initialization.
11381 * typeprint.c (do_free_global_table): Update to call
11382 free_ext_lang_type_printers.
11383 (create_global_typedef_table): Update to call
11384 start_ext_lang_type_printers.
11385 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11386 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11387 (type_print_options): Change type of global_printers from "void *"
11388 to "struct ext_lang_type_printers *".
11390 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11391 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11392 (gdbpy_preserve_values): Renamed from preserve_python_values.
11394 (!HAVE_PYTHON, preserve_python_values): Delete.
11396 * utils.c (quit_flag): Delete, moved to extension.c.
11397 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11400 * eval.c: Delete #include "python/python.h".
11401 * main.c: Delete #include "python/python.h".
11403 * defs.h: Update comment.
11405 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11409 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11411 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11414 2014-02-05 Yao Qi <yao@codesourcery.com>
11416 * remote.c (remote_pass_signals): Remove local 'buf' and use
11418 (remote_program_signals): Likewise.
11420 2014-02-05 Yao Qi <yao@codesourcery.com>
11422 * ctf.c: Include "inferior.h" and "gdbthread.h".
11423 (CTF_PID): A new macro.
11424 (ctf_open): Call inferior_appeared and add_thread_silent.
11425 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11426 (ctf_thread_alive): New function.
11427 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11429 2014-02-05 Yao Qi <yao@codesourcery.com>
11433 2013-05-24 Yao Qi <yao@codesourcery.com>
11435 * tracepoint.c (TFILE_PID): Remove.
11436 (tfile_open): Don't add thread and inferior.
11437 (tfile_close): Don't set 'inferior_ptid'. Don't call
11438 exit_inferior_silent.
11439 (tfile_thread_alive): Remove.
11440 (init_tfile_ops): Don't set field 'to_thread_alive' of
11443 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11445 * remote.c (remote_start_remote): Call remote_check_symbols even
11446 if only symbol-file (not file) has been given.
11448 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11450 * gdbarch.sh (skip_entrypoint): New callback.
11451 * gdbarch.c, gdbarch.h: Regenerate.
11452 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11453 * infrun.c (fill_in_stop_func): Likewise.
11454 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11455 (ppc_elfv2_elf_make_msymbol_special): New function.
11456 (ppc_elfv2_skip_entrypoint): Likewise.
11457 (ppc_linux_init_abi): Install them for ELFv2.
11459 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11461 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11462 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11463 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11464 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11465 structures returned in GPRs.
11467 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11469 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11470 offset to the stack parameter list for the ELFv2 ABI.
11472 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11474 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11475 set_gdbarch_convert_from_func_ptr_addr and
11476 set_gdbarch_elf_make_msymbol_special for ELFv1.
11477 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11478 function descriptors on ELFv1.
11479 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11480 set up r12 at function entry.
11482 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11484 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11485 (struct gdbarch_tdep): New member elf_abi.
11487 * rs6000-tdep.c: Include "elf/ppc64.h".
11488 (rs6000_gdbarch_init): Detect ELF ABI version.
11490 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11492 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11493 within a register pair holding a DFP 128-bit value on little-endian.
11494 (ppc64_sysv_abi_return_value_base): Likewise.
11495 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11496 (dfp_pseudo_register_write): Likewise.
11498 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11500 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11501 offset on little-endian when passing _Decimal32.
11502 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11504 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11506 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11507 of the overlapped FP register within the VSX register on little-
11509 (efpr_pseudo_register_write): Likewise.
11511 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11513 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11514 offset on little-endian when passing small structures.
11516 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11518 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11519 (struct ppc64_sysv_argpos): New data structure.
11520 (ppc64_sysv_abi_push_float): Remove.
11521 (ppc64_sysv_abi_push_val): New function.
11522 (ppc64_sysv_abi_push_integer): Likewise.
11523 (ppc64_sysv_abi_push_freg): Likewise.
11524 (ppc64_sysv_abi_push_vreg): Likewise.
11525 (ppc64_sysv_abi_push_param): Likewise.
11526 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11527 (ppc64_sysv_abi_return_value_base): New function.
11528 (ppc64_sysv_abi_return_value): Refactor to use it.
11530 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11532 * NEWS: Document new target powerpc64le-*-linux*.
11534 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11536 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11537 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11539 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11540 register set used in ELF core dumps. Add floating-point register set.
11542 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11544 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11545 dwarf2_to_gdb[] table using symbolic constants. Adjust
11546 penultimate entry from number representing the PC register
11547 to symbolic constant representing the MDR register. Add
11548 constant for the PC register to the end of the table.
11550 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11552 * bsd-kvm.c: Include <sys/param.h>
11554 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11556 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11558 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11560 * ada-lang.h (clear_ada_sym_cache): Delete.
11562 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11564 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11566 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11568 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11569 the sigreturn register save area only if the syscall is
11572 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11574 * valops.c (value_slice): Minor reformatting.
11576 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11578 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11580 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11582 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11583 New static globals.
11584 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11585 (ada_ignore_descriptive_types_p): New static global.
11586 (find_parallel_type_by_descriptive_type): Return immediately
11587 if ada_ignore_descriptive_types_p is set.
11588 (_initialize_ada_language): Register new commands "maintenance
11589 set ada", "maintenance show ada", "maintenance set ada
11590 ignore-descriptive-types" and "maintenance show ada
11591 ignore-descriptive-types".
11592 * NEWS: Add entry for new "maint ada set/show
11593 ignore-descriptive-types" commands.
11595 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11597 * record-btrace.c (record_btrace_close): Call btrace_teardown
11600 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11602 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11605 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11607 * ada-typeprint (type_is_full_subrange_of_target_type):
11609 (print_range): Add parameter bounds_prefered_p. If not set,
11610 try printing range types using the name of their base type.
11611 (print_range_type): Add parameter bounds_prefered_p.
11612 Use it in call to print_range.
11613 (print_array_type, ada_print_type): Update calls to print_range
11614 and print_range_type.
11616 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11618 * ada-typeprint.c (print_array_type, print_choices, print_range)
11619 (print_range_bound, print_dynamic_range_bound, print_range_type):
11620 Remove declaration.
11622 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11624 * ada-typeprint.c (print_range): Add missing empty line
11625 after local declaration.
11627 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11629 * ada-valprint.c (print_optional_low_bound): Get index_type's
11630 target type for as long as it is a TYPE_CODE_RANGE.
11632 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11634 * procfs.c (procfs_make_note_section): Remove assertion and
11635 associated comment.
11637 2014-01-24 Yao Qi <yao@codesourcery.com>
11639 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11640 * corelow.c (get_core_siginfo): Likewise.
11642 2014-01-24 Yao Qi <yao@codesourcery.com>
11644 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11645 ULONGEST. Don't check 'len' is negative.
11646 (remote_write_bytes): Change type of 'len' to ULONGEST.
11648 2014-01-23 Tom Tromey <tromey@redhat.com>
11651 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11652 Handle exception from frame.block.
11653 (FrameVars.fetch_frame_locals): Likewise.
11655 2014-01-23 Tom Tromey <tromey@redhat.com>
11658 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11659 on a NULL pointer. Move "goto error" to correct place.
11661 2014-01-23 Tom Tromey <tromey@redhat.com>
11664 * python/py-framefilter.c (apply_frame_filter): Call
11665 ensure_python_env after computing gdbarch.
11667 2014-01-23 Yao Qi <yao@codesourcery.com>
11669 * target.c (raw_memory_xfer_partial): Change argument type
11670 from void * to gdb_byte *.
11671 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11673 2014-01-22 Doug Evans <dje@google.com>
11675 New gdbserver option --debug-format=timestamp.
11676 * NEWS: Mention it.
11678 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11680 * syscalls/s390x-linux.xml: New file.
11681 * syscalls/s390-linux.xml: New file.
11682 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11683 (XML_SYSCALL_FILENAME_S390X): Likewise.
11684 (op_svc): New enum value for SVC opcode.
11685 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11686 (s390_linux_get_syscall_number): New function.
11687 (s390_gdbarch_init): Register '*get_syscall_number' and the
11688 syscall xml file name.
11689 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11690 "s390-linux.xml" and "s390x-linux.xml".
11691 * NEWS: Announce new feature.
11693 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11695 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11697 2014-01-22 Pedro Alves <palves@redhat.com>
11699 * xtensa-config.c: Include defs.h.
11701 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11703 * common/common-utils.h: Add "ARI:" comment beside __func__
11706 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11708 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11709 documentation a bit.
11711 2014-01-21 Roland McGrath <mcgrathr@google.com>
11713 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11714 * configure: Regenerate.
11715 * aclocal.m4: Regenerate.
11716 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11717 New substituted variables.
11718 (install-strip): New target.
11719 (INSTALL_SCRIPT): New substituted variable.
11720 (FLAGS_TO_PASS): Add it.
11721 (install-only): Use $(INSTALL_SCRIPT) rather than
11722 $(INSTALL_PROGRAM) for gcore.
11724 2014-01-20 Tom Tromey <tromey@redhat.com>
11726 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11729 2014-01-20 Tom Tromey <tromey@redhat.com>
11731 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11732 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11733 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11734 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11735 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11736 (struct cmd_list_element) <flags>: Remove.
11737 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11738 doc_allocated>: New fields.
11739 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11741 * maint.c (maintenance_do_deprecate): Update.
11742 * top.c (execute_command): Update.
11744 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11746 * xtensa-linux-nat.c: Include asm/ptrace.h.
11748 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11750 * Makefile.in (SFILES): Add d-support.c.
11751 (COMMON_OBS): Add d-support.o.
11752 * d-lang.h (d_parse_symbol): Add comment, now defined in
11754 * d-lang.c (parse_call_convention)
11755 (parse_attributes, parse_function_types)
11756 (parse_function_args, parse_type, parse_identifier)
11757 (call_convention_p, d_parse_symbol): Move functions to ...
11758 * d-support.c: ... New file.
11760 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11762 * d-lang.h (d_parse_symbol): Add declaration.
11763 * d-lang.c (extract_identifiers)
11764 (extract_type_info): Remove functions.
11765 (parse_call_convention, parse_attributes)
11766 (parse_function_types, parse_function_args)
11767 (parse_type, parse_identifier, call_convention_p)
11768 (d_parse_symbol): New functions.
11769 (d_demangle): Use d_parse_symbol to demangle D symbols.
11771 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11773 * d-lang.h (struct builtin_d_type): New data type.
11774 (builtin_d_type): Add declaration.
11775 * d-lang.c (d_language_arch_info, build_d_types)
11776 (builtin_d_type): New functions.
11777 (enum d_primitive_types): New data type.
11778 (d_language_defn): Change c_language_arch_info to
11779 d_language_arch_info.
11780 (d_type_data): New static variable.
11781 (_initialize_d_language): Initialize d_type_data.
11783 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11785 * d-lang.h (d_main_name): Add declaration.
11786 * d-lang.c (d_main_name): New function.
11787 * symtab.c (find_main_name): Add call to d_main_name.
11789 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11791 * d-lang.c (d_language_defn): Change macro_expansion_c to
11792 macro_expansion_no.
11794 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11796 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11798 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11800 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11801 gdb_exception" declaration.
11802 * remote.c (getpkt_or_notif_sane): Likewise.
11804 2014-01-17 Doug Evans <dje@google.com>
11806 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11807 function, contents of dirnames_to_char_ptr_vec_append moved here.
11808 (delim_string_to_char_ptr_vec): New function.
11809 (dirnames_to_char_ptr_vec_append): Rewrite.
11810 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11812 2014-01-17 Doug Evans <dje@google.com>
11814 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11816 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11817 #include "common-utils.h".
11818 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11819 * common/vec.h (VEC_ASSERT_PASS): Update.
11820 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11821 (MACH_CHECK_ERROR): Update.
11823 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11825 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11827 * gdbarch.h: Regenerate.
11829 2014-01-16 Tom Tromey <tromey@redhat.com>
11831 * value.c (struct value) <regnum>: Move earlier.
11833 2014-01-16 Tom Tromey <tromey@redhat.com>
11835 * remote.c (extended_remote_create_inferior): Rename from
11836 extended_remote_create_inferior_1. Add "ops" argument. Remove
11837 old implementation.
11839 2014-01-16 Pedro Alves <palves@redhat.com>
11841 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11842 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11845 2014-01-16 Doug Evans <dje@google.com>
11847 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11851 * btrace.h (btrace_thread_flag): New.
11852 (struct btrace_thread_info) <flags>: New.
11853 * record-btrace.c (record_btrace_resume_thread)
11854 (record_btrace_find_thread_to_move, btrace_step_no_history)
11855 (btrace_step_stopped, record_btrace_start_replaying)
11856 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11857 (record_btrace_find_resume_thread): New.
11858 (record_btrace_resume, record_btrace_wait): Extend.
11859 (record_btrace_can_execute_reverse): New.
11860 (record_btrace_open): Fail in non-stop mode.
11861 (record_btrace_set_replay): Split into this, ...
11862 (record_btrace_stop_replaying): ... this, ...
11863 (record_btrace_clear_histories): ... and this.
11864 (init_record_btrace_ops): Init to_can_execute_reverse.
11865 * NEWS: Announce it.
11867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11869 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11870 (forward_target_decr_pc_after_break)
11871 (target_decr_pc_after_break): New.
11872 * target.c (forward_target_decr_pc_after_break)
11873 (target_decr_pc_after_break): New.
11874 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11875 instead of gdbarch_decr_pc_after_break.
11876 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11877 instead of gdbarch_decr_pc_after_break.
11878 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11879 instead of gdbarch_decr_pc_after_break.
11880 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11881 instead of gdbarch_decr_pc_after_break.
11882 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11883 instead of gdbarch_decr_pc_after_break.
11884 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11885 instead of gdbarch_decr_pc_after_break.
11887 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11889 * btrace.c: Include regcache.h.
11890 (btrace_add_pc): New.
11891 (btrace_enable): Call btrace_add_pc.
11892 (btrace_is_empty): New.
11893 * btrace.h (btrace_is_empty): New.
11894 * record-btrace.c (require_btrace, record_btrace_info): Call
11897 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11899 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11900 Support delta reads.
11901 (linux_disable_btrace): Change return type.
11902 * common/linux-btrace.h (linux_read_btrace): Change parameters
11903 and return type to allow error reporting. Update users.
11904 (linux_disable_btrace): Change return type. Update users.
11905 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11907 (btrace_error): New.
11908 (btrace_block) <begin>: Comment on BEGIN == 0.
11909 * btrace.c (btrace_compute_ftrace): Start from the end of
11911 (btrace_stitch_trace, btrace_clear_history): New.
11912 (btrace_fetch): Read delta trace, return if replaying.
11913 (btrace_clear): Move clear history code to btrace_clear_history.
11914 (parse_xml_btrace): Throw an error if parsing failed.
11915 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11916 and return type to allow error reporting.
11917 (target_read_btrace): Change parameters and return type to allow
11919 * target.c (target_read_btrace): Update.
11920 * remote.c (remote_read_btrace): Support delta reads. Pass
11922 * NEWS: Announce it.
11924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11926 * record.h (record_btrace_frame_unwind)
11927 (record_btrace_tailcall_frame_unwind): New declarations.
11928 * dwarf2-frame: Include record.h
11929 (dwarf2_frame_cfa): Throw an error for btrace frames.
11930 * record-btrace.c: Include hashtab.h.
11931 (btrace_get_bfun_name): New.
11932 (btrace_call_history): Call btrace_get_bfun_name.
11933 (struct btrace_frame_cache): New.
11935 (bfcache_hash, bfcache_eq, bfcache_new): New.
11936 (btrace_get_frame_function): New.
11937 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11938 (record_btrace_frame_this_id): Compute own id.
11939 (record_btrace_frame_prev_register): Provide PC, throw_error
11940 for all other registers.
11941 (record_btrace_frame_sniffer): Detect btrace frames.
11942 (record_btrace_tailcall_frame_sniffer): New.
11943 (record_btrace_frame_dealloc_cache): New.
11944 (record_btrace_frame_unwind): Add new functions.
11945 (record_btrace_tailcall_frame_unwind): New.
11946 (_initialize_record_btrace): Allocate cache.
11947 * btrace.c (btrace_clear): Call reinit_frame_cache.
11948 * NEWS: Announce it.
11950 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11952 * record-btrace.c (record_btrace_set_replay)
11953 (record_btrace_goto_begin, record_btrace_goto_end)
11954 (record_btrace_goto): New.
11955 (init_record_btrace_ops): Initialize them.
11956 * NEWS: Announce it.
11958 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11960 * record-btrace.c (record_btrace_find_new_threads)
11961 (record_btrace_thread_alive): New.
11962 (init_record_btrace_ops): Initialize to_find_new_threads and
11965 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11967 * record-btrace.c (record_btrace_resume): New.
11968 (record_btrace_wait): New.
11969 (init_record_btrace_ops): Initialize to_wait and to_resume.
11971 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11973 * record-btrace.c (record_btrace_xfer_partial)
11974 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11975 (record_btrace_allow_memory_access): New.
11976 (init_record_btrace_ops): Initialize new methods.
11977 * target.c (raw_memory_xfer_partial): Bail out if target reports
11978 that this memory is not available.
11980 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11982 * target.h (target_ops) <to_insert_breakpoint>
11983 <to_remove_breakpoint>: Add target_ops parameter.
11984 (forward_target_insert_breakpoint): New.
11985 (forward_target_remove_breakpoint): New.
11986 (memory_remove_breakpoint, memory_insert_breakpoint):
11987 Add target_ops parameter.
11988 * target.c (target_insert_breakpoint): Split into this and ...
11989 (forward_target_insert_breakpoint): ... this.
11990 (target_remove_breakpoint): Split into this and ...
11991 (forward_target_remove_breakpoint): ... this.
11992 (debug_to_insert_breakpoint): Add target_ops parameter.
11993 Call forward_target_insert_breakpoint.
11994 (debug_to_remove_breakpoint): Add target_ops parameter.
11995 Call forward_target_remove_breakpoint.
11996 (update_current_target): Do not inherit or default to_insert_breakpoint
11997 and to_remove_breakpoint.
11998 * corelow.c (ignore): Add target_ops parameter.
11999 * exec.c (ignore): Add target_ops parameter.
12000 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12001 Add target_ops parameter.
12002 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12003 Add target_ops parameter.
12004 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12005 Add target_ops parameter.
12006 * record-full.c (record_full_beneath_to_insert_breakpoint)
12007 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12008 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12009 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12010 (record_full_core_remove_breakpoint): Add target_ops parameter.
12012 (record_full_beneath_to_insert_breakpoint_ops)
12013 (record_full_beneath_to_remove_breakpoint_ops)
12014 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12015 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12016 tmp_to_remove_breakpoint_ops,
12017 record_full_beneath_to_insert_breakpoint_ops, and
12018 record_full_beneath_to_remove_breakpoint_ops.
12019 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12020 (m32r_remove_breakpoint): Add target_ops parameter.
12021 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12022 Add target_ops parameter.
12023 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12024 Add target_ops parameter.
12026 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12027 Markus Metzger <markus.t.metzger@intel.com>
12029 * record-btrace.c: Include frame-unwind.h.
12030 (record_btrace_frame_unwind_stop_reason)
12031 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12032 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12034 (init_record_btrace_ops): Install it.
12036 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12038 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12041 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12043 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12046 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12048 * frame-unwind.c: Include target.h.
12049 (frame_unwind_try_unwinder): New function with code from ...
12050 (frame_unwind_find_by_frame): ... here. New variable
12051 unwinder_from_target, call also target_get_unwinder)
12052 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12053 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12054 * target.h (struct target_ops): New fields to_get_unwinder and
12055 to_get_tailcall_unwinder.
12056 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12058 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12060 * record-btrace.c (record_btrace_fetch_registers)
12061 (record_btrace_store_registers)
12062 (record_btrace_to_prepare_to_store): New.
12063 (init_record_btrace_ops): Add the above.
12065 2014-01-16 Tom Tromey <tromey@redhat.com>
12067 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12068 * target.h (struct target_ops) <to_prepare_to_store>: Add
12070 (target_prepare_to_store): Add argument.
12071 * target.c (debug_to_prepare_to_store): Add argument.
12072 (update_current_target): Update.
12073 * remote.c (remote_prepare_to_store): Add 'self' argument.
12074 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12075 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12076 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12077 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12079 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12080 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12081 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12082 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12083 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12085 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12087 * btrace.h (replay) <replay>: New.
12088 (btrace_is_replaying): New.
12089 * btrace.c (btrace_clear): Free replay iterator.
12090 (btrace_is_replaying): New.
12091 * record-btrace.c (record_btrace_is_replaying): New.
12092 (record_btrace_info): Print insn number if replaying.
12093 (record_btrace_insn_history): Start at replay position.
12094 (record_btrace_call_history): Start at replay position.
12095 (init_record_btrace_ops): Init to_record_is_replaying.
12097 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12099 * record-btrace.c (record_btrace_insn_history_range): Include
12101 (record_btrace_insn_history_from): Adjust range.
12102 (record_btrace_call_history_range): Include
12104 (record_btrace_call_history_from): Adjust range.
12105 * NEWS: Announce changes.
12107 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12109 * record.h (enum record_print_flag)
12110 <record_print_indent_calls>: New.
12111 * record.c (get_call_history_modifiers): Recognize /c modifier.
12112 (_initialize_record): Document /c modifier.
12113 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12114 Reorder fields. Optionally indent the function name. Update
12116 * NEWS: Announce changes.
12118 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12120 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12122 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12124 * btrace.c (ftrace_new_function): Start counting at one.
12125 * record-btrace.c (record_btrace_info): Adjust number of calls
12127 * NEWS: Announce it.
12129 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12131 * record-btrace.c (btrace_call_history_insn_range): Print
12132 insn range as [begin, end].
12134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12136 * btrace.h (struct btrace_func_link): New.
12137 (enum btrace_function_flag): New.
12138 (struct btrace_inst): Rename to ...
12139 (struct btrace_insn): ...this. Update all users.
12140 (struct btrace_func) <ibegin, iend>: Remove.
12141 (struct btrace_func_link): New.
12142 (struct btrace_func): Rename to ...
12143 (struct btrace_function): ...this. Update all users.
12144 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12145 (number, level, flags>: New.
12146 (struct btrace_insn_iterator): Rename to ...
12147 (struct btrace_insn_history): ...this.
12149 (struct btrace_insn_iterator, btrace_call_iterator): New.
12150 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12151 (struct btrace_target_info) <begin, end, level>
12152 <insn_history, call_history>: New.
12153 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12154 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12155 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12156 (btrace_call_number, btrace_call_begin, btrace_call_end)
12157 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12158 (btrace_find_function_by_number, btrace_set_insn_history)
12159 (btrace_set_call_history): New.
12160 * btrace.c (btrace_init_insn_iterator)
12161 (btrace_init_func_iterator, compute_itrace): Remove.
12162 (ftrace_print_function_name, ftrace_print_filename)
12163 (ftrace_skip_file): Change
12164 parameter to const.
12165 (ftrace_init_func): Remove.
12166 (ftrace_debug): Use new btrace_function fields.
12167 (ftrace_function_switched): Also consider gaining and
12168 losing symbol information).
12169 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12170 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12171 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12173 (ftrace_new_function): Move. Remove debug print.
12174 (ftrace_update_lines, ftrace_update_insns): New.
12175 (ftrace_update_function): Check for call, ret, and jump.
12176 (compute_ftrace): Renamed to ...
12177 (btrace_compute_ftrace): ...this. Rewritten to compute call
12179 (btrace_fetch, btrace_clear): Updated.
12180 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12181 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12182 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12183 (btrace_call_number, btrace_call_begin, btrace_call_end)
12184 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12185 (btrace_find_function_by_number, btrace_set_insn_history)
12186 (btrace_set_call_history): New.
12187 * record-btrace.c (require_btrace): Use new btrace thread
12189 (record_btrace_info, btrace_insn_history)
12190 (record_btrace_insn_history, record_btrace_insn_history_range):
12191 Use new btrace thread info fields and new iterator.
12192 (btrace_func_history_src_line): Rename to ...
12193 (btrace_call_history_src_line): ...this. Use new btrace
12194 thread info fields.
12195 (btrace_func_history): Rename to ...
12196 (btrace_call_history): ...this. Use new btrace thread info
12197 fields and new iterator.
12198 (record_btrace_call_history, record_btrace_call_history_range):
12199 Use new btrace thread info fields and new iterator.
12201 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12203 * frame.h (frame_id_build_unavailable_stack_special): New.
12204 * frame.c (frame_id_build_unavailable_stack_special): New.
12206 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12208 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12209 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12210 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12212 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12213 (i386_insn_is_jump, i386_jmp_p): New.
12214 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12215 insn_is_jump to gdbarch.
12216 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12217 * gdbarch.h: Regenerated.
12218 * gdbarch.c: Regenerated.
12219 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12220 (default_insn_is_jump): New.
12221 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12222 (default_insn_is_jump): New.
12224 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12226 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12228 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12229 (btrace_read_type) <btrace_read_new>: Change to ...
12230 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12232 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12234 * common/linux-btrace.c (linux_read_btrace): Free trace from
12235 previous iteration.
12237 2014-01-15 Doug Evans <dje@google.com>
12239 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12242 2014-01-15 Tom Tromey <tromey@redhat.com>
12244 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12245 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12246 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12247 (set_objfile_main_name): New function.
12248 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12249 language_of_main>: New fields.
12250 (set_objfile_main_name): Declare.
12251 * symtab.c (find_main_name): Loop over objfiles to find the main
12253 (set_main_name): Now static.
12254 (get_main_info): Add comment.
12255 * symtab.h (set_main_name): Don't declare.
12257 2014-01-15 Tom Tromey <tromey@redhat.com>
12259 * symtab.c (main_progspace_key): New global.
12260 (struct main_info): New.
12261 (name_of_main, language_of_main): Remove.
12262 (get_main_info, main_info_cleanup): New function.
12263 (set_main_name, main_name, main_language): Use get_main_info.
12264 (_initialize_symtab): Initialize main_progspace_key.
12266 2014-01-15 Tom Tromey <tromey@redhat.com>
12268 * dbxread.c (process_one_symbol): Update.
12269 * dwarf2read.c (read_partial_die): Update.
12270 * symfile.c (set_initial_language): Call main_language.
12271 * symtab.c (language_of_main): Now static.
12272 (set_main_name): Add 'lang' parameter.
12273 (find_main_name): Update.
12274 (main_language): New function.
12275 (symtab_observer_executable_changed): Update.
12276 * symtab.h (set_main_name): Update.
12277 (language_of_main): Remove.
12278 (main_language): Declare.
12280 2014-01-15 Tom Tromey <tromey@redhat.com>
12282 * symfile.c (init_entry_point_info): Use new "initialized" field.
12284 * objfiles.h (struct entry_point) <initialized>: New field.
12285 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12286 (struct objfile) <ei>: ...here. Remove.
12287 * objfiles.c (entry_point_address_query): Update.
12289 2014-01-15 Tom Tromey <tromey@redhat.com>
12291 * objfiles.c (entry_point_address_query): Relocate entry point
12293 (objfile_relocate1): Do not relocate entry point address.
12294 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12295 <the_bfd_section_index>: New field.
12296 * symfile.c (init_entry_point_info): Find the entry point's
12299 2014-01-15 Tom Tromey <tromey@redhat.com>
12301 * solib-frv.c (enable_break): Use entry_point_address_query.
12303 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12305 * NEWS: Add note on improved process record-replay on
12306 arm*-linux* targets.
12308 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12310 * arm-tdep.c (enum arm_record_result): New enum.
12311 (arm_record_unsupported_insn): New function.
12312 (arm_record_coproc_data_proc): Removed.
12313 (thumb2_record_ld_st_multiple): New function.
12314 (thumb2_record_ld_st_dual_ex_tbb): New function.
12315 (thumb2_record_data_proc_sreg_mimm): New function.
12316 (thumb2_record_ps_dest_generic): New function.
12317 (thumb2_record_branch_misc_cntrl): New function.
12318 (thumb2_record_str_single_data): New function.
12319 (thumb2_record_ld_mem_hints): New function.
12320 (thumb2_record_ld_word): New function.
12321 (thumb2_record_lmul_lmla_div): New function.
12322 (thumb2_record_decode_insn_handler): New function.
12323 (decode_insn): Add thumb32 instruction handlers.
12325 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12327 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12328 (struct arm_linux_record_tdep): Declare.
12329 (arm_canonicalize_syscall): New function.
12330 (arm_all_but_pc_registers_record): New function.
12331 (arm_linux_syscall_record): New function.
12332 (arm_linux_init_abi): Add syscall recording constructs.
12333 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12334 decoding. (arm_record_coproc_data_proc): Update arm syscall
12336 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12337 <arm_syscall_record>: New field.
12338 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12341 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12343 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12344 register for push instruction recording.
12346 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12348 * arm-tdep.c (thumb_record_misc): Update to correct logical
12349 error while recording ldm, ldmia and pop instructions.
12351 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12353 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12355 2014-01-15 Pedro Alves <palves@redhat.com>
12357 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12358 (go32_resume, go32_fetch_registers, store_register)
12359 (go32_store_registers, go32_prepare_to_store)
12360 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12361 (go32_create_inferior, go32_can_run, go32_terminal_init)
12362 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12365 2014-01-15 Tom Tromey <tromey@redhat.com>
12367 * target.h (async_callback_ftype): New typedef.
12368 (struct target_ops) <to_async>: Use it.
12370 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12372 * python/py-value.c (get_field_type): Remove unnecessary curly
12373 braces for single-statement if block.
12375 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12377 * python/py-type.c (convert_field): Add missing empty line
12378 after declarations.
12380 2014-01-14 Doug Evans <dje@google.com>
12382 * symfile.h (expand_symtabs_matching): Renamed from
12383 expand_partial_symbol_names. Update prototype.
12384 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12385 * symfile.c (expand_symtabs_matching): Renamed from
12386 expand_partial_symbol_names. New args file_matcher, kind.
12387 Rename arg fun to symbol_matcher.
12388 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12389 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12390 ada_expand_partial_symbol_name.
12391 (ada_make_symbol_completion_list): Update to call
12392 expand_symtabs_matching.
12393 (ada_add_global_exceptions): Call expand_symtabs_matching.
12394 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12395 call map_symbol_filenames.
12396 * symtab.c (sources_info): Update to call map_symbol_filenames.
12397 (search_symbols): Call expand_symtabs_matching.
12398 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12399 (default_make_symbol_completion_list_break_on): Update to call
12400 expand_symtabs_matching.
12401 (make_source_files_completion_list): Update to call
12402 map_symbol_filenames.
12404 2014-01-14 Doug Evans <dje@google.com>
12406 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12407 (expand_symtabs_symbol_matcher_ftype): New typedef.
12408 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12409 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12410 * symfile.c (expand_partial_symbol_names): Update to use
12411 expand_symtabs_symbol_matcher_ftype.
12412 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12413 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12414 Arg name_matcher renamed to symbol_matcher.
12415 * psymtab.c (recursively_search_psymtabs): Update to use
12416 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12418 (expand_symtabs_matching_via_partial): Update to use
12419 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12420 Arg name_matcher renamed to symbol_matcher.
12422 2014-01-14 Doug Evans <dje@google.com>
12424 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12425 (map_partial_symbol_filenames): Ditto.
12426 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12427 (map_partial_symbol_filenames): Ditto.
12428 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12429 (map_partial_symbol_filenames): Ditto.
12430 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12431 (map_partial_symbol_filenames): Ditto.
12432 * symtab.c: Delete #include "psymtab.h".
12434 2014-01-14 Pedro Alves <palves@redhat.com>
12435 Tom Tromey <tromey@redhat.com>
12437 * infrun.c (use_displaced_stepping): Use find_record_target
12438 instead of RECORD_IS_USED.
12439 (adjust_pc_after_break): Use record_full_is_used instead of
12441 * record-btrace.c (record_btrace_open): Call record_preopen
12442 instead of checking RECORD_IS_USED.
12443 * record-full.c (record_full_shortname)
12444 (record_full_core_shortname): New globals.
12445 (record_full_is_used): New function.
12446 (find_full_open): Call record_preopen instead of checking
12448 (init_record_full_ops): Set the target's shortname to
12449 record_full_shortname.
12450 (init_record_full_core_ops): Set the target's shortname to
12451 record_full_core_shortname.
12452 * record-full.h (record_full_is_used): Declare.
12453 * record.c (find_record_target): Make extern.
12454 (record_preopen): New function.
12455 * record.h (RECORD_IS_USED): Delete macro.
12456 (find_record_target, record_preopen): Declare functions.
12458 2014-01-14 Yao Qi <yao@codesourcery.com>
12460 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12461 'len''s type to ULONGEST.
12462 (core_xfer_shared_libraries_aix): Likewise.
12463 * gdbarch.c, gdbarch.h: Regenerated.
12464 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12465 Change type of 'len' to ULONGEST.
12466 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12467 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12469 2014-01-14 Yao Qi <yao@codesourcery.com>
12471 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12472 type of 'len' to ULONGEST.
12473 (linux_xfer_osdata_processgroups): Likewise.
12474 (linux_xfer_osdata_threads): Likewise.
12475 (linux_xfer_osdata_fds): Likewise.
12476 (linux_xfer_osdata_isockets): Likewise.
12477 (linux_xfer_osdata_shm): Likewise.
12478 (linux_xfer_osdata_sem): Likewise.
12479 (linux_xfer_osdata_msg): Likewise.
12480 (linux_common_xfer_osdata): Likewise.
12481 (struct osdata_type) <getter>: Likewise.
12482 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12485 2014-01-14 Yao Qi <yao@codesourcery.com>
12487 * target.h (target_xfer_partial_ftype): Update.
12488 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12490 * aix-thread.c (aix_thread_xfer_partial): Change type of
12491 argument 'len' to ULONGEST.
12492 * auxv.c (procfs_xfer_auxv): Likewise.
12493 (ld_so_xfer_auxv): Likewise.
12494 (memory_xfer_auxv): Likewise.
12495 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12496 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12497 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12498 * corelow.c (core_xfer_partial): Likewise.
12499 * ctf.c (ctf_xfer_partial): Likewise.
12500 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12502 (darwin_read_dyld_info): Likewise.
12503 (darwin_xfer_partial): Likewise.
12504 * exec.c (section_table_xfer_memory_partial): Likewise.
12505 (exec_xfer_partial): Likewise.
12506 * exec.h (section_table_xfer_memory_partial): Update
12508 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12509 instead of plongest.
12510 (gnu_xfer_partial): Likewise.
12511 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12512 (ia64_hpux_xfer_solib_got): Likewise.
12513 (ia64_hpux_xfer_partial): Likewise.
12514 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12515 * inf-ptrace.c (inf_ptrace_xfer_partial):
12516 * inf-ttrace.c (inf_ttrace_xfer_partial):
12517 * linux-nat.c (linux_xfer_siginfo): Likewise.
12518 (linux_nat_xfer_partial): Likewise.
12519 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12520 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12521 * monitor.c (monitor_xfer_memory): Likewise.
12522 (monitor_xfer_partial): Likewise.
12523 * procfs.c (procfs_xfer_partial): Likewise.
12524 * record-full.c (record_full_xfer_partial): Likewise.
12525 (record_full_core_xfer_partial): Likewise.
12526 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12527 instead of plongest.
12528 (gdbsim_xfer_partial): Likewise.
12529 * remote.c (remote_xfer_partial): Likewise.
12530 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12531 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12533 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12534 (rs6000_xfer_shared_libraries): Likewise.
12535 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12536 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12537 (sparc_xfer_partial): Likewise.
12538 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12539 (spu_xfer_partial): Likewise.
12540 * spu-multiarch.c (spu_xfer_partial): Likewise.
12541 * target.c (target_read_live_memory): Likewise.
12542 (memory_xfer_live_readonly_partial): Likewise.
12543 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12544 (target_xfer_partial, default_xfer_partial): Likewise.
12545 (current_xfer_partial): Likewise.
12546 * tracepoint.c (tfile_xfer_partial): Likewise.
12547 * windows-nat.c (windows_xfer_memory): Likewise. Call
12548 pulongest instead of plongest.
12549 (windows_xfer_partial): Likewise.
12550 (windows_xfer_shared_libraries): Likewise.
12552 2014-01-14 Yao Qi <yao@codesourcery.com>
12554 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12555 target_xfer_partial_ftype.
12557 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12561 * valops.c (value_struct_elt_bitpos): New function
12562 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12563 object to 'None' if the field name is an empty string ("").
12564 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12565 attribute to look for a field when 'name' is 'None'.
12566 (get_field_type): New function
12568 2014-01-13 Doug Evans <dje@google.com>
12571 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12572 (try_open_dwop_file): Ditto.
12573 * gdb_bfd.c: #include "vec.h".
12574 (bfdp): New typedef.
12575 (struct gdb_bfd_data): New member included_bfds.
12576 (gdb_bfd_unref): Unref all included bfds.
12577 (gdb_bfd_record_inclusion): New function.
12578 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12580 2014-01-13 Tom Tromey <tromey@redhat.com>
12582 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12584 2014-01-13 Tom Tromey <tromey@redhat.com>
12586 * defs.h (use_windows): Remove.
12587 * gdb.c (main): Update.
12588 * main.c (captured_main, gdb_main): Update.
12589 * main.h (struct captured_main_args) <use_windows>: Remove.
12590 * top.c (use_windows): Remove.
12592 2014-01-13 Tom Tromey <tromey@redhat.com>
12594 * defs.h (deprecated_flush_hook): Remove.
12596 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12599 * linux-thread-db.c (try_thread_db_load): Add parameter
12600 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12601 (try_thread_db_load_from_pdir_1): Move it there from here.
12602 (try_thread_db_load_from_sdir): Update caller.
12603 (try_thread_db_load_from_dir): Move it there from here.
12605 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12607 * regformats/regdat.sh: Always rewrite the register file.
12609 2014-01-13 Pedro Alves <palves@redhat.com>
12611 * Makefile.in (CHECK_HEADERS): New variable.
12612 (check-headers:): New rule.
12614 2014-01-13 Tom Tromey <tromey@redhat.com>
12616 * cli/cli-setshow.c (do_set_command): Update.
12617 * defs.h (deprecated_set_hook): Remove.
12618 * top.c (deprecated_set_hook): Remove.
12620 2014-01-13 Pedro Alves <palves@redhat.com>
12622 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12623 the tracepoint if the PC is a pseudo-register.
12625 2014-01-13 Tom Tromey <tromey@redhat.com>
12627 * defs.h (XCALLOC): Remove.
12628 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12629 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12630 * dwarf2loc.c (allocate_piece_closure): Likewise.
12631 * elfread.c (elf_symfile_segments): Likewise.
12632 (elf_symfile_segments): Likewise.
12633 * gdbtypes.c (copy_type_recursive): Likewise.
12634 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12635 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12636 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12638 * mt-tdep.c (mt_gdbarch_init): Likewise.
12639 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12641 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12642 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12643 * registry.c (registry_alloc_data): Likewise.
12644 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12645 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12646 * serial.c (serial_fdopen_ops): Likewise.
12647 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12649 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12650 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12653 2014-01-13 Tom Tromey <tromey@redhat.com>
12655 * defs.h (XMALLOC): Remove.
12656 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12657 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12658 * cli-out.c (struct ui_out *): Likewise.
12659 * cli/cli-dump.c (add_dump_command): Likewise.
12660 (add_dump_command): Likewise.
12661 * complaints.c (get_complaints): Likewise.
12662 (find_complaint): Likewise.
12663 * dwarf2-frame.c (execute_cfa_program): Likewise.
12664 * dwarf2read.c (abbrev_table_read_table): Likewise.
12665 * gdbarch.sh: Likewise.
12666 * gdbarch.c: Rebuild.
12667 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12668 * interps.c (interp_new): Likewise.
12669 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12670 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12671 * mi/mi-console.c (mi_console_file_new): Likewise.
12672 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12673 * mi/mi-out.c (mi_out_new): Likewise.
12674 * mi/mi-parse.c (mi_parse): Likewise.
12675 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12676 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12677 * observer.c (xalloc_observer_list_node): Likewise.
12678 * regcache.c (regcache_xmalloc_1): Likewise.
12679 * reggroups.c (reggroup_new): Likewise.
12680 (_initialize_reggroup): Likewise.
12681 * registry.c (register_data_with_cleanup): Likewise.
12682 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12683 * ser-base.c (serial_ttystate): Likewise.
12684 * ser-mingw.c (make_pipe_state): Likewise.
12685 * ser-pipe.c (pipe_open): Likewise.
12686 * serial.c (serial_open): Likewise.
12687 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12688 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12689 (tui_alloc_win_info): Likewise.
12690 (tui_add_content_elements): Likewise.
12691 * tui/tui-file.c (tui_file_new): Likewise.
12692 * tui/tui-out.c (tui_out_new): Likewise.
12693 * ui-file.c (mem_file_new): Likewise.
12694 * ui-out.c (push_level): Likewise.
12695 (make_cleanup_ui_out_end): Likewise.
12696 (append_header_to_list): Likewise.
12697 (ui_out_new): Likewise.
12698 * user-regs.c (user_reg_add_builtin): Likewise.
12700 2014-01-13 Tom Tromey <tromey@redhat.com>
12702 * defs.h (XZALLOC): Remove.
12703 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12704 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12705 (get_ada_tasks_inferior_data): Likewise.
12706 * auto-load.c (get_auto_load_pspace_data): Likewise.
12707 * auxv.c (get_auxv_inferior_data): Likewise.
12708 * bfd-target.c (target_bfd_reopen): Likewise.
12709 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12710 (deprecated_insert_raw_breakpoint): Likewise.
12711 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12712 * corelow.c (core_open): Likewise.
12713 * darwin-nat.c (darwin_check_new_threads): Likewise.
12714 (darwin_attach_pid): Likewise.
12715 * dummy-frame.c (dummy_frame_push): Likewise.
12716 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12717 * dwarf2loc.c (allocate_piece_closure): Likewise.
12718 * elfread.c (elf_symfile_segments): Likewise.
12719 * eval.c (ptrmath_type_p): Likewise.
12720 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12721 * gdbtypes.c (alloc_type_arch): Likewise.
12722 (alloc_type_instance): Likewise.
12723 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12724 * inf-child.c (inf_child_can_use_agent): Likewise.
12725 * inflow.c (get_inflow_inferior_data): Likewise.
12726 * infrun.c (save_infcall_suspend_state): Likewise.
12727 * jit.c (jit_reader_load): Likewise.
12728 (get_jit_objfile_data): Likewise.
12729 (get_jit_program_space_data): Likewise.
12730 (jit_object_open_impl): Likewise.
12731 (jit_symtab_open_impl): Likewise.
12732 (jit_block_open_impl): Likewise.
12733 (jit_frame_sniffer): Likewise.
12734 * linux-fork.c (add_fork): Likewise.
12735 * maint.c (make_command_stats_cleanup): Likewise.
12736 * objfiles.c (get_objfile_pspace_data): Likewise.
12737 * opencl-lang.c (struct lval_closure): Likewise.
12738 * osdata.c (osdata_start_osdata): Likewise.
12739 * progspace.c (new_address_space): Likewise.
12740 (add_program_space): Likewise.
12741 * remote-sim.c (get_sim_inferior_data): Likewise.
12742 * sh-tdep.c (sh_gdbarch_init): Likewise.
12743 * skip.c (Ignore): Likewise.
12744 (skip_delete_command): Likewise.
12745 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12746 (library_list_start_library): Likewise.
12747 (solib_aix_current_sos): Likewise.
12748 * solib-darwin.c (get_darwin_info): Likewise.
12749 (darwin_current_sos): Likewise.
12750 * solib-dsbt.c (get_dsbt_info): Likewise.
12751 * solib-ia64-hpux.c (new_so_list): Likewise.
12752 (ia64_hpux_get_solib_linkage_addr): Likewise.
12753 * solib-spu.c (append_ocl_sos): Likewise.
12754 (spu_current_sos): Likewise.
12755 * solib-svr4.c (get_svr4_info): Likewise.
12756 (svr4_keep_data_in_core): Likewise.
12757 (library_list_start_library): Likewise.
12758 (svr4_default_sos): Likewise.
12759 (svr4_read_so_list): Likewise.
12760 * solib-target.c (library_list_start_library): Likewise.
12761 (solib_target_current_sos): Likewise.
12762 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12763 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12764 * symfile.c (default_symfile_segments): Likewise.
12765 * target-descriptions.c (tdesc_data_init): Likewise.
12766 (tdesc_create_reg): Likewise.
12767 (struct tdesc_type *): Likewise.
12768 (tdesc_create_vector): Likewise.
12769 (tdesc_set_struct_size): Likewise.
12770 (struct tdesc_type *): Likewise.
12771 (tdesc_free_feature): Likewise.
12772 (tdesc_create_feature): Likewise.
12773 * windows-nat.c (windows_add_thread): Likewise.
12774 (windows_make_so): Likewise.
12775 * xml-support.c (gdb_xml_body_text): Likewise.
12776 (gdb_xml_create_parser_and_cleanup): Likewise.
12777 (xml_process_xincludes): Likewise.
12778 * xml-syscall.c (allocate_syscalls_info): Likewise.
12779 (syscall_create_syscall_desc): Likewise.
12781 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12783 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12784 function, with code from i386_stap_parse_special_token.
12785 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12786 (i386_stap_parse_special_token): Move code to the two functions
12787 above; simplify it.
12789 2014-01-09 Pedro Alves <palves@redhat.com>
12790 Hui Zhu <hui@codesourcery.com>
12793 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12794 bp_err_string. Don't mark the location shlib_disabled if the
12795 error thrown wasn't a generic or memory error. Catch errors
12796 thrown while inserting breakpoints in overlayed code. Output
12797 error message of software breakpoints.
12798 * remote.c (remote_insert_breakpoint): If this breakpoint has
12799 target-side commands but this stub doesn't support Z0 packets,
12800 throw NOT_SUPPORTED_ERROR error.
12801 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12802 * target.h (target_insert_breakpoint): Extend comment.
12803 (target_insert_hw_breakpoint): Add comment.
12805 2014-01-08 Pedro Alves <palves@redhat.com>
12807 * remote.c (remote_add_thread): Add threads silently if starting
12809 (remote_notice_new_inferior): If in all-stop, and starting up,
12810 don't call notice_new_inferior.
12811 (get_current_thread): New function, factored out from ...
12812 (add_current_inferior_and_thread): ... this. Adjust.
12813 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12814 found any thread, then select the remote's current thread as GDB's
12815 current thread too.
12817 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12819 * NEWS: Create a new section for the next release branch.
12820 Rename the section of the current branch, now that it has
12823 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12825 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12826 * version.in: Bump version to 7.7.50.DATE-cvs.
12828 2014-01-08 Yao Qi <yao@codesourcery.com>
12830 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12831 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12832 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12834 2014-01-08 Yao Qi <yao@codesourcery.com>
12836 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12837 return value of bfd_get_filename to symbol_file_add_from_bfd.
12839 2014-01-08 Pierre Muller <muller@sourceware.org>
12842 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12843 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12844 to prim_record_mininal_symbol_and_info.
12845 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12846 in call to prim_record_minimal_symbol_and_info.
12847 (read_pe_exported_syms): Set index field of section_data.
12849 2014-01-07 Andrew Pinski <apinski@cavium.com>
12851 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12852 * features/aarch64.c: Regenerate.
12854 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12856 * target.c (return_null): Define.
12857 (update_current_target): Use it instead of return_zero for
12858 functions that return a pointer.
12860 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12862 * source.c (add_path): Fix check for duplicated paths in the previously
12865 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12867 * ada-lang.c: Remove duplicated include statements.
12868 * alphabsd-nat.c: Ditto.
12869 * amd64-darwin-tdep.c: Ditto.
12870 * amd64fbsd-nat.c: Ditto.
12871 * auto-load.c: Ditto.
12873 * breakpoint.c: Ditto.
12874 * dbxread.c: Ditto.
12875 * fork-child.c: Ditto.
12876 * gdb_usleep.c: Ditto.
12877 * i386-darwin-tdep.c: Ditto.
12878 * i386fbsd-nat.c: Ditto.
12880 * inferior.c: Ditto.
12881 * jv-lang.c: Ditto.
12882 * linux-nat.c: Ditto.
12883 * linux-tdep.c: Ditto.
12884 * m68kbsd-nat.c: Ditto.
12885 * m68klinux-nat.c: Ditto.
12886 * microblaze-tdep.c: Ditto.
12887 * mips-linux-tdep.c: Ditto.
12888 * mn10300-tdep.c: Ditto.
12889 * nto-tdep.c: Ditto.
12890 * opencl-lang.c: Ditto.
12892 * printcmd.c: Ditto.
12893 * regcache.c: Ditto.
12894 * remote-m32r-sdi.c: Ditto.
12896 * symfile.c: Ditto.
12898 * tilegx-linux-nat.c: Ditto.
12899 * tilegx-tdep.c: Ditto.
12900 * tracepoint.c: Ditto.
12902 * vaxbsd-nat.c: Ditto.
12903 * windows-nat.c: Ditto.
12904 * xtensa-tdep.c: Ditto.
12906 2014-01-07 Yao Qi <yao@codesourcery.com>
12908 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12910 2014-01-07 Yao Qi <yao@codesourcery.com>
12911 Joel Brobecker <brobecker@adacore.com>
12913 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12914 (pdc_write_regs): Likewise.
12915 (fetch_regs_kernel_thread): Likewise.
12916 (store_regs_kernel_thread): Likewise.
12918 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12920 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12921 tagged type objects to their actual type.
12923 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12925 * ada-valprint.c (print_field_values): Add "language" parameter.
12926 Update calls to print_field_values and print_variant_part.
12927 Pass new parameter "language" in call to val_print instead
12928 of "current_language". Replace call to ada_val_print by call
12930 (print_variant_part): Add "language" parameter.
12931 (ada_val_print_struct_union): Update call to print_field_values.
12933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12935 * ada-valprint.c (ui_memcpy): Delete.
12936 (ada_print_floating): Update documentation. Add empty line
12937 between between function documentation and implementation.
12938 Delete variable "buffer". Use ui_file_xstrdup in place of
12939 ui_file_put. Minor adjustments following this change.
12941 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12943 * ada-valprint.c (ada_val_print_string): New function,
12944 extracted from ada_val_print_array.
12945 (ada_val_print_array): Replace extracted code by call
12946 to ada_val_print_string followed by a return. Move
12947 "else" branch to the function's top block.
12949 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12951 * ada-valprint.c (ada_val_print_array): Move implementation
12952 down. Rename parameter "offset" and "val" into "offset_aligned"
12953 and "original_value" respectively. Add parameter "offset".
12955 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12957 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12958 re-organizing the code. Change the "???" message printed
12959 when target type is a TYPE_CODE_UNDEF into
12960 "<ref to undefined type>".
12962 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12964 * ada-valprint.c (print_record): Delete, implementation inlined...
12965 (ada_val_print_struct_union): ... here. Remove call to
12966 ada_check_typedef in inlined implementation.
12968 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12970 * ada-valprint.c (ada_val_print_gnat_array): New function,
12971 extracted from ada_val_print_1;
12972 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12973 (ada_val_print_flt, ada_val_print_struct_union)
12974 (ada_val_print_ref): Likewise.
12975 (ada_val_print_1): Delete variables i and elttype.
12976 Replace extracted-out code by call to corresponding
12979 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12981 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12983 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12985 * ada-valprint.c (ada_val_print_1): Replace calls to
12986 ada_val_print_1 by calls to val_print.
12988 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12990 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12991 Update calls to self accordingly. Replace calls to c_val_print
12992 by calls to val_print.
12994 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12996 * ada-valprint.c (print_record): Delete declaration.
12997 (adjust_type_signedness, ada_val_print_1): Likewise.
12998 (ada_val_print): Move function implementation down.
12999 (print_variant_part, print_field_values, print_record):
13000 Move function implementation up.
13002 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13004 * python/py-type.c (typy_get_name): New function.
13005 (type_object_getset): Add entry for attribute "name".
13006 * NEWS: Add entry mentioning this new attribute.
13008 2014-01-07 Yao Qi <yao@codesourcery.com>
13010 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13013 2014-01-07 Yao Qi <yao@codesourcery.com>
13015 * gnu-nat.c (info_port_rights): Add qualifier const to
13018 2014-01-07 Yao Qi <yao@codesourcery.com>
13020 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13022 2014-01-07 Yao Qi <yao@codesourcery.com>
13024 * gnu-nat.c (make_inf) Update declaration.
13025 (make_inf): Make it static.
13026 (inf_set_traced): Likewise.
13027 (inf_port_to_thread, inf_task_died_status): Likewise.
13029 2014-01-07 Yao Qi <yao@codesourcery.com>
13031 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13033 2014-01-07 Yao Qi <yao@codesourcery.com>
13035 * gnu-nat.c (_initialize_gnu_nat): Declare.
13037 2014-01-07 Yao Qi <yao@codesourcery.com>
13039 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13041 (struct gdbarch_info) <byte_order>: Change type to
13043 <byte_order_for_code>: Likewise.
13044 * gdbarch.c, gdbarch.h: Regenerated.
13046 2014-01-06 Sasha Smundak <asmundak@google.com>
13048 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13050 2014-01-06 Tom Tromey <tromey@redhat.com>
13052 * doublest.c (convert_doublest_to_floatformat): Use const, not
13054 * somread.c (som_symtab_read): Likewise.
13056 2014-01-07 Hui Zhu <hui@codesourcery.com>
13058 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13059 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13060 (gdb_bfd_fopen): Ditto.
13061 (gdb_bfd_openr): Ditto.
13062 (gdb_bfd_openw): Ditto.
13063 (gdb_bfd_openr_iovec): Ditto.
13064 (gdb_bfd_fdopenr): Ditto.
13065 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13066 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13068 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13070 * symfile-mem.c (symbol_file_add_from_memory): Removed
13071 gdb_bfd_stash_filename.
13073 2014-01-03 Doug Evans <dje@google.com>
13075 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13078 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13080 Update year range in copyright notice of all files.
13082 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13084 * top.c (print_gdb_version): Set copyright year to 2014.
13086 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13088 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13090 For older changes see ChangeLog-2013.
13096 version-control: never