1 2014-09-25 Pedro Alves <palves@redhat.com>
3 * infrun.c (user_visible_resume_ptid): Don't check
4 singlestep_breakpoints_inserted_p.
6 2014-09-25 Pedro Alves <palves@redhat.com>
8 * breakpoint.c (should_be_inserted): Add debug output.
10 2014-09-25 Pedro Alves <palves@redhat.com>
12 * infrun.c (stepping_past_instruction_at)
13 (clear_exit_convenience_vars): Point at infrun.h instead of
15 (handle_signal_stop): Fix typo.
17 2014-09-24 Yao Qi <yao@codesourcery.com>
19 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
22 2014-09-22 Gary Benson <gbenson@redhat.com>
24 * target.c (target_stop): Updated comment.
26 2014-09-22 Gary Benson <gbenson@redhat.com>
28 * target/target.h (target_stop_ptid): Renamed as...
29 (target_stop_and_wait): New function. Updated comment.
31 (target_continue_ptid): Renamed as...
32 (target_continue_no_signal): New function. Updated comment.
35 2014-09-22 Pedro Alves <palves@redhat.com>
37 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
39 * breakpoint.c (enum ugll_insert_mode): New enum.
40 (always_inserted_mode): Now a plain boolean.
41 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
42 (breakpoints_always_inserted_mode): Delete.
43 (breakpoints_should_be_inserted_now): New function.
44 (insert_breakpoints): Pass UGLL_INSERT to
45 update_global_location_list instead of calling
46 insert_breakpoint_locations manually.
47 (create_solib_event_breakpoint_1): New, factored out from ...
48 (create_solib_event_breakpoint): ... this.
49 (create_and_insert_solib_event_breakpoint): Use
50 create_solib_event_breakpoint_1 instead of calling
51 insert_breakpoint_locations manually.
52 (update_global_location_list): Change parameter type from boolean
53 to enum ugll_insert_mode. All callers adjusted. Adjust to use
54 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
55 (update_global_location_list_nothrow): Change parameter type from
56 boolean to enum ugll_insert_mode.
57 (_initialize_breakpoint): "breakpoint always-inserted" option is
58 now a boolean command. Update help text.
59 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
60 (breakpoints_should_be_inserted_now): New declaration.
61 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
62 Remove breakpoints_always_inserted_mode check.
63 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
64 * remote.c (remote_start_remote): Likewise.
66 2014-09-22 Pedro Alves <palves@redhat.com>
68 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
69 (insert_breakpoints): Don't call insert_breakpoint_locations here.
70 Instead, pass UGLL_INSERT to update_global_location_list.
71 (update_global_location_list): Change parameter type from boolean
72 to enum ugll_insert_mode. All callers adjusted. Adjust to use
73 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
74 (create_solib_event_breakpoint_1): New, factored out from ...
75 (create_solib_event_breakpoint): ... this.
76 (create_and_insert_solib_event_breakpoint): Use
77 create_solib_event_breakpoint_1 instead of calling
78 insert_breakpoint_locations manually.
79 (update_global_location_list): Handle UGLL_INSERT.
81 2014-09-22 Pedro Alves <palves@redhat.com>
83 * breakpoint.c (enum ugll_insert_mode): New enum.
84 (update_global_location_list)
85 (update_global_location_list_nothrow): Change parameter type from
86 boolean to enum ugll_insert_mode. All callers adjusted.
88 2014-09-19 Joel Brobecker <brobecker@adacore.com>
90 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
91 SystemTap support in GDB.
93 2014-09-19 Don Breazeal <donb@codesourcery.com>
95 * linux-nat.c (linux_handle_extended_wait): Call
96 linux_ptrace_get_extended_event.
97 (wait_lwp): Call linux_is_extended_waitstatus.
98 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
99 and linux_is_extended_waitstatus.
100 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
101 linux_ptrace_get_extended_event.
102 (linux_ptrace_get_extended_event): New function.
103 (linux_is_extended_waitstatus): New function.
104 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
105 (linux_is_extended_waitstatus): New declarations.
107 2014-09-19 Yao Qi <yao@codesourcery.com>
109 * dwarf2read.c (dwarf_decode_lines): Update declaration.
110 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
111 comments. Callers update.
112 (dwarf_decode_lines): Likewise.
113 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
114 comments. Skip the line table if 'lowpc' is greater than
115 'address'. Don't check
116 dwarf2_per_objfile->has_section_at_zero.
118 2014-09-18 Doug Evans <dje@google.com>
120 * NEWS: Mention new "producer" attribute of gdb.Symtab.
121 * python/py-symtab.c (stpy_get_producer): New function.
122 (symtab_object_getset): Add "producer" attribute.
124 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
127 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
128 (do_captured_read_memory_integer): Remove.
129 (safe_read_memory_integer): Use target_read_memory directly instead
130 of catching errors in do_captured_read_memory_integer.
132 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
134 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
137 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
139 * objc-lang.c (find_implementation_from_class): Remove dead code.
141 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
144 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
145 "fprintf_unfiltered (gdb_stdlog...)".
147 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
150 * breakpoint.h (struct watchpoint): New fields val_bitpos and
152 * breakpoint.c (watch_command_1): Use these fields to retain
153 bitfield information.
154 (extract_bitfield_from_watchpoint_value): New function.
155 (watchpoint_check): Use it.
156 (update_watchpoint): Use it. Optimize the address and length of a
157 HW watchpoint pointing to a bitfield.
158 * value.h (unpack_value_bitfield): New prototype.
159 * value.c (unpack_value_bitfield): Make extern.
161 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
163 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
165 * gnu-nat.c (inf_threads): New function.
166 * gnu-nat.h (inf_threads_ftype): New typedef.
167 (inf_threads): New declaration.
168 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
169 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
170 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
171 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
172 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
173 (i386_gnu_dr_get_control): New functions.
174 (reg_addr): New structure.
175 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
176 i386 debugging register hooks.
177 * NEWS: Mention this.
179 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
181 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
182 vector data transfer instructions.
183 (arm_record_coproc_data_proc): Updated.
185 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
187 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
188 arm_record_exreg_ld_st_insn.
189 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
192 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
194 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
195 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
196 processing instructions.
198 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
200 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
201 for advance SIMD struct ld/st insn.
202 (thumb2_record_decode_insn_handler): Replace stub handler with
203 thumb2_record_asimd_struct_ld_st.
205 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
207 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
208 for asimd, vfp and coprocessor insns.
209 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
210 and coprocessor insns.
211 (thumb2_record_coproc_insn): New function.
212 (thumb2_record_decode_insn_handler): Update coprocessor insns record
214 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
217 2014-09-13 Doug Evans <xdje42@gmail.com>
219 * NEWS: Mention new "queue-signal" command.
220 * infcmd.c (queue_signal_command): New function.
221 (_initialize_infcmd): Add new queue-signal command.
223 2014-09-13 Doug Evans <xdje42@gmail.com>
225 * linux-nat.c (wait_lwp): Add debugging printf.
226 (linux_nat_wait_1): Ditto.
228 2014-09-12 Pedro Alves <palves@redhat.com>
230 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
231 (create_and_insert_solib_event_breakpoint): New functions.
232 * breakpoint.h (create_and_insert_solib_event_breakpoint)
233 (remove_solib_event_breakpoints_at_next_stop): New declarations.
234 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
235 (remove_dbx_link_breakpoint): Delete function.
236 (insert_dbx_link_bpt_in_file): Use
237 create_and_insert_solib_event_breakpoint instead of
238 deprecated_insert_raw_breakpoint.
239 (procfs_wait): Don't check whether we hit __dbx_link here.
240 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
242 * solib-irix.c (base_breakpoint): Delete global.
243 (disable_break): Delete function.
244 (enable_break): Use create_solib_event_breakpoint
245 instead of deprecated_insert_raw_breakpoint.
246 (irix_solib_handle_event): New function.
247 (irix_solib_create_inferior_hook): Don't run the target or disable
248 the mapping-complete breakpoint here.
249 (_initialize_irix_solib): Install irix_solib_handle_event as
250 so_ops->handle_event hook.
252 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
253 Ulrich Weigand <uweigand@de.ibm.com>
256 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
257 instead of read_memory_unsigned_integer.
259 2014-09-12 Gary Benson <gbenson@redhat.com>
261 * nat/linux-waitpid.c: Include common-defs.h.
262 [GDBSERVER]: Add FIXME comment.
263 [!GDBSERVER]: Don't include defs.h or signal.h.
264 (linux_debug) [!GDBSERVER]: Remove empty block.
266 2014-09-12 Gary Benson <gbenson@redhat.com>
268 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
269 Don't include defs.h or server.h.
271 2014-09-12 Gary Benson <gbenson@redhat.com>
273 * nat/linux-btrace.c: Include common-defs.h.
274 Don't include defs.h, server.h or gdbthread.h.
275 * nat/linux-btrace.h (struct target_ops): New forward declaration.
277 2014-09-12 Gary Benson <gbenson@redhat.com>
279 * common/agent.c: Include common-defs.h.
280 Don't include defs.h or server.h.
281 * common/buffer.c: Likewise.
282 * common/common-debug.c: Likewise.
283 * common/common-utils.c: Likewise.
284 * common/errors.c: Likewise.
285 * common/filestuff.c: Likewise.
286 * common/format.c: Likewise.
287 * common/gdb_vecs.c: Likewise.
288 * common/print-utils.c: Likewise.
289 * common/ptid.c: Likewise.
290 * common/rsp-low.c: Likewise.
291 * common/signals.c: Likewise.
292 * common/vec.c: Likewise.
293 * common/xml-utils.c: Likewise.
294 * nat/linux-osdata.c: Likewise.
295 * nat/linux-procfs.c: Likewise.
296 * nat/linux-ptrace.c: Likewise.
297 * nat/mips-linux-watch.c: Likewise.
298 * target/waitstatus.c: Likewise.
300 2014-09-12 Tom Tromey <tromey@redhat.com>
301 Gary Benson <gbenson@redhat.com>
303 * common/common-regcache.h: New file.
304 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
305 * regcache.h: Include common-regcache.h.
306 (regcache_read_pc): Don't declare.
307 * regcache.c (get_thread_regcache_for_ptid): New function.
308 * nat/linux-btrace.c: Don't include regcache.h.
309 Include common-regcache.h.
310 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
312 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
314 * regcache.h (struct regset): Declare.
316 2014-09-11 Pedro Alves <palves@redhat.com>
319 * main.c: Include "infrun.h".
320 (catch_command_errors, catch_command_errors_const): Wait for the
321 foreground command to complete.
322 * top.c (maybe_wait_sync_command_done): New function, factored out
324 (maybe_wait_sync_command_done): ... here.
325 * top.h (maybe_wait_sync_command_done): New declaration.
327 2014-09-11 Tom Tromey <tromey@redhat.com>
328 Gary Benson <gbenson@redhat.com>
330 * common/symbol.h: New file.
331 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
332 * minsyms.c (find_minimal_symbol_address): New function.
333 * common/agent.c: Include common/symbol.h.
334 [!GDBSERVER]: Don't include objfiles.h.
335 (agent_look_up_symbols): Use find_minimal_symbol_address.
337 2014-09-11 Gary Benson <gbenson@redhat.com>
339 * target/target.h (target_stop_ptid, target_continue_ptid):
341 * target.c (target_stop_ptid, target_continue_ptid): New
343 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
344 (agent_run_command): Always use target_stop_ptid and
345 target_continue_ptid.
347 2014-09-11 Tom Tromey <tromey@redhat.com>
348 Gary Benson <gbenson@redhat.com>
350 * target/target.h: New file.
351 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
352 * target.h: Include target/target.h.
353 (target_read_memory, target_write_memory): Don't declare.
354 * target.c (target_read_uint32): New function.
355 * common/agent.c: Include target/target.h.
356 [!GDBSERVER]: Don't include target.h.
357 (helper_thread_id): Type changed to uint32_t.
358 (agent_get_helper_thread_id): Use target_read_uint32.
359 (agent_run_command): Always use target_read_memory and
361 (agent_capability): Type changed to uint32_t.
362 (agent_capability_check): Use target_read_uint32.
364 2014-09-11 Gary Benson <gbenson@redhat.com>
366 * common/common-debug.h (show_debug_regs): Declare.
367 * common/common-debug.c (show_debug_regs): Define.
368 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
369 all uses with show_debug_regs. Replace all uses that considered
370 debug_hw_points as a multi-value integer with straight boolean
372 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
373 with show_debug_regs.
374 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
375 all uses with show_debug_regs.
376 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
377 uses with show_debug_regs.
379 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
381 * findvar.c (address_from_register): Handle targets requiring
382 a special conversion routine even for plain pointer types.
384 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
386 * rs6000-nat.c (exec_one_dummy_insn): Remove.
387 (store_register): Do not call exec_one_dummy_insn.
389 2014-09-10 Joel Brobecker <brobecker@adacore.com>
391 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
392 dereference it first. Use value_enclosing_type instead of
394 (ada_array_length): Likewise.
396 2014-09-10 Joel Brobecker <brobecker@adacore.com>
398 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
399 Adjust function implementation and documentation accordingly.
400 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
401 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
402 Update call to ada_value_ptr_subscript.
404 2014-09-10 Joel Brobecker <brobecker@adacore.com>
406 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
407 instead of VAL's type.
409 2014-09-10 Joel Brobecker <brobecker@adacore.com>
411 * amd64-linux-nat.c: Add <sys/uio.h> #include.
413 2014-09-09 Doug Evans <xdje42@gmail.com>
416 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
417 last parameter to pkg-config, not first.
418 * configure.ac: Pass --with-guile provided pkg-config path to
419 GDB_GUILE_PROGRAM_NAMES.
420 * configure: Regenerate.
422 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
424 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
427 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
429 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
430 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
431 the list of sections determining GDB_OSABI_IRIX.
433 2014-09-09 James Hogan <james.hogan@imgtec.com>
435 * MAINTAINERS (Write After Approval): Add "James Hogan".
437 2014-09-09 James Hogan <james.hogan@imgtec.com>
439 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
441 2014-09-09 Joel Brobecker <brobecker@adacore.com>
443 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
445 2014-09-08 Doug Evans <xdje42@gmail.com>
448 * guile.c: #include <signal.h>.
449 (_initialize_guile): Block SIGCHLD while initializing Guile.
451 Replaces the following, which is reverted.
453 2014-07-26 Doug Evans <xdje42@gmail.com>
456 * configure.ac: Add check for header gc/gc.h.
457 Add check for function setenv.
458 * configure: Regenerate.
459 * config.in: Regenerate.
460 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
462 2014-09-08 Doug Evans <xdje42@gmail.com>
464 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
465 with named constant. Fix style of pointer comparison.
466 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
468 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
471 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
472 decide whether we display the command on "show user".
473 * cli/cli-script.c (show_user_1): Only verify cmdlines after
474 printing command name.
475 * cli/cli-decode.h (cli_user_command_p): Declare new function.
476 * cli/cli-decode.c (cli_user_command_p): Create helper function
477 to verify whether cmd_list_element is a user-defined command.
479 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
482 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
483 Fix goto out of TRY_CATCH.
485 2014-09-06 Doug Evans <xdje42@gmail.com>
486 Tom Tromey <tromey@redhat.com>
489 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
490 $_any_caller_matches.
491 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
492 * python/lib/gdb/function/caller_is.py: New file.
494 2014-09-06 Doug Evans <xdje42@gmail.com>
496 * infcmd.c (program_info): Fix typo.
498 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
501 * stap-probe.c (stap_parse_single_operand): Delete unused variable
502 'number'. New variable 'has_digit'. Rewrite code to deal with
503 subexpressions on SDT probes.
505 2014-09-04 Pedro Alves <palves@redhat.com>
507 * c-exp.y (parse_number): Skip handling base-switching prefixes if
508 the input is only one character long.
510 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
513 * f-valprint.c (f_val_print): Specify the correct print option to
514 use when printing integer values.
516 2014-09-04 Gary Benson <gbenson@redhat.com>
518 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
519 Remove code to cope with LWPs wrapped as PIDs.
520 Add assertions to ensure no wrapped LWPs are passed.
522 2014-09-04 Pedro Alves <palves@redhat.com>
524 * value.c (value_ranges_copy_adjusted): New function, factored out
526 (value_contents_copy_raw): ... here.
527 (unpack_value_bits_as_long_1): Rename back to ...
528 (unpack_bits_as_long): ... this. Remove 'original_value' and
529 'result' parameters. Change return type to LONGEST.
530 (unpack_value_bits_as_long): Delete.
531 (unpack_value_field_as_long_1): Delete.
532 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
533 (unpack_value_bitfield): New function.
534 (value_field_bitfield): Reimplement using unpack_value_bitfield.
535 (value_fetch_lazy): Use unpack_value_bitfield.
536 * value.h (unpack_value_bits_as_long): Delete declaration.
538 2014-09-03 Sasha Smundak <asmundak@google.com>
540 * python/py-frame.c (frapy_read_register): New function.
542 2014-09-03 James Hogan <james.hogan@imgtec.com>
544 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
545 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
547 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
550 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
552 (add_cmd): Set "completer_handle_brkchars" to NULL.
553 * cli/cli-decode.h (struct cmd_list_element)
554 <completer_handle_brkchars>: New field.
555 * command.h (completer_ftype_void): New typedef.
556 (set_cmd_completer_handle_brkchars): New prototype.
557 * completer.c (set_gdb_completion_word_break_characters): New
559 (complete_line_internal): Call "completer_handle_brkchars"
560 callback from command.
561 * completer.h: Include "command.h".
562 (set_gdb_completion_word_break_characters): New prototype.
563 * python/py-cmd.c (cmdpy_completer_helper): New function.
564 (cmdpy_completer_handle_brkchars): New function.
565 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
566 (cmdpy_init): Set completer_handle_brkchars to
567 cmdpy_completer_handle_brkchars.
569 2014-09-03 Gary Benson <gbenson@redhat.com>
571 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
572 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
573 Loop conditions changed to equivalent form.
574 (struct x86_debug_reg_state): Updated dr_ref_count comment.
575 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
576 ALL_DEBUG_ADDRESS_REGISTERS.
578 2014-09-03 Joel Brobecker <brobecker@adacore.com>
580 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
583 2014-09-02 Doug Evans <dje@google.com>
585 * typeprint.c (find_global_typedef): Fix comment.
587 2014-09-02 Gary Benson <gbenson@redhat.com>
589 * i386-nat.h: Renamed as...
590 * x86-nat.h: New file. All type, function and variable name
591 prefixes changed from "i386_" to "x86_". All references updated.
592 * i386-nat.c: Renamed as...
593 * x86-nat.c: New file. All type, function and variable name
594 prefixes changed from "i386_" to "x86_". All references updated.
595 * common/i386-xstate.h: Renamed as...
596 * common/x86-xstate.h: New file. All type, function and variable
597 name prefixes changed from "i386_" to "x86_". All references
599 * nat/i386-cpuid.h: Renamed as...
600 * nat/x86-cpuid.h: New file. All type, function and variable name
601 prefixes changed from "i386_" to "x86_". All references updated.
602 * nat/i386-gcc-cpuid.h: Renamed as...
603 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
604 name prefixes changed from "i386_" to "x86_". All references
606 * nat/i386-dregs.h: Renamed as...
607 * nat/x86-dregs.h: New file. All type, function and variable name
608 prefixes changed from "i386_" to "x86_". All references updated.
609 * nat/i386-dregs.c: Renamed as...
610 * nat/x86-dregs.c: New file. All type, function and variable name
611 prefixes changed from "i386_" to "x86_". All references updated.
613 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
615 * varobj.c (_initialize_varobj): Move to the end of file.
617 2014-08-29 Gary Benson <gbenson@redhat.com>
619 * common/common-exceptions.h: New file.
620 * common/common-exceptions.c: Likewise.
621 * Makefile.in (SFILES): Add common/common-exceptions.c.
622 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
623 (COMMON_OBS): Add common-exceptions.o.
624 (common-exceptions.o): New rule.
625 * exceptions.h (common-exceptions.h): Include.
626 (gdb_setjmp.h): Do not include.
627 (return_reason): Moved to common-exceptions.h.
628 (enum return_reason): Likewise.
629 (RETURN_MASK): Likewise.
630 (typedef return_mask): Likewise.
631 (enum errors): Likewise.
632 (struct gdb_exception): Likewise.
633 (exceptions_state_mc_init): Likewise.
634 (exceptions_state_mc_action_iter): Likewise.
635 (exceptions_state_mc_action_iter_1): Likewise.
636 (TRY_CATCH): Likewise.
637 (throw_exception): Likewise.
638 (throw_verror): Likewise.
639 (throw_vquit): Likewise.
640 (throw_error): Likewise.
641 (throw_quit): Likewise.
642 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
643 (enum catcher_action): Likewise.
644 (struct catcher): Likewise.
645 (current_catcher): Likewise.
646 (catcher_list_size): Likewise.
647 (exceptions_state_mc_init): Likewise.
648 (catcher_pop): Likewise.
649 (exceptions_state_mc): Likewise.
650 (exceptions_state_mc_action_iter): Likewise.
651 (exceptions_state_mc_action_iter_1): Likewise.
652 (throw_exception): Likewise.
653 (exception_messages): Likewise.
654 (exception_messages_size): Likewise.
655 (throw_it): Likewise.
656 (throw_verror): Likewise.
657 (throw_vquit): Likewise.
658 (throw_error): Likewise.
659 (throw_quit): Likewise.
660 (prepare_to_throw_exception): New function.
662 2014-08-29 Gary Benson <gbenson@redhat.com>
664 * common/gdb_setjmp.h: New file.
665 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
666 * configure.ac: Move sigsetjmp check...
667 * common/common.m4: ...here.
668 * configure: Regenerate.
669 * cp-support.c (SIGJMP_BUF): Delete.
670 (SIGSETJMP): Likewise.
671 (SIGLONGJMP): Likewise.
672 * exceptions.h (gdb_setjmp.h): Include.
673 (setjmp.h): Do not include.
674 (EXCEPTIONS_SIGJMP_BUF): Delete.
675 (EXCEPTIONS_SIGSETJMP): Likewise.
676 (EXCEPTIONS_SIGLONGJMP): Likewise.
677 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
679 * exceptions.c: Likewise.
681 2014-08-29 Gary Benson <gbenson@redhat.com>
683 * cleanups.h: Moved to...
684 * common/cleanups.h: New file.
685 * cleanups.c: Moved to...
686 * common/cleanups.c: New file. Include common-defs.h and
687 cleanups.h. Do not include defs.h.
688 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
689 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
690 (cleanups.o): New rule.
692 2014-08-29 Gary Benson <gbenson@redhat.com>
694 * common/errors.h (internal_warning): New declaration.
695 (internal_vwarning): Likewise.
696 * common/errors.c (internal_warning): New function.
697 * utils.h (internal_warning): Don't declare.
698 (internal_vwarning): Likewise.
699 * utils.c (internal_warning): Removed.
701 2014-08-29 Gary Benson <gbenson@redhat.com>
703 * main.c (captured_main): Use warning during startup.
704 Prefix startup warning messages with command name.
706 2014-08-29 Gary Benson <gbenson@redhat.com>
708 * main.c (captured_main): Handle usage errors with error.
710 2014-08-29 Gary Benson <gbenson@redhat.com>
712 * go32-nat.c (go32_create_inferior): Replace a fprintf/
713 exit pair with a call to error. Wrap the message with _().
715 2014-08-29 Gary Benson <gbenson@redhat.com>
717 * main.c (captured_main): Replace a fprintf/exit
718 pair with a call to error. Wrap the message with _().
720 2014-08-29 Gary Benson <gbenson@redhat.com>
722 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
723 pairs with calls to error. Wrap the message with _().
725 2014-08-29 Gary Benson <gbenson@redhat.com>
727 * utils.c (vwarning): Protect calls to target_terminal_ours
730 2014-08-29 Gary Benson <gbenson@redhat.com>
732 * exceptions.c (print_flush): Protect calls to
733 target_terminal_ours and wrap_here.
735 2014-08-29 Gary Benson <gbenson@redhat.com>
737 * utils.h (filtered_printing_initialized): New declaration.
738 * utils.c (abort_with_message): New function.
739 (internal_vproblem): Use abort_with_message for first level
740 recursive internal problems, and if gdb_stderr is not set up.
741 Protect calls to target_terminal_ours, begin_line and query.
743 2014-08-28 Doug Evans <dje@google.com>
745 * symtab.c (in_prologue): Move definition to better spot.
746 (skip_prologue_using_sal): Ditto.
748 2014-08-28 Doug Evans <dje@google.com>
750 * symtab.c (find_function_start_sal): Move definition to better spot.
752 2014-08-28 Yao Qi <yao@codesourcery.com>
754 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
755 found_stack_adjust in forward scan. Remove condition check
756 on found_stack_adjust which is always true. Indent the code.
758 2014-08-28 Yao Qi <yao@codesourcery.com>
760 * dwarf2read.c (dwarf_decode_lines): Update declaration.
761 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
762 (dwarf_decode_lines): Remove argument
763 want_line_info. Remove condition check on want_line_info.
766 2014-08-27 Doug Evans <dje@google.com>
768 * dwarf2read.c (dwarf_record_line): Fix typo.
770 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
772 * target.h (struct target_ops::to_terminal_save_ours): Remove
774 (target_terminal_save_ours): Remove macro.
775 * target-delegates.c: Regenerate.
776 * inf-child.c (inf_child_target): Don't set the nonexistent
777 field to_terminal_save_ours.
778 * inferior.h (child_terminal_save_ours): Remove declaration.
779 * terminal.h (gdb_save_tty_state): New declaration.
780 * inflow.c (child_terminal_save_ours): Rename to ...
781 (gdb_save_tty_state): ... this.
782 * tui/tui.c: Include terminal.h.
783 (tui_enable): Use gdb_save_tty_state instead of
784 target_terminal_save_ours.
785 (tui_disable): Likewise.
787 2014-08-25 Doug Evans <dje@google.com>
789 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
790 Pass NULL instead of 0 for context pointer.
792 2014-08-25 Yao Qi <yao@codesourcery.com>
794 * dwarf2read.c: Fix grammatical error.
796 2014-08-24 Yao Qi <yao@codesourcery.com>
798 * dwarf2read.c (scan_partial_symbols): Update comments.
799 Rename argument 'need_pc' with 'set_addrmap'.
800 (add_partial_namespace): Rename argument 'need_pc' with
802 (add_partial_module): Likewise.
803 (add_partial_subprogram): Likewise. Update comments.
804 (dwarf2_name): Fix typo.
806 2014-08-22 Doug Evans <dje@google.com>
809 * dwarf2read.c (dwarf_record_line_p): New function.
810 (dwarf_decode_lines_1): Ignore subsequent line number entries
811 for the same line if any entry had a non-zero discriminator.
813 2014-08-22 Doug Evans <dje@google.com>
815 * buildsym.h (record_line_ftype): New typedef.
816 (record_line): Use it.
817 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
818 (dwarf_decode_lines_1): Call them.
820 2014-08-22 Yao Qi <yao@codesourcery.com>
822 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
823 (ctf_end): Remove code.
825 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
827 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
828 (linux_make_corefile_notes): call update_thread_list, protected against
831 2014-08-21 Pedro Alves <palves@redhat.com>
833 * infcmd.c (attach_command): Remove comment.
835 2014-08-21 Bin Cheng <bin.cheng@arm.com>
837 * aarch64-linux-nat.c (dr_changed_t): Change the type from
838 unsigned LONGEST to ULONGEST.
840 2014-08-20 Pedro Alves <palves@redhat.com>
842 * Makefile.in (check-read1): New rule.
844 2014-08-20 Joel Brobecker <brobecker@adacore.com>
846 * value.c (value_from_contents_and_address): Strip resolved_type's
847 typedef layers before checking its TYPE_DATA_LOCATION.
849 2014-08-20 Pedro Alves <palves@redhat.com>
851 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
853 2014-08-20 Yao Qi <yao@codesourcery.com>
855 * amd64-tdep.c (amd64_classify): Add a blank line after the
856 example. Move "*/" to a new line.
857 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
858 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
859 * dwarf2read.c (psymtab_include_file_name): Likewise.
861 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
862 Pedro Alves <palves@redhat.com>
866 * ada-lang.c (coerce_unspec_val_to_type): Use
867 value_contents_copy_raw.
868 * ada-valprint.c (val_print_packed_array_elements): Adjust.
869 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
870 * cp-valprint.c (cp_print_value_fields): Let the common printing
871 code handle optimized out values.
872 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
873 * d-valprint.c (dynamic_array_type): Use
874 value_bits_any_optimized_out.
875 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
876 check_any_valid fields.
877 (check_pieced_value_bits): Delete and inline ...
878 (check_pieced_synthetic_pointer): ... here.
879 (check_pieced_value_validity): Delete.
880 (check_pieced_value_invalid): Delete.
881 (pieced_value_funcs): Remove check_validity and check_any_valid
883 (read_pieced_value): Use mark_value_bits_optimized_out.
884 (write_pieced_value): Switch to use
885 mark_value_bytes_optimized_out.
886 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
887 of assuming the whole value is optimized out.
888 * findvar.c (read_frame_register_value): Remove special handling
889 of optimized out registers.
890 (value_from_register): Use mark_value_bytes_optimized_out.
891 * frame-unwind.c (frame_unwind_got_optimized): Use
892 mark_value_bytes_optimized_out.
893 * jv-valprint.c (java_value_print): Adjust.
894 (java_print_value_fields): Let the common printing code handle
895 optimized out values.
896 * mips-tdep.c (mips_print_register): Remove special handling of
897 optimized out registers.
898 * opencl-lang.c (lval_func_check_validity): Delete.
899 (lval_func_check_any_valid): Delete.
900 (opencl_value_funcs): Remove check_validity and check_any_valid
902 * p-valprint.c (pascal_object_print_value_fields): Let the common
903 printing code handle optimized out values.
904 * stack.c (read_frame_arg): Remove special handling of optimized
905 out values. Fetch both VAL and ENTRYVAL before comparing
906 contents. Adjust to value_available_contents_eq rename.
907 * valprint.c (valprint_check_validity)
908 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
909 (val_print_array_elements): Adjust.
910 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
911 (value_bits_any_optimized_out): New function.
912 (value_entirely_covered_by_range_vector): New function, factored
913 out from value_entirely_unavailable.
914 (value_entirely_unavailable): Reimplement.
915 (value_entirely_optimized_out): New function.
916 (insert_into_bit_range_vector): New function, factored out from
917 mark_value_bits_unavailable.
918 (mark_value_bits_unavailable): Reimplement.
919 (struct ranges_and_idx): New struct.
920 (find_first_range_overlap_and_match): New function, factored out
921 from value_available_contents_bits_eq.
922 (value_available_contents_bits_eq): Rename to ...
923 (value_contents_bits_eq): ... this. Check both unavailable
924 contents and optimized out contents.
925 (value_available_contents_eq): Rename to ...
926 (value_contents_eq): ... this.
927 (allocate_value_lazy): Remove reference to the old optimized_out
929 (allocate_optimized_out_value): Use
930 mark_value_bytes_optimized_out.
931 (require_not_optimized_out): Adjust to check whether the
932 optimized_out vec is empty.
933 (ranges_copy_adjusted): New function, factored out from
934 value_contents_copy_raw.
935 (value_contents_copy_raw): Also copy the optimized out ranges.
936 Assert the destination ranges aren't optimized out.
937 (value_contents_copy): Update comment, remove call to
938 require_not_optimized_out.
939 (value_contents_equal): Adjust to check whether the optimized_out
941 (set_value_optimized_out, value_optimized_out_const): Delete.
942 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
944 (value_entirely_optimized_out, value_bits_valid): Delete.
945 (value_copy): Take a VEC copy of the 'optimized_out' field.
946 (value_primitive_field): Remove special handling of optimized out.
947 (value_fetch_lazy): Assert that lazy values have no unavailable
948 regions. Use value_bits_any_optimized_out. Remove some special
949 handling for optimized out values.
950 * value.h: Add intro comment about <optimized out> and
952 (struct lval_funcs): Remove check_validity and check_any_valid
954 (set_value_optimized_out, value_optimized_out_const): Remove.
955 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
957 (value_bits_any_optimized_out): New declaration.
958 (value_bits_valid): Delete declaration.
959 (value_available_contents_eq): Rename to ...
960 (value_contents_eq): ... this, and extend comments.
962 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
964 Fix -fsanitize=address on unreadable inferior strings.
965 * valprint.c (val_print_string): Fix access before BUFFER.
967 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
969 * target.c (target_struct_size): Remove.
970 (target_struct_allocsize): Remove.
971 (DEFAULT_ALLOCSIZE): Remove.
972 (target_ops_p): New typedef.
973 (DEF_VEC_P (target_ops_p)): New vector type.
974 (target_structs): Change type to VEC (target_ops_p).
975 (add_target_with_completer): Replace "push" code by VEC_safe_push.
976 (find_default_run_target): Rewrite for loop following changes to
979 2014-08-19 Joel Brobecker <brobecker@adacore.com>
981 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
982 Adjust code accordingly. Adjust function description comment.
984 2014-08-19 Yao Qi <yao@codesourcery.com>
986 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
989 2014-08-19 Alan Modra <amodra@gmail.com>
991 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
992 * config.in: Regenerate.
993 * configure: Regenerate.
995 2014-08-19 Tom Tromey <tromey@redhat.com>
996 Gary Benson <gbenson@redhat.com>
998 * common/common-debug.h: New file.
999 * common/common-debug.c: Likewise.
1000 * debug.c: Likewise.
1001 * Makefile.in (SFILES): Add common/common-debug.c.
1002 (HFILES_NO_SRCDIR): Add common/common-debug.h.
1003 (COMMON_OBS): Add common-debug.o and debug.o.
1004 (common-debug.o): New rule.
1005 * common/common-defs.h: Include common-debug.h.
1006 * common/agent.c (debug_agent_printf): New function.
1007 (DEBUG_AGENT): Redefine.
1008 * nat/i386-dregs.c (debug_printf): Undefine.
1010 2014-08-19 Gary Benson <gbenson@redhat.com>
1012 * common/common-defs.h: Include print-utils.h.
1013 * utils.h: Do not include print-utils.h.
1015 2014-08-19 Tom Tromey <tromey@redhat.com>
1016 Gary Benson <gbenson@redhat.com>
1018 * common/common-types.h: New file.
1019 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1020 * common/common-defs.h: Include common-types.h.
1021 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1024 2014-08-19 Tom Tromey <tromey@redhat.com>
1025 Gary Benson <gbenson@redhat.com>
1027 * common/errors.h: New file.
1028 * common/errors.c: Likewise.
1029 * Makefile.in (SFILES): Add common/errors.c.
1030 (HFILES_NO_SRCDIR): Add common/errors.h.
1031 (COMMON_OBS): Add errors.o.
1032 (errors.o): New rule.
1033 * common/common-defs.h: Include errors.h.
1034 * utils.h (perror_with_name, error, verror, warning, vwarning):
1036 * common/common-utils.h: (malloc_failure, internal_error):
1039 2014-08-19 Gary Benson <gbenson@redhat.com>
1041 * utils.c (internal_vproblem): Always print the message.
1043 2014-08-18 Doug Evans <dje@google.com>
1045 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1047 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1049 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1050 Return 0 if TYPE is dynamic.
1051 (print_range): Add handling of dynamic ranges.
1053 2014-08-18 Keven Boell <keven.boell@intel.com>
1054 Joel Brobecker <brobecker@adacore.com>
1056 * gdbtypes.h (struct main_type): Add field "data_location".
1057 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1058 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1059 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1060 a dynamic data location.
1061 (resolve_dynamic_type): Add DW_AT_data_location handling.
1062 (copy_recursive, copy_type): Copy the data_location information
1064 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1065 * value.c (value_from_contents_and_address): Add
1066 DW_AT_data_location handling.
1068 2014-08-18 Keven Boell <keven.boell@intel.com>
1069 Joel Brobecker <brobecker@adacore.com>
1071 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1072 field "get_object_address".
1073 * dwarf2expr.c (execute_stack_op): Add handling for
1074 DW_OP_push_object_address.
1075 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1076 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1077 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1078 (dwarf_expr_get_obj_addr): New function.
1079 (dwarf_expr_ctx_funcs): Add get_object_address field.
1080 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1081 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1082 (dwarf2_evaluate_property): Add parameter "address". Use it.
1083 (needs_get_obj_addr): New function.
1084 (needs_frame_ctx_funcs): Add get_object_address field.
1085 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1086 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1087 (resolve_dynamic_array): Likewise.
1089 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1091 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1092 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1093 fixed value for records and unions for which some GNAT encodings
1096 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1098 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1099 rewrite to avoid "else if" and "else" constructs. Should be
1100 a no-op in practice.
1102 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1104 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1107 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1110 * eval.c: Update all calls to find_overload_match.
1111 * valarith.c: Likewise.
1112 (value_user_defined_cpp_op, value_user_defined_op): New
1113 argument NOSIDE. Update all callers.
1114 * valops.c (find_overload_match): New argument NOSIDE.
1115 * value.h (find_overload_match): Update signature.
1117 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1119 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1120 'items' methods instead of 'iteritems' method on dictionaries.
1122 2014-08-15 Doug Evans <dje@google.com>
1124 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1127 2014-08-15 Doug Evans <dje@google.com>
1129 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1131 2014-08-15 Doug Evans <dje@google.com>
1133 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1135 2014-08-15 Doug Evans <dje@google.com>
1137 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1140 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1142 * dcache.h: Include target.h, to avoid compile time warnings.
1144 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1146 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1147 frame_info" partial declaration.
1148 * gdbarch.h: Regenerate.
1150 2014-08-15 Yao Qi <yao@codesourcery.com>
1152 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1153 Add parameter 'decode_for_pst_p'. Callers update.
1155 2014-08-13 Yao Qi <yao@codesourcery.com>
1158 * configure.ac: Use local variable 'pos'.
1159 * configure: Regenerated.
1161 2014-08-11 Doug Evans <dje@google.com>
1163 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1164 message, it is redundant with "Reading symbols from ..." message.
1166 2014-08-10 Doug Evans <xdje42@gmail.com>
1168 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1170 2014-08-09 Yao Qi <yao@codesourcery.com>
1173 * remote.c (remote_xfer_partial): Remove dead code.
1175 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1177 * ia64-linux-tdep.c: Include "regset.h".
1178 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1179 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1180 (ia64_linux_supply_fpregset): New function.
1181 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1182 (ia64_linux_regset_from_core_section): New function.
1183 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1186 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1188 * m68klinux-tdep.c: Include "regset.h".
1189 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1190 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1191 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1192 (m68k_linux_regset_from_core_section): New function.
1193 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1196 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1198 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1199 function. Move logic to...
1200 (tilegx_linux_regmap): ... this new register map.
1201 (tilegx_linux_regset): Refer to register map, replace supply
1202 method by regcache_supply_regset, and add collect method.
1203 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1204 TILEGX_FIRST_EASY_REGNUM.
1206 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1208 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1209 that calls regcache_supply_regset and handles the EPC register
1210 separately. Move main logic to...
1211 (score7_linux_gregmap): ... this new register map.
1212 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1213 (score7_linux_gregset): Refer to register map. Add collect method.
1214 (score7_linux_regset_from_core_section): Replace
1215 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1216 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1217 (struct regset): Delete unused forward declaraction.
1218 (struct pt_regs): Delete structure definition.
1219 (elf_gregset_t): Delete typedef.
1221 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1223 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1224 (nios2_core_regset): Add collect method.
1226 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1228 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1229 platform-independent and don't write to read-only input buffer.
1230 (m32r_linux_collect_gregset): New function.
1231 (m32r_linux_gregset): Add collect method.
1233 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1235 * hppa-linux-tdep.c (greg_map): Rename to...
1236 (hppa_linux_gregmap): ... this. Also convert to
1237 regcache_map_entry format.
1238 (hppa_linux_supply_regset): Delete function.
1239 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1240 (hppa_linux_fpregmap): ... this new register map.
1241 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1242 register map, replace supply method by regcache_supply_regset, and
1243 add collect method regcache_collect_regset.
1245 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1247 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1248 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1249 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1250 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1251 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1252 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1253 (frv_linux_supply_gregset): Replace main logic by call to
1254 regcache_supply_regset, but keep clearing gr32-gr63.
1255 (frv_linux_supply_fpregset): Delete function.
1256 (frv_linux_gregset): Refer to appropriate register map and add
1257 regcache_collect_regset as the collect method.
1258 (frv_linux_fpregset): Likewise. Also exchange the supply method
1259 by regcache_supply_regset.
1261 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1263 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1264 by call to alpha_supply_int_regs.
1265 (alpha_linux_collect_gregset): New function.
1266 (alpha_linux_supply_fpregset): Replace logic by call to
1267 alpha_supply_fp_regs.
1268 (alpha_linux_collect_fpregset): New function.
1269 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1271 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1273 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1274 by call to regcache_collect_regset.
1275 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1276 instead of aarch64_linux_supply_gregset/_fpregset.
1277 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1278 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1279 header file instead.
1280 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1281 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1282 functions. Move logic to ...
1283 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1285 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1286 refer to new register maps, replace *_regset_from_core by
1287 regcache_supply_regset, and also use regcache_collect_regset.
1288 * aarch64-linux-tdep.h: Include "regset.h".
1289 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1291 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1292 macros, moved from C source file.
1293 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1294 variable declarations.
1296 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1298 * s390-linux-nat.c: Include "regset.h".
1299 (regmap_gregset): Delete macro.
1300 (s390_64_regmap_gregset): New register map for
1301 regcache_supply/_collect_regset.
1302 (s390_64_gregset): New regset.
1303 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1304 (regmap_fpregset): Delete macro.
1305 (s390_native_supply, s390_native_collect): Delete functions.
1306 (supply_gregset, fill_gregset): Replace s390-specific regmap
1307 handling by a call to regcache_supply/_collect_regset.
1308 (supply_fpregset, fill_fpregset): Call regcache_supply/
1309 _collect_regset instead of s390_native_supply/_collect.
1310 (fetch_regset, store_regset): Likewise. Also change the last
1311 parameter to a regset instead of a regmap.
1312 (s390_linux_fetch_inferior_registers)
1313 (390_linux_store_inferior_registers): Adjust last parameter in
1314 calls to fetch_regset and store_regset.
1315 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1316 (s390_gregmap): ... this. Also make static const and convert to
1317 regcache_map_entry format.
1318 (s390x_regmap_gregset): Delete.
1319 (s390_regmap_fpregset): Rename to...
1320 (s390_fpregmap): ... this. Make static const and convert to
1321 regcache_map_entry format.
1322 (s390_regmap_upper, s390_regmap_last_break)
1323 (s390x_regmap_last_break, s390_regmap_system_call)
1324 (s390_regmap_tdb): Likewise.
1325 (s390_supply_regset, s390_collect_regset): Remove functions.
1326 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1328 (s390_gregset, s390_fpregset, s390_upper_regset)
1329 (s390_last_break_regset, s390x_last_break_regset)
1330 (s390_system_call_regset, s390_tdb_regset): Make global and
1331 replace s390_supply/_collect_regset by regcache_supply/
1333 (s390x_gregset): Delete.
1334 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1335 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1336 (s390_regmap_fpregset, s390_regmap_last_break)
1337 (s390x_regmap_last_break, s390_regmap_system_call)
1338 (s390_regmap_tdb): Delete global variable declarations.
1339 (s390_gregset, s390_fpregset, s390_last_break_regset)
1340 (s390x_last_break_regset, s390_system_call_regset)
1341 (s390_tdb_regset): New global variable declarations.
1343 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1345 * regcache.c: Include "regset.h".
1346 (regcache_transfer_regset): New local function.
1347 (regcache_supply_regset, regcache_collect_regset): New functions.
1348 * regcache.h (struct regcache_map_entry): New structure.
1349 (REGCACHE_MAP_SKIP): New enum value.
1350 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1352 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1354 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1355 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1356 (ppc_linux_collect_gregset ): Likewise.
1357 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1358 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1359 (ppc_collect_vrregset): Likewise.
1360 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1363 2014-08-07 Yao Qi <yao@codesourcery.com>
1365 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1366 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1367 * remote.c (remote_read_bytes): Likewise.
1369 2014-08-07 Yao Qi <yao@codesourcery.com>
1371 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1373 2014-08-07 Yao Qi <yao@codesourcery.com>
1376 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1377 TARGET_XFER_OK instead of 0.
1379 2014-08-07 Gary Benson <gbenson@redhat.com>
1381 * common/common-defs.h: Include errno.h.
1382 * defs.h: Do not include errno.h.
1383 * ada-typeprint.c: Likewise.
1384 * c-typeprint.c: Likewise.
1385 * core-regset.c: Likewise.
1386 * corefile.c: Likewise.
1387 * corelow.c: Likewise.
1388 * event-loop.c: Likewise.
1389 * f-typeprint.c: Likewise.
1390 * gnu-nat.c: Likewise.
1391 * go32-nat.c: Likewise.
1392 * i386gnu-nat.c: Likewise.
1393 * m2-typeprint.c: Likewise.
1394 * nat/linux-btrace.c: Likewise.
1395 * p-typeprint.c: Likewise.
1396 * procfs.c: Likewise.
1397 * remote-sim.c: Likewise.
1398 * rs6000-nat.c: Likewise.
1399 * target.c: Likewise.
1400 * typeprint.c: Likewise.
1401 * ui-file.c: Likewise.
1402 * valops.c: Likewise.
1403 * valprint.c: Likewise.
1405 2014-08-07 Gary Benson <gbenson@redhat.com>
1407 * common/common-defs.h: Include string.h.
1408 * aarch64-tdep.c: Do not include string.h.
1409 * ada-exp.y: Likewise.
1410 * ada-lang.c: Likewise.
1411 * ada-lex.l: Likewise.
1412 * ada-typeprint.c: Likewise.
1413 * ada-valprint.c: Likewise.
1414 * aix-thread.c: Likewise.
1415 * alpha-linux-tdep.c: Likewise.
1416 * alpha-mdebug-tdep.c: Likewise.
1417 * alpha-nat.c: Likewise.
1418 * alpha-osf1-tdep.c: Likewise.
1419 * alpha-tdep.c: Likewise.
1420 * alphanbsd-tdep.c: Likewise.
1421 * amd64-dicos-tdep.c: Likewise.
1422 * amd64-linux-tdep.c: Likewise.
1423 * amd64-nat.c: Likewise.
1424 * amd64-sol2-tdep.c: Likewise.
1425 * amd64fbsd-tdep.c: Likewise.
1426 * amd64obsd-tdep.c: Likewise.
1427 * arch-utils.c: Likewise.
1428 * arm-linux-nat.c: Likewise.
1429 * arm-linux-tdep.c: Likewise.
1430 * arm-tdep.c: Likewise.
1431 * arm-wince-tdep.c: Likewise.
1432 * armbsd-tdep.c: Likewise.
1433 * armnbsd-nat.c: Likewise.
1434 * armnbsd-tdep.c: Likewise.
1435 * armobsd-tdep.c: Likewise.
1436 * avr-tdep.c: Likewise.
1437 * ax-gdb.c: Likewise.
1438 * ax-general.c: Likewise.
1439 * bcache.c: Likewise.
1440 * bfin-tdep.c: Likewise.
1441 * breakpoint.c: Likewise.
1442 * build-id.c: Likewise.
1443 * buildsym.c: Likewise.
1444 * c-exp.y: Likewise.
1445 * c-lang.c: Likewise.
1446 * c-typeprint.c: Likewise.
1447 * c-valprint.c: Likewise.
1448 * charset.c: Likewise.
1449 * cli-out.c: Likewise.
1450 * cli/cli-cmds.c: Likewise.
1451 * cli/cli-decode.c: Likewise.
1452 * cli/cli-dump.c: Likewise.
1453 * cli/cli-interp.c: Likewise.
1454 * cli/cli-logging.c: Likewise.
1455 * cli/cli-script.c: Likewise.
1456 * cli/cli-setshow.c: Likewise.
1457 * cli/cli-utils.c: Likewise.
1458 * coffread.c: Likewise.
1459 * common/agent.c: Likewise.
1460 * common/buffer.c: Likewise.
1461 * common/buffer.h: Likewise.
1462 * common/common-utils.c: Likewise.
1463 * common/filestuff.c: Likewise.
1464 * common/filestuff.c: Likewise.
1465 * common/format.c: Likewise.
1466 * common/print-utils.c: Likewise.
1467 * common/rsp-low.c: Likewise.
1468 * common/signals.c: Likewise.
1469 * common/vec.h: Likewise.
1470 * common/xml-utils.c: Likewise.
1471 * core-regset.c: Likewise.
1472 * corefile.c: Likewise.
1473 * corelow.c: Likewise.
1474 * cp-abi.c: Likewise.
1475 * cp-name-parser.y: Likewise.
1476 * cp-support.c: Likewise.
1477 * cp-valprint.c: Likewise.
1478 * cris-tdep.c: Likewise.
1479 * d-exp.y: Likewise.
1480 * darwin-nat.c: Likewise.
1481 * dbxread.c: Likewise.
1482 * dcache.c: Likewise.
1483 * demangle.c: Likewise.
1484 * dicos-tdep.c: Likewise.
1485 * disasm.c: Likewise.
1486 * doublest.c: Likewise.
1487 * dsrec.c: Likewise.
1488 * dummy-frame.c: Likewise.
1489 * dwarf2-frame.c: Likewise.
1490 * dwarf2loc.c: Likewise.
1491 * dwarf2read.c: Likewise.
1492 * elfread.c: Likewise.
1493 * environ.c: Likewise.
1495 * event-loop.c: Likewise.
1496 * exceptions.c: Likewise.
1498 * expprint.c: Likewise.
1499 * f-exp.y: Likewise.
1500 * f-lang.c: Likewise.
1501 * f-typeprint.c: Likewise.
1502 * f-valprint.c: Likewise.
1503 * fbsd-nat.c: Likewise.
1504 * findcmd.c: Likewise.
1505 * findvar.c: Likewise.
1506 * fork-child.c: Likewise.
1507 * frame.c: Likewise.
1508 * frv-linux-tdep.c: Likewise.
1509 * frv-tdep.c: Likewise.
1511 * gdb_bfd.c: Likewise.
1512 * gdbarch.c: Likewise.
1513 * gdbarch.sh: Likewise.
1514 * gdbtypes.c: Likewise.
1515 * gnu-nat.c: Likewise.
1516 * gnu-v2-abi.c: Likewise.
1517 * gnu-v3-abi.c: Likewise.
1518 * go-exp.y: Likewise.
1519 * go-lang.c: Likewise.
1520 * go32-nat.c: Likewise.
1521 * guile/guile.c: Likewise.
1522 * guile/scm-auto-load.c: Likewise.
1523 * hppa-hpux-tdep.c: Likewise.
1524 * hppa-linux-nat.c: Likewise.
1525 * hppanbsd-tdep.c: Likewise.
1526 * hppaobsd-tdep.c: Likewise.
1527 * i386-cygwin-tdep.c: Likewise.
1528 * i386-dicos-tdep.c: Likewise.
1529 * i386-linux-tdep.c: Likewise.
1530 * i386-nto-tdep.c: Likewise.
1531 * i386-sol2-tdep.c: Likewise.
1532 * i386-tdep.c: Likewise.
1533 * i386bsd-tdep.c: Likewise.
1534 * i386gnu-nat.c: Likewise.
1535 * i386nbsd-tdep.c: Likewise.
1536 * i386obsd-tdep.c: Likewise.
1537 * i387-tdep.c: Likewise.
1538 * ia64-libunwind-tdep.c: Likewise.
1539 * ia64-linux-nat.c: Likewise.
1540 * inf-child.c: Likewise.
1541 * inf-ptrace.c: Likewise.
1542 * inf-ttrace.c: Likewise.
1543 * infcall.c: Likewise.
1544 * infcmd.c: Likewise.
1545 * inflow.c: Likewise.
1546 * infrun.c: Likewise.
1547 * interps.c: Likewise.
1548 * iq2000-tdep.c: Likewise.
1549 * irix5-nat.c: Likewise.
1550 * jv-exp.y: Likewise.
1551 * jv-lang.c: Likewise.
1552 * jv-typeprint.c: Likewise.
1553 * jv-valprint.c: Likewise.
1554 * language.c: Likewise.
1555 * linux-fork.c: Likewise.
1556 * linux-nat.c: Likewise.
1557 * lm32-tdep.c: Likewise.
1558 * m2-exp.y: Likewise.
1559 * m2-typeprint.c: Likewise.
1560 * m32c-tdep.c: Likewise.
1561 * m32r-linux-nat.c: Likewise.
1562 * m32r-linux-tdep.c: Likewise.
1563 * m32r-rom.c: Likewise.
1564 * m32r-tdep.c: Likewise.
1565 * m68hc11-tdep.c: Likewise.
1566 * m68k-tdep.c: Likewise.
1567 * m68kbsd-tdep.c: Likewise.
1568 * m68klinux-nat.c: Likewise.
1569 * m68klinux-tdep.c: Likewise.
1570 * m88k-tdep.c: Likewise.
1571 * machoread.c: Likewise.
1572 * macrocmd.c: Likewise.
1574 * mdebugread.c: Likewise.
1575 * mem-break.c: Likewise.
1576 * memattr.c: Likewise.
1577 * memory-map.c: Likewise.
1578 * mep-tdep.c: Likewise.
1579 * mi/mi-cmd-break.c: Likewise.
1580 * mi/mi-cmd-disas.c: Likewise.
1581 * mi/mi-cmd-env.c: Likewise.
1582 * mi/mi-cmd-stack.c: Likewise.
1583 * mi/mi-cmd-var.c: Likewise.
1584 * mi/mi-cmds.c: Likewise.
1585 * mi/mi-console.c: Likewise.
1586 * mi/mi-getopt.c: Likewise.
1587 * mi/mi-interp.c: Likewise.
1588 * mi/mi-main.c: Likewise.
1589 * mi/mi-parse.c: Likewise.
1590 * microblaze-rom.c: Likewise.
1591 * microblaze-tdep.c: Likewise.
1592 * mingw-hdep.c: Likewise.
1593 * minidebug.c: Likewise.
1594 * minsyms.c: Likewise.
1595 * mips-irix-tdep.c: Likewise.
1596 * mips-linux-tdep.c: Likewise.
1597 * mips-tdep.c: Likewise.
1598 * mips64obsd-tdep.c: Likewise.
1599 * mipsnbsd-tdep.c: Likewise.
1600 * mipsread.c: Likewise.
1601 * mn10300-linux-tdep.c: Likewise.
1602 * mn10300-tdep.c: Likewise.
1603 * monitor.c: Likewise.
1604 * moxie-tdep.c: Likewise.
1605 * mt-tdep.c: Likewise.
1606 * nat/linux-btrace.c: Likewise.
1607 * nat/linux-osdata.c: Likewise.
1608 * nat/linux-procfs.c: Likewise.
1609 * nat/linux-ptrace.c: Likewise.
1610 * nat/linux-waitpid.c: Likewise.
1611 * nbsd-tdep.c: Likewise.
1612 * nios2-linux-tdep.c: Likewise.
1613 * nto-procfs.c: Likewise.
1614 * nto-tdep.c: Likewise.
1615 * objc-lang.c: Likewise.
1616 * objfiles.c: Likewise.
1617 * opencl-lang.c: Likewise.
1618 * osabi.c: Likewise.
1619 * osdata.c: Likewise.
1620 * p-exp.y: Likewise.
1621 * p-lang.c: Likewise.
1622 * p-typeprint.c: Likewise.
1623 * parse.c: Likewise.
1624 * posix-hdep.c: Likewise.
1625 * ppc-linux-nat.c: Likewise.
1626 * ppc-sysv-tdep.c: Likewise.
1627 * ppcfbsd-tdep.c: Likewise.
1628 * ppcnbsd-tdep.c: Likewise.
1629 * ppcobsd-tdep.c: Likewise.
1630 * printcmd.c: Likewise.
1631 * procfs.c: Likewise.
1632 * prologue-value.c: Likewise.
1633 * python/py-auto-load.c: Likewise.
1634 * python/py-gdb-readline.c: Likewise.
1635 * ravenscar-thread.c: Likewise.
1636 * regcache.c: Likewise.
1637 * registry.c: Likewise.
1638 * remote-fileio.c: Likewise.
1639 * remote-m32r-sdi.c: Likewise.
1640 * remote-mips.c: Likewise.
1641 * remote-notif.c: Likewise.
1642 * remote-sim.c: Likewise.
1643 * remote.c: Likewise.
1644 * reverse.c: Likewise.
1645 * rs6000-aix-tdep.c: Likewise.
1646 * ser-base.c: Likewise.
1647 * ser-go32.c: Likewise.
1648 * ser-mingw.c: Likewise.
1649 * ser-pipe.c: Likewise.
1650 * ser-tcp.c: Likewise.
1651 * ser-unix.c: Likewise.
1652 * serial.c: Likewise.
1653 * sh-tdep.c: Likewise.
1654 * sh64-tdep.c: Likewise.
1655 * shnbsd-tdep.c: Likewise.
1657 * sol-thread.c: Likewise.
1658 * solib-dsbt.c: Likewise.
1659 * solib-frv.c: Likewise.
1660 * solib-osf.c: Likewise.
1661 * solib-som.c: Likewise.
1662 * solib-spu.c: Likewise.
1663 * solib-target.c: Likewise.
1664 * solib.c: Likewise.
1665 * somread.c: Likewise.
1666 * source.c: Likewise.
1667 * sparc-nat.c: Likewise.
1668 * sparc-sol2-tdep.c: Likewise.
1669 * sparc-tdep.c: Likewise.
1670 * sparc64-tdep.c: Likewise.
1671 * sparc64fbsd-tdep.c: Likewise.
1672 * sparc64nbsd-tdep.c: Likewise.
1673 * sparcnbsd-tdep.c: Likewise.
1674 * spu-linux-nat.c: Likewise.
1675 * spu-multiarch.c: Likewise.
1676 * spu-tdep.c: Likewise.
1677 * stabsread.c: Likewise.
1678 * stack.c: Likewise.
1679 * std-regs.c: Likewise.
1680 * symfile.c: Likewise.
1681 * symmisc.c: Likewise.
1682 * symtab.c: Likewise.
1683 * target.c: Likewise.
1684 * thread.c: Likewise.
1685 * tilegx-linux-nat.c: Likewise.
1686 * tilegx-tdep.c: Likewise.
1688 * tracepoint.c: Likewise.
1689 * tui/tui-command.c: Likewise.
1690 * tui/tui-data.c: Likewise.
1691 * tui/tui-disasm.c: Likewise.
1692 * tui/tui-file.c: Likewise.
1693 * tui/tui-layout.c: Likewise.
1694 * tui/tui-out.c: Likewise.
1695 * tui/tui-regs.c: Likewise.
1696 * tui/tui-source.c: Likewise.
1697 * tui/tui-stack.c: Likewise.
1698 * tui/tui-win.c: Likewise.
1699 * tui/tui-windata.c: Likewise.
1700 * tui/tui-winsource.c: Likewise.
1701 * typeprint.c: Likewise.
1702 * ui-file.c: Likewise.
1703 * ui-out.c: Likewise.
1704 * user-regs.c: Likewise.
1705 * utils.c: Likewise.
1706 * v850-tdep.c: Likewise.
1707 * valarith.c: Likewise.
1708 * valops.c: Likewise.
1709 * valprint.c: Likewise.
1710 * value.c: Likewise.
1711 * varobj.c: Likewise.
1712 * vax-tdep.c: Likewise.
1713 * vaxnbsd-tdep.c: Likewise.
1714 * vaxobsd-tdep.c: Likewise.
1715 * windows-nat.c: Likewise.
1716 * xcoffread.c: Likewise.
1717 * xml-support.c: Likewise.
1718 * xstormy16-tdep.c: Likewise.
1719 * xtensa-linux-nat.c: Likewise.
1721 2014-08-07 Gary Benson <gbenson@redhat.com>
1723 * common/common-defs.h: Include gdb_assert.h.
1724 * aarch64-tdep.c: Do not include gdb_assert.h.
1725 * addrmap.c: Likewise.
1726 * aix-thread.c: Likewise.
1727 * alpha-linux-tdep.c: Likewise.
1728 * alpha-mdebug-tdep.c: Likewise.
1729 * alphanbsd-tdep.c: Likewise.
1730 * amd64-nat.c: Likewise.
1731 * amd64-tdep.c: Likewise.
1732 * amd64bsd-nat.c: Likewise.
1733 * amd64fbsd-nat.c: Likewise.
1734 * amd64fbsd-tdep.c: Likewise.
1735 * amd64nbsd-nat.c: Likewise.
1736 * amd64nbsd-tdep.c: Likewise.
1737 * amd64obsd-nat.c: Likewise.
1738 * amd64obsd-tdep.c: Likewise.
1739 * arch-utils.c: Likewise.
1740 * arm-tdep.c: Likewise.
1741 * armbsd-tdep.c: Likewise.
1743 * bcache.c: Likewise.
1744 * bfin-tdep.c: Likewise.
1745 * blockframe.c: Likewise.
1746 * breakpoint.c: Likewise.
1747 * bsd-kvm.c: Likewise.
1748 * bsd-uthread.c: Likewise.
1749 * buildsym.c: Likewise.
1750 * c-exp.y: Likewise.
1751 * c-lang.c: Likewise.
1752 * charset.c: Likewise.
1753 * cleanups.c: Likewise.
1754 * cli-out.c: Likewise.
1755 * cli/cli-decode.c: Likewise.
1756 * cli/cli-dump.c: Likewise.
1757 * cli/cli-logging.c: Likewise.
1758 * cli/cli-script.c: Likewise.
1759 * cli/cli-utils.c: Likewise.
1760 * coffread.c: Likewise.
1761 * common/common-utils.c: Likewise.
1762 * common/queue.h: Likewise.
1763 * common/signals.c: Likewise.
1764 * common/vec.h: Likewise.
1765 * complaints.c: Likewise.
1766 * completer.c: Likewise.
1767 * corelow.c: Likewise.
1768 * cp-abi.c: Likewise.
1769 * cp-name-parser.y: Likewise.
1770 * cp-namespace.c: Likewise.
1771 * cp-support.c: Likewise.
1772 * cris-tdep.c: Likewise.
1773 * dbxread.c: Likewise.
1774 * dictionary.c: Likewise.
1775 * doublest.c: Likewise.
1776 * dsrec.c: Likewise.
1777 * dummy-frame.c: Likewise.
1778 * dwarf2-frame-tailcall.c: Likewise.
1779 * dwarf2-frame.c: Likewise.
1780 * dwarf2expr.c: Likewise.
1781 * dwarf2loc.c: Likewise.
1782 * dwarf2read.c: Likewise.
1784 * event-loop.c: Likewise.
1785 * exceptions.c: Likewise.
1786 * expprint.c: Likewise.
1787 * f-valprint.c: Likewise.
1788 * fbsd-nat.c: Likewise.
1789 * findvar.c: Likewise.
1790 * frame-unwind.c: Likewise.
1791 * frame.c: Likewise.
1792 * frv-tdep.c: Likewise.
1793 * gcore.c: Likewise.
1794 * gdb-dlfcn.c: Likewise.
1795 * gdb_bfd.c: Likewise.
1796 * gdbarch.c: Likewise.
1797 * gdbarch.sh: Likewise.
1798 * gdbtypes.c: Likewise.
1799 * gnu-nat.c: Likewise.
1800 * gnu-v3-abi.c: Likewise.
1801 * go-lang.c: Likewise.
1802 * guile/scm-exception.c: Likewise.
1803 * guile/scm-gsmob.c: Likewise.
1804 * guile/scm-lazy-string.c: Likewise.
1805 * guile/scm-math.c: Likewise.
1806 * guile/scm-pretty-print.c: Likewise.
1807 * guile/scm-safe-call.c: Likewise.
1808 * guile/scm-utils.c: Likewise.
1809 * guile/scm-value.c: Likewise.
1810 * h8300-tdep.c: Likewise.
1811 * hppa-hpux-nat.c: Likewise.
1812 * hppa-tdep.c: Likewise.
1813 * hppanbsd-tdep.c: Likewise.
1814 * hppaobsd-tdep.c: Likewise.
1815 * i386-darwin-nat.c: Likewise.
1816 * i386-darwin-tdep.c: Likewise.
1817 * i386-nto-tdep.c: Likewise.
1818 * i386-tdep.c: Likewise.
1819 * i386bsd-nat.c: Likewise.
1820 * i386fbsd-tdep.c: Likewise.
1821 * i386gnu-nat.c: Likewise.
1822 * i386nbsd-tdep.c: Likewise.
1823 * i386obsd-tdep.c: Likewise.
1824 * i387-tdep.c: Likewise.
1825 * ia64-libunwind-tdep.c: Likewise.
1826 * ia64-tdep.c: Likewise.
1827 * inf-ptrace.c: Likewise.
1828 * inf-ttrace.c: Likewise.
1829 * infcall.c: Likewise.
1830 * infcmd.c: Likewise.
1831 * infrun.c: Likewise.
1832 * inline-frame.c: Likewise.
1833 * interps.c: Likewise.
1834 * jv-lang.c: Likewise.
1835 * jv-typeprint.c: Likewise.
1836 * linux-fork.c: Likewise.
1837 * linux-nat.c: Likewise.
1838 * linux-thread-db.c: Likewise.
1839 * m32c-tdep.c: Likewise.
1840 * m32r-linux-nat.c: Likewise.
1841 * m32r-tdep.c: Likewise.
1842 * m68k-tdep.c: Likewise.
1843 * m68kbsd-nat.c: Likewise.
1844 * m68kbsd-tdep.c: Likewise.
1845 * m88k-tdep.c: Likewise.
1846 * machoread.c: Likewise.
1847 * macroexp.c: Likewise.
1848 * macrotab.c: Likewise.
1849 * maint.c: Likewise.
1850 * mdebugread.c: Likewise.
1851 * memory-map.c: Likewise.
1852 * mep-tdep.c: Likewise.
1853 * mi/mi-common.c: Likewise.
1854 * microblaze-tdep.c: Likewise.
1855 * mingw-hdep.c: Likewise.
1856 * mips-linux-nat.c: Likewise.
1857 * mips-linux-tdep.c: Likewise.
1858 * mips-tdep.c: Likewise.
1859 * mips64obsd-tdep.c: Likewise.
1860 * mipsnbsd-tdep.c: Likewise.
1861 * mn10300-linux-tdep.c: Likewise.
1862 * mn10300-tdep.c: Likewise.
1863 * moxie-tdep.c: Likewise.
1864 * mt-tdep.c: Likewise.
1865 * nat/linux-btrace.c: Likewise.
1866 * nat/linux-osdata.c: Likewise.
1867 * nat/linux-ptrace.c: Likewise.
1868 * nat/mips-linux-watch.c: Likewise.
1869 * nios2-linux-tdep.c: Likewise.
1870 * nios2-tdep.c: Likewise.
1871 * objc-lang.c: Likewise.
1872 * objfiles.c: Likewise.
1873 * obsd-nat.c: Likewise.
1874 * opencl-lang.c: Likewise.
1875 * osabi.c: Likewise.
1876 * parse.c: Likewise.
1877 * ppc-linux-nat.c: Likewise.
1878 * ppc-sysv-tdep.c: Likewise.
1879 * ppcfbsd-nat.c: Likewise.
1880 * ppcfbsd-tdep.c: Likewise.
1881 * ppcnbsd-nat.c: Likewise.
1882 * ppcnbsd-tdep.c: Likewise.
1883 * ppcobsd-nat.c: Likewise.
1884 * ppcobsd-tdep.c: Likewise.
1885 * printcmd.c: Likewise.
1886 * procfs.c: Likewise.
1887 * prologue-value.c: Likewise.
1888 * psymtab.c: Likewise.
1889 * python/py-lazy-string.c: Likewise.
1890 * python/py-value.c: Likewise.
1891 * regcache.c: Likewise.
1892 * reggroups.c: Likewise.
1893 * registry.c: Likewise.
1894 * remote-sim.c: Likewise.
1895 * remote.c: Likewise.
1896 * rs6000-aix-tdep.c: Likewise.
1897 * rs6000-tdep.c: Likewise.
1898 * s390-linux-tdep.c: Likewise.
1899 * score-tdep.c: Likewise.
1900 * ser-base.c: Likewise.
1901 * ser-mingw.c: Likewise.
1902 * sh-tdep.c: Likewise.
1903 * sh64-tdep.c: Likewise.
1904 * solib-darwin.c: Likewise.
1905 * solib-spu.c: Likewise.
1906 * solib-svr4.c: Likewise.
1907 * source.c: Likewise.
1908 * sparc-nat.c: Likewise.
1909 * sparc-sol2-tdep.c: Likewise.
1910 * sparc-tdep.c: Likewise.
1911 * sparc64-sol2-tdep.c: Likewise.
1912 * sparc64-tdep.c: Likewise.
1913 * sparc64fbsd-tdep.c: Likewise.
1914 * sparc64nbsd-tdep.c: Likewise.
1915 * sparc64obsd-tdep.c: Likewise.
1916 * sparcnbsd-tdep.c: Likewise.
1917 * sparcobsd-tdep.c: Likewise.
1918 * spu-multiarch.c: Likewise.
1919 * spu-tdep.c: Likewise.
1920 * stabsread.c: Likewise.
1921 * stack.c: Likewise.
1922 * symfile.c: Likewise.
1923 * symtab.c: Likewise.
1924 * target-descriptions.c: Likewise.
1925 * target-memory.c: Likewise.
1926 * target.c: Likewise.
1927 * tic6x-linux-tdep.c: Likewise.
1928 * tic6x-tdep.c: Likewise.
1929 * tilegx-linux-nat.c: Likewise.
1930 * tilegx-tdep.c: Likewise.
1932 * tramp-frame.c: Likewise.
1933 * tui/tui-out.c: Likewise.
1934 * tui/tui-winsource.c: Likewise.
1935 * ui-out.c: Likewise.
1936 * user-regs.c: Likewise.
1937 * utils.c: Likewise.
1938 * v850-tdep.c: Likewise.
1939 * valops.c: Likewise.
1940 * value.c: Likewise.
1941 * varobj.c: Likewise.
1942 * vax-nat.c: Likewise.
1943 * xml-syscall.c: Likewise.
1944 * xml-tdesc.c: Likewise.
1945 * xstormy16-tdep.c: Likewise.
1946 * xtensa-linux-nat.c: Likewise.
1947 * xtensa-tdep.c: Likewise.
1949 2014-08-07 Gary Benson <gbenson@redhat.com>
1951 * common/common-defs.h: Include common-utils.h.
1952 * defs.h: Do not include common-utils.h.
1953 * common/gdb_assert.h: Likewise.
1954 * darwin-nat.h: Likewise.
1955 * nat/linux-btrace.c: Likewise.
1956 * target/waitstatus.h: Likewise.
1958 2014-08-07 Gary Benson <gbenson@redhat.com>
1960 * common/common-defs.h: Include ptid.h.
1961 * defs.h: Do not include ptid.h.
1962 * inferior.h: Likewise.
1963 * infrun.h: Likewise.
1964 * nat/linux-btrace.h: Likewise.
1965 * nat/linux-osdata.h: Likewise.
1966 * target/waitstatus.h: Likewise.
1968 2014-08-07 Gary Benson <gbenson@redhat.com>
1970 * common/common-defs.h: Include gdb_locale.h.
1971 * defs.h: Do not include gdb_locale.h.
1973 2014-08-07 Gary Benson <gbenson@redhat.com>
1975 * common/common-defs.h: Include gdb/signals.h.
1976 * defs.h: Do not include gdb/signals.h.
1978 2014-08-07 Gary Benson <gbenson@redhat.com>
1980 * common/common-defs.h: Include pathmax.h.
1981 * defs.h: Do not include pathmax.h.
1983 2014-08-07 Gary Benson <gbenson@redhat.com>
1985 * common/common-defs.h: Include libiberty.h.
1986 * defs.h: Do not include libiberty.h.
1987 * common/queue.h: Likewise.
1988 * cp-name-parser.y: Likewise.
1989 * mi/mi-cmd-catch.c: Likewise.
1990 * python/python.c: Likewise.
1992 2014-08-07 Gary Benson <gbenson@redhat.com>
1994 * common/common-defs.h: Include ansidecl.h.
1995 * defs.h: Do not include ansidecl.h.
1996 * common/buffer.h: Likewise.
1997 * common/common-utils.h: Likewise.
1999 2014-08-07 Gary Benson <gbenson@redhat.com>
2001 * common/common-defs.h: Include stddef.h.
2002 * defs.h: Do not include stddef.h.
2003 * common/common-utils.h: Likewise.
2004 * amd64fbsd-nat.c: Likewise.
2005 * bcache.c: Likewise.
2006 * charset.c: Likewise.
2007 * common/buffer.h: Likewise.
2008 * common/vec.h: Likewise.
2009 * i386bsd-nat.c: Likewise.
2010 * nat/linux-btrace.h: Likewise.
2011 * ppcfbsd-nat.c: Likewise.
2012 * ppcnbsd-tdep.h: Likewise.
2013 * ppcobsd-nat.c: Likewise.
2014 * ppcobsd-tdep.h: Likewise.
2015 * python/py-gdb-readline.c: Likewise.
2017 2014-08-07 Gary Benson <gbenson@redhat.com>
2019 * common/common-defs.h: Include stdarg.h.
2020 * defs.h: Do not include stdarg.h.
2021 * ada-lang.c: Likewise.
2022 * common/common-utils.h: Likewise.
2023 * guile/scm-string.c: Likewise.
2024 * guile/scm-utils.c: Likewise.
2025 * m32c-tdep.c: Likewise.
2027 2014-08-07 Gary Benson <gbenson@redhat.com>
2029 * common/common-defs.h: Include stdlib.h.
2030 * defs.h: Do not include stdlib.h.
2031 * addrmap.c: Likewise.
2032 * bcache.c: Likewise.
2033 * common/buffer.c: Likewise.
2034 * common/common-utils.c: Likewise.
2035 * cp-name-parser.y: Likewise.
2036 * go32-nat.c: Likewise.
2037 * mn10300-linux-tdep.c: Likewise.
2038 * nat/linux-osdata.c: Likewise.
2039 * tui/tui.c: Likewise.
2040 * windows-nat.c: Likewise.
2042 2014-08-07 Gary Benson <gbenson@redhat.com>
2044 * common/common-defs.h: Include stdio.h.
2045 * defs.h: Do not include stdio.h.
2046 * ada-lang.c: Likewise.
2047 * common/buffer.c: Likewise.
2048 * common/common-utils.c: Likewise.
2049 * cp-name-parser.y: Likewise.
2050 * gnu-nat.c: Likewise.
2051 * go32-nat.c: Likewise.
2052 * i386gnu-nat.c: Likewise.
2053 * proc-api.c: Likewise.
2054 * proc-events.c: Likewise.
2055 * proc-flags.c: Likewise.
2056 * proc-why.c: Likewise.
2057 * python/python-internal.h: Likewise.
2058 * target-memory.c: Likewise.
2059 * tui/tui-io.c: Likewise.
2060 * tui/tui.c: Likewise.
2062 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2064 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2065 (scan_dyntag_auxv): Same.
2067 2014-08-06 Yao Qi <yao@codesourcery.com>
2069 * amd64-linux-nat.c: Remove duplicated include
2071 * i386-linux-nat.c: Likewise.
2073 2014-08-06 Yao Qi <yao@codesourcery.com>
2075 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2076 operand" with "Special opcode" in comments.
2078 2014-08-05 Gary Benson <gbenson@redhat.com>
2080 * interps.c (initialize_interps): Remove prototype.
2081 (interpreter_initialized): Remove static global.
2082 (interp_add): Do not call initialize_interps.
2083 (initialize_interps): Remove function.
2085 2014-08-05 Gary Benson <gbenson@redhat.com>
2087 * utils.c (vwarning): Remove spurious va_end.
2089 2014-08-05 Alan Modra <amodra@gmail.com>
2091 * charset.c (convert_between_encodings): Cast result of obstack_base.
2092 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2093 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2094 (read_unwind_info): Use size_t for some locals.
2095 * jit.c (finalize_symtab): Likewise.
2096 * utils.c (hashtab_obstack_allocate): Likewise.
2097 * symmisc.c (print_objfile_statistics): Update format strings.
2099 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2101 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2102 (Changes in GDB 7.8): ... here.
2104 2014-08-04 Tom Tromey <tromey@redhat.com>
2106 * target.c (set_targetdebug): New function.
2107 (initialize_targets): Pass set_targetdebug when creating "set
2110 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2112 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2113 if detecting a variable-sized field that is not the last field.
2114 Fix struct type length computation.
2116 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2118 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2121 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2123 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2124 Remove "+ 8" offset in computation of CHAIN_VMA.
2126 2014-07-31 Doug Evans <dje@google.com>
2128 * inflow.c (child_terminal_inferior): Add comment.
2129 (child_terminal_ours_for_output): Add comment.
2130 (child_terminal_ours): Add comment.
2131 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2132 (linux_nat_terminal_ours): Add comment.
2134 2014-07-31 Gary Benson <gbenson@redhat.com>
2136 * common/btrace-common.h: Do not include defs.h or server.h.
2137 * nat/mips-linux-watch.h: Likewise.
2138 * gdb-dlfcn.h: Do not include defs.h.
2139 * tracefile.h: Likewise.
2141 2014-07-30 Roland McGrath <mcgrathr@google.com>
2143 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2145 2014-07-30 Tom Tromey <tromey@redhat.com>
2147 * bsd-kvm.c (bsd_kvm_open): Constify.
2148 * corelow.c (core_open): Constify.
2149 * ctf.c (ctf_open): Constify.
2150 * dbug-rom.c (dbug_open): Constify.
2151 * exec.c (exec_open): Constify.
2152 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2153 * microblaze-rom.c (picobug_open): Constify.
2154 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2156 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2157 * record-btrace.c (record_btrace_open): Constify.
2158 * record-full.c (record_full_core_open_1, record_full_open_1)
2159 (record_full_open): Constify.
2160 * remote-m32r-sdi.c (m32r_open): Constify.
2161 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2162 (rockhopper_open, lsi_open): Constify.
2163 * remote-sim.c (gdbsim_open): Constify.
2164 * remote.c (remote_open, extended_remote_open, remote_open_1):
2166 * target.h (struct target_ops) <to_open>: Make "arg" const.
2167 * tracefile-tfile.c (tfile_open): Constify.
2169 2014-07-30 Tom Tromey <tromey@redhat.com>
2171 * breakpoint.c (map_breakpoint_numbers): Update.
2172 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2173 (get_number_const): New function.
2174 (get_number): Rewrite using get_number_const.
2175 (init_number_or_range): Make "string" const.
2176 (number_is_in_list): Make "list" const.
2177 * cli/cli-utils.h (get_number_const): Declare.
2178 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2179 (init_number_or_range, number_is_in_list): Update.
2180 * printcmd.c (map_display_numbers): Update.
2181 * value.c (value_from_history_ref): Constify.
2182 * value.h (value_from_history_ref): Update.
2184 2014-07-30 Tom Tromey <tromey@redhat.com>
2186 * corefile.c (hook_type, call_extra_exec_file_hooks)
2187 (specify_exec_file_hook): Constify.
2188 * exec.c (exec_file_attach): Make "filename" const.
2189 * gdbcore.h (deprecated_exec_file_display_hook)
2190 (specify_exec_file_hook, exec_file_attach): Constify.
2191 * main.c (captured_main): Use catch_command_errors_const.
2193 2014-07-30 Tom Tromey <tromey@redhat.com>
2195 * target.c (open_target): New function.
2196 (add_target_with_completer, add_deprecated_target_alias): Use
2197 set_cmd_sfunc, set_cmd_context.
2198 (debug_to_open): Remove.
2199 (setup_target_debug): Update.
2201 2014-07-30 Yao Qi <yao@codesourcery.com>
2203 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2205 * parse.c (exp_iterate): Update comments.
2207 2014-07-30 Gary Benson <gbenson@redhat.com>
2209 * common/common-defs.h: New file.
2210 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2211 * defs.h: Include common-defs.h.
2212 Do not include config.h or build-gnulib/config.h.
2214 2014-07-30 Gary Benson <gbenson@redhat.com>
2216 * common/common-utils.h: Do not include config.h.
2217 * nat/linux-btrace.h: Likewise.
2219 2014-07-30 Gary Benson <gbenson@redhat.com>
2221 * btrace.c: Include defs.h.
2222 * common/ptid.c: Include defs.h or server.h as appropriate.
2223 * nat/mips-linux-watch.c: Likewise.
2225 2014-07-29 Tom Tromey <tromey@redhat.com>
2227 * target.c (target_is_pushed): Simplify.
2229 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2233 2014-07-29 Yao Qi <yao@codesourcery.com>
2236 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2238 2014-07-28 Doug Evans <xdje42@gmail.com>
2241 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2242 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2245 2014-07-28 Will Newton <will.newton@linaro.org>
2247 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2248 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2249 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2250 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2251 (THUMB2_EABI_SYSCALL): Likewise.
2252 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2254 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2255 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2257 2014-07-27 Doug Evans <xdje42@gmail.com>
2259 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2261 2014-07-27 Doug Evans <xdje42@gmail.com>
2263 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2265 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2266 Doug Evans <xdje42@gmail.com>
2269 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2270 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2271 * configure.ac: Try to use guild to compile an scm file, if it fails
2272 then disable guile support.
2273 * configure: Regenerate.
2274 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2276 (GUILE_COMPILED_FILES): New variable.
2277 (GUILE_FILES) Update.
2278 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2279 (stamp-guile): Compile scm files.
2280 * guile/guile.c (boot_guile_support): New function.
2281 (standard_throw_args_p): New function.
2282 (print_standard_throw_error, print_throw_error): New functions.
2283 (handle_boot_error): New function.
2284 (initialize_scheme_side): Rewrite to call boot_guile_support.
2285 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2286 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2288 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2289 Doug Evans <xdje42@gmail.com>
2292 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2293 * guile/lib/gdb/support.scm: New file.
2294 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2295 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2297 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2299 (%assert-type): Ditto, and renamed to assert-type.
2300 (%exception-print-style): Delete.
2302 2014-07-26 Doug Evans <xdje42@gmail.com>
2305 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2306 * configure: Regenerate.
2307 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2309 (PYTHON_FILES): New variable.
2310 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2311 (GUILE_FILES): New variable.
2312 (stamp-python, install-python, uninstall-python): Handle empty
2314 (stamp-guile, install-guile, uninstall-guile): Ditto.
2316 2014-07-26 Doug Evans <xdje42@gmail.com>
2319 * guile/lib/gdb.scm (pretty-printers): Export.
2320 (set-pretty-printers!): Export.
2321 * guile/lib/gdb/printing.scm (gdb module): Update.
2322 (prepend-pretty-printer!, append-pretty-printer!): Update.
2323 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2324 (pretty_printer_list_var): Delete.
2325 (pretty_printer_list): New static global.
2326 (gdbscm_pretty_printers): New function.
2327 (gdbscm_set_pretty_printers_x): New function.
2328 (ppscm_find_pretty_printer_from_gdb): Update.
2329 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2330 (gdbscm_initialize_pretty_printers): Update.
2332 2014-07-26 Doug Evans <xdje42@gmail.com>
2335 * configure.ac: Add check for header gc/gc.h.
2336 Add check for function setenv.
2337 * configure: Regenerate.
2338 * config.in: Regenerate.
2339 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2341 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2343 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2344 variation in gdbarch matching.
2346 2014-07-25 Tom Tromey <tromey@redhat.com>
2348 * exec.c (using_exec_ops): Remove.
2349 (exec_close_1): Update. Remove extraneous block, reindent.
2350 (add_target_sections): Use target_is_pushed.
2352 2014-07-25 Pedro Alves <palves@redhat.com>
2354 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2355 * monitor.c (monitor_create_inferior): Likewise.
2356 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2357 * remote-sim.c (gdbsim_create_inferior): Likewise.
2358 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2359 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2360 * windows-nat.c (do_initial_windows_stuff): Likewise.
2362 2014-07-25 Pedro Alves <palves@redhat.com>
2364 * NEWS: Mention signal passing and "signal" command changes.
2365 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2367 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2369 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2370 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2371 (jump_command): Adjust clear_proceed_status call.
2372 (signal_command): Warn if other thread that are resumed have
2373 signals that will be delivered. Adjust clear_proceed_status call.
2374 (until_next_command, finish_command)
2375 (proceed_after_attach_callback, attach_command_post_wait)
2376 (attach_command): Adjust clear_proceed_status call.
2377 * infrun.c (proceed_after_vfork_done): Likewise.
2378 (proceed_after_attach_callback): Adjust comment.
2379 (clear_proceed_status_thread): Clear stop_signal if not in pass
2381 (clear_proceed_status_callback): Delete.
2382 (clear_proceed_status): New 'step' parameter. Only clear the
2383 proceed status of threads the command being prepared is about to
2385 (proceed): If passed in an explicit signal, override stop_signal
2386 with it. Don't pass the last stop signal to the thread we're
2388 (init_wait_for_inferior): Adjust clear_proceed_status call.
2389 (switch_back_to_stepped_thread): Clear the signal if it should not
2391 * infrun.h (clear_proceed_status): New 'step' parameter.
2392 (user_visible_resume_ptid): Add comment.
2393 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2394 signal is in pass state.
2395 * remote.c (append_pending_thread_resumptions): Likewise.
2396 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2398 2014-07-25 Tom Tromey <tromey@redhat.com>
2400 * target.h (target_stopped_data_address)
2401 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2404 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2406 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2408 (avr_pointer_to_address): Likewise.
2410 2014-07-24 Tom Tromey <tromey@redhat.com>
2412 * monitor.c (compile_pattern): Update.
2413 * target.h (struct target_ops) <to_shortname, to_longname,
2416 2014-07-24 Tom Tromey <tromey@redhat.com>
2418 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2419 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2420 (add_info_alias, add_com): Make "doc" const.
2421 (print_doc_line): Make "str" const.
2422 (delete_cmd): Update.
2423 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2424 (print_doc_line): Update.
2425 * cli/cli-script.c (document_command): Update.
2426 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2427 (add_com, add_info, add_info_alias): Update.
2428 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2429 * python/py-cmd.c (cmdpy_destroyer): Update.
2431 2014-07-24 Tom Tromey <tromey@redhat.com>
2433 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2434 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2435 (help_cmd_list): Constify.
2436 (lookup_cmd): Update.
2437 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2439 (help_cmd_list, apropos_cmd): Update.
2440 * cli/cli-script.c (show_user): Update.
2441 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2442 * cli/cli-setshow.h (cmd_show_list): Update.
2443 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2444 (cmd_show_list): Update.
2445 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2446 * python/py-cmd.c (cmdpy_destroyer): Update.
2448 2014-07-24 Tom Tromey <tromey@redhat.com>
2450 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2451 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2453 * command.h (deprecate_cmd): Update.
2454 * maint.c (maintenance_do_deprecate): Add casts.
2456 2014-07-24 Tom Tromey <tromey@redhat.com>
2458 * cli/cli-decode.c (help_cmd): Make parameter "const".
2459 * cli/cli-decode.h (help_cmd): Update.
2461 2014-07-24 Tom Tromey <tromey@redhat.com>
2463 * stack.c (up_silently_base, down_silently_base): Make argument
2466 2014-07-24 Tom Tromey <tromey@redhat.com>
2468 * solib.c (solib_add): Make "pattern" const.
2469 * solib.h (solib_add): Update.
2471 2014-07-24 Tom Tromey <tromey@redhat.com>
2473 * remote.c (remote_serial_open, print_packet, putpkt)
2474 (putpkt_binary): Constify.
2475 * remote.h (putpkt): Update.
2477 2014-07-24 Tom Tromey <tromey@redhat.com>
2479 * monitor.c (monitor_open): Make "args" const.
2480 * monitor.h (monitor_open): Update.
2482 2014-07-24 Tom Tromey <tromey@redhat.com>
2484 * maint.c (match_bfd_flags): Make "string" const.
2485 (print_bfd_section_info): Remove casts.
2486 (print_objfile_section_info): Make "string" const.
2488 2014-07-24 Tom Tromey <tromey@redhat.com>
2490 * inf-child.c (inf_child_open_target): Make "arg" const.
2491 * inf-child.h (inf_child_open_target): Update.
2493 2014-07-24 Tom Tromey <tromey@redhat.com>
2495 * environ.c (unset_in_environ): Make "var" const.
2496 * environ.h (unset_in_environ): Update.
2498 2014-07-24 Tom Tromey <tromey@redhat.com>
2500 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2502 (scan_filename_with_cleanup): Likewise.
2503 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2504 Make arguments const.
2505 (restore_command): Update.
2507 2014-07-24 Pedro Alves <palves@redhat.com>
2509 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2511 2014-07-24 Tom Tromey <tromey@redhat.com>
2512 Gary Benson <gbenson@redhat.com>
2514 * nat/linux-ptrace.c (additional_flags): New global.
2515 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2516 additional_flags; don't check GDBSERVER.
2517 (linux_ptrace_set_additional_flags): New function.
2518 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2520 * linux-nat.c (_initialize_linux_nat): Call
2521 linux_ptrace_set_additional_flags.
2523 2014-07-24 Tom Tromey <tromey@redhat.com>
2525 * make-target-delegates (munge_type, write_debugmethod): New
2527 (debug_names): New global.
2528 ($TARGET_DEBUG_PRINTER): New global.
2529 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2531 Write debug methods. Generate init_debug_target.
2532 * target-debug.h: New file.
2533 * target-delegates.c: Rebuild.
2534 * target.c: Include target-debug.h.
2535 (debug_target): Hoist definition.
2536 (target_kill, target_get_section_table, target_memory_map)
2537 (target_flash_erase, target_flash_done, target_detach)
2538 (target_disconnect, target_wait, target_resume)
2539 (target_pass_signals, target_program_signals, target_follow_fork)
2540 (target_mourn_inferior, target_search_memory)
2541 (target_thread_address_space, target_close)
2542 (target_find_new_threads, target_core_of_thread)
2543 (target_verify_memory, target_insert_mask_watchpoint)
2544 (target_remove_mask_watchpoint): Remove targetdebug code.
2545 (debug_to_post_attach, debug_to_prepare_to_store)
2546 (debug_to_files_info, debug_to_insert_breakpoint)
2547 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2548 (debug_to_region_ok_for_hw_watchpoint)
2549 (debug_to_can_accel_watchpoint_condition)
2550 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2551 (debug_to_watchpoint_addr_within_range)
2552 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2553 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2554 (debug_to_terminal_init, debug_to_terminal_inferior)
2555 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2556 (debug_to_terminal_save_ours, debug_to_terminal_info)
2557 (debug_to_load, debug_to_post_startup_inferior)
2558 (debug_to_insert_fork_catchpoint)
2559 (debug_to_remove_fork_catchpoint)
2560 (debug_to_insert_vfork_catchpoint)
2561 (debug_to_remove_vfork_catchpoint)
2562 (debug_to_insert_exec_catchpoint)
2563 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2564 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2565 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2566 (setup_target_debug): Call init_debug_target.
2567 * target.h (TARGET_DEBUG_PRINTER): New macro.
2568 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2569 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2571 2014-07-24 Gary Benson <gbenson@redhat.com>
2573 * exceptions.h (throw_vfatal): Renamed to...
2574 (throw_vquit): New declaration.
2575 (throw_quit): Likewise.
2576 * exceptions.c (throw_vfatal): Renamed to...
2577 (throw_vquit): New function.
2578 (throw_quit): Likewise.
2579 (throw_error): Call throw_verror rather than throw_it.
2580 * utils.h (vfatal): Removed.
2582 * utils.c (vfatal): Removed.
2584 (internal_verror): Replaced call to fatal with call to throw_quit.
2585 (quit): Replaced calls to fatal with calls to throw_quit.
2587 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2589 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2592 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2594 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2595 less than zero in conditional expression.
2597 2014-07-23 Tom Tromey <tromey@redhat.com>
2599 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2600 ($INTRO_PART): Don't match whitespace.
2601 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2603 ($METHOD): Add $METHOD_TRAILER.
2605 (scan_target_h): New sub.
2606 Change main loop not to collect state.
2607 * target-delegates.c: Rebuild.
2609 2014-07-23 Gary Benson <gbenson@redhat.com>
2611 * cp-support.c (gdb_demangle): Fix build on systems without
2614 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2616 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2617 for reference entry value target data value.
2619 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2621 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2622 value_available_contents_eq.
2624 2014-07-22 Pedro Alves <palves@redhat.com>
2626 * value.c (allocate_optimized_out_value): Don't mark value as
2629 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2631 * MAINTAINERS (Write After Approval): Update my email address.
2633 2014-07-20 Doug Evans <dje@google.com>
2636 * remote.c (putpkt_binary): Add text to error message.
2638 2014-07-20 Yao Qi <yao@codesourcery.com>
2640 * eval.c: Remove "Chill" from comments.
2641 * gdbtypes.h: Likewise.
2642 * symtab.h: Likewise.
2644 2014-07-20 Yao Qi <yao@codesourcery.com>
2646 * std-operator.def: Update comments to TERNOP_SLICE.
2648 2014-07-20 Yao Qi <yao@codesourcery.com>
2650 * std-operator.def: Remove BINOP_RANGE.
2651 * breakpoint.c (watchpoint_exp_is_const): Update.
2652 * expprint.c (dump_subexp_body_standard): Likewise.
2653 * eval.c (init_array_element): Remove dead code.
2654 (evaluate_subexp_standard): Likewise.
2656 2014-07-20 Yao Qi <yao@codesourcery.com>
2658 * std-operator.def: Remove BINOP_IN.
2659 * breakpoint.c (watchpoint_exp_is_const): Update.
2660 * eval.c (evaluate_subexp_standard): Likewise.
2661 * expprint.c (dump_subexp_body_standard): Likewise.
2663 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2665 * microblaze-tdep.c (microblaze_register_names): Add
2666 the rshr and rslr register names.
2667 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2668 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2669 Use of tdesc_numbered_register. Use of
2670 microblaze_register_g_packet_guesses. Use of
2671 tdesc_use_registers. Use of set_gdbarch_register_type.
2672 (microblaze_register_g_packet_guesses): New.
2673 * microblaze-tdep.h (microblaze_reg_num): Add
2674 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2675 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2676 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2677 * features/microblaze-core.xml: New file.
2678 * features/microblaze-stack-protect.xml: New file.
2679 * features/microblaze-with-stack-protect.c: New file.
2680 * features/microblaze-with-stack-protect.xml: New file.
2681 * features/microblaze.xml: New file.
2682 * features/microblaze.c: New file.
2683 * features/Makefile (microblaze-with-stack-protect): Add
2684 microblaze-with-stack-protect microblaze and microblaze-expedite.
2685 * regformats/microblaze-with-stack-protect.dat: New file.
2686 * regformats/microblaze.dat: New file.
2687 * doc/gdb.texinfo (MicroBlaze Features): Added.
2689 2014-07-18 Tom Tromey <tromey@redhat.com>
2691 * exec.c (exec_ops): Now static.
2692 * exec.h (exec_ops): Don't declare.
2694 2014-07-18 Tom Tromey <tromey@redhat.com>
2696 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2697 to find_target_beneath.
2698 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2699 find_target_beneath.
2700 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2702 2014-07-18 Tom Tromey <tromey@redhat.com>
2705 * utils.c (quit): Use target_supports_terminal_ours.
2706 * target.h (target_supports_terminal_ours): Declare.
2707 * target.c (target_supports_delete_record): Don't check
2708 to_delete_record against NULL.
2709 (target_supports_terminal_ours): New function.
2711 2014-07-18 Tom Tromey <tromey@redhat.com>
2714 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2715 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2716 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2717 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2718 * windows-nat.c (windows_xfer_partial): Always delegate.
2719 * record-btrace.c (record_btrace_xfer_partial): Simplify
2721 (record_btrace_fetch_registers, record_btrace_store_registers)
2722 (record_btrace_prepare_to_store, record_btrace_resume)
2723 (record_btrace_wait, record_btrace_find_new_threads)
2724 (record_btrace_thread_alive): Likewise.
2725 * procfs.c (procfs_xfer_partial): Always delegate.
2726 * corelow.c (core_xfer_partial): Always delegate.
2727 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2729 2014-07-18 Tom Tromey <tromey@redhat.com>
2731 * exec.c (exec_make_note_section): Move earlier.
2733 2014-07-17 Doug Evans <dje@google.com>
2736 * maint.c (count_symtabs_and_blocks): Handle NULL
2737 current_program_space.
2738 (report_command_stats): Check global enabled flag in addition to
2739 recorded enabled flag.
2740 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2742 2014-07-16 Pedro Alves <palves@redhat.com>
2744 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2746 2014-07-16 Tom Tromey <tromey@redhat.com>
2748 * target.h (struct target_ops) <to_delete_record>: Reformat
2751 2014-07-16 Tom Tromey <tromey@redhat.com>
2753 * target-delegates.c: Rebuild.
2755 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2757 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2758 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2759 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2760 (avr_pointer_to_address): Likewise.
2761 (avr_address_class_type_flags): New function.
2762 (avr_address_class_type_flags_to_name): Likewise.
2763 (avr_address_class_name_to_type_flags): Likewise.
2764 (avr_gdbarch_init): Set address_class_type_flags,
2765 address_class_type_flags_to_name and
2766 address_class_name_to_type_flags.
2768 2014-07-15 Pedro Alves <palves@redhat.com>
2770 * linux-nat.c (kill_callback): Save errno and work with saved
2773 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2775 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2777 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2779 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2780 breakpoint support correctly.
2782 2014-07-14 Pedro Alves <palves@redhat.com>
2784 * utils.c (prompt_for_continue): Call target_terminal_ours.
2786 2014-07-14 Pedro Alves <palves@redhat.com>
2788 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2789 catch_errors. Don't re-enable stdin or notify observers where,
2791 (fetch_inferior_event_wrapper): Delete.
2793 2014-07-14 Pedro Alves <palves@redhat.com>
2796 * top.c: Include "inf-loop.h".
2797 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2799 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2801 (gdb_readline_wrapper): Store whether the target is async, and
2804 2014-07-14 Pedro Alves <palves@redhat.com>
2807 * top.c (gdb_readline_wrapper_line): Tweak comment.
2808 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2809 the input handler callback.
2811 2014-07-14 Pedro Alves <palves@redhat.com>
2814 * main.c: Include event-top.h.
2815 (handle_command_errors): New function.
2816 (catch_command_errors, catch_command_errors_const): Use it.
2818 2014-07-14 Pedro Alves <palves@redhat.com>
2820 * exceptions.c (catch_command_errors, catch_command_errors_const):
2822 * exceptions.h (catch_command_errors_ftype)
2823 (catch_command_errors_const_ftype): Moved to main.c.
2824 (catch_command_errors, catch_command_errors_const): Delete
2826 * main.c (catch_command_errors_ftype)
2827 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2828 (catch_command_errors, catch_command_errors_const)): Moved here
2829 from exceptions.c and make static.
2831 2014-07-14 Pedro Alves <palves@redhat.com>
2833 * exceptions.c (print_any_exception): Delete.
2834 (catch_exceptions_with_msg): Use exception_print instead of
2835 print_any_exception.
2836 (catch_errors): Use exception_fprintf instead of
2837 print_any_exception.
2838 (catch_command_errors, catch_command_errors_const): Use
2839 exception_print instead of print_any_exception.
2841 2014-07-14 Pedro Alves <palves@redhat.com>
2843 * infcall.c (run_inferior_call): Set 'sync_execution' while
2844 running the inferior call.
2846 2014-07-14 Pedro Alves <palves@redhat.com>
2848 * value.c (value_contents_equal): Delete function.
2849 * value.h (value_contents_equal): Delete declaration.
2851 2014-07-14 Tom Tromey <tromey@redhat.com>
2854 * gdbtypes.c (is_dynamic_type_internal): New function, from
2856 (is_dynamic_type): Rewrite.
2857 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2858 (resolve_dynamic_struct): Likewise.
2859 (resolve_dynamic_type_internal): New function, from
2860 resolve_dynamic_type.
2861 (resolve_dynamic_type): Rewrite.
2863 2014-07-14 Tom Tromey <tromey@redhat.com>
2865 * target.c (target_require_runnable): Also check record_stratum.
2868 2014-07-11 Yao Qi <yao@codesourcery.com>
2870 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2871 thumb_instruction_restores_sp return true.
2873 2014-07-11 Yao Qi <yao@codesourcery.com>
2875 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2876 (thumb_in_function_epilogue_p): Call
2877 thumb_instruction_restores_sp.
2879 2014-07-11 Yao Qi <yao@codesourcery.com>
2881 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2883 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2885 2014-07-11 Gary Benson <gbenson@redhat.com>
2887 * amd64-linux-nat.c (gdbcore.h): Remove include.
2888 (regset.h): Likewise.
2889 (nat/linux-btrace.h): Likewise.
2890 (btrace.h): Likewise.
2891 (gdb_assert.h): Likewise.
2892 (string.h): Likewise.
2893 (sys/uio.h): Likewise.
2894 (sys/debugreg.h): Likewise.
2895 (sys/syscall.h): Likewise.
2896 (sys/procfs.h): Likewise.
2897 (sys/user.h): Likewise.
2898 (asm/ptrace.h): Likewise.
2899 (i386-nat.h): Likewise.
2900 * i386-linux-nat.c (i386-nat.h): Likewise.
2901 (regset.h): Likewise.
2902 (target.h): Likewise.
2903 (linux-nat.h): Likewise.
2904 (nat/linux-btrace.h): Likewise.
2905 (btrace.h): Likewise.
2906 (gdb_assert.h): Likewise.
2907 (string.h): Likewise.
2908 (sys/uio.h): Likewise.
2909 (sys/user.h): Likewise.
2910 (sys/procfs.h): Likewise.
2911 (sys/reg.h): Likewise.
2912 (sys/debugreg.h): Likewise.
2913 (ORIG_EAX): Remove definition.
2915 2014-07-11 Gary Benson <gbenson@redhat.com>
2917 * i386-linux-nat.h: New file.
2918 * x86-linux-nat.h: Likewise.
2919 * x86-linux-nat.c: Likewise.
2920 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2921 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2922 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2923 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2924 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2925 (PTRACE_SETREGSET): Likewise.
2926 (arch_lwp_info): Now in x86-linux-nat.c.
2927 (have_ptrace_getregset): Now in x86-linux-nat.h.
2928 (x86_linux_dr_get): Now in x86-linux-nat.c.
2929 (x86_linux_dr_set): Likewise.
2930 (x86_linux_dr_get_addr): Likewise.
2931 (x86_linux_dr_get_control): Likewise.
2932 (x86_linux_dr_get_status): Likewise.
2933 (update_debug_registers_callback): Likewise.
2934 (x86_linux_dr_set_control): Likewise.
2935 (x86_linux_dr_set_addr): Likewise.
2936 (x86_linux_prepare_to_resume): Likewise.
2937 (x86_linux_new_thread): Likewise.
2938 (x86_linux_new_fork): Likewise.
2939 (x86_linux_get_thread_area): Likewise.
2940 (super_post_startup_inferior): Likewise.
2941 (x86_linux_child_post_startup_inferior): Likewise.
2942 (AMD64_LINUX_USER64_CS): Likewise.
2943 (AMD64_LINUX_X32_DS): Likewise.
2944 (x86_linux_read_description): Likewise.
2945 (x86_linux_enable_btrace): Likewise.
2946 (x86_linux_disable_btrace): Likewise.
2947 (x86_linux_teardown_btrace): Likewise.
2948 (x86_linux_read_btrace): Likewise.
2949 (x86_linux_create_target): Likewise.
2950 (x86_linux_add_target): Likewise.
2951 * i386-linux-nat.c (x86-linux-nat.h): New include.
2952 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2953 (PTRACE_SETREGSET): Likewise.
2954 (arch_lwp_info): Now in x86-linux-nat.c.
2955 (have_ptrace_getregset): Now in x86-linux-nat.h.
2956 (x86_linux_dr_get): Now in x86-linux-nat.c.
2957 (x86_linux_dr_set): Likewise.
2958 (x86_linux_dr_get_addr): Likewise.
2959 (x86_linux_dr_get_control): Likewise.
2960 (x86_linux_dr_get_status): Likewise.
2961 (update_debug_registers_callback): Likewise.
2962 (x86_linux_dr_set_control): Likewise.
2963 (x86_linux_dr_set_addr): Likewise.
2964 (x86_linux_prepare_to_resume): Likewise.
2965 (x86_linux_new_thread): Likewise.
2966 (x86_linux_new_fork): Likewise.
2967 (x86_linux_get_thread_area): Likewise.
2968 (super_post_startup_inferior): Likewise.
2969 (x86_linux_child_post_startup_inferior): Likewise.
2970 (AMD64_LINUX_USER64_CS): Likewise.
2971 (AMD64_LINUX_X32_DS): Likewise.
2972 (x86_linux_read_description): Likewise.
2973 (x86_linux_enable_btrace): Likewise.
2974 (x86_linux_disable_btrace): Likewise.
2975 (x86_linux_teardown_btrace): Likewise.
2976 (x86_linux_read_btrace): Likewise.
2977 (x86_linux_create_target): Likewise.
2978 (x86_linux_add_target): Likewise.
2980 2014-07-11 Gary Benson <gbenson@redhat.com>
2982 * amd64-linux-nat.c: Comment and whitespace changes.
2983 * i386-linux-nat.c: Comment and whitespace changes.
2985 2014-07-11 Gary Benson <gbenson@redhat.com>
2987 * amd64-linux-nat.c (x86_linux_create_target): New function.
2988 (x86_linux_add_target): Likewise.
2989 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2990 * i386-linux-nat.c (x86_linux_create_target): New function.
2991 (x86_linux_add_target): Likewise.
2992 (_initialize_i386_linux_nat): Delegate to the above new functions.
2994 2014-07-11 Gary Benson <gbenson@redhat.com>
2996 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2997 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2998 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2999 (ps_get_thread_area): Delegate to the above.
3001 2014-07-11 Gary Benson <gbenson@redhat.com>
3003 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3004 x86_linux_read_description. All uses updated. amd64-specific
3005 code conditionalized. Conditionalized i386-specific code added.
3006 Redundant cast removed.
3007 * i386-linux-nat.c (i386_linux_read_description): Renamed to
3008 x86_linux_read_description. All uses updated. i386-specific
3009 code conditionalized. Conditionalized amd64-specific code added.
3010 One sizeof replaced with the actual type it is describing.
3012 2014-07-11 Gary Benson <gbenson@redhat.com>
3014 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3015 x86_linux_dr_get. All uses updated.
3016 (amd64_linux_dr_set): Renamed to
3017 x86_linux_dr_set. All uses updated.
3018 (amd64_linux_dr_get_addr): Renamed to
3019 x86_linux_dr_get_addr. All uses updated.
3020 (amd64_linux_dr_get_control): Renamed to
3021 x86_linux_dr_get_control. All uses updated.
3022 (amd64_linux_dr_get_status): Renamed to
3023 x86_linux_dr_get_status. All uses updated.
3024 (amd64_linux_dr_set_control): Renamed to
3025 x86_linux_dr_set_control. All uses updated.
3026 (amd64_linux_dr_set_addr): Renamed to
3027 x86_linux_dr_set_addr. All uses updated.
3028 (amd64_linux_prepare_to_resume): Renamed to
3029 x86_linux_prepare_to_resume. All uses updated.
3030 (amd64_linux_new_thread): Renamed to
3031 x86_linux_new_thread. All uses updated.
3032 (amd64_linux_new_fork): Renamed to
3033 x86_linux_new_fork. All uses updated.
3034 (amd64_linux_child_post_startup_inferior): Renamed to
3035 x86_linux_child_post_startup_inferior. All uses updated.
3036 (amd64_linux_enable_btrace): Renamed to
3037 x86_linux_enable_btrace. All uses updated.
3038 (amd64_linux_disable_btrace): Renamed to
3039 x86_linux_disable_btrace. All uses updated.
3040 (amd64_linux_teardown_btrace): Renamed to
3041 x86_linux_teardown_btrace. All uses updated.
3042 (amd64_linux_read_btrace): Renamed to
3043 x86_linux_read_btrace. All uses updated.
3044 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3045 x86_linux_dr_get. All uses updated.
3046 (i386_linux_dr_set): Renamed to
3047 x86_linux_dr_set. All uses updated.
3048 (i386_linux_dr_get_addr): Renamed to
3049 x86_linux_dr_get_addr. All uses updated.
3050 (i386_linux_dr_get_control): Renamed to
3051 x86_linux_dr_get_control. All uses updated.
3052 (i386_linux_dr_get_status): Renamed to
3053 x86_linux_dr_get_status. All uses updated.
3054 (i386_linux_dr_set_control): Renamed to
3055 x86_linux_dr_set_control. All uses updated.
3056 (i386_linux_dr_set_addr): Renamed to
3057 x86_linux_dr_set_addr. All uses updated.
3058 (i386_linux_prepare_to_resume): Renamed to
3059 x86_linux_prepare_to_resume. All uses updated.
3060 (i386_linux_new_thread): Renamed to
3061 x86_linux_new_thread. All uses updated.
3062 (i386_linux_new_fork): Renamed to
3063 x86_linux_new_fork. All uses updated.
3064 (i386_linux_child_post_startup_inferior): Renamed to
3065 x86_linux_child_post_startup_inferior. All uses updated.
3066 (i386_linux_enable_btrace): Renamed to
3067 x86_linux_enable_btrace. All uses updated.
3068 (i386_linux_disable_btrace): Renamed to
3069 x86_linux_disable_btrace. All uses updated.
3070 (i386_linux_teardown_btrace): Renamed to
3071 x86_linux_teardown_btrace. All uses updated.
3072 (i386_linux_read_btrace): Renamed to
3073 x86_linux_read_btrace. All uses updated.
3075 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3077 * remote.c (extended_remote_post_attach): New function.
3078 (init_extended_remote_ops): Install it as to_post_attach method.
3080 2014-07-09 Pedro Alves <palves@redhat.com>
3082 * infcmd.c (attach_command_post_wait): Don't call
3083 target_terminal_inferior here.
3084 (attach_command): Call it here instead.
3086 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3088 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3090 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3091 from varobj.c, with additional checks.
3092 (c_varobj_ops): Fill in is_path_expr_parent field.
3093 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3094 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3096 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3098 (varobj_default_is_path_expr_parent): New function.
3099 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3100 (varobj_default_is_path_expr_parent): Declare new function.
3102 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3104 * infcmd.c (finish_backward): Turn internal error into normal error.
3106 2014-07-07 Pedro Alves <palves@redhat.com>
3109 * remote.c (async_handle_remote_sigint)
3110 (async_handle_remote_sigint_twice): Call
3111 gdb_call_async_signal_handler instead of
3112 mark_async_signal_handler.
3114 2014-07-07 Tom Tromey <tromey@redhat.com>
3116 * target-delegates.c: Rebuild.
3117 * target.c (target_info_record): Remove.
3118 * record.c (info_record_command): Unconditionally call
3120 * target.h (struct target_ops) <to_info_record>: Use
3121 TARGET_DEFAULT_IGNORE.
3122 (target_info_record): Remove.
3124 2014-07-07 Tom Tromey <tromey@redhat.com>
3126 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3127 TARGET_DEFAULT_NORETURN.
3128 * target.c (generic_tls_error): New function.
3129 (target_translate_tls_address): Don't search target stack.
3130 * target-delegates.c: Rebuild.
3131 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3133 * linux-thread-db.c (thread_db_get_thread_local_address):
3134 Unconditionally call beneath target.
3136 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3138 * cli/cli-logging.c (pop_output_files): Assign targerr to
3141 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3143 * MAINTAINERS (Write After Approval): Update my email address.
3145 2014-07-02 Gary Benson <gbenson@redhat.com>
3147 * proc-service.c (ps_xfer_memory): Update comment.
3148 (ps_pstop): Remove unused function.
3149 (ps_pcontinue): Likewise.
3150 (ps_lstop): Likewise.
3151 (ps_lcontinue): Likewise.
3152 (ps_lgetxregsize): Likewise.
3153 (ps_lgetxregs): Likewise.
3154 (ps_lsetxregs): Likewise.
3155 (ps_plog): Likewise.
3156 (ps_ptread): Likewise.
3157 (ps_ptwrite): Likewise.
3159 2014-07-01 Mark Wielaard <mjw@redhat.com>
3161 * dwarf2read.c (add_array_cv_type): New function.
3162 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3163 (read_tag_volatile_type): Likewise.
3165 2014-07-01 Tom Tromey <tromey@redhat.com>
3167 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3168 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3169 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3170 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3171 * command.h (cmd_cfunc_ftype): Move earlier.
3172 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3173 (add_com, add_info): Use cmd_cfunc_ftype.
3175 2014-06-30 Tom Tromey <tromey@redhat.com>
3177 * symtab.c (operator_chars): Make parameters and return type
3179 (file_matches): Make "files" const.
3180 (struct search_symbols_data) <files>: Now const.
3181 (search_symbols): Make "regexp" and "files" parameters const.
3183 (symtab_symbol_info): Remove cast.
3184 (rbreak_command): Update.
3185 * symtab.h (search_symbols): Update.
3187 2014-06-27 Yao Qi <yao@codesourcery.com>
3189 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3190 Change parameter type to 'struct thread_info *'. Caller
3192 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3194 * dummy-frame.c (struct dummy_frame_id): New.
3195 (dummy_frame_id_eq): New function.
3196 (struct dummy_frame) <id>: Change its type to 'struct
3198 (dummy_frame_push): Add parameter ptid and save it in
3200 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3202 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3204 (lookup_dummy_frame): Change parameter type to 'struct
3205 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3206 instead of frame_id_eq.
3207 (dummy_frame_pop): Add parameter ptid. Callers updated.
3208 Update comments. Compose dummy_frame_id and pass it to
3210 (dummy_frame_discard): Add parameter ptid.
3211 (dummy_frame_sniffer): Compose dummy_frame_id and call
3212 dummy_frame_id_eq instead of frame_id_eq.
3213 (fprint_dummy_frames): Print ptid.
3214 * dummy-frame.h: Remove comments.
3215 (dummy_frame_push): Add ptid in declaration.
3216 (dummy_frame_pop, dummy_frame_discard): Likewise.
3218 2014-06-26 Tom Tromey <tromey@redhat.com>
3220 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3221 * command.h (error_no_arg): Update.
3223 2014-06-26 Tom Tromey <tromey@redhat.com>
3225 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3226 (do_show_command): Make "arg" const.
3227 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3229 2014-06-26 Tom Tromey <tromey@redhat.com>
3231 * record-full.c (record_full_get_bookmark): Make "args" const.
3232 (record_full_goto_bookmark): Make "raw_bookmark" const.
3233 * record.c (record_goto): New function.
3234 (cmd_record_goto): Use it. Now static.
3235 * record.h (record_goto): Declare.
3236 (cmd_record_goto): Remove declaration.
3237 * target-delegates.c: Rebuild.
3238 * target.h (struct target_ops) <to_get_bookmark,
3239 to_goto_bookmark>: Make parameter const.
3241 2014-06-26 Tom Tromey <tromey@redhat.com>
3243 * defs.h (generic_load): Update.
3244 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3245 * monitor.c (monitor_load): Make "args" const.
3246 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3247 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3249 (mips_load): Make "file" const.
3250 * remote-sim.c (gdbsim_load): Make "args" const.
3251 * remote.c (remote_load): Make "name" const.
3252 * symfile.c (generic_load): Make "args" const.
3253 * target-delegates.c: Rebuild.
3254 * target.c (target_load): Make "arg" const.
3255 (debug_to_load): Make "args" const.
3256 * target.h (struct target_ops) <to_load>: Make parameter const.
3257 (target_load): Update.
3259 2014-06-26 Tom Tromey <tromey@redhat.com>
3262 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3263 (dwarf2_physname, read_partial_die)
3264 (guess_partial_die_structure_name, fixup_partial_die)
3265 (guess_full_die_structure_name, anonymous_struct_prefix)
3266 (dwarf2_name): Use per-BFD obstack.
3268 2014-06-26 Yao Qi <yao@codesourcery.com>
3270 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3271 dummyframe and this_id into inner block below.
3273 2014-06-26 Yao Qi <yao@codesourcery.com>
3275 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3276 with "signal_pass[0]" in the initialization of signal_pass.
3278 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3280 * record-btrace.c (record_btrace_generating_corefile)
3281 (record_btrace_prepare_to_generate_core)
3282 (record_btrace_done_generating_core): New.
3283 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3284 (record_btrace_store_registers, record_btrace_prepare_to_store):
3285 Forward request when generating a core file.
3286 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3287 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3288 to_done_generating_core.
3290 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3292 * target.h (target_ops) <to_prepare_to_generate_core>
3293 <to_done_generating_core>: New.
3294 (target_prepare_to_generate_core, target_done_generating_core): New.
3295 * target.c (target_prepare_to_generate_core)
3296 (target_done_generating_core): New.
3297 * target-delegates.c: Regenerate.
3298 * gcore.c: (write_gcore_file): Rename to ...
3299 (write_gcore_file_1): ...this.
3300 (write_gcore_file): Call target_prepare_to_generate_core
3301 and target_done_generating_core.
3303 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3305 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3306 * gcore.c (write_gcore_file): Free memory returned from
3307 make_corefile_notes.
3308 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3309 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3311 2014-06-24 Yao Qi <yao@codesourcery.com>
3313 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3314 (arm_linux_init_abi): Set skip_trampoline_code with
3315 gdbarch_skip_trampoline_code instead of
3316 find_solib_trampoline_target.
3318 2014-06-24 Yao Qi <yao@codesourcery.com>
3320 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3321 arm_skip_bx_reg returns non-zero.
3323 2014-06-24 Yao Qi <yao@codesourcery.com>
3325 * arm-tdep.c (arm_skip_bx_reg): New function.
3326 (arm_skip_stub): Call arm_skip_bx_reg.
3328 2014-06-23 Don Breazeal <donb@codesourcery.com>
3330 * MAINTAINERS: Add myself as write-after-approval maintainer.
3332 2014-06-23 Pedro Alves <palves@redhat.com>
3334 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3335 DR_CONTROL before setting DR0..DR3.
3336 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3337 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3338 bits of DR_CONTROL related to the debug register slot being
3339 disabled. If all slots are vacant, clear local slowdown as well,
3340 and assert DR_CONTROL is 0.
3342 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3344 * python/lib/gdb/command/xmethods.py
3345 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3346 current progspace only if the string "progspace" matches LOCUS_RE.
3348 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3350 Fix --with-system-readline with readline-6.3 patch 5.
3351 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3352 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3355 2014-06-20 Tom Tromey <tromey@redhat.com>
3357 * dwarf2read.c (dw2_get_real_path): Use correct type in
3359 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3361 2014-06-20 Gary Benson <gbenson@redhat.com>
3363 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3364 * common/glibc_thread_db.h: Likewise.
3365 * common/i386-cpuid.h: Likewise.
3366 * common/i386-gcc-cpuid.h: Likewise.
3367 * common/linux-btrace.h: Likewise.
3368 * common/linux-osdata.h: Likewise.
3369 * common/linux-procfs.h: Likewise.
3370 * common/linux-ptrace.h: Likewise.
3371 * common/mips-linux-watch.h: Likewise.
3372 * common/linux-btrace.c: Moved to nat.
3373 * common/linux-osdata.c: Likewise.
3374 * common/linux-procfs.c: Likewise.
3375 * common/linux-ptrace.c: Likewise.
3376 * common/mips-linux-watch.c: Likewise.
3377 * nat/gdb_thread_db.h: Moved from common.
3378 * nat/glibc_thread_db.h: Likewise.
3379 * nat/i386-cpuid.h: Likewise.
3380 * nat/i386-gcc-cpuid.h: Likewise.
3381 * nat/linux-btrace.c: Likewise.
3382 * nat/linux-btrace.h: Likewise.
3383 * nat/linux-osdata.c: Likewise.
3384 * nat/linux-osdata.h: Likewise.
3385 * nat/linux-procfs.c: Likewise.
3386 * nat/linux-procfs.h: Likewise.
3387 * nat/linux-ptrace.c: Likewise.
3388 * nat/linux-ptrace.h: Likewise.
3389 * nat/mips-linux-watch.c: Likewise.
3390 * nat/mips-linux-watch.h: Likewise.
3391 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3392 (object file files): Reordered.
3393 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3394 of glibc_thread_db.h.
3396 2014-06-20 Gary Benson <gbenson@redhat.com>
3398 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3399 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3400 (i386_dr_low): Likewise.
3401 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3402 (i386_dr_low_set_addr): Likewise.
3403 (i386_dr_low_get_addr): Likewise.
3404 (i386_dr_low_can_set_control): Likewise.
3405 (i386_dr_low_set_control): Likewise.
3406 (i386_dr_low_get_control): Likewise.
3407 (i386_dr_low_get_status): Likewise.
3408 (i386_get_debug_register_length): Likewise.
3409 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3410 (i386_dr_low): Likewise.
3411 * nat/i386-dregs.c (i386-low.h): Remove include.
3412 (i386-nat.h): Likewise.
3413 (nat/i386-dregs.h): New include.
3414 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3415 (i386_dr_low_set_addr): Likewise.
3416 (i386_dr_low_get_addr): Likewise.
3417 (i386_dr_low_can_set_control): Likewise.
3418 (i386_dr_low_set_control): Likewise.
3419 (i386_dr_low_get_control): Likewise.
3420 (i386_dr_low_get_status): Likewise.
3421 (i386_get_debug_register_length): Likewise.
3422 (debug_hw_points): Likewise.
3424 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3426 * Makefile.in (SFILES): Add d-exp.y.
3427 (YYFILES): Add d-exp.c.
3428 (YYOBJ): Add d-exp.o.
3429 (local-maintainer-clean): Delete d-exp.c.
3430 * d-exp.y: New file.
3431 * d-lang.h (d_parse): New declaration.
3432 (d_error): New declaration.
3433 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3434 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3435 PREC_ORDER operators.
3436 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3438 2014-06-19 Yao Qi <yao@codesourcery.com>
3440 * gdbthread.h (any_running): Remove the declaration.
3441 * thread.c (any_running): Remove.
3443 2014-06-19 Yao Qi <yao@codesourcery.com>
3445 * gdbthread.h (struct thread_info) <state>: Change its type to
3446 'enum thread_state'. Update comments.
3448 2014-06-19 Pedro Alves <palves@redhat.com>
3450 * gdbthread.h (ALL_THREADS): Delete.
3451 (ALL_NON_EXITED_THREADS): New macro.
3452 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3453 instead of ALL_THREADS.
3454 * infrun.c (find_thread_needs_step_over)
3455 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3456 instead of ALL_THREADS.
3457 * record-btrace.c (record_btrace_open)
3458 (record_btrace_stop_recording, record_btrace_close)
3459 (record_btrace_is_replaying, record_btrace_resume)
3460 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3461 * remote.c (append_pending_thread_resumptions): Likewise.
3462 * thread.c (thread_apply_all_command): Likewise.
3464 2014-06-19 Gary Benson <gbenson@redhat.com>
3466 * i386-nat.c (i386_stopped_by_watchpoint):
3467 Use i386_dr_stopped_by_watchpoint.
3468 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3469 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3471 2014-06-19 Gary Benson <gbenson@redhat.com>
3473 * nat/i386-dregs.c: New file.
3474 * Makefile.in (i386-dregs.o): New rule.
3475 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3476 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3477 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3478 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3479 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3480 * config/i386/go32.mh (NATDEPFILES): Likewise.
3481 * config/i386/linux.mh (NATDEPFILES): Likewise.
3482 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3483 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3484 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3485 * i386-nat.h (debug_hw_points): New declaration.
3486 * i386-nat.c (breakpoint.h): Remove include.
3487 (command.h): Likewise.
3488 (target.h): Likewise.
3489 (gdb_assert.h): Likewise.
3490 (debug_hw_points): Made nonstatic.
3491 (debug_printf): Now in i386-dregs.c.
3492 (TARGET_HAS_DR_LEN_8): Likewise.
3493 (DR_CONTROL_SHIFT): Likewise.
3494 (DR_CONTROL_SIZE): Likewise.
3495 (DR_RW_EXECUTE): Likewise.
3496 (DR_RW_WRITE): Likewise.
3497 (DR_RW_READ): Likewise.
3498 (DR_RW_IORW): Likewise.
3499 (DR_LEN_1): Likewise.
3500 (DR_LEN_2): Likewise.
3501 (DR_LEN_4): Likewise.
3502 (DR_LEN_8): Likewise.
3503 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3504 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3505 (DR_ENABLE_SIZE): Likewise.
3506 (DR_LOCAL_SLOWDOWN): Likewise.
3507 (DR_GLOBAL_SLOWDOWN): Likewise.
3508 (DR_CONTROL_RESERVED): Likewise.
3509 (I386_DR_CONTROL_MASK): Likewise.
3510 (I386_DR_VACANT): Likewise.
3511 (I386_DR_LOCAL_ENABLE): Likewise.
3512 (I386_DR_GLOBAL_ENABLE): Likewise.
3513 (I386_DR_DISABLE): Likewise.
3514 (I386_DR_SET_RW_LEN): Likewise.
3515 (I386_DR_GET_RW_LEN): Likewise.
3516 (I386_DR_WATCH_HIT): Likewise.
3517 (i386_wp_op_t): Likewise.
3518 (i386_show_dr): Likewise.
3519 (i386_length_and_rw_bits): Likewise.
3520 (i386_insert_aligned_watchpoint): Likewise.
3521 (i386_remove_aligned_watchpoint): Likewise.
3522 (i386_handle_nonaligned_watchpoint): Likewise.
3523 (i386_update_inferior_debug_regs): Likewise.
3524 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3525 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3526 (i386_region_ok_for_watchpoint):
3527 Use i386_dr_region_ok_for_watchpoint.
3528 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3530 2014-06-19 Gary Benson <gbenson@redhat.com>
3532 * i386-nat.c (i386_insert_hw_breakpoint): Use
3533 i386_insert_watchpoint.
3534 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3536 2014-06-19 Gary Benson <gbenson@redhat.com>
3538 * i386-nat.c (i386_dr_show): Renamed to
3539 i386_show_dr and made static. All uses updated.
3540 (i386_dr_length_and_rw_bits): Renamed to
3541 i386_length_and_rw_bits and made static.
3543 (i386_dr_insert_aligned_watchpoint): Renamed to
3544 i386_insert_aligned_watchpoint and made static.
3546 (i386_dr_remove_aligned_watchpoint): Renamed to
3547 i386_remove_aligned_watchpoint and made static.
3549 (i386_dr_update_inferior_debug_regs): Renamed to
3550 i386_update_inferior_debug_regs and made static.
3552 * nat/i386-dregs.h (i386_dr_show): Removed.
3553 (i386_dr_length_and_rw_bits): Likewise.
3554 (i386_dr_insert_aligned_watchpoint): Likewise.
3555 (i386_dr_remove_aligned_watchpoint): Likewise.
3556 (i386_dr_update_inferior_debug_regs): Likewise.
3558 2014-06-19 Gary Benson <gbenson@redhat.com>
3560 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3561 * configure: Regenerate.
3562 * config.in: Likewise.
3563 * main.c (signal.h): New include.
3564 (setup_alternate_signal_stack): New function.
3565 (captured_main): Call the above.
3566 * cp-support.c (signal.h): New include.
3567 (catch_demangler_crashes): New flag.
3568 (SIGJMP_BUF): New define.
3569 (SIGSETJMP): Likewise.
3570 (SIGLONGJMP): Likewise.
3571 (gdb_demangle_jmp_buf): New static global.
3572 (gdb_demangle_attempt_core_dump): Likewise.
3573 (gdb_demangle_signal_handler): New function.
3574 (gdb_demangle): If catch_demangler_crashes is set, install the
3575 above signal handler before calling bfd_demangle, and restore
3576 the original signal handler afterwards. Display the offending
3577 symbol and call demangler_warning the first time a segmentation
3579 (_initialize_cp_support): New maint set/show command.
3581 2014-06-19 Gary Benson <gbenson@redhat.com>
3583 * utils.h (resource_limit_kind): New enum.
3584 (can_dump_core): New declaration.
3585 (warn_cant_dump_core): Likewise.
3586 (dump_core): Likewise.
3587 * utils.c (dump_core): Made nonstatic. Added new
3588 parameter "limit_kind".
3589 (can_dump_core): Made nonstatic. Moved printing code to...
3590 (warn_cant_dump_core): New function.
3591 (can_dump_core_warn): Likewise.
3592 (internal_vproblem): Replace calls to can_dump_core with
3593 calls to can_dump_core_warn. Supply new argument to each.
3595 2014-06-19 Gary Benson <gbenson@redhat.com>
3597 * utils.h (demangler_vwarning): New declaration.
3598 (demangler_warning): Likewise.
3599 * utils.c (struct internal_problem)
3600 <user_settable_should_quit>: New field.
3601 <user_settable_should_dump_core>: Likewise
3602 (internal_error_problem): Add values for above new fields.
3603 (internal_warning_problem): Likewise.
3604 (demangler_warning_problem): New static global.
3605 (demangler_vwarning): New function.
3606 (demangler_warning): Likewise.
3607 (add_internal_problem_command): Selectively add commands.
3608 (_initialize_utils): New internal problem command.
3609 * maint.c (maintenance_demangler_warning): New function.
3610 (_initialize_maint_cmds): New command.
3612 2014-06-18 Tom Tromey <tromey@redhat.com>
3614 * f-valprint.c (info_common_command_for_block): Update.
3615 * symtab.h (struct general_symbol_info) <common_block>: Now
3618 2014-06-18 Tom Tromey <tromey@redhat.com>
3620 * symtab.h (struct symtab) <blockvector>: Now const.
3621 * ada-lang.c (ada_add_global_exceptions): Update.
3622 * buildsym.c (augment_type_symtab): Update.
3623 * dwarf2read.c (dw2_lookup_symbol): Update.
3624 * jit.c (finalize_symtab): Update.
3625 * jv-lang.c (add_class_symtab_symbol): Update.
3626 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3628 * objfiles.c (objfile_relocate1): Update.
3629 * psymtab.c (lookup_symbol_aux_psymtabs)
3630 (maintenance_check_psymtabs): Update.
3631 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3633 * spu-tdep.c (spu_catch_start): Update.
3634 * symmisc.c (dump_symtab_1): Update.
3635 * symtab.c (lookup_global_symbol_from_objfile)
3636 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3637 (basic_lookup_transparent_type_quick)
3638 (basic_lookup_transparent_type, find_pc_sect_symtab)
3639 (find_pc_sect_line, search_symbols): Update.
3640 * block.c (find_block_in_blockvector): Make "bl" const.
3641 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3643 (blockvector_contains_pc): Make "bv" const.
3644 (block_for_pc_sect): Update.
3645 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3646 (blockvector_contains_pc): Update.
3647 * breakpoint.c (resolve_sal_pc): Update.
3648 * inline-frame.c (block_starting_point_at): Update.
3650 2014-06-18 Tom Tromey <tromey@redhat.com>
3652 * completer.c (complete_line): Make "line_buffer" const.
3653 * completer.h (complete_line): Update.
3655 2014-06-18 Tom Tromey <tromey@redhat.com>
3657 * symtab.c (add_macro_name): Remove unneeded cast.
3659 2014-06-18 Tom Tromey <tromey@redhat.com>
3661 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3662 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3664 2014-06-18 Tom Tromey <tromey@redhat.com>
3666 * probe.c (info_probes_for_ops): Make "arg" const.
3667 * probe.h (info_probes_for_ops): Update.
3669 2014-06-18 Tom Tromey <tromey@redhat.com>
3671 * varobj.c (varobj_create): Update.
3672 * valops.c (value_of_this): Update.
3673 * tracepoint.c (add_local_symbols, scope_info): Update.
3674 * symtab.h (struct general_symbol_info) <block>: Now const.
3675 * symtab.c (skip_prologue_sal)
3676 (default_make_symbol_completion_list_break_on)
3677 (skip_prologue_using_sal): Update.
3678 * stack.h (iterate_over_block_locals)
3679 (iterate_over_block_local_vars): Update.
3680 * stack.c (print_frame_args): Update.
3681 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3683 (get_selected_block): Make return type const.
3684 * python/py-frame.c (frapy_block): Update.
3685 * python/py-block.c (gdbpy_block_for_pc): Update.
3686 * p-exp.y (%union) <bval>: Now const.
3687 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3688 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3689 * m2-exp.y (%union) <bval>: Now const.
3690 * linespec.c (get_current_search_block): Make return type const.
3691 (create_sals_line_offset, find_label_symbols): Update.
3692 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3694 (block_starting_point_at): Make "block" const.
3695 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3696 (check_exception_resume): Update.
3697 * guile/scm-frame.c (gdbscm_frame_block): Update.
3698 * guile/scm-block.c (gdbscm_lookup_block): Update.
3699 * frame.h (get_frame_block): Update.
3700 (get_selected_block): Make return type const.
3701 * frame.c (frame_id_inner): Update.
3702 * f-valprint.c (info_common_command_for_block)
3703 (info_common_command): Update.
3704 * dwarf2loc.c (dwarf2_find_location_expression)
3705 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3706 (locexpr_describe_location_piece): Update.
3707 * c-exp.y (%union) <bval>: Now const.
3708 * breakpoint.c (resolve_sal_pc): Update.
3709 * blockframe.c (get_frame_block):Make return type const.
3710 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3711 (block_innermost_frame): Update.
3712 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3713 (block_for_pc, block_for_pc_sect): Update.
3714 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3716 (block_for_pc_sect, block_for_pc): Make return type const.
3717 * ax-gdb.c (gen_expr): Update.
3718 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3719 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3720 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3721 (ada_read_var_value): Update.
3722 * ada-exp.y (struct name_info) <block>: Now const.
3724 (block_lookup): Constify.
3726 2014-06-18 Gary Benson <gbenson@redhat.com>
3728 * nat/i386-dregs.h: New file.
3729 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3730 * i386-nat.h (i386-dregs.h): New include.
3731 (DR_FIRSTADDR): Now in i386-dregs.h.
3732 (DR_LASTADDR): Likewise.
3733 (DR_NADDR): Likewise.
3734 (DR_STATUS): Likewise.
3735 (DR_CONTROL): Likewise.
3736 (i386_debug_reg_state): Likewise.
3737 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3739 2014-06-18 Don Breazeal <donb@codesourcery.com>
3741 * breakpoint.c (set_longjmp_breakpoint): Call
3742 momentary_breakpoint_from_master with additional argument.
3743 (set_longjmp_breakpoint_for_call_dummy): Call
3744 momentary_breakpoint_from_master with additional argument.
3745 (set_std_terminate_breakpoint): Call
3746 momentary_breakpoint_from_master with additional argument.
3747 (momentary_breakpoint_from_master): Add argument to function
3748 definition and use it to initialize structure member flag.
3749 (clone_momentary_breakpoint): Call
3750 momentary_breakpoint_from_master with additional argument.
3751 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3752 member flags set in momentary_breakpoint_from_master.
3754 2014-06-18 Gary Benson <gbenson@redhat.com>
3756 * i386-nat.c (i386_show_dr): Renamed to
3757 i386_dr_show and made nonstatic. All uses updated.
3758 (i386_length_and_rw_bits): Renamed to
3759 i386_dr_length_and_rw_bits and made nonstatic.
3761 (i386_insert_aligned_watchpoint): Renamed to
3762 i386_dr_insert_aligned_watchpoint and made nonstatic.
3764 (i386_remove_aligned_watchpoint): Renamed to
3765 i386_dr_remove_aligned_watchpoint and made nonstatic.
3767 (i386_update_inferior_debug_regs): Renamed to
3768 i386_dr_update_inferior_debug_regs and made nonstatic.
3771 2014-06-18 Gary Benson <gbenson@redhat.com>
3773 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3774 (i386_dr_low_can_set_control): Likewise.
3775 (i386_dr_low_set_addr): Likewise.
3776 (i386_dr_low_set_control): Likewise.
3777 (i386_dr_low_get_addr): Likewise.
3778 (i386_dr_low_get_status): Likewise.
3779 (i386_dr_low_get_control): Likewise.
3780 (i386_insert_aligned_watchpoint): Use new macros.
3781 (i386_update_inferior_debug_regs): Likewise.
3782 (i386_stopped_data_address): Likewise.
3784 2014-06-18 Gary Benson <gbenson@redhat.com>
3786 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3787 New parameter. All uses updated.
3789 2014-06-18 Gary Benson <gbenson@redhat.com>
3791 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3794 2014-06-18 Gary Benson <gbenson@redhat.com>
3796 * i386-nat.c (debug_printf): New macro.
3797 (i386_get_debug_register_length): Likewise.
3798 (TARGET_HAS_DR_LEN_8): Use above macro.
3799 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3800 and printf_unfiltered. Use phex to format values.
3802 2014-06-18 Gary Benson <gbenson@redhat.com>
3804 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3807 2014-06-18 Gary Benson <gbenson@redhat.com>
3809 * i386-nat.c: Comment changes.
3811 2014-06-18 Gary Benson <gbenson@redhat.com>
3813 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3815 2014-06-18 Gary Benson <gbenson@redhat.com>
3817 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3818 (i386_insert_aligned_watchpoint): Likewise.
3819 (i386_remove_aligned_watchpoint): Likewise.
3820 (i386_handle_nonaligned_watchpoint): Likewise.
3822 2014-06-18 Gary Benson <gbenson@redhat.com>
3824 * i386-nat.c: Whitespace changes.
3826 2014-06-17 Samuel Bronson <naesten@gmail.com>
3828 * MAINTAINERS: Update Roland McGrath's email address.
3829 Thanks to Sergio Durigan Junior for pointing out that he left
3830 Red Hat a while ago, and giving me a current address.
3832 2014-06-17 Tom Tromey <tromey@redhat.com>
3834 * utils.h (savestring): Remove declaration.
3836 2014-06-17 Tom Tromey <tromey@redhat.com>
3838 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3840 2014-06-16 Keith Seitz <keiths@redhat.com>
3843 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3844 to update the varobj if inferior_ptid is null_ptid.
3846 2014-06-16 Tom Tromey <tromey@redhat.com>
3848 * target.h (struct target_ops) <to_info_proc>: Make parameter
3850 (target_info_proc): Update.
3851 * target.c (target_info_proc): Make "args" const.
3852 * procfs.c (procfs_info_proc): Update.
3853 * linux-tdep.c (linux_info_proc): Update.
3854 (linux_core_info_proc_mappings): Make "args" const.
3855 (linux_core_info_proc): Update.
3856 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3857 * gdbarch.c: Rebuild.
3858 * gdbarch.h: Rebuild.
3859 * corelow.c (core_info_proc): Update.
3861 2014-06-16 Tom Tromey <tromey@redhat.com>
3863 * target.h (struct target_ops) <to_disconnect>: Make parameter
3865 (target_disconnect): Update.
3866 * target.c (target_disconnect): Make "args" const.
3867 * target-delegates.c: Rebuild.
3868 * remote.c (remote_disconnect): Update.
3869 * record.h (record_disconnect): Update.
3870 * record.c (record_disconnect): Update.
3871 * inf-child.c (inf_child_disconnect): Update.
3873 2014-06-16 Tom Tromey <tromey@redhat.com>
3875 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3876 * target.c (debug_to_rcmd, default_rcmd): Update.
3877 * target-delegates.c: Rebuild.
3878 * remote.c (remote_rcmd): Update.
3879 * monitor.c (monitor_rcmd): Update.
3881 2014-06-16 Pedro Alves <palves@redhat.com>
3883 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3884 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3885 have OBJF_SHARED set.
3886 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3887 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3888 instead of OBJF_USERLOADED.
3889 * objfiles.h (OBJF_SHARED): Update comment.
3890 (userloaded_objfile_contains_address_p): Rename to ...
3891 (shared_objfile_contains_address_p): ... this, and update
3893 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3895 (remove_symbol_file_command): Skip objfiles that don't have
3898 2014-06-16 Tom Tromey <tromey@redhat.com>
3900 * minsyms.h (prim_record_minimal_symbol)
3901 (prim_record_minimal_symbol_and_info): Update comments.
3903 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3905 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3906 or --without-guile, according to how GDB was built.
3908 2014-06-13 Tom Tromey <tromey@redhat.com>
3910 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3912 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3914 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3916 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3917 help_list.Pass all_commands, not -1, to help_list.
3918 * cli/cli-dump.c (dump_command, append_command)
3919 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3920 (binary_dump_command, binary_append_command): Pass all_commands,
3921 not -1, to help_list.
3922 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3924 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3926 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3928 * top.c (set_history): Pass all_commands, not -1, to help_list.
3929 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3930 all_commands, not -1, to help_list.
3931 * symfile.c (overlay_command): Pass all_commands, not -1, to
3933 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3935 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3937 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3939 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3940 not -1, to help_list.
3941 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3942 not -1, to help_list.
3943 * maint.c (maintenance_command, maintenance_info_command)
3944 (maintenance_print_command, maintenance_set_cmd): Pass
3945 all_commands, not -1, to help_list.
3946 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3948 * language.c (set_check): Pass all_commands, not -1, to help_list.
3949 * infcmd.c (unset_command): Pass all_commands, not -1, to
3951 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3953 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3955 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3957 * breakpoint.c (save_command): Pass all_commands, not -1, to
3959 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3960 all_commands, not -1, to help_list.
3962 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3964 * regcache.c (struct register_to_invalidate): New structure.
3965 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3967 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3969 2014-06-12 Yao Qi <yao@codesourcery.com>
3971 * varobj.c (varobj_get_num_children): Call
3972 varobj_is_dynamic_p.
3973 (varobj_list_children): Likewise.
3974 (varobj_update): Likewise. Update comments.
3976 2014-06-12 Yao Qi <yao@codesourcery.com>
3978 * varobj.c (varobj_pretty_printed_p): Rename to ...
3979 (varobj_is_dynamic_p): ... this. New function.
3980 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3981 (varobj_is_dynamic_p): Declare.
3982 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3983 (mi_print_value_p, varobj_update_one): Likewise.
3985 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3986 Yao Qi <yao@codesourcery.com>
3988 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3989 (varobj_get_iterator): Wrap up code for pretty-printer by
3990 "#if HAVE_PYTHON" and "#endif".
3991 (update_dynamic_varobj_children): Likewise.
3993 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3994 Yao Qi <yao@codesourcery.com>
3996 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3997 gdb_python_initialized is false. Move some code from varobj.c.
3998 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3999 * varobj.c: Move "varobj-iter.h" inclusion earlier.
4000 (struct varobj_item): Moved to varobj-iter.h".
4001 (varobj_clear_saved_item): New function.
4002 (update_dynamic_varobj_children): Move python-related code to
4004 (free_variable): Call varobj_clear_saved_item and
4007 2014-06-12 Pedro Alves <pedro@codesourcery.com>
4008 Yao Qi <yao@codesourcery.com>
4010 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4011 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4012 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4013 (py-varobj.o): New rule.
4014 * python/py-varobj.c: New file.
4015 * python/python-internal.h (py_varobj_get_iterator): Declare.
4016 * varobj-iter.h: New file.
4017 * varobj.c: Include "varobj-iter.h"
4018 (struct varobj) <child_iter>: Change its type from "PyObject *"
4019 to "struct varobj_iter *".
4020 <saved_item>: Likewise.
4021 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4022 [HAVE_PYTHON] (varobj_get_iterator): New function.
4023 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4024 python-specific code to python/py-varobj.c.
4025 (install_visualizer): Call varobj_iter_delete instead of
4027 * varobj.h (varobj_ensure_python_env): Declare.
4029 2014-06-12 Yao Qi <yao@codesourcery.com>
4031 * varobj.c (struct varobj_item): New structure.
4032 (create_child_with_value): Update declaration.
4033 (varobj_add_child): Replace arguments 'name' and 'value' with
4034 'item'. All callers updated.
4035 (install_dynamic_child): Likewise.
4036 (update_dynamic_varobj_children): Likewise.
4037 (varobj_add_child): Likewise.
4038 (create_child_with_value): Likewise.
4040 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4042 * NEWS: Create a new section for the next release branch.
4043 Rename the section of the current branch, now that it has
4046 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4048 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4049 * version.in: Bump version to 7.8.50.DATE-cvs.
4051 2014-06-11 Pedro Alves <palves@redhat.com>
4054 * ser-mingw.c (net_windows_socket_check_pending): New function.
4055 (net_windows_select_thread): Ignore spurious wakeups. Use
4056 net_windows_socket_check_pending.
4057 (net_windows_wait_handle): Check for pending events with
4058 ioctlsocket, through net_windows_socket_check_pending, instead of
4059 checking the socket's event.
4061 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4063 * python/python-internal.h (gdb_PyObject_GetAttrString)
4064 (gdb_PyObject_HasAttrString): New inline function definitions.
4065 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4066 char * of the second argument to PyObject_GetAttrString.
4068 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4070 * serial.c (serial_write): Fix index of character to be printed
4071 in call to serial_logchar when serial debug traces are enabled.
4073 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4075 * gdbtypes (resolve_dynamic_range): Add function description.
4077 2014-06-09 Pedro Alves <palves@redhat.com>
4079 * linux-nat.c (linux_child_follow_fork): Initialize status with
4080 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4081 inner block. Only pass the signal to PTRACE_DETACH if in pass
4084 2014-06-09 Gary Benson <gbenson@redhat.com>
4086 * common/signals.c (gdb_signal_from_host): Reorder to separate
4087 the always-available ANSI-standard signals from the signals that
4089 (do_gdb_signal_to_host): Likewise.
4090 * proc-events.c (signal_table): Likewise.
4092 2014-06-08 Hui Zhu <hui@codesourcery.com>
4094 * common/linux-ptrace.c (linux_disable_event_reporting): New
4096 * common/linux-ptrace.h (linux_disable_event_reporting): New
4098 * linux-nat.c (linux_child_follow_fork): Do a single step before
4101 2014-06-07 Keith Seitz <keiths@redhat.com>
4105 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4106 from symbol_matches_domain in symtab.c. All local callers
4107 of symbol_matches_domain updated.
4108 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4109 search STRUCT_DOMAIN.
4110 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4111 independently. standard_lookup will do that automatically.
4112 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4113 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4114 (cp_lookup_symbol_in_namespace): Likewise.
4115 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4116 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4117 may return a STRUCT_DOMAIN match.
4118 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4119 * cp-support.c: Include language.h.
4120 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4122 * psymtab.c (match_partial_symbol): Compare the requested
4123 domain with the symbol's domain directly.
4124 (lookup_partial_symbol): Likewise.
4125 * symtab.c (lookup_symbol_in_language): Explain when/why
4126 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4127 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4128 appropriate languages.
4129 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4130 and moved to ada-lang.c
4131 (lookup_block_symbol): Explain that this function only returns
4132 symbol matching the requested DOMAIN.
4133 Compare the requested domain with the symbol's domain directly.
4134 (iterate_over_symbols): Compare the requested domain with the
4135 symbol's domain directly.
4136 * symtab.h (symbol_matches_domain): Remove.
4138 2014-06-06 Doug Evans <xdje42@gmail.com>
4140 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4141 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4142 (gdbscm_guile_version_is_at_least): Declare.
4143 (gdbscm_scm_string_to_int): Declare.
4144 * guile/guile.c (gdbscm_guile_major_version): New global.
4145 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4146 (guile_datadir): New static global.
4147 (gdbscm_guile_data_directory): New function.
4148 (initialize_scheme_side): Update.
4149 (misc_guile_functions): Add guile-data-directory.
4150 (initialize_gdb_module): Fetch guile version number.
4151 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4152 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4153 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4154 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4156 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4157 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4158 * guile/scm-value.c (gdbscm_value_to_string): Only call
4159 scm_port_conversion_strategy if Guile version >= 2.0.6.
4161 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4163 * main.c (print_gdb_help): Add -q and --silent.
4165 2014-06-06 Gary Benson <gbenson@redhat.com>
4167 * common/signals.c: Remove preprocessor conditionals for
4168 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4169 SIGSEGV and SIGTERM.
4170 * proc-events.c: Likewise.
4172 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4174 * symfile.c (symfile_free_objfile): Remove restriction to
4176 * symfile-mem.c (symbol_file_add_from_memory): Call
4177 add_target_sections_of_objfile.
4179 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4181 * guile/scm-value.c (gdbscm_history_append_x): Use
4182 'vlscm_get_value_smob_arg_unsafe' instead of
4183 'vlscm_scm_to_value'.
4185 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4188 * utils.c (printchar): Don't escape at all if quoter is NUL.
4189 Update function documentation to clarify effect of parameter
4191 * remote.c (escape_buffer): Pass '\\' as the quoter to
4192 fputstrn_unfiltered.
4193 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4194 generate the output.
4195 (mi_solib_unloaded): Same.
4197 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4199 * development.sh: Delete.
4200 * Makefile.in (config.status): Adjust dependency on development.sh.
4201 * configure.ac: Adjust development.sh source call.
4202 * configure: Regenerate.
4204 2014-06-04 Doug Evans <xdje42@gmail.com>
4206 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4207 is_scheme_bkpt, spec.
4208 (bpscm_make_breakpoint_smob): Initialize new members.
4209 (gdbscm_create_breakpoint_x): Split into two ...
4210 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4211 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4212 (scheme_function breakpoint_functions): Update.
4213 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4214 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4215 register-breakpoint!.
4217 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4220 * mem-break.c (z_type_supported): Return zero if
4221 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4223 2014-06-04 Tom Tromey <tromey@redhat.com>
4225 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4226 value_from_contents_and_address_unresolved.
4227 (ada_template_to_fixed_record_type_1): Likewise.
4228 (ada_which_variant_applies): Likewise.
4229 * value.h (value_from_contents_and_address_unresolved): Declare.
4230 * value.c (value_from_contents_and_address_unresolved): New
4232 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4233 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4234 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4236 2014-06-04 Tom Tromey <tromey@redhat.com>
4238 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4240 2014-06-04 Tom Tromey <tromey@redhat.com>
4242 * procfs.c (procfs_attach): Make "args" const.
4243 * windows-nat.c (windows_attach): Make "args" const.
4244 * nto-procfs.c (procfs_attach): Make "args" const.
4245 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4246 * go32-nat.c (go32_attach): Make "args" const.
4247 * gnu-nat.c (gnu_attach): Make "args" const.
4248 * darwin-nat.c (darwin_attach): Make "args" const.
4249 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4250 * linux-nat.c (linux_nat_attach): Make "args" const.
4251 * remote.c (extended_remote_attach_1, extended_remote_attach):
4253 * target.h (struct target_ops) <to_attach>: Make "args" const.
4254 (find_default_attach): Likewise.
4255 * utils.c (parse_pid_to_attach): Make "args" const.
4256 * utils.h (parse_pid_to_attach): Update.
4258 2014-06-04 Tom Tromey <tromey@redhat.com>
4260 * target-delegates.c: Rebuild.
4261 * target.c (default_thread_address_space): New function.
4262 (target_thread_address_space): Simplify.
4263 * target.h (struct target_ops) <to_thread_address_space>: Add
4264 TARGET_DEFAULT_FUNC.
4266 2014-06-04 Doug Evans <xdje42@gmail.com>
4268 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4270 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4272 * record-btrace.c: Include event-loop.h and inf-loop.h.
4273 (record_btrace_resume_exec_dir)
4274 (record_btrace_async_inferior_event_handler)
4275 (record_btrace_handle_async_inferior_event): New.
4276 (record_btrace_open): Create async event handler.
4277 (record_btrace_close): Delete async event handler.
4278 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4279 Mark async event handler.
4280 (record_btrace_execution_direction): New.
4281 (init_record_btrace_ops): Initialize to_execution_direction.
4283 2014-06-03 Doug Evans <xdje42@gmail.com>
4285 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4286 (gdbscm_make_parameter): Ditto.
4288 2014-06-03 Doug Evans <dje@google.com>
4290 * exec.c (exec_close_1): Call clear_section_table instead of
4291 resize_section_table.
4292 (clear_section_table): New function.
4293 (resize_section_table): Make static. Rename arg num_added to
4295 * exec.h (clear_section_table): Declare.
4296 (resize_section_table): Delete.
4297 * progspace.c (release_program_space): Call clear_section_table
4298 instead of resize_section_table.
4300 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4302 * NEWS (Python Scripting): Add entry about the new xmethods
4305 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4307 * python/py-xmethods.c: New file.
4308 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4309 (objfpy_dealloc): XDECREF on the new xmethods field.
4310 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4312 (objfpy_get_xmethods): New function.
4313 (objfile_getset): New entry 'xmethods'.
4314 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4315 (pspy_dealloc): XDECREF on the new xmethods field.
4316 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4318 (pspy_get_xmethods): New function.
4319 (pspace_getset): New entry 'xmethods'.
4320 * python/python-internal.h: Add declarations for new functions.
4321 * python/python.c (_initialize_python): Invoke
4322 gdbpy_initialize_xmethods.
4323 * python/lib/gdb/__init__.py (xmethods): New
4325 * python/lib/gdb/xmethod.py: New file.
4326 * python/lib/gdb/command/xmethods.py: New file.
4328 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4330 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4331 best match method returned by find_overload_match is an xmethod.
4332 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4333 the best matching operator returned by find_overload_match is an
4335 * valops.c: #include "extension.h".
4336 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4337 Return void. The list of matching source methods is returned in
4338 "fn_list" and a vector of matching debug method workers is
4339 returned in "xm_worker_vec". Update all callers.
4340 (value_find_oload_method_list): Likewise.
4341 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4342 non-NULL, then the index of the best matching method in this
4343 vector is returned. Update all callers.
4344 (find_overload_match): Include xmethods while performing overload
4347 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4349 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4350 * extension-priv.h (struct extension_language_ops): Add the
4352 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4353 get_matching_xmethod_workers, get_xmethod_argtypes,
4354 invoke_xmethod, free_xmethod_worker,
4355 free_xmethod_worker_vec): New functions.
4356 * extension.h: #include "common/vec.h".
4357 New function declarations.
4358 (struct xmethod_worker): New struct.
4359 (VEC (xmethod_worker_ptr)): New vector type.
4360 (xmethod_worker_ptr): New typedef.
4361 (xmethod_worker_vec): Likewise.
4362 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4364 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4365 (struct builtin_type): New field "xmethod".
4366 * valarith.c (value_ptradd): Assert that the value argument is not
4368 * valops.c (value_must_coerce_to_target): Return 0 for
4369 lval_xcallable values.
4370 * value.c (struct value): New field XM_WORKER in the field
4372 (value_address, value_raw_address): Return 0 for lval_xcallable
4374 (set_value_address): Assert that the value is not an
4376 (value_free): Free the associated xmethod worker when freeing
4377 lval_xcallable values.
4378 (set_value_component_location): Assert that the WHOLE value is not
4380 (value_of_xmethod, call_xmethod): New functions.
4381 * value.h: Declare "struct xmethod_worker".
4382 Declare new functions value_of_xmethod, call_xmethod.
4384 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4385 Pedro Alves <palves@redhat.com>
4387 PR breakpoints/17000
4388 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4389 New function, extracted from software_breakpoint_inserted_here_p.
4390 (software_breakpoint_inserted_here_p): Replace factored out code
4391 by call to find_non_raw_software_breakpoint_inserted_here.
4392 (bp_target_info_copy_insertion_state): New function.
4393 (bkpt_insert_location): Handle the case of a single-step
4394 breakpoint already inserted at the same address.
4395 (bkpt_remove_location): Handle the case of a single-step
4396 breakpoint still inserted at the same address.
4397 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4398 breakpoint already inserted at the same address.
4399 (deprecated_remove_raw_breakpoint): Handle the case of a
4400 non-raw breakpoint still inserted at the same address.
4401 (find_single_step_breakpoint): New function, extracted from
4402 single_step_breakpoint_inserted_here_p.
4403 (find_single_step_breakpoint): New function,
4404 factored out from single_step_breakpoint_inserted_here_p.
4405 (single_step_breakpoint_inserted_here_p): Reimplement.
4407 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4409 Pushed by Joel Brobecker <brobecker@adacore.com>
4410 * source.c (show_substitute_path_command): Fix display of matching
4413 2014-06-03 Gary Benson <gbenson@redhat.com>
4415 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4417 2014-06-02 Doug Evans <xdje42@gmail.com>
4419 Add parameter support for Guile.
4420 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4421 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4422 (scm-param.o): New rule.
4423 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4424 (gdbscm_misc_error): Declare.
4425 (gdbscm_canonicalize_command_name): Declare.
4426 (gdbscm_scm_to_host_string): Declare.
4427 (gdbscm_scm_from_host_string): Declare.
4428 (gdbscm_initialize_parameters): Declare.
4429 * guile/guile.c (initialize_gdb_module): Call
4430 gdbscm_initialize_parameters.
4431 * guile/lib/gdb.scm: Export parameter symbols.
4432 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4433 cmdscm_canonicalize_name and made public. All callers updated.
4434 * guile/scm-exception.c (gdbscm_misc_error): New function.
4435 * guile/scm-param.c: New file.
4436 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4437 (gdbscm_scm_to_host_string): New function.
4438 (gdbscm_scm_from_host_string): New function.
4439 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4441 2014-06-02 Doug Evans <xdje42@gmail.com>
4443 Add command support for Guile.
4444 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4445 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4446 (scm-cmd.o): New rule.
4447 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4448 (gdbscm_user_error_p): Declare.
4449 (gdbscm_parse_command_name): Declare.
4450 (gdbscm_valid_command_class_p): Declare.
4451 (gdbscm_initialize_commands): Declare.
4452 * guile/guile.c (initialize_gdb_module): Call
4453 gdbscm_initialize_commands.
4454 * guile/lib/gdb.scm: Export command symbols.
4455 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4456 (throw-user-error): New function.
4457 * guile/scm-cmd.c: New file.
4458 * guile/scm-exception.c (user_error_symbol): New static global.
4459 (gdbscm_user_error_p): New function.
4460 (gdbscm_initialize_exceptions): Set user_error_symbol.
4461 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4463 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4465 * top.c (command_loop): Handle comments here...
4466 (command_line_input): ... not here.
4468 2014-06-02 Doug Evans <xdje42@gmail.com>
4470 Add progspace support for Guile.
4471 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4472 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4473 (scm-progspace.o): New rule.
4474 * guile/guile-internal.h (pspace_smob): New typedef.
4475 (psscm_pspace_smob_pretty_printers): Declare.
4476 (psscm_pspace_smob_from_pspace): Declare.
4477 (psscm_scm_from_pspace): Declare.
4478 * guile/guile.c (initialize_gdb_module): Call
4479 gdbscm_initialize_pspaces.
4480 * guile/lib/gdb.scm: Export progspace symbols.
4481 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4483 (append-pretty-printer!): Ditto.
4484 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4486 * guile/scm-progspace.c: New file.
4488 2014-06-03 Alan Modra <amodra@gmail.com>
4490 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4491 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4493 2014-06-02 Doug Evans <dje@google.com>
4495 Add support for skeletonless type units.
4496 * dwarf2read.c (struct dwarf2_per_objfile): New member
4497 n_allocated_type_units.
4498 (struct dwarf2_per_objfile) <tu_stats>: New member
4499 nr_all_type_units_reallocs.
4500 (create_signatured_type_table_from_index): Initialize
4501 n_allocated_type_units
4502 (create_all_type_units): Ditto.
4503 (add_type_unit): Move up in file. New arg slot.
4504 All callers updated. Increase space for all_type_units more
4506 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4507 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4508 (lookup_dwp_signatured_type): Ditto.
4509 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4510 All callers updated.
4511 (build_type_psymtabs_1): Leave type_unit_groups as
4512 NULL if no TUs present.
4513 (print_tu_stats): New function.
4514 (process_skeletonless_type_unit): New function.
4515 (process_dwo_file_for_skeletonless_type_units): New
4517 (process_skeletonless_type_units): New function.
4518 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4519 Call print tu_stats if debugging enabled.
4521 2014-06-02 Pedro Alves <palves@redhat.com>
4523 * breakpoint.c (build_target_command_list): Don't build a command
4524 list if we have any duplicate location that isn't a dprintf.
4526 2014-06-02 Pedro Alves <palves@redhat.com>
4528 * breakpoint.c (dprintf_breakpoint_hit): New function.
4529 (initialize_breakpoint_ops): Install it as dprintf's
4530 breakpoint_hit method.
4532 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4534 * source.c (substitute_path_rule_matches): Simplify using
4535 filename_ncmp instead of FILENAME_CMP.
4537 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4539 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4541 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4543 * configure.ac: When Guile is available, check for the
4544 availability of 'scm_new_smob'.
4545 * configure, config.h.in: Regenerate.
4546 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4549 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4551 * frame.c (struct frame_info): Add stop_string field.
4552 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4553 (get_prev_frame_always): Old content moved into
4554 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4555 TRY_CATCH, handle MEMORY_ERROR exceptions.
4556 (frame_stop_reason_string): New function definition.
4557 * frame.h (unwind_stop_reason_to_string): Extend comment to
4558 mention frame_stop_reason_string.
4559 (frame_stop_reason_string): New function declaration.
4560 * stack.c (frame_info): Switch to frame_stop_reason_string.
4561 (backtrace_command_1): Switch to frame_stop_reason_string.
4562 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4563 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4564 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4566 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4568 * frame.c (frame_stop_reason_string): Rename to ...
4569 (unwind_stop_reason_to_string): this.
4570 * frame.h (frame_stop_reason_string): Rename to ...
4571 (unwind_stop_reason_to_string): this.
4572 * stack.c (frame_info): Update call to frame_stop_reason_string.
4573 (backtrace_command_1): Likewise.
4574 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4575 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4577 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4579 * frame.c (remove_prev_frame): New function.
4580 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4583 2014-05-29 Pedro Alves <palves@redhat.com>
4585 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4586 and make it const. When a single-step decays to a continue,
4587 clear 'step', not 'hw_step'. Pass whether the caller wanted
4588 to step to user_visible_resume_ptid, not what we ask the
4591 2014-05-29 Pedro Alves <palves@redhat.com>
4593 * infrun.c (process_event_stop_test, handle_step_into_function)
4594 (handle_step_into_function_backward): Adjust.
4595 Don't set the even thread's stop_step and call stop_waiting before
4596 calling end_stepping_range. Instead do that ...
4597 (end_stepping_range): ... here. Take an ecs pointer parameter.
4599 2014-05-29 Pedro Alves <palves@redhat.com>
4601 * infrun.c (stop_stepping): Rename to ...
4602 (stop_waiting): ... this.
4603 (proceed): Update comment.
4604 (process_event_stop_test, handle_inferior_event)
4605 (handle_signal_stop, handle_step_into_function)
4606 (handle_step_into_function_backward): Update.
4608 2014-05-29 Pedro Alves <palves@redhat.com>
4610 * infcall.c (run_inferior_call): Don't check whether the current
4611 thread is running after the proceed call.
4613 2014-05-29 Pedro Alves <palves@redhat.com>
4614 Tom Tromey <tromey@redhat.com>
4616 * NEWS: Mention "maint set target-async", "set mi-async", and that
4617 background execution commands are now always available.
4618 * target.h (target_async_permitted): Update comment.
4619 * target.c (target_async_permitted, target_async_permitted_1):
4621 (set_target_async_command): Rename to ...
4622 (maint_set_target_async_command): ... this.
4623 (show_target_async_command): Rename to ...
4624 (maint_show_target_async_command): ... this.
4625 (_initialize_target): Adjust.
4626 * infcmd.c (prepare_execution_command): Make extern.
4627 * inferior.h (prepare_execution_command): Declare.
4628 * infrun.c (set_observer_mode): Leave target async alone.
4629 * mi/mi-interp.c (mi_interpreter_init): Install
4630 mi_on_sync_execution_done as sync_execution_done observer.
4631 (mi_on_sync_execution_done): New function.
4632 (mi_execute_command_input_handler): Don't print the prompt if we
4633 just started a synchronous command with an async target.
4634 (mi_on_resume): Check sync_execution before printing prompt.
4635 * mi/mi-main.h (mi_async_p): Declare.
4636 * mi/mi-main.c: Include gdbcmd.h.
4637 (mi_async_p): New function.
4638 (mi_async, mi_async_1): New globals.
4639 (set_mi_async_command, show_mi_async_command, mi_async): New
4641 (exec_continue): Call prepare_execution_command.
4642 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4643 (mi_execute_async_cli_command): Use mi_async_p.
4644 (_initialize_mi_main): Install "set mi-async". Make
4645 "target-async" a deprecated alias.
4647 2014-05-29 Pedro Alves <palves@redhat.com>
4649 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4650 (_initialize_cli_interp): Adjust.
4651 * event-loop.c: Include "observer.h".
4652 (start_event_loop): Notify 'command_error' observers instead of
4653 calling display_gdb_prompt. Remove FIXME comment.
4654 * event-top.c (display_gdb_prompt): Remove call into the
4656 * inf-loop.c: Include "observer.h".
4657 (inferior_event_handler): Notify 'command_error' observers instead
4658 of calling display_gdb_prompt.
4659 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4660 observers instead of calling display_gdb_prompt.
4661 * interps.c (interp_set): Don't call display_gdb_prompt.
4662 (current_interp_display_prompt_p): Delete.
4663 * interps.h (interp_prompt_p): Delete declaration.
4664 (interp_prompt_p_ftype): Delete.
4665 (struct interp_procs) <prompt_proc_p>: Delete field.
4666 (current_interp_display_prompt_p): Delete declaration.
4667 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4668 (_initialize_mi_interp): Adjust.
4669 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4670 'command_error' observers.
4671 (tui_on_sync_execution_done, tui_on_command_error): New
4673 (tui_display_prompt_p): Delete.
4674 (_initialize_tui_interp): Adjust.
4676 2014-05-29 Pedro Alves <palves@redhat.com>
4679 * cli/cli-interp.c: Include infrun.h and observer.h.
4680 (cli_uiout, cli_interp): New globals.
4681 (cli_on_signal_received, cli_on_end_stepping_range)
4682 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4684 (cli_interpreter_init): Install them as 'end_stepping_range',
4685 'signal_received' 'signal_exited', 'exited' and 'no_history'
4687 (_initialize_cli_interp): Remove cli_interp local.
4688 * infrun.c (handle_inferior_event): Call the several stop reason
4689 observers instead of printing the stop reason directly.
4690 (end_stepping_range): New function.
4691 (print_end_stepping_range_reason, print_signal_exited_reason)
4692 (print_exited_reason, print_signal_received_reason)
4693 (print_no_history_reason): Make static, and add an uiout
4694 parameter. Print to that instead of to CURRENT_UIOUT.
4695 * infrun.h (print_end_stepping_range_reason)
4696 (print_signal_exited_reason, print_exited_reason)
4697 (print_signal_received_reason print_no_history_reason): New
4699 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4701 <cli_uiout>: New field.
4702 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4703 uiout for CLI output. Install 'signal_received',
4704 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4706 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4707 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4708 (mi_on_no_history): New functions.
4709 (ui_out_free_cleanup): Delete function.
4710 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4711 instead use the one already stored in the MI interpreter data.
4712 (mi_ui_out): Adjust.
4713 * tui/tui-interp.c: Include infrun.h and observer.h.
4714 (tui_interp): New global.
4715 (tui_on_signal_received, tui_on_end_stepping_range)
4716 (tui_on_signal_exited, tui_on_exited)
4717 (tui_on_no_history): New functions.
4718 (tui_init): Install them as 'end_stepping_range',
4719 'signal_received' 'signal_exited', 'exited' and 'no_history'
4721 (_initialize_tui_interp): Delete tui_interp local.
4723 2014-05-29 Pedro Alves <palves@redhat.com>
4726 * linux-nat.c (linux_nat_resume_callback): Rename the second
4727 parameter to 'except'. Skip LP if it points to EXCEPT.
4728 (linux_nat_resume): Don't mark the event lwp as not stopped
4729 before resuming sibling lwps. Instead ask
4730 linux_nat_resume_callback to skip the event lwp. Mark it as not
4731 stopped after actually resuming it.
4732 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4734 (wait_lwp): Mark the lwp as stopped here.
4735 (stop_wait_callback): Mark the lwp as not stopped right after
4736 resuming it. Don't mark lwps as stopped here.
4737 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4738 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4740 2014-05-29 Pedro Alves <palves@redhat.com>
4743 * infrun.c (resume): Determine how much to resume depending on
4744 whether the caller wanted a step, not whether we can hardware step
4745 the target. Mark all threads that we intend to run as running,
4746 unless we're calling an inferior function.
4747 (normal_stop): If the thread is running an infcall, don't finish
4749 * target.c (target_resume): Don't mark threads as running here.
4751 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4753 * serial.c (_initialize_serial): Remove support for
4754 the "set remotebaud" and "show remotebaud" commands.
4755 * NEWS: Add entry documenting the removal of that command.
4757 2014-05-28 Yao Qi <yao@codesourcery.com>
4759 * charset.c: Fix typo in comments.
4761 2014-05-27 Gary Benson <gbenson@redhat.com>
4763 * utils.c (internal_vproblem): Prompt for a bug report.
4765 2014-05-26 Andy Wingo <wingo@igalia.com>
4767 * guile/scm-arch.c (arscm_mark_arch_smob):
4768 * guile/scm-block.c (bkscm_mark_block_smob)
4769 (bkscm_mark_block_syms_progress_smob):
4770 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4771 * guile/scm-exception.c (exscm_mark_exception_smob):
4772 * guile/scm-frame.c (frscm_mark_frame_smob):
4773 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4774 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4775 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4776 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4777 (ppscm_mark_pretty_printer_worker_smob):
4778 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4779 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4780 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4781 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4783 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4786 2014-05-26 Andy Wingo <wingo@igalia.com>
4787 Doug Evans <xdje42@gmail.com>
4789 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4790 empty_base_class. All uses updated.
4791 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4792 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4794 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4795 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4796 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4797 (gdbscm_gsmob_has_property_p, add_property_name)
4798 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4799 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4800 (gdb-object-has-property?, gdb-object-properties): Remove.
4801 (gdb-object-kind): Renamed from gsmob-kind.
4803 2014-05-26 Andy Wingo <wingo@igalia.com>
4805 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4806 * configure: Regenerate.
4808 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4810 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4812 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4814 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4815 (replay_memory_access_read_only, replay_memory_access_read_write)
4816 (replay_memory_access_types, replay_memory_access)
4817 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4818 (cmd_set_record_btrace, cmd_show_record_btrace)
4819 (cmd_show_replay_memory_access): New.
4820 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4821 (record_btrace_remove_breakpoint): Replace
4822 record_btrace_allow_memory_access with replay_memory_access.
4823 (_initialize_record_btrace): Add commands.
4824 * NEWS: Announce it.
4826 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4828 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4830 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4832 * MAINTAINERS (Write After Approval): Move self back from
4835 2014-05-22 Pedro Alves <palves@redhat.com>
4837 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4838 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4839 (disable_randomization, enum exec_direction_kind)
4840 (execution_direction, stop_registers, start_remote)
4841 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4842 (wait_for_inferior, normal_stop, get_last_target_status)
4843 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4844 (insert_step_resume_breakpoint_at_sal)
4845 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4846 (set_step_info, print_stop_event, signal_stop_state)
4847 (signal_print_state, signal_pass_state, signal_stop_update)
4848 (signal_print_update, signal_pass_update)
4849 (update_signals_program_target, clear_exit_convenience_vars)
4850 (displaced_step_dump_bytes, update_observer_mode)
4851 (signal_catch_update, gdb_signal_from_command): Move
4853 * infrun.h: ... to this new file.
4854 * amd64-tdep.c: Include infrun.h.
4855 * annotate.c: Include infrun.h.
4856 * arch-utils.c: Include infrun.h.
4857 * arm-linux-tdep.c: Include infrun.h.
4858 * arm-tdep.c: Include infrun.h.
4859 * break-catch-sig.c: Include infrun.h.
4860 * breakpoint.c: Include infrun.h.
4861 * common/agent.c: Include infrun.h instead of inferior.h.
4862 * corelow.c: Include infrun.h.
4863 * event-top.c: Include infrun.h.
4864 * go32-nat.c: Include infrun.h.
4865 * i386-tdep.c: Include infrun.h.
4866 * inf-loop.c: Include infrun.h.
4867 * infcall.c: Include infrun.h.
4868 * infcmd.c: Include infrun.h.
4869 * infrun.c: Include infrun.h.
4870 * linux-fork.c: Include infrun.h.
4871 * linux-nat.c: Include infrun.h.
4872 * linux-thread-db.c: Include infrun.h.
4873 * monitor.c: Include infrun.h.
4874 * nto-tdep.c: Include infrun.h.
4875 * procfs.c: Include infrun.h.
4876 * record-btrace.c: Include infrun.h.
4877 * record-full.c: Include infrun.h.
4878 * remote-m32r-sdi.c: Include infrun.h.
4879 * remote-mips.c: Include infrun.h.
4880 * remote-notif.c: Include infrun.h.
4881 * remote-sim.c: Include infrun.h.
4882 * remote.c: Include infrun.h.
4883 * reverse.c: Include infrun.h.
4884 * rs6000-tdep.c: Include infrun.h.
4885 * s390-linux-tdep.c: Include infrun.h.
4886 * solib-irix.c: Include infrun.h.
4887 * solib-osf.c: Include infrun.h.
4888 * solib-svr4.c: Include infrun.h.
4889 * target.c: Include infrun.h.
4890 * top.c: Include infrun.h.
4891 * windows-nat.c: Include infrun.h.
4892 * mi/mi-interp.c: Include infrun.h.
4893 * mi/mi-main.c: Include infrun.h.
4894 * python/py-threadevent.c: Include infrun.h.
4896 2014-05-22 Pedro Alves <palves@redhat.com>
4898 * infrun.c (handle_inferior_event): Store the exit code for
4899 --return-child-result here, instead of ...
4900 (print_exited_reason): ... here.
4902 2014-05-21 Pedro Alves <palves@redhat.com>
4905 * gdbthread.h (struct thread_control_state): New field
4907 * infrun.c (follow_fork): Copy the new thread control field to the
4909 (clear_proceed_status_thread): Clear the new thread control field.
4910 (proceed): Set the new thread control field.
4911 * interps.h (command_interp): Declare.
4912 * interps.c (command_interpreter): New global.
4913 (command_interp): New function.
4914 (interp_exec): Set `command_interpreter' while here.
4915 * cli-out.c (cli_uiout_dtor): New function.
4916 (cli_ui_out_impl): Install it.
4917 * mi/mi-interp.c: Include cli-out.h.
4918 (mi_cmd_interpreter_exec): Add comment.
4919 (restore_current_uiout_cleanup): New function.
4920 (ui_out_free_cleanup): New function.
4921 (mi_on_normal_stop): If finishing an execution command started by
4922 a CLI command, or any kind of breakpoint-like event triggered,
4923 print the stop event to the output (CLI) stream.
4924 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4926 2014-05-21 Pedro Alves <palves@redhat.com>
4928 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4929 current source line having changed.
4930 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4931 * infrun.c (normal_stop): Adjust call to
4932 set_current_sal_from_frame.
4933 * source.c (clear_lines_listed_range): New function.
4934 (set_current_source_symtab_and_line, identify_source_line): Clear
4935 the lines listed range.
4936 (line_info): Handle the first "info line" after the current source
4937 line having changed.
4938 * stack.c (print_stack_frame): Remove center handling.
4939 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4942 2014-05-21 Pedro Alves <palves@redhat.com>
4944 * inf-child.c (inf_child_mourn_inferior): New function.
4945 * inf-child.h (inf_child_mourn_inferior): New declaration.
4946 * darwin-nat.c (darwin_mourn_inferior): Use
4947 inf_child_mourn_inferior.
4948 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4949 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4950 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4951 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4952 * windows-nat.c (windows_mourn_inferior): Likewise.
4954 2014-05-21 Doug Evans <xdje42@gmail.com>
4956 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4958 2014-05-21 Doug Evans <xdje42@gmail.com>
4960 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4961 (gdbscm_out_of_range_error): Ditto.
4962 (gdbscm_memory_error): Ditto.
4963 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4964 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4965 (gdbscm_out_of_range_error): Update.
4966 (gdbscm_memory_error): Update.
4967 (gdbscm_scm_to_target_string_unsafe): Delete.
4969 2014-05-21 Pedro Alves <palves@redhat.com>
4971 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4973 (inf_child_open_target): New function.
4974 (inf_child_open): Use inf_child_open_target to push the target
4975 instead of erroring out.
4976 (inf_child_disconnect, inf_child_close)
4977 (inf_child_maybe_unpush_target): New functions.
4978 (inf_child_target): Install inf_child_disconnect and
4979 inf_child_close. Store a pointer to the returned object.
4980 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4982 * target.c (auto_connect_native_target): New global.
4983 (show_default_run_target): New function.
4984 (find_default_run_target): Return NULL if automatically connecting
4985 to the native target is disabled.
4986 (_initialize_target): Install set/show auto-connect-native-target.
4987 * NEWS: Mention "set auto-connect-native-target", and "target
4989 * linux-nat.c (super_close): New global.
4990 (linux_nat_close): Call super_close.
4991 (linux_nat_add_target): Store a pointer to the base class's
4993 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4994 inf_child_maybe_unpush.
4995 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4997 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4998 the inferior. Use inf_child_maybe_unpush_target.
4999 (inf_ttrace_attach): Don't push the target if it is already
5001 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5002 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5003 after mourning the inferior. Use inf_child_maybe_unpush_target.
5004 (darwin_attach_pid): Don't push the target if it is already
5006 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5007 mourning the inferior. Use inf_child_maybe_unpush_target.
5008 (gnu_detach): Use inf_child_maybe_unpush_target.
5009 * go32-nat.c (go32_create_inferior): Don't push the target if it
5011 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5012 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5013 (procfs_open): Rename to ...
5014 (procfs_open_1): ... this. Add target_ops parameter. Adjust
5015 comments. Can target_preopen before changing node. Call
5016 inf_child_open_target to push the target explicitly.
5017 (procfs_attach): Don't push the target if it is already pushed.
5018 (procfs_detach): Use inf_child_maybe_unpush_target.
5019 (procfs_create_inferior): Don't push the target if it is already
5021 (nto_native_ops): New global.
5022 (procfs_open): Reimplement.
5023 (procfs_native_open): New function.
5024 (init_procfs_targets): Install procfs_native_open as to_open of
5025 "target native". Store a pointer to the "native" target in
5027 * procfs.c (procfs_attach): Don't push the target if it is already
5029 (procfs_detach): Use inf_child_maybe_unpush_target.
5030 (procfs_mourn_inferior): Only unpush the target after mourning the
5031 inferior. Use inf_child_maybe_unpush_target.
5032 (procfs_init_inferior): Don't push the target if it is already
5034 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5035 if it is already pushed.
5037 2014-05-21 Pedro Alves <palves@redhat.com>
5039 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5040 and "procfs" targets are now called "native" instead.
5042 2014-05-21 Pedro Alves <palves@redhat.com>
5044 * go32-nat.c (go32_open): Delete.
5045 (go32_target): Don't override the to_open method.
5047 2014-05-21 Pedro Alves <palves@redhat.com>
5049 * nto-procfs.c (procfs_can_run): New function.
5050 (nto_procfs_ops): New global.
5051 (init_procfs_targets): New, based on procfs_target. Install
5052 "target native" in addition to "target procfs".
5053 (_initialize_procfs): Call init_procfs_targets instead of adding
5056 2014-05-21 Pedro Alves <palves@redhat.com>
5058 * windows-nat.c (windows_target): Don't override to_shortname,
5059 to_longname or to_doc.
5061 2014-05-21 Pedro Alves <palves@redhat.com>
5063 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5066 2014-05-21 Pedro Alves <palves@redhat.com>
5068 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5069 to_shortname, to_longname or to_doc.
5071 2014-05-21 Pedro Alves <palves@redhat.com>
5073 * go32-nat.c (go32_target): Don't override to_shortname,
5074 to_longname or to_doc.
5076 2014-05-21 Pedro Alves <palves@redhat.com>
5078 * inf-child.c (inf_child_open): Remove mention of "child".
5079 (inf_child_target): Rename target to "native" instead of "child".
5081 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5083 * Makefile.in (SFILES): Delete "regset.c".
5084 (COMMON_OBS): Delete "regset.o".
5086 * regset.h (regset_alloc): Delete prototype.
5088 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5090 * sparc-linux-tdep.c (sparc32_linux_gregset)
5091 (sparc32_linux_fpregset): New static regset structures.
5092 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5093 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5095 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5096 (sparc64_linux_fpregset): New static regset structures.
5097 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5098 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5099 New static regset structures.
5100 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5101 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5102 New static regset structures.
5103 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5104 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5105 New static regset structures.
5106 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5107 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5108 New static regset structures.
5109 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5111 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5113 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5114 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5115 register maps ("regmaps") from "*regset" to "*regmap". Do this
5116 for all regmap types and variables.
5117 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5118 (sparc32_linux_supply_core_gregset)
5119 (sparc32_linux_collect_core_gregset)
5120 (sparc32_linux_supply_core_fpregset)
5121 (sparc32_linux_collect_core_fpregset): Likewise.
5122 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5123 (sparc_gregmap, sparc_fpregmap): ... these.
5124 (sparc_supply_gregset, sparc_collect_gregset)
5125 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5126 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5127 (_initialize_sparc_nat): Rename regmaps.
5128 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5129 (sparc_gregmap, sparc_fpregmap): ... these.
5130 (sparc_supply_gregset, sparc_collect_gregset)
5131 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5132 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5134 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5135 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5137 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5139 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5140 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5141 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5143 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5144 (sparc32_bsd_fpregset): Rename to...
5145 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5146 (sparc32_bsd_fpregmap): ... these.
5147 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5148 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5149 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5150 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5151 (struct sparc_gregmap, struct sparc_fpregmap)
5152 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5153 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5154 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5155 (sparc32_supply_regset, sparc32_collect_gregset)
5156 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5158 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5159 (sparc64_linux_ptrace_gregmap): ... this.
5160 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5161 (_initialize_sparc64_linux_nat): Rename regmaps.
5162 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5163 (sparc64_linux_core_gregmap): ... this.
5164 (sparc64_linux_supply_core_gregset)
5165 (sparc64_linux_collect_core_gregset)
5166 (sparc64_linux_supply_core_fpregset)
5167 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5168 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5169 (sparc64_sol2_fpregset): Rename to...
5170 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5171 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5172 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5174 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5175 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5176 (sparc64_bsd_fpregset): Rename to...
5177 (struct sparc_gregmap, sparc64_sol2_gregmap)
5178 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5179 (sparc64_bsd_fpregmap): ... these.
5180 (sparc64_supply_gregset, sparc64_collect_gregset)
5181 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5183 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5184 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5185 (sparc64fbsd_gregmap): ... this.
5186 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5187 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5189 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5190 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5191 (sparc64nbsd_collect_fpregset): Likewise.
5192 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5193 (sparc64nbsd_gregmap): ... this.
5194 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5196 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5197 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5198 (sparc64obsd_gregmap): ... this.
5199 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5201 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5202 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5203 (sparc32nbsd_gregmap): ... this.
5204 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5207 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5209 * score-tdep.c (score7_linux_gregset): New static regset
5211 (score7_linux_regset_from_core_section): Remove dynamic regset
5213 (score_gdbarch_init): Drop allocation of tdep structure.
5214 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5216 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5218 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5220 (am33_regset_from_core_section): Remove dynamic regset
5223 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5225 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5226 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5228 (mips_linux_regset_from_core_section): Remove dynamic regset
5230 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5231 'gregset64', 'fpregset', and 'fpregset64'.
5232 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5233 deleted tdep fields.
5235 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5237 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5239 (amd64_regset_from_core_section): Remove dynamic regset
5241 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5243 (amd64obsd_regset_from_core_section): Remove dynamic regset
5245 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5247 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5248 x86-common regset supply function.
5249 * i386-tdep.c (i386_collect_gregset): Make static.
5250 (i386_gregset): New global regset structure.
5251 (i386_fpregset, i386_xstateregset): New static regset structures.
5252 (i386_regset_from_core_section): Remove dynamic regset
5254 (i386_gdbarch_init): Remove initialization of tdep fields
5255 'gregset', 'fpregset', and 'xstateregset'.
5256 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5257 'fpregset', and 'xstateregset'.
5258 (i386_collect_gregset): Remove prototype.
5259 (i386_gregset): New declaration.
5260 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5262 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5265 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5267 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5268 (arm_linux_vfpregset): New static regset structures.
5269 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5271 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5272 and 'vfpregset' fields.
5274 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5276 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5277 (aarch64_linux_fpregset): New static regset structures.
5278 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5279 of regset structures.
5280 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5283 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5285 * regset.h (struct regset): Remove gdbarch field.
5286 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5287 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5288 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5290 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5291 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5292 (ppc32_linux_vsxregset): Likewise.
5293 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5294 via the regcache instead of the regset.
5295 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5296 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5297 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5298 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5301 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5303 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5304 Constify structures.
5305 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5306 (alphanbsd_aout_gregset): Likewise.
5307 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5308 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5310 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5311 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5313 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5314 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5315 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5316 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5317 * m88k-tdep.c (m88k_gregset): Likewise.
5318 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5319 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5320 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5321 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5322 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5323 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5324 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5325 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5326 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5328 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5329 * sh-tdep.h (sh_corefile_gregset): Likewise.
5330 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5331 * vax-tdep.c (vax_gregset): Likewise.
5333 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5335 Fix TLS access for -static -pthread.
5336 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5337 (try_thread_db_load_1): Initialize it.
5338 (thread_db_get_thread_local_address): Call it if LM is zero.
5339 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5340 * target.h (struct target_ops) (to_get_thread_local_address): Add
5341 load_module_addr comment.
5343 2014-05-21 Pedro Alves <palves@redhat.com>
5345 * dcache.c (dcache_read_memory_partial): If reading the cache line
5346 fails, fallback to reading just the memory the caller wanted.
5348 2014-05-20 Doug Evans <dje@google.com>
5350 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5351 instead of get_current_arch.
5353 2014-05-20 Pedro Alves <palves@redhat.com>
5355 * NEWS: Mention that compare-sections now works with all targets.
5357 * remote.c (PACKET_qCRC): New enum value.
5358 (remote_verify_memory): Don't send qCRC if the target has no
5359 execution. Use packet_support/packet_ok. If the target doesn't
5360 support the qCRC packet, fallback to a deep memory copy.
5361 (compare_sections_command): Say "target image" instead of "remote
5363 (_initialize_remote): Add PACKET_qCRC to the list of config
5364 packets that have no associated command. Extend comment.
5365 * target.c (simple_verify_memory, default_verify_memory): New
5367 * target.h (struct target_ops) <to_verify_memory>: Default to
5368 default_verify_memory.
5369 (simple_verify_memory): New declaration.
5370 * target-delegates.c: Regenerate.
5372 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5374 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5376 2014-05-20 Hui Zhu <hui@codesourcery.com>
5377 Yao Qi <yao@codesourcery.com>
5380 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5381 and change address of sp and pc.
5383 2014-05-19 Tom Tromey <tromey@redhat.com>
5385 * gdbtypes.c (rank_function): Use XNEWVEC.
5386 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5388 2014-05-19 Doug Evans <dje@google.com>
5390 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5391 build_type_unit_groups and moved closer to only caller. Remove
5392 arguments. All references updated. Remove outdated .gdb_index
5394 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5395 build_type_psymtabs_1.
5397 2014-05-19 Doug Evans <dje@google.com>
5399 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5400 n_type_unit_groups, all_type_unit_groups. All uses removed.
5401 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5402 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5403 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5404 (add_type_unit_group_to_table): Delete.
5406 2014-05-19 Doug Evans <dje@google.com>
5408 * eval.c (evaluate_subexp_standard): Add some comments.
5410 2014-05-17 Doug Evans <xdje42@gmail.com>
5412 * progspace.c (remove_program_space): Delete, unused.
5413 * progspace.h (remove_program_space): Ditto.
5415 2014-05-17 Doug Evans <xdje42@gmail.com>
5417 * inferior.c (prune_inferiors): Fix comment.
5418 (remove_inferior_command): Call prune_program_spaces.
5420 2014-05-16 Doug Evans <dje@google.com>
5422 New command line option -D.
5424 * main.c (set_gdb_data_directory): New function.
5425 (captured_main): Recognize -D. Flag error for --data-directory "".
5426 Call set_gdb_data_directory.
5427 (print_gdb_help): Print --data-directory, -D.
5428 * main.h (set_gdb_data_directory): Declare.
5429 * top.c (staged_gdb_datadir): New static global.
5430 (set_gdb_datadir): Call set_gdb_data_directory
5431 (show_gdb_datadir): New function.
5432 (init_main): Update init of data-directory parameter.
5434 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5436 Import the "dirfd" gnulib module.
5437 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5438 * gnulib/aclocal.m4: Update.
5439 * gnulib/config.in: Update.
5440 * gnulib/configure: Update.
5441 * gnulib/import/Makefile.am: Update.
5442 * gnulib/import/Makefile.in: Update.
5443 * gnulib/import/dirfd.c: New.
5444 * gnulib/import/m4/dirfd.m4: New.
5445 * gnulib/import/m4/gnulib-cache.m4: Update.
5446 * gnulib/import/m4/gnulib-comp.m4: Update.
5448 2014-05-16 Pierre Muller <muller@sourceware.org>
5449 Yao Qi <yao@codesourcery.com>
5451 * valprint.c (print_wchar): Move the code on checking whether
5452 W is a printable wide char to the default branch of switch
5453 statement below. Call wchar_printable instead of gdb_iswprint.
5455 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5457 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5458 ldr.w and ldrd instructions.
5460 2014-05-15 Doug Evans <dje@google.com>
5462 * dwarf2read.c (read_structure_type): Delete outdated comments.
5464 2014-05-14 Tom Tromey <tromey@redhat.com>
5466 * macrocmd.c (print_macro_definition): Reindent.
5468 2014-05-13 Doug Evans <xdje42@gmail.com>
5470 * python/py-cmd.c (cmdpy_completer): Add comment.
5471 (completers): Make const.
5473 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5475 * infrun.c (resume): Remove should_resume (unused). Move up
5476 declaration of resume_ptid.
5478 2014-05-13 Tom Tromey <tromey@redhat.com>
5480 * language.h (unop_type_check): Remove.
5481 (binop_type_check): Don't declare.
5483 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5485 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5486 call to regcache_raw_collect.
5488 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5490 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5491 mi_console->quote as the quoting character.
5493 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5495 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5497 2014-04-29 Tom Tromey <tromey@redhat.com>
5499 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5500 "show debug varobj".
5502 2014-05-07 Kyle McMartin <kyle@redhat.com>
5504 Pushed by Joel Brobecker <brobecker@adacore.com>.
5505 * aarch64-tdep.c (aarch64_software_single_step): New function.
5506 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5507 with aarch64_software_single_step.
5509 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5513 2014-05-05 Keith Seitz <keiths@redhat.com>
5515 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5516 variable or history value is successfully parsed.
5518 2014-05-05 Yao Qi <yao@codesourcery.com>
5519 Pedro Alves <palves@redhat.com>
5521 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5522 address of blocks that intersects the requested range. Trim
5523 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5525 * ctf.c (ctf_xfer_partial): Likewise.
5527 2014-05-05 Yao Qi <yao@codesourcery.com>
5529 * printcmd.c (display_command): Remove the check to
5530 target_has_execution.
5532 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5534 * ppcobsd-nat.c: Include "obsd-nat.h".
5535 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5537 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5539 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5541 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5542 and 16-bit signed and unsigned arguments. Update comment.
5543 (stap_parse_probe_arguments): Extend code to handle such
5544 arguments. Use warning instead of complaint to notify about
5545 unrecognized bitness.
5547 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5549 PR breakpoints/16889
5550 * stap-probe.c (stap_parse_probe_arguments): Simplify
5551 check for non-prefixed probes (i.e., probes whose
5552 arguments do not start with "N@"). Always set the
5553 argument type to a sane value.
5555 2014-05-01 David Taylor <dtaylor@emc.com>
5557 * remote.c (compare_sections_command): Add -r option to compare
5558 all loadable read-only sections.
5560 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5562 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5563 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5565 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5566 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5567 Remove unused CORE_ADDR argument. Update all callers.
5569 2014-04-29 Pedro Alves <palves@redhat.com>
5571 * remote.c (struct packet_config) <detect>: Extend comment.
5572 (add_packet_config_cmd): Don't set the config's detect or support
5574 (init_all_packet_configs): Also initialize the config's 'detect'
5576 (reset_all_packet_configs_support): New function.
5577 (remote_open_1): Call reset_all_packet_configs_support instead of
5578 init_all_packet_configs.
5579 (_initialize_remote): Initialize all packet configs. Assert that
5580 all packets have an associated command, except a few known
5583 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5585 * dwarf2read.c (read_subrange_type): Handle dynamic
5586 DW_AT_lower_bound attributes.
5588 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5590 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5591 dynamic bounds before computing its upper bound.
5592 (ada_discrete_type_low_bound): Same as above with the lower bound.
5594 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5596 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5597 range types. Adjust the array handling implementation to
5598 take advantage of this change.
5599 (resolve_dynamic_range): New function, mostly extracted from
5600 resolve_dynamic_bounds.
5601 (resolve_dynamic_array): New function, mostly extracted from
5602 resolve_dynamic_bounds.
5603 (resolve_dynamic_bounds): Delete.
5604 (resolve_dynamic_type): Reimplement. Add handling of
5605 TYPE_CODE_RANGE types.
5607 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5609 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5610 handling of parallel ___XA types.
5612 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5614 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5615 unnecessary second call to static_unwrap_type.
5617 2014-04-27 Hui Zhu <hui@codesourcery.com>
5619 * stack.c (print_frame_info): Call do_gdb_disassembly with
5620 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5622 2014-04-26 Doug Evans <xdje42@gmail.com>
5624 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5626 2014-04-25 Pedro Alves <palves@redhat.com>
5629 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5630 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5631 and newline from built string.
5632 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5633 (linux_ptrace_attach_fail_reason): ... this.
5634 * linux-nat.c (linux_nat_attach): Adjust to use
5635 linux_ptrace_attach_fail_reason.
5637 2014-04-25 Pedro Alves <palves@redhat.com>
5639 * remote.c (struct remote_state): Remove multi_process_aware,
5640 non_stop_aware, cond_tracepoints, cond_breakpoints,
5641 breakpoint_commands, fast_tracepoints, static_tracepoints,
5642 install_in_trace, disconnected_tracing,
5643 enable_disable_tracepoints, string_tracing, and
5644 augmented_libraries_svr4_read fields.
5645 (remote_multi_process_p): Move further below in the file.
5646 (struct packet_config): Add comments.
5647 (update_packet_config): Delete function.
5648 (show_packet_config_cmd): Use packet_config_support.
5649 (add_packet_config_cmd): Use NULL as set callback.
5650 (packet_ok): "set remote foo-packet"-style commands no longer
5651 change config->supported -- adjust.
5652 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5653 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5654 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5655 (PACKET_QNonStop, PACKET_multiprocess_feature)
5656 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5657 (PACKET_DisconnectedTracing_feature)
5658 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5659 (set_remote_protocol_packet_cmd): Delete function.
5660 (packet_config_support, packet_support): New functions.
5661 (set_remote_protocol_Z_packet_cmd): Don't call
5662 update_packet_config.
5663 (remote_query_attached, remote_pass_signals)
5664 (remote_program_signals, remote_threads_info)
5665 (remote_threads_extra_info, remote_start_remote): Use
5667 (remote_start_remote): Use packet_config_support and
5669 (init_all_packet_configs): Set all packets to unknown support,
5670 instead of calling update_packet_config.
5671 (remote_check_symbols): Use packet_support.
5672 (remote_supported_packet): Unconditionally set the packet config's
5674 (remote_multi_process_feature, remote_non_stop_feature)
5675 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5676 (remote_breakpoint_commands_feature)
5677 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5678 (remote_install_in_trace_feature)
5679 (remote_disconnected_tracing_feature)
5680 (remote_enable_disable_tracepoint_feature)
5681 (remote_string_tracing_feature)
5682 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5683 (remote_protocol_features): Adjust to use remote_supported_packet
5684 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5685 "ConditionalTracepoints", "ConditionalBreakpoints",
5686 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5687 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5688 "EnableDisableTracepoints", and "tracenz".
5689 (remote_query_supported): Use packet_support.
5690 (remote_open_1): Adjust.
5691 (extended_remote_attach_1): Use packet_support. Switch on the
5692 result of packet_ok instead of checking whether the packet ended
5694 (remote_vcont_resume): Use packet_support.
5695 (remote_resume, remote_stop_ns, fetch_register_using_p)
5696 (remote_prepare_to_store, store_register_using_P)
5697 (check_binary_download, remote_write_bytes): Use packet_support.
5698 (remote_vkill): Use packet_support. Switch on the result of
5699 packet_ok instead of checking whether the packet ended up
5701 (extended_remote_supports_disable_randomization): Use
5703 (extended_remote_run): Switch on the result of packet_ok instead
5704 of checking whether the packet ended up disabled.
5705 (remote_insert_breakpoint, remote_remove_breakpoint)
5706 (remote_insert_watchpoint, remote_remove_watchpoint)
5707 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5709 (remote_search_memory): Use packet_config_support.
5710 (remote_get_thread_local_address, remote_get_tib_address)
5711 (remote_hostio_send_command, remote_can_execute_reverse): Use
5713 (remote_supports_cond_tracepoints)
5714 (remote_supports_cond_breakpoints)
5715 (remote_supports_fast_tracepoints)
5716 (remote_supports_static_tracepoints)
5717 (remote_supports_install_in_trace)
5718 (remote_supports_enable_disable_tracepoint)
5719 (remote_supports_string_tracing)
5720 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5721 the packet config says the feature is enabled or disabled.
5722 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5723 (remote_get_trace_status): Use packet_support.
5724 (remote_set_disconnected_tracing): Adjust to check whether the
5725 feature is enabled with packet_support.
5726 (remote_set_trace_buffer_size, remote_use_agent)
5727 (remote_can_use_agent, remote_supports_btrace): Use
5729 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5730 Use packet_config_support.
5731 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5732 the packet config says the feature is enabled or disabled.
5733 (set_range_stepping): Use packet_support.
5735 2014-04-25 Tom Tromey <tromey@redhat.com>
5737 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5740 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5742 * NEWS: Mention support for C99 variable length arrays.
5744 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5746 * ada-lang.c (standard_exc): Expand introductory comment.
5748 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5749 Walfred Tedeschi <walfred.tedeschi@intel.com>
5751 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5753 (amd64_linux_read_description): Add code to handle AVX512 xstate
5754 mask and return respective tdesc.
5755 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5756 and features/i386/x32-avx512-linux.c.
5757 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5758 (amd64_linux_core_read_description): Add code to handle AVX512
5759 xstate mask and return respective tdesc.
5760 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5761 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5763 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5764 (tdesc_amd64_avx512_linux): New prototype.
5765 (tdesc_x32_avx512_linux): Likewise.
5766 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5767 features/i386/x32-avx512.c.
5768 (amd64_ymm_avx512_names): New register names for pseudo
5770 (amd64_ymmh_avx512_names): New register names for raw registers
5772 (amd64_k_names): New register names for K registers.
5773 (amd64_zmmh_names): New register names for ZMM raw registers.
5774 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5775 (amd64_xmm_avx512_names): New register names for XMM16-31
5777 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5779 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5780 if feature is present.
5781 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5782 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5783 (AMD64_NUM_REGS): Adjust to new number of registers.
5784 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5785 registers supplied via XSTATE by AVX512 registers.
5786 (i386_linux_read_description): Add case for AVX512.
5787 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5788 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5789 (i386_linux_core_read_description): Add case for AVX512.
5790 (i386_linux_init_abi): Install supported register note section
5792 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5794 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5795 registers to be number of zmm7h + 1.
5796 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5797 * i386-tdep.c: Include features/i386/i386-avx512.c.
5798 (i386_zmm_names): Add ZMM pseudo register names array.
5799 (i386_zmmh_names): Add ZMM raw register names array.
5800 (i386_k_names): Add K raw register names array.
5801 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5802 registers. AVX512 has 16 more ZMM registers than there are YMM
5804 (i386_zmmh_regnum_p): Add function to look up register number of
5806 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5807 (i386_k_regnum_p): Likewise for K raw registers.
5808 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5809 registers added by AVX512.
5810 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5811 registers added by AVX512.
5812 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5814 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5815 (i386_pseudo_register_name): Add ZMM pseudo registers.
5816 (i386_zmm_type): Construct and return vector registers type for ZMM
5818 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5819 ZMM0-31 pseudo registers and K registers.
5820 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5821 and YMM16-31 registers from register cache.
5822 (i386_pseudo_register_write): Add code to write K, ZMM and
5824 (i386_register_reggroup_p): Add code to include/exclude AVX512
5825 registers in/from respective register groups.
5826 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5827 registers if feature is present in xcr0.
5828 (i386_gdbarch_init): Add code to initialize AVX512 feature
5829 variables in tdep structure, wire in pseudo registers and call
5830 initialize_tdesc_i386_avx512.
5831 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5833 (i386_regnum): Add AVX512 registers.
5834 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5835 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5836 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5837 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5839 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5840 (i386_ymm_avx512_regnum_p): Likewise.
5841 (i386_k_regnum_p): Likewise.
5842 (i386_zmm_regnum_p): Likewise.
5843 (i386_zmmh_regnum_p): Likewise.
5844 * i387-tdep.c : Update year in copyright notice.
5845 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5847 (XSAVE_YMM_AVX512_ADDR): New macro.
5848 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5850 (XSAVE_XMM_AVX512_ADDR): New macro.
5851 (xsave_avx512_k_offset): New table for K register offsets in
5853 (XSAVE_AVX512_K_ADDR): New macro.
5854 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5856 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5857 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5859 (i387_collect_xsave): Add code to collect AVX512 registers from
5861 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5862 of XMM16-31 registers.
5863 (I387_NUM_K_REGS): New define for number of K registers.
5864 (I387_K0_REGNUM): New define for K0 register number.
5865 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5866 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5867 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5869 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5870 (I387_XMM16_REGNUM): New define for XMM16 register number.
5871 (I387_YMM0_REGNUM): New define for YMM0 register number.
5872 (I387_KEND_REGNUM): New define for last K register number.
5873 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5874 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5876 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5878 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5880 * features/Makefile: Add AVX512 related files.
5881 * features/i386/32bit-avx512.xml: New file.
5882 * features/i386/64bit-avx512.xml: Likewise.
5883 * features/i386/amd64-avx512-linux.c: Likewise.
5884 * features/i386/amd64-avx512-linux.xml: Likewise.
5885 * features/i386/amd64-avx512.c: Likewise.
5886 * features/i386/amd64-avx512.xml: Likewise.
5887 * features/i386/i386-avx512-linux.c: Likewise.
5888 * features/i386/i386-avx512-linux.xml: Likewise.
5889 * features/i386/i386-avx512.c: Likewise.
5890 * features/i386/i386-avx512.xml: Likewise.
5891 * features/i386/x32-avx512-linux.c: Likewise.
5892 * features/i386/x32-avx512-linux.xml: Likewise.
5893 * features/i386/x32-avx512.c: Likewise.
5894 * features/i386/x32-avx512.xml: Likewise.
5895 * regformats/i386/amd64-avx512-linux.dat: New file.
5896 * regformats/i386/amd64-avx512.dat: Likewise.
5897 * regformats/i386/i386-avx512-linux.dat: Likewise.
5898 * regformats/i386/i386-avx512.dat: Likewise.
5899 * regformats/i386/x32-avx512-linux.dat: Likewise.
5900 * regformats/i386/x32-avx512.dat: Likewise.
5901 * NEWS: Add note about new support for AVX512.
5904 2014-04-23 Pedro Alves <palves@redhat.com>
5906 * breakpoint.c (insert_bp_location): Tolerate errors if the
5907 breakpoint is set in a user-loaded objfile.
5908 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5909 location is marked shlib_disabled. If the breakpoint is set in a
5910 user-loaded objfile is a GDB-side memory breakpoint, validate it
5911 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5912 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5914 * mem-break.c (memory_validate_breakpoint): New function.
5915 * objfiles.c (userloaded_objfile_contains_address_p): New
5917 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5918 * target.h (memory_validate_breakpoint): New declaration.
5920 2014-04-23 Pedro Alves <palves@redhat.com>
5922 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5923 the breakpoint is set in a shared library, only suppress
5924 errors for software breakpoints, not hardware breakpoints.
5926 2014-04-22 Pedro Alves <palves@redhat.com>
5928 * infrun.c (schedlock_applies): New function, factored out from
5929 find_thread_needs_step_over.
5930 (find_thread_needs_step_over): Use it.
5931 (switch_back_to_stepped_thread): Always clear trap_expected if the
5932 step over is finished. Return early if scheduler locking applies.
5933 Look for the stepping thread and a potential step-over thread with
5935 (currently_stepping_or_nexting_callback): Delete.
5937 2014-04-22 Nick Clifton <nickc@redhat.com>
5939 * NEWS: Mention that ARM sim now supports tracing.
5941 2014-04-22 Yao Qi <yao@codesourcery.com>
5943 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5945 * tracefile.c (tracefile_fetch_registers): ... it. New
5947 * tracefile.h (tracefile_fetch_registers): Declare.
5948 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5949 tracefile_fetch_registers.
5951 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5954 * windows-nat.c (thread_rec): Don't display a warning when
5955 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5956 fails for any reason, set th->suspended to -1, so that we don't
5957 try to resume such a thread. Also, don't return NULL in these
5958 cases, to avoid completely ruin the session due to "PC register is
5959 not available" error.
5960 (do_windows_fetch_inferior_registers): Check errors in
5961 GetThreadContext call.
5962 (windows_continue): Accept an additional argument KILLED; if not
5963 zero, ignore errors in the SetThreadContext call, since the
5964 inferior was killed and is shutting down.
5965 (windows_resume, get_windows_debug_event)
5966 (windows_create_inferior, windows_mourn_inferior)
5967 (windows_kill_inferior): All callers of windows_continue changed
5968 to adjust to its new calling sequence.
5970 2014-04-19 Yao Qi <yao@codesourcery.com>
5972 * ctf.c (ctf_open): Call post_create_inferior.
5974 2014-04-19 Yao Qi <yao@codesourcery.com>
5976 * ctf.c (handle_id): New static variable.
5977 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5978 value. Get the declaration of event "register" and get length
5979 of field "contents".
5981 2014-04-19 Yao Qi <yao@codesourcery.com>
5983 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5985 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5987 * valops.c (oload_method_static): Remove unnecessary argument
5988 METHOD. Update all callers.
5990 2014-04-18 Pedro alves <palves@redhat.com>
5991 Tom Tromey <tromey@redhat.com>
5994 * frame.c (get_prev_frame_1): Rename to ...
5995 (get_prev_frame_always): ... this, and make extern. Adjust.
5996 (skip_artificial_frames): Use get_prev_frame_always.
5997 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5998 (get_frame_unwind_stop_reason): Adjust to rename.
5999 * frame.h (get_prev_frame_always): Declare.
6000 * inline-frame.c: Include frame.h.
6001 (inline_frame_this_id): Use get_prev_frame_always.
6003 2014-04-18 Tristan Gingold <gingold@adacore.com>
6005 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6006 code by using bfd_mach_o_get_base_address.
6008 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6010 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6011 (spu_ax_pseudo_register_collect): New function.
6012 (spu_ax_pseudo_register_push_stack): Likewise.
6013 (spu_dwarf_reg_to_regnum): Likewise.
6014 (spu_gdbarch_init): Install them. Append DWARF unwinders.
6016 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
6018 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6019 Replace FRAME argument with FRAME_ID.
6020 * gdbarch.c, gdbarch.h: Regenerate.
6021 * findvar.c (default_value_from_register): Add GDBARCH argument;
6022 replace FRAME by FRAME_ID. No longer call get_frame_id.
6023 (value_from_register): Update call to gdbarch_value_from_register.
6024 * value.h (default_value_from_register): Update prototype.
6025 * s390-linux-tdep.c (s390_value_from_register): Update interface
6026 and call to default_value_from_register.
6027 * spu-tdep.c (spu_value_from_register): Likewise.
6029 * findvar.c (address_from_register): Remove TYPE argument.
6030 Do not call value_from_register; use gdbarch_value_from_register
6031 with null_frame_id instead.
6032 * value.h (address_from_register): Update prototype.
6033 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6034 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6035 address_from_register interface change.
6037 2014-04-17 Yao Qi <yao@codesourcery.com>
6039 * gdbtypes.h: Update comments to link to types and macros'
6042 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6044 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6046 2014-04-16 Keith Seitz <keiths@redhat.com>
6049 * dwarf2read.c (skip_one_die): Check that all relative-offset
6050 sibling DIEs fall within range of the current reader's buffer.
6051 (read_partial_die): Likewise.
6053 2014-04-16 Keith Seitz <keiths@redhat.com>
6056 * cp-namespace.c (lookup_symbol_file): If the type name of
6057 `this' is NULL, return immediately.
6059 2014-04-14 Keith Seitz <keiths@redhat.com>
6062 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6063 from symbol_matches_domain in symtab.c. All local callers
6064 of symbol_matches_domain updated.
6065 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6066 search STRUCT_DOMAIN.
6067 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6068 independently. standard_lookup will do that automatically.
6069 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6070 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6071 (cp_lookup_symbol_in_namespace): Likewise.
6072 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6073 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6074 may return a STRUCT_DOMAIN match.
6075 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6076 * cp-support.c: Include language.h.
6077 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6079 * psymtab.c (match_partial_symbol): Compare the requested
6080 domain with the symbol's domain directly.
6081 (lookup_partial_symbol): Likewise.
6082 * symtab.c (lookup_symbol_in_language): Explain when/why
6083 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6084 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6085 appropriate languages.
6086 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6087 and moved to ada-lang.c
6088 (lookup_block_symbol): Explain that this function only returns
6089 symbol matching the requested DOMAIN.
6090 Compare the requested domain with the symbol's domain directly.
6091 (iterate_over_symbols): Compare the requested domain with the
6092 symbol's domain directly.
6093 * symtab.h (symbol_matches_domain): Remove.
6095 2014-04-14 Tom Tromey <tromey@redhat.com>
6098 * c-exp.y (type_aggregate_p): New function.
6099 (qualified_name, classify_inner_name): Use it.
6100 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6101 and TYPE_TARGET_TYPE of an enum type.
6102 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6104 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6105 handle TYPE_DECLARED_CLASS.
6106 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6108 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6109 * valops.c (enum_constant_from_type): New function.
6110 (value_aggregate_elt): Use it.
6111 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6114 2014-04-14 Tom Tromey <tromey@redhat.com>
6116 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6117 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6119 * value.h (value_aggregate_elt): Update.
6121 2014-04-14 Tom Tromey <tromey@redhat.com>
6123 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6125 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6127 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6128 (evaluate_subexp_standard): Pass noside argument.
6129 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6130 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6131 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6132 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6133 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6135 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6137 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6138 points to a constant blob.
6140 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6142 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6143 property and store it as the high bound and flag the range accordingly.
6144 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6145 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6146 * gdbtypes.h (enum range_flags): New enum.
6147 (struct range_bounds): Add flags member.
6149 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6151 * c-typeprint.c (c_type_print_varspec_suffix): Added
6152 check for not yet resolved high bound. If unresolved, print
6153 "variable length" string to the console instead of random
6156 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6158 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6160 (ada_template_to_fixed_record_type_1): Likewise.
6161 (ada_to_fixed_type_1): Likewise.
6162 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6163 (cp_print_value): Likewise.
6164 * d-valprint.c (dynamic_array_type): Likewise.
6165 * findvar.c (address_of_variable): Likewise.
6166 * jv-valprint.c (java_value_print): Likewise.
6167 * valops.c (value_ind): Likewise.
6168 * value.c (coerce_ref): Likewise.
6170 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6172 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6173 value and retrieve the dynamic type size.
6175 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6177 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6178 passed to sizeof is dynamic evaluate the argument to compute the length.
6180 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6181 Joel Brobecker <brobecker@adacore.com>
6183 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6184 (dwarf2_evaluate_property): New function.
6185 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6186 * dwarf2read.c (attr_to_dynamic_prop): New function.
6187 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6189 * gdbtypes.c: Include dwarf2loc.h.
6190 (is_dynamic_type): New function.
6191 (resolve_dynamic_type): New function.
6192 (resolve_dynamic_bounds): New function.
6193 (get_type_length): New function.
6194 (check_typedef): Use get_type_length to compute type length.
6195 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6196 (TYPE_LOW_BOUND_KIND): New macro.
6197 (is_dynamic_type): New function prototype.
6198 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6199 to resolve dynamic properties of the type. Update comment.
6200 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6202 2014-04-14 Richard Henderson <rth@redhat.com>
6204 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6206 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6207 Doug Evans <xdje42@gmail.com>
6209 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6210 dereference TYPE_CODE_REF values.
6212 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6214 Revert the following changes due to regressions:
6216 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6217 (dwarf2_evaluate_property): New function.
6218 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6219 * dwarf2read.c (attr_to_dynamic_prop): New function.
6220 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6222 * gdbtypes.c: Include dwarf2loc.h.
6223 (is_dynamic_type): New function.
6224 (resolve_dynamic_type): New function.
6225 (resolve_dynamic_bounds): New function.
6226 (get_type_length): New function.
6227 (check_typedef): Use get_type_length to compute type length.
6228 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6229 (TYPE_LOW_BOUND_KIND): New macro.
6230 (is_dynamic_type): New function prototype.
6231 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6232 to resolve dynamic properties of the type. Update comment.
6233 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6235 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6236 passed to sizeof is dynamic evaluate the argument to compute the length.
6238 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6239 value and retrieve the dynamic type size.
6241 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6242 (ada_template_to_fixed_record_type_1): Likewise.
6243 (ada_to_fixed_type_1): Likewise.
6244 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6245 (cp_print_value): Likewise.
6246 * d-valprint.c (dynamic_array_type): Likewise.
6247 * eval.c (evaluate_subexp_with_coercion): Likewise.
6248 * findvar.c (address_of_variable): Likewise.
6249 * jv-valprint.c (java_value_print): Likewise.
6250 * valops.c (value_ind): Likewise.
6251 * value.c (coerce_ref): Likewise.
6253 * c-typeprint.c (c_type_print_varspec_suffix): Added
6254 check for not yet resolved high bound. If unresolved, print
6255 "variable length" string to the console instead of random
6258 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6259 property and store it as the high bound and flag the range accordingly.
6260 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6261 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6262 * gdbtypes.h (enum range_flags): New enum.
6263 (struct range_bounds): Add flags member.
6265 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6266 points to a constant blob.
6268 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6269 (evaluate_subexp_standard): Pass noside argument.
6270 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6271 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6272 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6273 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6274 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6276 2014-04-11 Keith Seitz <keiths@redhat.com>
6279 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6280 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6283 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6285 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6286 (evaluate_subexp_standard): Pass noside argument.
6287 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6288 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6289 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6290 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6291 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6293 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6295 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6296 points to a constant blob.
6298 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6300 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6301 property and store it as the high bound and flag the range accordingly.
6302 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6303 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6304 * gdbtypes.h (enum range_flags): New enum.
6305 (struct range_bounds): Add flags member.
6307 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6309 * c-typeprint.c (c_type_print_varspec_suffix): Added
6310 check for not yet resolved high bound. If unresolved, print
6311 "variable length" string to the console instead of random
6314 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6316 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6317 (ada_template_to_fixed_record_type_1): Likewise.
6318 (ada_to_fixed_type_1): Likewise.
6319 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6320 (cp_print_value): Likewise.
6321 * d-valprint.c (dynamic_array_type): Likewise.
6322 * eval.c (evaluate_subexp_with_coercion): Likewise.
6323 * findvar.c (address_of_variable): Likewise.
6324 * jv-valprint.c (java_value_print): Likewise.
6325 * valops.c (value_ind): Likewise.
6326 * value.c (coerce_ref): Likewise.
6328 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6330 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6331 value and retrieve the dynamic type size.
6333 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6335 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6336 passed to sizeof is dynamic evaluate the argument to compute the length.
6338 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6340 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6341 (dwarf2_evaluate_property): New function.
6342 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6343 * dwarf2read.c (attr_to_dynamic_prop): New function.
6344 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6346 * gdbtypes.c: Include dwarf2loc.h.
6347 (is_dynamic_type): New function.
6348 (resolve_dynamic_type): New function.
6349 (resolve_dynamic_bounds): New function.
6350 (get_type_length): New function.
6351 (check_typedef): Use get_type_length to compute type length.
6352 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6353 (TYPE_LOW_BOUND_KIND): New macro.
6354 (is_dynamic_type): New function prototype.
6355 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6356 to resolve dynamic properties of the type. Update comment.
6357 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6359 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6361 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6362 declaring high/low bounds and change uses accordingly. Call
6363 create_range_type instead of create_static_range_type.
6364 * gdbtypes.c (create_range_type): New function.
6365 (create_range_type): Convert bounds into struct bound_prop and pass
6366 them to create_range_type.
6367 * gdbtypes.h (struct bound_prop): New struct.
6368 (create_range_type): New function prototype.
6369 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6370 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6371 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6373 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6375 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6377 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6378 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6379 * ada-lang.c: All uses of create_range_type updated.
6380 * coffread.c: All uses of create_range_type updated.
6381 * dwarf2read.c: All uses of create_range_type updated.
6382 * f-exp.y: All uses of create_range_type updated.
6383 * m2-valprint.c: All uses of create_range_type updated.
6384 * mdebugread.c: All uses of create_range_type updated.
6385 * stabsread.c: All uses of create_range_type updated.
6386 * valops.c: All uses of create_range_type updated.
6387 * valprint.c: All uses of create_range_type updated.
6389 2014-04-10 Pedro Alves <palves@redhat.com>
6391 * breakpoint.c (single_step_breakpoints)
6392 (single_step_gdbarch): Move up in the file.
6393 (one_breakpoint_xfer_memory): New function, factored out from ...
6394 (breakpoint_xfer_memory): ... here. Also process single-step
6397 2014-04-09 Tristan Gingold <gingold@adacore.com>
6399 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6401 (darwin_decode_exception_message): Free port only after use.
6403 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6405 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6406 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6407 when setting the size of call_length.
6409 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6411 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6412 dereference TYPE_CODE_REF values.
6414 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6416 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6417 end of warning message.
6419 2014-04-03 Doug Evans <dje@google.com>
6421 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6422 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6424 2014-04-02 Alan Modra <amodra@gmail.com>
6426 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6427 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6428 (struct symbol_file_add_from_memory_args): Add size field.
6429 (find_vdso_size): New function.
6430 (add_vsyscall_page): Attempt to find vdso size.
6432 2014-04-01 Doug Evans <dje@google.com>
6434 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6436 2014-04-01 Tristan Gingold <gingold@adacore.com>
6438 * darwin-nat.c (darwin_encode_reply): Add prototype.
6439 (darwin_decode_exception_message): Reply to unknown inferiors.
6440 (darwin_decode_message): Handle message by id. Ignore message
6441 to unknown inferior.
6442 (darwin_wait): Discard unknown messages, add debug trace.
6444 2014-03-31 Doug Evans <dje@google.com>
6446 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6449 2014-03-31 Doug Evans <dje@google.com>
6451 New option "set print symbol-loading".
6453 * solib.c (solib_read_symbols): Only print symbol loading messages
6455 (solib_add): If symbol loading is in "brief" mode, notify user
6456 symbols are being loaded.
6457 (reload_shared_libraries_1): Ditto.
6458 * symfile.c (print_symbol_loading_off): New static global.
6459 (print_symbol_loading_brief): New static global.
6460 (print_symbol_loading_full): New static global.
6461 (print_symbol_loading_enums): New static global.
6462 (print_symbol_loading): New static global.
6463 (print_symbol_loading_p): New function.
6464 (symbol_file_add_with_addrs): Only print symbol loading messages
6466 (_initialize_symfile): Register "print symbol-loading" set/show
6468 * symfile.h (print_symbol_loading_p): Declare.
6470 2014-03-30 Doug Evans <xdje42@gmail.com>
6472 * infrun.c (set_last_target_status): New function.
6473 (handle_inferior_event): Call it.
6475 2014-03-30 Doug Evans <xdje42@gmail.com>
6477 * inferior.h (enum stop_kind): Improve comment.
6479 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6481 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6482 a reference, strip the reference layer before calling
6483 the lang_ops value_has_mutated callback.
6485 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6487 Remove some globals from our parser.
6488 * language.c (unk_lang_parser): Add "struct parser_state"
6490 * language.h (struct language_defn) <la_parser>: Likewise.
6491 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6492 (initialize_expout): Add "struct parser_state" argument.
6493 Rewrite function to use the parser state.
6494 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6495 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6496 write_exp_elt_longcst, write_exp_elt_dblcst,
6497 write_exp_elt_decfloatcst, write_exp_elt_type,
6498 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6499 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6500 write_dollar_variable): Likewise.
6501 (parse_exp_in_context_1): Use parser state.
6502 (insert_type_address_space): Add "struct parser_state" argument.
6504 (increase_expout_size): New function.
6505 * parser-defs.h: Forward declare "struct language_defn" and
6506 "struct parser_state".
6507 (expout, expout_size, expout_ptr): Remove extern declarations.
6508 (parse_gdbarch, parse_language): Rewrite macro declarations to
6509 accept the parser state.
6510 (struct parser_state): New struct.
6511 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6512 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6513 write_exp_elt_decfloatcst, write_exp_elt_type,
6514 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6515 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6516 write_exp_msymbol, write_dollar_variable,
6517 mark_struct_expression, insert_type_address_space): Add "struct
6518 parser_state" argument.
6519 (increase_expout_size): New function.
6520 * utils.c (do_clear_parser_state): New function.
6521 (make_cleanup_clear_parser_state): Likewise.
6522 * utils.h (make_cleanup_clear_parser_state): New function
6524 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6525 Update calls to write_exp* in order to pass the parser state.
6526 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6527 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6528 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6529 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6530 * stap-probe.c (stap_parse_register_operand): Likewise.
6531 (stap_parse_single_operand): Likewise.
6532 (stap_parse_argument_1): Likewise.
6533 (stap_parse_argument): Use parser state.
6534 * stap-probe.h: Include "parser-defs.h".
6535 (struct stap_parse_info) <pstate>: New field.
6536 * c-exp.y (parse_type): Rewrite to use parser state.
6537 (yyparse): Redefine to c_parse_internal.
6538 (pstate): New global variable.
6539 (parse_number): Add "struct parser_state" argument.
6540 (write_destructor_name): Likewise.
6541 (type_exp): Update calls to write_exp* and similars in order to
6543 (exp1, exp, variable, qualified_name, space_identifier,
6544 typename, typebase): Likewise.
6545 (write_destructor_name, parse_number, lex_one_token,
6546 classify_name, classify_inner_name, c_parse): Add "struct
6547 parser_state" argument. Update function to use parser state.
6548 * c-lang.h: Forward declare "struct parser_state".
6549 (c_parse): Add "struct parser_state" argument.
6550 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6551 (yyparse): Redefine macro to ada_parse_internal.
6552 (pstate): New variable.
6553 (write_int, write_object_renaming, write_var_or_type,
6554 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6555 type_int, type_long, type_long_long, type_float, type_double,
6556 type_long_double, type_char, type_boolean, type_system_address):
6557 Add "struct parser_state" argument.
6558 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6559 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6560 var_or_type, aggregate, aggregate_component_list,
6561 positional_list, others, component_group,
6562 component_associations): Update calls to write_exp* and similar
6563 functions in order to use parser state.
6564 (ada_parse, write_var_from_sym, write_int,
6565 write_exp_op_with_string, write_object_renaming,
6566 find_primitive_type, write_selectors, write_ambiguous_var,
6567 write_var_or_type, write_name_assoc, type_int, type_long,
6568 type_long_long, type_float, type_double, type_long_double,
6569 type_char, type_boolean, type_system_address): Add "struct
6570 parser_state" argument. Adjust function to use parser state.
6571 * ada-lang.c (parse): Likewise.
6572 * ada-lang.h: Forward declare "struct parser_state".
6573 (ada_parse): Add "struct parser_state" argument.
6574 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6575 calls to both functions.
6576 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6578 (yyparse): Redefine macro to f_parse_internal.
6579 (pstate): New variable.
6580 (parse_number): Add "struct parser_state" argument.
6581 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6582 and similars in order to use parser state.
6583 (parse_number): Adjust code to use parser state.
6585 (f_parse): New function.
6586 * f-lang.h: Forward declare "struct parser_state".
6587 (f_parse): Add "struct parser_state" argument.
6588 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6590 (yyparse): Redefine macro for java_parse_internal.
6591 (pstate): New variable.
6592 (push_expression_name, push_expression_name, insert_exp): Add
6593 "struct parser_state" argument.
6594 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6595 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6596 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6597 PostIncrementExpression, PostDecrementExpression,
6598 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6599 UnaryExpressionNotPlusMinus, CastExpression,
6600 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6601 RelationalExpression, EqualityExpression, AndExpression,
6602 ExclusiveOrExpression, InclusiveOrExpression,
6603 ConditionalAndExpression, ConditionalOrExpression,
6604 ConditionalExpression, Assignment, LeftHandSide): Update
6605 calls to write_exp* and similars in order to use parser state.
6606 (parse_number): Ajust code to use parser state.
6608 (java_parse): New function.
6609 (push_variable): Add "struct parser_state" argument. Adjust
6610 code to user parser state.
6611 (push_fieldnames, push_qualified_expression_name,
6612 push_expression_name, insert_exp): Likewise.
6613 * jv-lang.h: Forward declare "struct parser_state".
6614 (java_parse): Add "struct parser_state" argument.
6615 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6617 (yyparse): Redefine macro to m2_parse_internal.
6618 (pstate): New variable.
6619 (type_exp, exp, fblock, variable, type): Update calls to
6620 write_exp* and similars to use parser state.
6622 (m2_parse): New function.
6623 * m2-lang.h: Forward declare "struct parser_state".
6624 (m2_parse): Add "struct parser_state" argument.
6625 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6626 * objc-lang.h: Forward declare "struct parser_state".
6627 (end_msglist): Add "struct parser_state" argument.
6628 * p-exp.y (parse_type): Rewrite macro to use parser state.
6629 (yyparse): Redefine macro to pascal_parse_internal.
6630 (pstate): New variable.
6631 (parse_number): Add "struct parser_state" argument.
6632 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6633 write_exp* and similars in order to use parser state.
6634 (parse_number, yylex): Adjust code to use parser state.
6635 (pascal_parse): New function.
6636 * p-lang.h: Forward declare "struct parser_state".
6637 (pascal_parse): Add "struct parser_state" argument.
6638 * go-exp.y (parse_type): Rewrite macro to use parser state.
6639 (yyparse): Redefine macro to go_parse_internal.
6640 (pstate): New variable.
6641 (parse_number): Add "struct parser_state" argument.
6642 (type_exp, exp1, exp, variable, type): Update calls to
6643 write_exp* and similars in order to use parser state.
6644 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6645 to use parser state.
6646 (go_parse): Likewise.
6647 * go-lang.h: Forward declare "struct parser_state".
6648 (go_parse): Add "struct parser_state" argument.
6650 2014-03-27 Doug Evans <dje@google.com>
6652 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6654 2014-03-27 Doug Evans <dje@google.com>
6656 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6657 Remove argument abbrev_section. All callers updated.
6659 2014-03-27 Doug Evans <dje@google.com>
6661 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6662 addr_base, ranges_base.
6664 2014-03-26 Keith Seitz <keiths@redhat.com>
6666 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6667 types, not VAR_DOMAIN.
6669 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6671 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6673 * features/nios2-linux.c: Regenerated.
6674 * features/nios2.c: Regenerated.
6676 2014-03-25 Pedro Alves <palves@redhat.com>
6678 * cli/cli-script.c (script_from_file): Force the interpreter to
6681 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6683 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6684 small stack allocation.
6686 2014-03-24 Tristan Gingold <gingold@adacore.com>
6688 * darwin-nat.c (exc_server): Remove unused prototype.
6689 (darwin_dump_message): Correctly display data on x86_64.
6690 (darwin_encode_reply): Fix style.
6691 Add comments and fix indentation.
6693 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6695 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6697 2014-03-22 Doug Evans <xdje42@gmail.com>
6699 * infcmd.c: Whitespace fixes.
6700 (interrupt_command): Merge two function comments into one.
6702 2014-03-22 Doug Evans <xdje42@gmail.com>
6704 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6707 2014-03-22 Yao Qi <yao@codesourcery.com>
6709 * remote.c (target_read_live_memory): Remove.
6710 (memory_xfer_live_readonly_partial): Rename it to
6711 remote_xfer_live_readonly_partial. Remove argument 'object'.
6712 All callers updated. Call remote_read_bytes_1
6713 instead of target_read_live_memory.
6714 * tracepoint.c (set_traceframe_number): Remove.
6715 (make_cleanup_restore_traceframe_number): Likewise .
6716 * tracepoint.h (set_traceframe_number): Remove declaration.
6717 (make_cleanup_restore_traceframe_number): Likewise.
6719 2014-03-22 Yao Qi <yao@codesourcery.com>
6721 * remote.c (remote_read_bytes): Move code on reading from the
6723 (remote_read_bytes_1): ... here. New function.
6725 2014-03-22 Yao Qi <yao@codesourcery.com>
6727 * ctf.c (ctf_xfer_partial): Check the return value of
6728 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6729 return TARGET_XFER_UNAVAILABLE.
6730 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6731 * target.c (target_read_live_memory): Move it to remote.c.
6732 (memory_xfer_live_readonly_partial): Likewise.
6733 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6734 * remote.c (target_read_live_memory): Moved from target.c.
6735 (memory_xfer_live_readonly_partial): Likewise.
6736 (remote_read_bytes): Factored out from
6737 memory_xfer_partial_1.
6739 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6741 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6744 2014-03-21 Pedro Alves <palves@redhat.com>
6746 * infrun.c (normal_stop): Extend comment.
6748 2014-03-21 Hui Zhu <hui@codesourcery.com>
6749 Pedro Alves <palves@redhat.com>
6751 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6753 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6754 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6755 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6757 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6759 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6760 `z' formatted output modifier.
6762 2014-03-20 Tom Tromey <tromey@redhat.com>
6763 Sergio Durigan Junior <sergiodj@redhat.com>
6765 * probe.c (parse_probes): Turn assert into an ordinary error.
6766 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6767 exceptions when parsing probes. Rearrange the code for clarity.
6769 2014-03-20 Tom Tromey <tromey@redhat.com>
6772 * top.c (execute_command): Only dispatch events if the command
6775 2014-03-20 Tom Tromey <tromey@redhat.com>
6778 * infcall.c: Include event-top.h.
6779 (run_inferior_call): Call async_disable_stdin if needed.
6781 2014-03-20 Pedro Alves <palves@redhat.com>
6783 * infrun.c (prepare_to_proceed): Delete.
6784 (thread_still_needs_step_over): New function.
6785 (find_thread_needs_step_over): New function.
6786 (proceed): If the current thread needs a step-over, set its
6787 steping_over_breakpoint flag. Adjust to use
6788 find_thread_needs_step_over instead of prepare_to_proceed.
6789 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6790 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6792 (switch_back_to_stepped_thread): Step over breakpoints of all
6793 threads not the stepping thread, before switching back to the
6796 2014-03-20 Pedro Alves <palves@redhat.com>
6798 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6800 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6801 * infrun.c (saved_singlestep_ptid)
6802 (stepping_past_singlestep_breakpoint): Delete.
6803 (resume): Remove stepping_past_singlestep_breakpoint handling.
6804 (proceed): Store the prev_pc of the stepping thread too.
6805 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6807 (enum infwait_states): Delete infwait_thread_hop_state.
6808 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6810 (handle_inferior_event): Adjust.
6811 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6812 handling and the thread-hop code. Before removing single-step
6813 breakpoints, check whether the thread hit a single-step breakpoint
6814 of another thread. If it did, the trap is not a random signal.
6815 (switch_back_to_stepped_thread): If the event thread hit a
6816 single-step breakpoint, unblock it before switching to the
6817 stepping thread. Handle the case of the stepped thread having
6819 (keep_going): Handle the case of the current thread moving past a
6820 single-step breakpoint.
6822 2014-03-20 Pedro Alves <palves@redhat.com>
6825 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6826 are being stepped over.
6827 (breakpoint_address_match): Make extern.
6828 * breakpoint.h (breakpoint_address_match): New declaration.
6829 * inferior.h (stepping_past_instruction_at): New declaration.
6830 * infrun.c (struct step_over_info): New type.
6831 (step_over_info): New global.
6832 (set_step_over_info, clear_step_over_info)
6833 (stepping_past_instruction_at): New functions.
6834 (handle_inferior_event): Clear the step-over info when
6835 trap_expected is cleared.
6836 (resume): Remove now stale comment.
6837 (clear_proceed_status): Clear step-over info.
6838 (proceed): Adjust step-over handling to set or clear the step-over
6839 info instead of removing all breakpoints.
6840 (handle_signal_stop): When setting up a thread-hop, don't remove
6842 (stop_stepping): Clear step-over info.
6843 (keep_going): Adjust step-over handling to set or clear step-over
6844 info and then always inserting breakpoints, instead of removing
6845 all breakpoints when stepping over one.
6847 2014-03-20 Pedro Alves <palves@redhat.com>
6849 * infrun.c (previous_inferior_ptid): Adjust comment.
6850 (deferred_step_ptid): Delete.
6851 (infrun_thread_ptid_changed, prepare_to_proceed)
6852 (init_wait_for_inferior): Adjust.
6853 (handle_signal_stop): Delete deferred_step_ptid handling.
6855 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6858 * defs.h (sync_quit_force_run): New declaration.
6859 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6860 * event-top.c (async_sigterm_handler): New declaration.
6861 (async_sigterm_token): New variable.
6862 (async_init_signals): Create also async_sigterm_token.
6863 (async_sigterm_handler): New function.
6864 (sync_quit_force_run): New variable.
6865 (handle_sigterm): Replace quit_force call by other calls.
6866 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6868 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6870 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6871 offset into SPE pseudo registers.
6873 2014-03-18 Pedro Alves <palves@redhat.com>
6876 * inferior.h (print_stop_event): Declare.
6877 * infrun.c (print_stop_event): New, factored out from ...
6878 (normal_stop): ... this.
6879 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6880 of bpstat_print/print_stack_frame.
6882 2014-03-17 Tom Tromey <tromey@redhat.com>
6884 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6886 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6888 * ada-lang.c (decode_constrained_packed_array): Perform a
6889 minimal coercion for reference with coerce_ref instead of
6892 2014-03-17 Tristan Gingold <gingold@adacore.com>
6894 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6895 (darwin_solib_create_inferior_hook): Emit a warning if version
6898 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6900 * python/py-value.c (get_field_flag): Cast flag_name argument to
6901 PyObject_GetAttrString to support Python 2.4.
6903 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6905 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6906 (Global Maintainers): Remove Jan Kratochvil.
6908 2014-03-14 Pedro Alves <palves@redhat.com>
6910 * inferior.h (terminal_ours_for_output): Rename to ...
6911 (child_terminal_ours_for_output): ... this.
6912 (terminal_save_ours): Rename to ...
6913 (child_terminal_save_ours): ... this.
6914 (terminal_ours): Rename to ...
6915 (child_terminal_ours): ... this.
6916 (terminal_inferior): Rename to ...
6917 (child_terminal_inferior): ... this.
6918 (terminal_init_inferior): Rename to ...
6919 (child_terminal_init_inferior): ... this.
6920 (terminal_init_inferior_with_pgrp): Rename to ...
6921 (child_terminal_init_inferior_with_pgrp): ... this.
6922 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6923 (child_terminal_init_with_pgrp): ... this.
6924 (terminal_save_ours): Rename to ...
6925 (child_terminal_save_ours): ... this.
6926 (terminal_init_inferior): Rename to ...
6927 (child_terminal_init): ... this. Adjust.
6928 (terminal_inferior): Rename to ...
6929 (child_terminal_inferior): ... this.
6930 (terminal_ours_for_output): Rename to ...
6931 (child_terminal_ours_for_output): ... this. Adjust.
6932 (terminal_ours): Rename to ...
6933 (child_terminal_ours): ... this.
6934 (terminal_ours_1): Rename to ...
6935 (child_terminal_ours_1): ... this. Adjust.
6936 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6937 * windows-nat.c (do_initial_windows_stuff): Adjust.
6938 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6939 (gnu_terminal_init): ... this. Adjust.
6940 (gnu_target): Adjust.
6941 * inf-child.c (inf_child_target): Adjust.
6943 2014-03-13 Doug Evans <xdje42@gmail.com>
6946 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6949 2014-03-13 Doug Evans <xdje42@gmail.com>
6951 * value.c (record_latest_value): Call release_value_or_incref
6952 instead of release_value.
6954 2014-03-13 Pedro Alves <palves@redhat.com>
6956 * procfs.c (procfs_target): Don't override to_shortname,
6957 to_longname or to_doc.
6959 2014-03-13 Pedro Alves <palves@redhat.com>
6961 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6962 Unix in user visible strings.
6964 2014-03-12 Stan Shebs <stan@codesourcery.com>
6966 * gdbtypes.h: Annotate comments for Doxygen, add a page
6967 block comment with some general info.
6969 2014-03-12 Pedro Alves <palves@redhat.com>
6971 * infcmd.c (prepare_execution_command): New function, factored out
6972 from several execution commands.
6973 (run_command_1, continue_command, step_1, jump_command)
6974 (signal_command, until_command, advance_command, finish_command)
6975 (attach_command): Use prepare_execution_command.
6977 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6979 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6982 (struct arm_linux_thread_points): Removed.
6983 (struct arm_linux_process_info): New.
6984 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6985 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6986 (arm_linux_find_breakpoints_by_tid): Removed.
6987 (struct arch_lwp_info): New.
6988 (arm_linux_find_process_pid): New functions.
6989 (arm_linux_add_process): New functions.
6990 (arm_linux_process_info_get): New functions.
6991 (arm_linux_forget_process): New function.
6992 (arm_linux_get_debug_reg_state): New function.
6993 (struct update_registers_data): New.
6994 (update_registers_callback): New function.
6995 (arm_linux_insert_hw_breakpoint1): Updated.
6996 (arm_linux_remove_hw_breakpoint1): Updated.
6997 (arm_linux_insert_hw_breakpoint): Updated.
6998 (arm_linux_remove_hw_breakpoint): Updated.
6999 (arm_linux_insert_watchpoint): Updated.
7000 (arm_linux_remove_watchpoint): Updated.
7001 (arm_linux_new_thread): Updated.
7002 (arm_linux_prepare_to_resume): New function.
7003 (arm_linux_new_fork): New function.
7004 (_initialize_arm_linux_nat): Updated.
7006 2014-03-12 Pedro Alves <palves@redhat.com>
7008 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7010 2014-03-12 Tom Tromey <tromey@redhat.com>
7012 * inf-child.c (return_zero): New function.
7013 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7014 * aix-thread.c (aix_thread_inferior_created): New function.
7015 (aix_thread_attach): Remove.
7016 (init_aix_thread_ops): Don't set to_attach.
7017 (_initialize_aix_thread): Register inferior_created observer.
7018 * corelow.c (init_core_ops): Don't set to_attach or
7020 * exec.c (init_exec_ops): Don't set to_attach or
7022 * infcmd.c (run_command_1): Use find_run_target. Make direct
7024 (attach_command): Use find_attach_target. Make direct target
7026 * record-btrace.c (init_record_btrace_ops): Don't set
7028 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7030 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7031 set to_create_inferior.
7032 * target.c (complete_target_initialization): Add assertion.
7033 (target_create_inferior): Remove.
7034 (find_default_attach, find_default_create_inferior): Remove.
7035 (find_attach_target, find_run_target): New functions.
7036 (find_default_is_async_p, find_default_can_async_p)
7037 (target_supports_non_stop, target_attach): Remove.
7038 (init_dummy_target): Don't set to_create_inferior or
7039 to_supports_non_stop.
7040 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7041 TARGET_DEFAULT_FUNC.
7042 <to_create_inferior>: Add comment.
7043 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7044 TARGET_DEFAULT_RETURN.
7045 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7046 (find_attach_target, find_run_target): Declare.
7047 (target_create_inferior): Remove.
7048 (target_has_execution_1): Update comment.
7049 (target_supports_non_stop): Remove.
7050 * target-delegates.c: Rebuild.
7052 2014-03-12 Pedro Alves <palves@redhat.com>
7054 * inf-child.h: Update comment to not mention Unix.
7056 2014-03-12 Pedro Alves <palves@redhat.com>
7058 * inf-child.c: Update top comment to not mention Unix. Add
7059 generic comment describing how this target is meant to be used.
7060 (inf_child_post_attach, inf_child_post_startup_inferior)
7061 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7064 2014-03-12 Pedro Alves <palves@redhat.com>
7066 * nto-procfs.c: Include inf-child.h.
7067 (procfs_ops): Delete global.
7068 (procfs_can_run): Delete method.
7069 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7070 target pointer instead of referencing procfs_ops.
7071 (procfs_prepare_to_store): Delete.
7072 (init_procfs_ops): Delete function.
7073 (procfs_target): New function, based on init_procfs_ops, but
7074 inherit inf_child_target.
7075 (_initialize_procfs): Use procfs_target.
7077 2014-03-12 Pedro Alves <palves@redhat.com>
7079 * windows-nat.c: Include inf-child.h.
7080 (windows_ops): Delete global.
7081 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7083 (init_windows_ops): Delete function.
7084 (windows_target): New function, based on init_windows_ops, but
7085 inherit inf_child_target.
7086 (_initialize_windows_nat): Use windows_target. Install x86
7087 specific target methods here.
7089 2014-03-10 Doug Evans <xdje42@gmail.com>
7091 * guile/guile.c (call_initialize_gdb_module): New function.
7092 (initialize_guile): Replace call to scm_init_guile with call to
7095 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7097 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7098 in call to TYPE_CODE macro.
7100 2014-03-10 Jerome Guitton <guitton@adacore.com>
7102 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7103 Resolve tagged types to full view.
7105 2014-03-10 Hui Zhu <hui@codesourcery.com>
7107 * target.h (target_insert_breakpoint): Remove "hardware" from its
7110 2014-03-07 Doug Evans <dje@google.com>
7112 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7114 2014-03-07 Doug Evans <dje@google.com>
7116 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7117 Remove unused local comp_dir_attr. Assert exactly one of
7118 stub_comp_unit_die, stub_comp_dir is non-NULL.
7120 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7122 * target.h (complete_target_initialization, add_target):
7125 2014-03-07 Pedro Alves <palves@redhat.com>
7127 * go32-nat.c: Include inf-child.h.
7128 (go32_ops): Delete global.
7129 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7131 (go32_create_inferior): Push the passed in target pointer instead
7132 of referencing go32_ops.
7133 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7134 (go32_target): New function, based on init_go32_ops, but inherit
7136 (_initialize_go32_nat): Use go32_target. Move parts of
7139 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7141 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7142 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7143 SYMBOL_VALUE_ADDRESS.
7144 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7146 2014-03-06 Yao Qi <yao@codesourcery.com>
7148 * breakpoint.c (get_tracepoint_by_number): Remove argument
7149 optional_p. All callers updated. Adjust comments. Update
7151 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7153 2014-03-06 Yao Qi <yao@codesourcery.com>
7155 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7156 early if get_number returns zero. Use 'p' instead of 'args'.
7158 2014-03-06 Yao Qi <yao@codesourcery.com>
7160 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7163 2014-03-06 Yao Qi <yao@codesourcery.com>
7165 PR breakpoints/16508
7166 * tracepoint.c (check_trace_running): New function.
7167 (trace_find_command): Move code to check_trace_running and
7168 call check_trace_running.
7169 (trace_find_pc_command): Likewise.
7170 (trace_find_tracepoint_command): Likewise.
7171 (trace_find_line_command): Likewise.
7172 (trace_find_range_command): Likewise.
7173 * tracepoint.h (check_trace_running): Likewise.
7174 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7176 2014-03-06 Yao Qi <yao@codesourcery.com>
7178 * target.h (struct target_ops) <to_traceframe_info>: Use
7179 TARGET_DEFAULT_NORETURN (tcomplain ()).
7180 * target-delegates.c: Regenerated.
7182 2014-03-05 Pedro Alves <palves@redhat.com>
7185 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7186 void. Update comment.
7187 (dcache_xfer_memory): Delete.
7188 (dcache_read_memory_partial): New, based on the read bits of
7190 (dcache_update): Add status parameter. Use ULONGEST for len, and
7191 adjust. Discard cache lines if the reason for the update was
7193 * dcache.h (dcache_xfer_memory): Delete declaration.
7194 (dcache_read_memory_partial): New declaration.
7195 (dcache_update): Update prototype.
7196 * target.c (raw_memory_xfer_partial): Update the dcache here.
7197 (memory_xfer_partial_1): Don't handle dcache writes here.
7199 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7201 * remote-sim.c (gdbsim_load): Add const to prog.
7203 2014-03-03 Tom Tromey <tromey@redhat.com>
7205 * elfread.c (probe_key): Change to bfd_data.
7206 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7207 now per-BFD, not per-objfile.
7208 * stap-probe.c (stap_probe_destroy): Update comment.
7209 (handle_stap_probe): Allocate on the per-BFD obstack.
7211 2014-03-03 Tom Tromey <tromey@redhat.com>
7213 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7214 * breakpoint.c (create_longjmp_master_breakpoint): Use
7216 (add_location_to_breakpoint, bkpt_probe_insert_location)
7217 (bkpt_probe_remove_location): Update.
7218 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7219 * elfread.c (elf_symfile_relocate_probe): Remove.
7220 (elf_probe_fns): Update.
7221 (insert_exception_resume_breakpoint): Change type of "probe"
7222 parameter to bound_probe.
7223 (check_exception_resume): Update.
7224 * objfiles.c (objfile_relocate1): Don't relocate probes.
7225 * probe.c (bound_probe_s): New typedef.
7226 (parse_probes): Use get_probe_address. Set sal's objfile.
7227 (find_probe_by_pc): Return a bound_probe.
7228 (collect_probes): Return a VEC(bound_probe_s).
7229 (compare_probes): Update.
7230 (gen_ui_out_table_header_info): Change type of "probes"
7232 (info_probes_for_ops): Update.
7233 (get_probe_address): New function.
7234 (probe_safe_evaluate_at_pc): Update.
7235 * probe.h (struct probe_ops) <get_probe_address>: New field.
7236 <set_semaphore, clear_semaphore>: Add objfile parameter.
7237 (struct probe) <objfile>: Remove field.
7239 <address>: Update comment.
7240 (struct bound_probe): New.
7241 (find_probe_by_pc): Return a bound_probe.
7242 (get_probe_address): Declare.
7243 * solib-svr4.c (struct probe_and_action) <address>: New field.
7244 (hash_probe_and_action, equal_probe_and_action): Update.
7245 (register_solib_event_probe): Add address parameter.
7246 (solib_event_probe_at): Update.
7247 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7249 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7250 (stap_get_probe_address): New function.
7251 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7252 (compile_probe_arg): Update.
7253 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7255 (handle_stap_probe): Don't relocate the probe.
7256 (stap_relocate): Remove.
7257 (stap_gen_info_probes_table_values): Update.
7258 (stap_probe_ops): Remove stap_relocate.
7259 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7260 (debug_sym_probe_fns): Update.
7261 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7262 * symtab.c (init_sal): Use memset.
7263 * symtab.h (struct symtab_and_line) <objfile>: New field.
7264 * tracepoint.c (start_tracing, stop_tracing): Update.
7266 2014-03-03 Tom Tromey <tromey@redhat.com>
7268 * probe.h (parse_probes, find_probe_by_pc)
7269 (find_probes_in_objfile): Fix comments.
7271 2014-03-02 Doug Evans <xdje42@gmail.com>
7273 * infrun.c (handle_signal_stop): Replace test for
7274 TARGET_WAITKIND_STOPPED with an assert.
7276 2014-03-02 Doug Evans <xdje42@gmail.com>
7278 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7280 2014-03-02 Doug Evans <xdje42@gmail.com>
7282 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7284 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7286 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7288 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7290 * i386obsd-nat.c: Include "obsd-nat.h".
7291 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7293 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7295 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7297 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7299 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7301 * mips64obsd-nat.c: Include "obsd-nath".
7302 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7304 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7306 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7308 * amd64obsd-nat.c: Include "obsd-nat,h.
7309 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7311 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7313 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7315 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7316 (find_overload_match): Update call to find_oload_champ.
7317 (find_oload_champ_namespace_loop): Likewise
7319 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7321 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7323 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7324 * config/sparc/obsd64.mh: New file.
7325 * sparc64obsd-nat.c: New file.
7327 * obsd-nat.h: New file.
7328 * obsd-nat.c: New file.
7329 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7330 (ALLDEPFILES): Add obsd-nat.c.
7332 2014-02-28 Tom Tromey <tromey@redhat.com>
7334 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7335 * cli-out.h (cli_ui_out_impl): Now const.
7336 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7337 * ui-out.c (struct ui_out) <impl>: Now const.
7338 (default_ui_out_impl): Now const.
7339 (ui_out_new): Make 'impl' parameter const.
7340 * ui-out.h (ui_out_new): Update.
7342 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7344 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7346 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7348 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7350 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7352 Additional PR 8882 fix.
7353 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7355 2014-02-27 Pedro Alves <palves@redhat.com>
7357 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7360 2014-02-27 Pedro Alves <palves@redhat.com>
7363 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7364 * nat/linux-waitpid.c: Include string.h.
7365 (status_to_str): Moved here and made extern.
7366 * nat/linux-waitpid.h (status_to_str): New declaration.
7368 2014-02-27 Hui Zhu <hui@codesourcery.com>
7371 * infrun.c (ptid_match): Move ...
7372 * common/ptid.c (ptid_match): ... here.
7373 * inferior.h (ptid_match): Move ...
7374 * common/ptid.h (ptid_match): ... here.
7376 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7378 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7379 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7382 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7384 * obsd-tdep.c (obsd_auxv_parse): New function.
7385 (obsd_init_abi): Set auxv_parse.
7387 * gdbarch.sh (auxv_parse): New.
7388 * gdbarch.h: Regenerated.
7389 * gdbarch.c: Regenerated.
7390 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7392 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7394 * guile/scm-value.c (gdbscm_history_append_x): New function.
7395 (value_functions): Add it.
7397 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7399 * dwarf2read.c (attr_value_as_address): New function.
7400 (dwarf2_find_base_address, read_call_site_scope): Use
7401 attr_value_as_address in place of DW_ADDR.
7402 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7403 the low and high addresses. Slight rework of the handling
7404 of the high pc being a constant form, and limit it to
7405 DWARF verson 4 or higher.
7406 (dwarf2_record_block_ranges): Likewise.
7407 (read_partial_die): Likewise.
7408 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7410 2014-02-26 Tom Tromey <tromey@redhat.com>
7412 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7414 2014-02-26 Tom Tromey <tromey@redhat.com>
7416 * elfread.c (elf_read_minimal_symbols): Return early if
7417 minimal symbols have already been read. Add "ei" parameter.
7418 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7419 * minsyms.c (prim_record_minimal_symbol_full): Update.
7420 * objfiles.h (struct objstats) <n_minsyms>: Move...
7421 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7422 * symmisc.c (print_objfile_statistics): Update.
7424 2014-02-26 Tom Tromey <tromey@redhat.com>
7426 * elfread.c (elf_read_minimal_symbols): New function, from
7428 (elf_symfile_read): Call it.
7430 2014-02-26 Tom Tromey <tromey@redhat.com>
7432 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7433 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7434 (lookup_minimal_symbol_solib_trampoline)
7435 (lookup_minimal_symbol_by_pc_section_1)
7436 (lookup_minimal_symbol_and_objfile): Update.
7437 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7438 Don't allocate a minimal symbol if minsyms have already been read.
7439 (build_minimal_symbol_hash_tables): Update.
7440 (install_minimal_symbols): Do nothing if minsyms already read.
7441 Use the per-BFD obstack.
7442 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7443 * objfiles.c (allocate_objfile): Call
7444 terminate_minimal_symbol_table later.
7445 (have_minimal_symbols): Update.
7446 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7447 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7448 Move from struct objfile.
7449 <minsyms_read>: New field.
7450 (struct objfile) <msymbols, minimal_symbol_count,
7451 msymbol_hash, msymbol_demangled_hash>: Move.
7452 (ALL_OBJFILE_MSYMBOLS): Update.
7453 * symfile.c (read_symbols): Set minsyms_read.
7454 (reread_symbols): Update.
7455 * symmisc.c (dump_objfile, dump_msymbols): Update.
7457 2014-02-26 Tom Tromey <tromey@redhat.com>
7459 * minsyms.c (msymbols_sort): Remove.
7460 * minsyms.h (msymbols_sort): Remove.
7461 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7462 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7463 * elfread.c (elf_symtab_read): Don't add section offsets.
7464 * xcoffread.c (record_minimal_symbol): Don't add section offset
7465 to minimal symbol address.
7466 * somread.c (text_offset, data_offset): Remove.
7467 (som_symtab_read): Don't add section offsets to minimal symbol
7469 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7470 Don't add section offsets to minimal symbols.
7471 * coffread.c (coff_symtab_read): Don't add section offsets
7472 to minimal symbol addresses.
7473 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7474 to minimal symbol addresses.
7475 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7476 section offset to minimal symbol addresses.
7477 * mdebugread.c (parse_partial_symbols): Don't add section
7478 offset to minimal symbol addresses.
7479 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7480 offset to minimal symbol addresses.
7482 2014-02-26 Tom Tromey <tromey@redhat.com>
7484 * ada-lang.c (ada_main_name): Update.
7485 (ada_add_standard_exceptions): Update.
7486 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7487 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7488 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7489 * auxv.c (ld_so_xfer_auxv): Update.
7490 * avr-tdep.c (avr_scan_prologue): Update.
7491 * ax-gdb.c (gen_var_ref): Update.
7492 * blockframe.c (get_pc_function_start)
7493 (find_pc_partial_function_gnu_ifunc): Update.
7494 * breakpoint.c (create_overlay_event_breakpoint)
7495 (create_longjmp_master_breakpoint)
7496 (create_std_terminate_master_breakpoint)
7497 (create_exception_master_breakpoint): Update.
7498 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7499 * c-valprint.c (c_val_print): Update.
7500 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7501 * common/agent.c (agent_look_up_symbols): Update.
7502 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7503 * dwarf2loc.c (call_site_to_target_addr): Update.
7504 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7505 * elfread.c (elf_gnu_ifunc_record_cache)
7506 (elf_gnu_ifunc_resolve_by_got): Update.
7507 * findvar.c (default_read_var_value): Update.
7508 * frame.c (inside_main_func): Update.
7509 * frv-tdep.c (frv_frame_this_id): Update.
7510 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7511 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7513 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7514 (hppa_hpux_find_dummy_bpaddr): Update.
7515 * hppa-tdep.c (hppa_symbol_address): Update.
7516 * infcmd.c (until_next_command): Update.
7517 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7519 * linespec.c (minsym_found, add_minsym): Update.
7520 * linux-nat.c (get_signo): Update.
7521 * linux-thread-db.c (inferior_has_bug): Update.
7522 * m32c-tdep.c (m32c_return_value)
7523 (m32c_m16c_address_to_pointer): Update.
7524 * m32r-tdep.c (m32r_frame_this_id): Update.
7525 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7526 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7527 * maint.c (maintenance_translate_address): Update.
7528 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7529 (frob_address): New function.
7530 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7531 frob_address. Rename parameter to "pc_in".
7532 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7534 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7536 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7537 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7538 * objc-lang.c (find_objc_msgsend): Update.
7539 * objfiles.c (objfile_relocate1): Update.
7540 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7541 * p-valprint.c (pascal_val_print): Update.
7542 * parse.c (write_exp_msymbol): Update.
7543 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7544 (ppc_elfv2_skip_entrypoint): Update.
7545 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7546 * printcmd.c (build_address_symbolic, msym_info)
7547 (address_info): Update.
7548 * proc-service.c (ps_pglobal_lookup): Update.
7549 * psymtab.c (find_pc_sect_psymtab_closer)
7550 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7551 Change msymbol parameter to bound_minimal_symbol.
7552 * ravenscar-thread.c (get_running_thread_id): Update.
7553 * remote.c (remote_check_symbols): Update.
7554 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7556 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7557 * solib-dsbt.c (lm_base): Update.
7558 * solib-frv.c (lm_base, main_got): Update.
7559 * solib-irix.c (locate_base): Update.
7560 * solib-som.c (som_solib_create_inferior_hook)
7561 (link_map_start): Update.
7562 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7563 * solib-svr4.c (elf_locate_base, enable_break): Update.
7564 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7565 (flush_ea_cache): Update.
7566 * stabsread.c (define_symbol, scan_file_globals): Update.
7567 * stack.c (find_frame_funname): Update.
7568 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7569 (debug_qf_find_pc_sect_symtab): Update.
7570 * symfile.c (simple_read_overlay_table)
7571 (simple_overlay_update): Update.
7572 * symfile.h (struct quick_symbol_functions)
7573 <find_pc_sect_symtab>: Change type of msymbol to
7574 bound_minimal_symbol.
7575 * symmisc.c (dump_msymbols): Update.
7576 * symtab.c (find_pc_sect_symtab_via_partial)
7577 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7578 (search_symbols, print_msymbol_info): Update.
7579 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7580 (MSYMBOL_VALUE_ADDRESS): Redefine.
7581 (BMSYMBOL_VALUE_ADDRESS): New macro.
7582 * tracepoint.c (scope_info): Update.
7583 * tui/tui-disasm.c (tui_find_disassembly_address)
7584 (tui_get_begin_asm_address): Update.
7585 * valops.c (find_function_in_inferior): Update.
7586 * value.c (value_static_field, value_fn_field): Update.
7588 2014-02-26 Tom Tromey <tromey@redhat.com>
7590 * ada-lang.c (ada_update_initial_language): Update.
7591 (ada_main_name, ada_has_this_exception_support): Update.
7592 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7593 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7594 * arm-tdep.c (arm_skip_stub): Update.
7595 * auxv.c (ld_so_xfer_auxv): Update.
7596 * avr-tdep.c (avr_scan_prologue): Update.
7597 * ax-gdb.c (gen_var_ref): Update.
7598 * breakpoint.c (struct breakpoint_objfile_data)
7599 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7600 type to bound_minimal_symbol.
7601 (create_overlay_event_breakpoint)
7602 (create_longjmp_master_breakpoint)
7603 (create_std_terminate_master_breakpoint)
7604 (create_exception_master_breakpoint): Update.
7605 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7606 * c-exp.y (classify_name): Update.
7607 * coffread.c (coff_symfile_read): Update.
7608 * common/agent.c (agent_look_up_symbols): Update.
7609 * d-lang.c (d_main_name): Update.
7610 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7611 * dec-thread.c (enable_dec_thread): Update.
7612 * dwarf2loc.c (call_site_to_target_addr): Update.
7613 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7614 * eval.c (evaluate_subexp_standard): Update.
7615 * findvar.c (struct minsym_lookup_data) <result>: Change type
7616 to bound_minimal_symbol.
7618 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7619 * frame.c (inside_main_func): Update.
7620 * frv-tdep.c (frv_frame_this_id): Update.
7621 * gcore.c (call_target_sbrk): Update.
7622 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7623 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7625 * go-lang.c (go_main_name): Update.
7626 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7627 (hppa_hpux_find_import_stub_for_addr): Update.
7628 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7629 Update. Change return type.
7630 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7632 * jit.c (jit_breakpoint_re_set_internal): Update.
7633 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7635 * linux-nat.c (get_signo): Update.
7636 * linux-thread-db.c (inferior_has_bug): Update
7637 * m32c-tdep.c (m32c_return_value)
7638 (m32c_m16c_address_to_pointer): Update.
7639 * m32r-tdep.c (m32r_frame_this_id): Update.
7640 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7641 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7642 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7643 lookup_minimal_symbol. Change return type.
7644 (lookup_minimal_symbol): Remove.
7645 (lookup_bound_minimal_symbol): Update.
7646 (lookup_minimal_symbol_text): Change return type.
7647 (lookup_minimal_symbol_solib_trampoline): Change return type.
7648 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7649 (lookup_minimal_symbol_solib_trampoline): Change return type.
7650 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7651 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7652 (value_nsstring, find_imps): Update.
7653 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7654 * p-lang.c (pascal_main_name): Update.
7655 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7656 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7657 * proc-service.c (ps_pglobal_lookup): Update.
7658 * ravenscar-thread.c (get_running_thread_msymbol): Change
7660 (has_ravenscar_runtime, get_running_thread_id): Update.
7661 * remote.c (remote_check_symbols): Update.
7662 * sol-thread.c (ps_pglobal_lookup): Update.
7663 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7664 * solib-dsbt.c (lm_base): Update.
7665 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7667 * solib-irix.c (locate_base): Update.
7668 * solib-som.c (som_solib_create_inferior_hook)
7669 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7671 * solib-spu.c (spu_enable_break): Update.
7672 * solib-svr4.c (elf_locate_base, enable_break): Update.
7673 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7674 (flush_ea_cache): Update.
7675 * stabsread.c (define_symbol): Update.
7676 * symfile.c (simple_read_overlay_table): Update.
7677 * symtab.c (find_pc_sect_line): Update.
7678 * tracepoint.c (scope_info): Update.
7679 * tui-disasm.c (tui_get_begin_asm_address): Update.
7680 * value.c (value_static_field): Update.
7682 2014-02-26 Tom Tromey <tromey@redhat.com>
7684 * minsyms.c (prim_record_minimal_symbol_full): Use
7685 SET_MSYMBOL_VALUE_ADDRESS.
7686 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7687 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7688 SET_MSYMBOL_VALUE_ADDRESS.
7689 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7690 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7692 2014-02-26 Tom Tromey <tromey@redhat.com>
7694 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7695 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7696 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7697 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7698 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7699 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7700 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7701 * ada-lang.c (ada_main_name): Update.
7702 (ada_lookup_simple_minsym): Update.
7703 (ada_make_symbol_completion_list): Update.
7704 (ada_add_standard_exceptions): Update.
7705 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7706 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7707 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7708 * arm-tdep.c (skip_prologue_function): Update.
7709 (arm_skip_stack_protector, arm_skip_stub): Update.
7710 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7711 (arm_wince_skip_main_prologue): Update.
7712 * auxv.c (ld_so_xfer_auxv): Update.
7713 * avr-tdep.c (avr_scan_prologue): Update.
7714 * ax-gdb.c (gen_var_ref): Update.
7715 * block.c (call_site_for_pc): Update.
7716 * blockframe.c (get_pc_function_start): Update.
7717 (find_pc_partial_function_gnu_ifunc): Update.
7718 * breakpoint.c (create_overlay_event_breakpoint): Update.
7719 (create_longjmp_master_breakpoint): Update.
7720 (create_std_terminate_master_breakpoint): Update.
7721 (create_exception_master_breakpoint): Update.
7722 (resolve_sal_pc): Update.
7723 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7724 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7726 * c-valprint.c (c_val_print): Update.
7727 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7728 * coffread.c (coff_symfile_read): Update.
7729 * common/agent.c (agent_look_up_symbols): Update.
7730 * dbxread.c (find_stab_function_addr): Update.
7731 (end_psymtab): Update.
7732 * dwarf2loc.c (call_site_to_target_addr): Update.
7733 (func_verify_no_selftailcall): Update.
7734 (tailcall_dump): Update.
7735 (call_site_find_chain_1): Update.
7736 (dwarf_expr_reg_to_entry_parameter): Update.
7737 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7738 (elf_gnu_ifunc_resolve_by_got): Update.
7739 * f-valprint.c (info_common_command): Update.
7740 * findvar.c (read_var_value): Update.
7741 * frame.c (get_prev_frame_1): Update.
7742 (inside_main_func): Update.
7743 * frv-tdep.c (frv_skip_main_prologue): Update.
7744 (frv_frame_this_id): Update.
7745 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7746 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7747 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7748 (gnuv3_skip_trampoline): Update.
7749 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7750 (hppa64_hpux_in_solib_call_trampoline): Update.
7751 (hppa_hpux_skip_trampoline_code): Update.
7752 (hppa64_hpux_search_dummy_call_sequence): Update.
7753 (hppa_hpux_find_import_stub_for_addr): Update.
7754 (hppa_hpux_find_dummy_bpaddr): Update.
7755 * hppa-tdep.c (hppa_symbol_address)
7756 (hppa_lookup_stub_minimal_symbol): Update.
7757 * i386-tdep.c (i386_skip_main_prologue): Update.
7758 (i386_pe_skip_trampoline_code): Update.
7759 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7760 * infcall.c (get_function_name): Update.
7761 * infcmd.c (until_next_command): Update.
7762 * jit.c (jit_breakpoint_re_set_internal): Update.
7763 (jit_inferior_init): Update.
7764 * linespec.c (minsym_found): Update.
7765 (add_minsym): Update.
7766 * linux-fork.c (info_checkpoints_command): Update.
7767 * linux-nat.c (get_signo): Update.
7768 * linux-thread-db.c (inferior_has_bug): Update.
7769 * m32c-tdep.c (m32c_return_value): Update.
7770 (m32c_m16c_address_to_pointer): Update.
7771 (m32c_m16c_pointer_to_address): Update.
7772 * m32r-tdep.c (m32r_frame_this_id): Update.
7773 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7774 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7775 * maint.c (maintenance_translate_address): Update.
7776 * minsyms.c (add_minsym_to_hash_table): Update.
7777 (add_minsym_to_demangled_hash_table): Update.
7778 (msymbol_objfile): Update.
7779 (lookup_minimal_symbol): Update.
7780 (iterate_over_minimal_symbols): Update.
7781 (lookup_minimal_symbol_text): Update.
7782 (lookup_minimal_symbol_by_pc_name): Update.
7783 (lookup_minimal_symbol_solib_trampoline): Update.
7784 (lookup_minimal_symbol_by_pc_section_1): Update.
7785 (lookup_minimal_symbol_and_objfile): Update.
7786 (prim_record_minimal_symbol_full): Update.
7787 (compare_minimal_symbols): Update.
7788 (compact_minimal_symbols): Update.
7789 (build_minimal_symbol_hash_tables): Update.
7790 (install_minimal_symbols): Update.
7791 (terminate_minimal_symbol_table): Update.
7792 (find_solib_trampoline_target): Update.
7793 (minimal_symbol_upper_bound): Update.
7794 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7795 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7796 (mips_skip_pic_trampoline_code): Update.
7797 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7798 * objc-lang.c (selectors_info): Update.
7799 (classes_info): Update.
7800 (find_methods): Update.
7801 (find_imps): Update.
7802 (find_objc_msgsend): Update.
7803 * objfiles.c (objfile_relocate1): Update.
7804 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7805 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7806 * p-valprint.c (pascal_val_print): Update.
7807 * parse.c (write_exp_msymbol): Update.
7808 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7809 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7810 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7811 * printcmd.c (build_address_symbolic): Update.
7813 (address_info): Update.
7814 * proc-service.c (ps_pglobal_lookup): Update.
7815 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7816 (find_pc_sect_psymtab): Update.
7817 * python/py-framefilter.c (py_print_frame): Update.
7818 * ravenscar-thread.c (get_running_thread_id): Update.
7819 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7821 * remote.c (remote_check_symbols): Update.
7822 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7823 (rs6000_skip_trampoline_code): Update.
7824 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7825 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7826 * solib-dsbt.c (lm_base): Update.
7827 * solib-frv.c (lm_base): Update.
7829 * solib-irix.c (locate_base): Update.
7830 * solib-som.c (som_solib_create_inferior_hook): Update.
7831 (som_solib_desire_dynamic_linker_symbols): Update.
7832 (link_map_start): Update.
7833 * solib-spu.c (spu_enable_break): Update.
7834 (ocl_enable_break): Update.
7835 * solib-svr4.c (elf_locate_base): Update.
7836 (enable_break): Update.
7837 * spu-tdep.c (spu_get_overlay_table): Update.
7838 (spu_catch_start): Update.
7839 (flush_ea_cache): Update.
7840 * stabsread.c (define_symbol): Update.
7841 (scan_file_globals): Update.
7842 * stack.c (find_frame_funname): Update.
7843 (frame_info): Update.
7844 * symfile.c (simple_read_overlay_table): Update.
7845 (simple_overlay_update): Update.
7846 * symmisc.c (dump_msymbols): Update.
7847 * symtab.c (fixup_section): Update.
7848 (find_pc_sect_line): Update.
7849 (skip_prologue_sal): Update.
7850 (search_symbols): Update.
7851 (print_msymbol_info): Update.
7852 (rbreak_command): Update.
7853 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7854 (completion_list_objc_symbol): Update.
7855 (default_make_symbol_completion_list_break_on): Update.
7856 * tracepoint.c (scope_info): Update.
7857 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7858 (tui_get_begin_asm_address): Update.
7859 * valops.c (find_function_in_inferior): Update.
7860 * value.c (value_static_field): Update.
7861 (value_fn_field): Update.
7863 2014-02-26 Tom Tromey <tromey@redhat.com>
7865 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7866 bound minimal symbols. Move code that knows about minsym
7868 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7870 * minsyms.h (minimal_symbol_upper_bound): Declare.
7871 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7872 minimal_symbol_upper_bound.
7874 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7876 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7877 Use the type's name if its basic type does not have a tag.
7879 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7881 * dwarf2read.c (read_subrange_type): Add comment.
7883 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7885 * dwarf2read.c (update_enumeration_type_from_children): New
7886 function, mostly extracted from process_structure_scope.
7887 (read_enumeration_type): Call update_enumeration_type_from_children.
7888 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7889 and flag_flag_enum fields.
7891 2014-02-26 Pedro Alves <palves@redhat.com>
7893 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7894 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7895 to_xfer_partial method.
7897 2014-02-26 Pedro Alves <palves@redhat.com>
7899 * target.c (complete_target_initialization): Don't install
7900 default_xfer_partial as to_xfer_partial hook.
7902 (update_current_target): Don't INHERIT nor de_fault
7903 deprecated_xfer_memory. Delete de_fault macro.
7904 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7905 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7906 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7909 2014-02-26 Pedro Alves <palves@redhat.com>
7911 * go32-nat.c (my_write_child): New function.
7912 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7913 (go32_xfer_partial): New function.
7914 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7915 Instead install a to_xfer_partial hook.
7917 2014-02-26 Pedro Alves <palves@redhat.com>
7919 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7920 to_xfer_partial helper. Rewrite.
7921 (procfs_xfer_partial): New function.
7922 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7923 Install a to_xfer_partial hook.
7925 2014-02-26 Pedro Alves <palves@redhat.com>
7927 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7928 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7929 (m32r_xfer_partial): New function.
7930 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7931 Install a to_xfer_partial hook.
7933 2014-02-26 Pedro Alves <palves@redhat.com>
7935 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7937 (mips_xfer_partial): New function.
7938 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7939 hook. Install a to_xfer_partial hook.
7941 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7943 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7944 * gdbtypes.c (create_array_type_with_stride): New function,
7945 renaming create_array_type, but with an added parameter
7946 called "bit_stride".
7947 (create_array_type): Re-implement using
7948 create_array_type_with_stride.
7949 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7950 and DW_AT_bit_stride attributes.
7952 2014-02-26 Pedro Alves <palves@redhat.com>
7954 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7955 task-specific breakpoints.
7957 2014-02-25 Pedro Alves <palves@redhat.com>
7959 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7960 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7962 2014-02-25 Stan Shebs <stan@codesourcery.com>
7964 * defs.h: Annotate comments for Doxygen.
7966 2014-02-25 Tom Tromey <tromey@redhat.com>
7968 * target.h (target_ignore): Don't declare.
7969 * target.c (target_ignore): Remove.
7971 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7974 * auto-load.c (auto_load_objfile_script_1): Change filename to
7977 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7979 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7980 documentation. Adjust prototype to match the target_ops
7981 to_xfer_partial method. Adjust implementation accordingly.
7983 2014-02-25 Hui Zhu <hui@codesourcery.com>
7985 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7988 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7990 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7991 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7992 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7993 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7994 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7995 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7996 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7997 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7999 (rl78_register_type): Use a data pointer type for SP and
8000 new pseudo registers mentioned above. Use a 16 bit integer
8001 type for all other register pairs.
8002 (rl78_register_name, rl78_g10_register_name): Update for
8003 new pseudo registers.
8004 (rl78_pseudo_register_read): Likewise.
8005 (rl78_pseudo_register_write): Likewise.
8006 (rl78_dwarf_reg_to_regnum): Return register numbers representing
8007 to the newly added pseudo registers.
8009 2014-02-24 Doug Evans <dje@google.com>
8011 * value.c (record_latest_value): Fix comment.
8012 * printcmd.c (print_command_1): Remove code to handle -1 return from
8013 record_latest_value.
8015 2014-02-24 Pedro Alves <palves@redhat.com>
8017 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8018 deprecated_xfer_memory hook.
8019 (procfs_xfer_partial): Call procfs_xfer_memory instead
8020 of the deprecated_xfer_memory target hook.
8021 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8024 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8026 * windows-nat.c (windows_xfer_shared_libraries): Return
8027 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8028 requested object is TARGET_OBJECT_LIBRARIES.
8030 2014-02-24 Yao Qi <yao@codesourcery.com>
8032 * target.h (enum target_xfer_status)
8033 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8034 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8036 * corefile.c (memory_error_message): User updated.
8037 * exec.c (section_table_read_available_memory): Likewise.
8038 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8039 * target.c (target_xfer_status_to_string): Likewise.
8040 (raw_memory_xfer_partial): Likewise.
8041 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8042 * valops.c (read_value_memory): Likewise.
8043 * exec.h: Update comments.
8045 2014-02-24 Yao Qi <yao@codesourcery.com>
8047 * target.c (target_xfer_status_to_string): Rename argument err
8049 * target.h (target_xfer_status_to_string): Update declaration.
8050 Replace target_xfer_error_to_string with
8051 target_xfer_status_to_string in comment.
8053 2014-02-24 Yao Qi <yao@codesourcery.com>
8055 * mips-linux-nat.c (super_close): Update its type.
8056 (mips_linux_close): Pass 'self' to super_close.
8058 2014-02-24 Yao Qi <yao@codesourcery.com>
8060 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8061 * corefile.c (read_memory): Adjusted.
8062 * target.c (target_write_with_progress): Adjusted.
8064 2014-02-23 Yao Qi <yao@codesourcery.com>
8068 2013-10-25 Yao Qi <yao@codesourcery.com>
8070 * remote.c (remote_traceframe_info): Return early if
8071 traceframe is not selected.
8073 2013-07-19 Yao Qi <yao@codesourcery.com>
8075 * target.c (update_current_target): Change the default action
8076 of 'to_traceframe_info' from tcomplain to return_zero.
8077 * target.h (struct target_ops) <to_traceframe_info>: Add more
8080 2014-02-23 Yao Qi <yao@codesourcery.com>
8082 * valops.c (read_value_memory): Rewrite it. Call
8083 target_xfer_partial in a loop.
8084 * exec.h (section_table_available_memory): Remove declaration.
8085 Move comments to ...
8086 * exec.c (section_table_available_memory): ... here. Make it
8089 2014-02-23 Yao Qi <yao@codesourcery.com>
8091 * exec.c (section_table_read_available_memory): New function.
8092 * exec.h (section_table_read_available_memory): Declare.
8093 * ctf.c (ctf_xfer_partial): Call
8094 section_table_read_available_memory.
8095 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8097 2014-02-23 Yao Qi <yao@codesourcery.com>
8099 * ctf.c (ctf_xfer_partial): Move code to ...
8100 * exec.c (exec_read_partial_read_only): ... it. New function.
8101 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8102 * tracefile.c: Include "exec.h".
8103 * exec.h (exec_read_partial_read_only): Declare.
8105 2014-02-23 Yao Qi <yao@codesourcery.com>
8107 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8108 (tfile_has_memory): Remove.
8109 (init_tfile_ops): Don't set fields to_has_all_memory and
8110 to_has_memory of tfile_ops.
8111 * tracefile.c (tracefile_has_all_memory): New function.
8112 (tracefile_has_memory): New function.
8113 (init_tracefile_ops): Initialize fields to_has_all_memory and
8114 to_has_memory of 'ops'.
8116 2014-02-23 Yao Qi <yao@codesourcery.com>
8118 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8119 (ctf_thread_alive, ctf_get_trace_status): Remove.
8120 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8122 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8123 (tfile_has_stack, tfile_has_registers): Remove.
8124 (tfile_thread_alive): Remove.
8125 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8127 * tracefile.c (tracefile_has_stack): New function.
8128 (tracefile_has_registers): New function.
8129 (tracefile_thread_alive): New function.
8130 (tracefile_get_trace_status): New function.
8131 (init_tracefile_ops): New function.
8132 * tracefile.h (init_tracefile_ops): Declare.
8134 2014-02-23 Yao Qi <yao@codesourcery.com>
8136 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8137 (O_LARGEFILE): Likewise.
8138 (tfile_ops): Likewise.
8139 (TRACE_HEADER_SIZE): Likewise.
8140 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8141 (cur_data_size): Likewise.
8142 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8143 (tfile_close, tfile_files_info): Likewise.
8144 (tfile_get_trace_status): Likewise.
8145 (tfile_get_tracepoint_status): Likewise.
8146 (tfile_get_traceframe_address): Likewise.
8147 (tfile_trace_find, match_blocktype): Likewise.
8148 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8149 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8150 (tfile_get_trace_state_variable_value): Likewise.
8151 (tfile_has_all_memory, tfile_has_memory): Likewise.
8152 (tfile_has_stack, tfile_has_registers): Likewise.
8153 (tfile_thread_alive, build_traceframe_info): Likewise.
8154 (tfile_traceframe_info, init_tfile_ops): Likewise.
8155 (_initialize_tracepoint): Don't call init_tfile_ops
8156 and add_target_with_completer.
8157 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8158 exec.h, completer.h and filenames.h.
8159 (_initialize_tracefile_tfile): New function.
8161 2014-02-23 Yao Qi <yao@codesourcery.com>
8163 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8165 (HFILES_NO_SRCDIR): Add tracefile.h.
8166 * ctf.c: Include "tracefile.h".
8167 * tracefile.h: New file.
8168 * tracefile.c: New file
8169 * tracefile-tfile.c: New file.
8170 * tracepoint.c: Include "tracefile.h".
8171 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8172 (stop_reason_names): Add const.
8173 (trace_file_writer_xfree): Move it to tracefile.c.
8174 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8175 (trace_save_ctf): Likewise.
8176 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8177 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8178 (tfile_write_header, tfile_write_regblock_type): Likewise.
8179 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8180 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8181 (tfile_write_raw_data, tfile_end): Likewise.
8182 (tfile_trace_file_writer_new): Likewise.
8183 (free_uploaded_tp): Make it extern.
8184 (free_uploaded_tsv): Make it extern.
8185 (_initialize_tracepoint): Move code to register command 'tsave'
8187 * tracepoint.h (stop_reason_names): Declare.
8188 (struct trace_frame_write_ops): Move it to tracefile.h.
8189 (struct trace_file_write_ops): Likewise.
8190 (struct trace_file_writer): Likewise.
8191 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8193 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8196 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8198 (get_cores_used_by_process): New parameter num_cores, use it.
8199 (linux_xfer_osdata_processes): Pass num_cores to it.
8200 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8203 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8205 * target.c (memory_xfer_partial): Fix length arg in call to
8206 breakpoint_xfer_memory.
8208 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8211 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8212 number comes after the + or - signs. Adjust length of register
8213 name to be extracted.
8215 2014-02-20 Tom Tromey <tromey@redhat.com>
8217 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8218 (ada_varobj_ops): Mark "extern".
8220 2014-02-20 Tom Tromey <tromey@redhat.com>
8222 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8224 2014-02-20 Doug Evans <xdje42@gmail.com>
8226 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8227 All callers updated.
8228 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8229 All callers updated.
8230 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8231 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8233 2014-02-20 lin zuojian <manjian2006@gmail.com>
8234 Joel Brobecker <brobecker@adacore.com>
8235 Doug Evans <xdje42@gmail.com>
8238 * dwarf2read.c (struct die_info): New member in_process.
8239 (reset_die_in_process): New function.
8240 (process_die): Set it at the start, reset when returning.
8241 (inherit_abstract_dies): Only call process_die if origin_child_die
8242 not already being processed.
8244 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8246 * windows-nat.c (handle_unload_dll): Add function documentation.
8247 (do_initial_windows_stuff): Add comment explaining why we wait
8248 until after inferior initialization has finished before
8249 processing all DLLs.
8251 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8253 * windows-nat.c (get_module_name): Delete.
8254 (windows_get_exec_module_filename): New function, mostly
8255 inspired from get_module_name.
8256 (windows_pid_to_exec_file): Replace call to get_module_name
8257 by call to windows_get_exec_module_filename.
8259 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8261 * windows-nat.c (handle_load_dll): Rewrite this function's
8262 introductory comment. Remove code using get_module_name
8263 to get the DLL's name.
8265 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8267 * windows-nat.c (get_windows_debug_event): Ignore
8268 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8269 if windows_initialization_done == 0.
8270 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8271 Adjust implementation to always load all DLLs.
8272 (do_initial_windows_stuff): Replace call to
8273 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8275 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8277 * windows-nat.c (_initialize_windows_nat): Deprecate the
8278 "dll-symbols" command. Turn the "add-shared-symbol-files"
8279 and "assf" aliases into commands, and deprecate them as well.
8280 * NEWS: Add entry explaining that "dll-symbols" and its two
8281 aliases are now deprecated.
8283 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8285 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8286 new-line in debug string. Remove trailing spaces.
8288 2014-02-19 Stan Shebs <stan@codesourcery.com>
8290 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8292 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8294 * NEWS: Add entry for the new feature
8295 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8298 2014-02-19 Stan Shebs <stan@codesourcery.com>
8300 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8302 2014-02-19 Pedro Alves <palves@redhat.com>
8304 * common/ptid.h (struct ptid): Mention that process_stratum
8305 targets should prefer ptid.lwp.
8307 2014-02-19 Pedro Alves <palves@redhat.com>
8309 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8310 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8311 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8312 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8313 store remote thread ids rather than ptid.tid.
8314 (_initialize_remote): Adjust.
8316 2014-02-19 Tom Tromey <tromey@redhat.com>
8318 * target.c (target_get_unwinder): Rewrite.
8319 (target_get_tailcall_unwinder): Rewrite.
8320 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8321 (record_btrace_to_get_tailcall_unwinder): New function.
8322 (init_record_btrace_ops): Update.
8323 * target.h (struct target_ops) <to_get_unwinder,
8324 to_get_tailcall_unwinder>: Now function pointers. Use
8325 TARGET_DEFAULT_RETURN.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8331 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8333 2014-02-19 Tom Tromey <tromey@redhat.com>
8335 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8337 * target-delegates.c: Rebuild.
8338 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8339 TARGET_DEFAULT_FUNC.
8340 * target.c (default_target_decr_pc_after_break): Rename from
8341 forward_target_decr_pc_after_break. Simplify.
8342 (target_decr_pc_after_break): Rely on delegation.
8344 2014-02-19 Tom Tromey <tromey@redhat.com>
8346 * target.c (update_current_target): Do not INHERIT to_doc or
8347 to_magic. Do not de_fault to_open or to_close.
8349 2014-02-19 Tom Tromey <tromey@redhat.com>
8351 * gcore.h (objfile_find_memory_regions): Declare.
8352 * gcore.c (objfile_find_memory_regions): No longer static. Add
8354 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8355 * exec.c: Include gcore.h.
8356 (exec_set_find_memory_regions): Remove.
8357 (exec_find_memory_regions): Remove.
8358 (exec_do_find_memory_regions): Remove.
8359 (init_exec_ops): Update.
8360 * defs.h (exec_set_find_memory_regions): Remove.
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target-delegates.c: Rebuild.
8365 * target.h (struct target_ops) <to_extra_thread_info,
8366 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8367 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8368 not 0, in TARGET_DEFAULT_RETURN.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target.c (complete_target_initialization): Remove casts. Use
8373 return_zero_has_execution.
8374 (return_zero): Add "ignore" argument.
8375 (return_zero_has_execution): New function.
8376 (init_dummy_target): Remove casts. Use
8377 return_zero_has_execution.
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * target.c (update_current_target): Update comments. Do not
8384 2014-02-19 Tom Tromey <tromey@redhat.com>
8386 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8388 * corelow.c (core_read_description): Delegate when needed.
8389 * remote.c (remote_read_description): Delegate when needed.
8390 * target-delegates.c: Rebuild.
8391 * target.c (target_read_description): Rewrite.
8392 * target.h (struct target_ops) <to_read_description>: Update
8393 comment. Use TARGET_DEFAULT_RETURN.
8395 2014-02-19 Tom Tromey <tromey@redhat.com>
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8400 (find_default_run_target): Check against delegate_can_run.
8401 * target.h (struct target_ops) <to_can_run>: Use
8402 TARGET_DEFAULT_RETURN.
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8406 * target-delegates.c: Rebuild.
8407 * target.c (target_disconnect): Unconditionally delegate.
8408 * target.h (struct target_ops) <to_disconnect>: Use
8409 TARGET_DEFAULT_NORETURN.
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8413 * record.c (record_stop): Unconditionally delegate.
8414 * target-delegates.c: Rebuild.
8415 * target.c (target_stop_recording): Unconditionally delegate.
8416 * target.h (struct target_ops) <to_stop_recording>: Use
8417 TARGET_DEFAULT_IGNORE.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target-delegates.c: Rebuild.
8422 * target.c (target_enable_btrace): Unconditionally delegate.
8423 * target.h (struct target_ops) <to_enable_btrace>: Use
8424 TARGET_DEFAULT_NORETURN.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (target_read_btrace): Unconditionally delegate.
8430 * target.h (struct target_ops) <to_read_btrace>: Use
8431 TARGET_DEFAULT_NORETURN.
8433 2014-02-19 Tom Tromey <tromey@redhat.com>
8435 * target-delegates.c: Rebuild.
8436 * target.c (target_teardown_btrace): Unconditionally delegate.
8437 * target.h (struct target_ops) <to_teardown_btrace>: Use
8438 TARGET_DEFAULT_NORETURN.
8440 2014-02-19 Tom Tromey <tromey@redhat.com>
8442 * target-delegates.c: Rebuild.
8443 * target.c (target_disable_btrace): Unconditionally delegate.
8444 * target.h (struct target_ops) <to_disable_btrace>: Use
8445 TARGET_DEFAULT_NORETURN.
8447 2014-02-19 Tom Tromey <tromey@redhat.com>
8449 * target-delegates.c: Rebuild.
8450 * target.c (default_search_memory): New function.
8451 (simple_search_memory): Update comment.
8452 (target_search_memory): Unconditionally delegate.
8453 * target.h (struct target_ops) <to_search_memory>: Use
8454 TARGET_DEFAULT_FUNC.
8456 2014-02-19 Tom Tromey <tromey@redhat.com>
8458 * auxv.c (default_auxv_parse): No longer static.
8459 (target_auxv_parse): Unconditionally delegate.
8460 * auxv.h (default_auxv_parse): Declare.
8461 * target-delegates.c: Rebuild.
8462 * target.c: Include auxv.h.
8463 * target.h (struct target_ops) <to_auxv_parse>: Use
8464 TARGET_DEFAULT_FUNC.
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8468 * target-delegates.c: Rebuild.
8469 * target.c (target_memory_map): Unconditionally delegate.
8470 * target.h (struct target_ops) <to_memory_map>: Use
8471 TARGET_DEFAULT_RETURN.
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8475 * target-delegates.c: Rebuild.
8476 * target.c (target_thread_alive): Unconditionally delegate.
8477 * target.h (struct target_ops) <to_thread_alive>: Use
8478 TARGET_DEFAULT_RETURN.
8480 2014-02-19 Tom Tromey <tromey@redhat.com>
8482 * target-delegates.c: Rebuild.
8483 * target.c (target_save_record): Unconditionally delegate.
8484 * target.h (struct target_ops) <to_save_record>: Use
8485 TARGET_DEFAULT_NORETURN.
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8489 * target-delegates.c: Rebuild.
8490 * target.c (target_delete_record): Unconditionally delegate.
8491 * target.h (struct target_ops) <to_delete_record>: Use
8492 TARGET_DEFAULT_NORETURN.
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * target-delegates.c: Rebuild.
8497 * target.c (target_record_is_replaying): Unconditionally
8499 * target.h (struct target_ops) <to_record_is_replaying>: Use
8500 TARGET_DEFAULT_RETURN.
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8504 * target-delegates.c: Rebuild.
8505 * target.c (target_goto_record_begin): Unconditionally delegate.
8506 * target.h (struct target_ops) <to_goto_record_begin>: Use
8507 TARGET_DEFAULT_NORETURN.
8509 2014-02-19 Tom Tromey <tromey@redhat.com>
8511 * target-delegates.c: Rebuild.
8512 * target.c (target_goto_record_end): Unconditionally delegate.
8513 * target.h (struct target_ops) <to_goto_record_end>: Use
8514 TARGET_DEFAULT_NORETURN.
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8518 * target-delegates.c: Rebuild.
8519 * target.c (target_goto_record): Unconditionally delegate.
8520 * target.h (struct target_ops) <to_goto_record>: Use
8521 TARGET_DEFAULT_NORETURN.
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8525 * target-delegates.c: Rebuild.
8526 * target.c (target_insn_history): Unconditionally delegate.
8527 * target.h (struct target_ops) <to_insn_history>: Use
8528 TARGET_DEFAULT_NORETURN.
8530 2014-02-19 Tom Tromey <tromey@redhat.com>
8532 * target-delegates.c: Rebuild.
8533 * target.c (target_insn_history_from): Unconditionally delegate.
8534 * target.h (struct target_ops) <to_insn_history_from>: Use
8535 TARGET_DEFAULT_NORETURN.
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8539 * target-delegates.c: Rebuild.
8540 * target.c (target_insn_history_range): Unconditionally delegate.
8541 * target.h (struct target_ops) <to_insn_history_range>: Use
8542 TARGET_DEFAULT_NORETURN.
8544 2014-02-19 Tom Tromey <tromey@redhat.com>
8546 * target-delegates.c: Rebuild.
8547 * target.c (target_call_history): Unconditionally delegate.
8548 * target.h (struct target_ops) <to_call_history>: Use
8549 TARGET_DEFAULT_NORETURN.
8551 2014-02-19 Tom Tromey <tromey@redhat.com>
8553 * target-delegates.c: Rebuild.
8554 * target.c (target_call_history_from): Unconditionally delegate.
8555 * target.h (struct target_ops) <to_call_history_from>: Use
8556 TARGET_DEFAULT_NORETURN.
8558 2014-02-19 Tom Tromey <tromey@redhat.com>
8560 * target-delegates.c: Rebuild.
8561 * target.c (target_call_history_range): Unconditionally delegate.
8562 * target.h (struct target_ops) <to_call_history_range>: Use
8563 TARGET_DEFAULT_NORETURN.
8565 2014-02-19 Tom Tromey <tromey@redhat.com>
8567 * target-delegates.c: Rebuild.
8568 * target.c (target_verify_memory): Unconditionally delegate.
8569 * target.h (struct target_ops) <to_verify_memory>: Use
8570 TARGET_DEFAULT_NORETURN.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target-delegates.c: Rebuild.
8575 * target.c (target_core_of_thread): Unconditionally delegate.
8576 * target.h (struct target_ops) <to_core_of_thread>: Use
8577 TARGET_DEFAULT_RETURN.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target-delegates.c: Rebuild.
8582 * target.c (target_flash_done): Unconditionally delegate.
8583 * target.h (struct target_ops) <to_flash_done>: Use
8584 TARGET_DEFAULT_NORETURN.
8586 2014-02-19 Tom Tromey <tromey@redhat.com>
8588 * target-delegates.c: Rebuild.
8589 * target.c (target_flash_erase): Unconditionally delegate.
8590 * target.h (struct target_ops) <to_flash_erase>: Use
8591 TARGET_DEFAULT_NORETURN.
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8595 * target-delegates.c: Rebuild.
8596 * target.c (target_get_section_table): Unconditionally delegate.
8597 * target.h (struct target_ops) <to_get_section_table>: Use
8598 TARGET_DEFAULT_RETURN.
8600 2014-02-19 Tom Tromey <tromey@redhat.com>
8602 * target-delegates.c: Rebuild.
8603 * target.c (target_pid_to_str): Unconditionally delegate.
8604 (init_dummy_target): Don't initialize to_pid_to_str.
8605 (default_pid_to_str): Rename from dummy_pid_to_str.
8606 * target.h (struct target_ops) <to_pid_to_str>: Use
8607 TARGET_DEFAULT_FUNC.
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8611 * target-delegates.c: Rebuild.
8612 * target.c (target_find_new_threads): Unconditionally delegate.
8613 * target.h (struct target_ops) <to_find_new_threads>: Use
8614 TARGET_DEFAULT_RETURN.
8616 2014-02-19 Tom Tromey <tromey@redhat.com>
8618 * target-delegates.c: Rebuild.
8619 * target.c (target_program_signals): Unconditionally delegate.
8620 * target.h (struct target_ops) <to_program_signals>: Use
8621 TARGET_DEFAULT_IGNORE.
8623 2014-02-19 Tom Tromey <tromey@redhat.com>
8625 * target-delegates.c: Rebuild.
8626 * target.c (target_pass_signals): Unconditionally delegate.
8627 * target.h (struct target_ops) <to_pass_signals>: Use
8628 TARGET_DEFAULT_IGNORE.
8630 2014-02-19 Tom Tromey <tromey@redhat.com>
8632 * target-delegates.c: Rebuild.
8633 * target.c (default_mourn_inferior): New function.
8634 (target_mourn_inferior): Unconditionally delegate.
8635 * target.h (struct target_ops) <to_mourn_inferior>: Use
8636 TARGET_DEFAULT_FUNC.
8638 2014-02-19 Tom Tromey <tromey@redhat.com>
8640 * target-delegates.c: Rebuild.
8641 * target.c (default_follow_fork): New function.
8642 (target_follow_fork): Unconditionally delegate.
8643 * target.h (struct target_ops) <to_follow_fork>: Use
8644 TARGET_DEFAULT_FUNC.
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8648 * target-delegates.c: Rebuild.
8649 * target.c (target_kill): Unconditionally delegate.
8650 * target.h (struct target_ops) <to_kill>: Use
8651 TARGET_DEFAULT_NORETURN.
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target-delegates.c: Rebuild.
8656 * target.c (target_masked_watch_num_registers): Unconditionally
8658 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8659 Use TARGET_DEFAULT_RETURN.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target-delegates.c: Rebuild.
8664 * target.c (target_remove_mask_watchpoint): Unconditionally
8666 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8667 TARGET_DEFAULT_RETURN.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (target_insert_mask_watchpoint): Unconditionally
8674 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8675 TARGET_DEFAULT_RETURN.
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8679 * target-delegates.c: Rebuild.
8680 * target.c (target_ranged_break_num_registers): Unconditionally
8682 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8683 Use TARGET_DEFAULT_RETURN.
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target-delegates.c: Rebuild.
8688 * target.c (target_fetch_registers): Unconditionally delegate.
8689 * target.h (struct target_ops) <to_fetch_registers>: Use
8690 TARGET_DEFAULT_NORETURN.
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8694 * target-delegates.c: Rebuild.
8695 * target.c (update_current_target): Don't inherit or default
8697 * target.h (struct target_ops) <to_stop>: Use
8698 TARGET_DEFAULT_IGNORE.
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8704 to_can_run_breakpoint_commands.
8705 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8706 Use TARGET_DEFAULT_RETURN.
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8710 * target-delegates.c: Rebuild.
8711 * target.c (update_current_target): Don't inherit or default
8712 to_supports_evaluation_of_breakpoint_conditions.
8713 * target.h (struct target_ops)
8714 <to_supports_evaluation_of_breakpoint_conditions>: Use
8715 TARGET_DEFAULT_RETURN.
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_augmented_libraries_svr4_read.
8722 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8723 Use TARGET_DEFAULT_RETURN.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8730 * target.h (struct target_ops) <to_can_use_agent>: Use
8731 TARGET_DEFAULT_RETURN.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8738 * target.h (struct target_ops) <to_use_agent>: Use
8739 TARGET_DEFAULT_NORETURN.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8746 (return_null): Remove.
8747 * target.h (struct target_ops) <to_traceframe_info>: Use
8748 TARGET_DEFAULT_RETURN.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_static_tracepoint_markers_by_strid.
8755 * target.h (struct target_ops)
8756 <to_static_tracepoint_markers_by_strid>: Use
8757 TARGET_DEFAULT_NORETURN.
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_static_tracepoint_marker_at.
8764 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8765 Use TARGET_DEFAULT_RETURN.
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8772 * target.h (struct target_ops) <to_set_permissions>: Use
8773 TARGET_DEFAULT_IGNORE.
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8780 * target.h (struct target_ops) <to_get_tib_address>: Use
8781 TARGET_DEFAULT_NORETURN.
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8785 * target-delegates.c: Rebuild.
8786 * target.c (update_current_target): Don't inherit or default
8788 * target.h (struct target_ops) <to_set_trace_notes>: Use
8789 TARGET_DEFAULT_RETURN.
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't initialize
8795 to_set_trace_buffer_size.
8796 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8797 TARGET_DEFAULT_IGNORE.
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8801 * target-delegates.c: Rebuild.
8802 * target.c (update_current_target): Don't inherit or default
8803 to_set_circular_trace_buffer.
8804 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8805 TARGET_DEFAULT_IGNORE.
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8809 * target-delegates.c: Rebuild.
8810 * target.c (update_current_target): Don't inherit or default
8811 to_set_disconnected_tracing.
8812 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8813 TARGET_DEFAULT_IGNORE.
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8819 to_get_min_fast_tracepoint_insn_len.
8820 (return_minus_one): Remove.
8821 * target.h (struct target_ops)
8822 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target-delegates.c: Rebuild.
8827 * target.c (update_current_target): Don't inherit or default
8828 to_get_raw_trace_data.
8829 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8830 TARGET_DEFAULT_NORETURN.
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8834 * target-delegates.c: Rebuild.
8835 * target.c (update_current_target): Don't inherit or default
8836 to_upload_trace_state_variables.
8837 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8838 Use TARGET_DEFAULT_RETURN.
8840 2014-02-19 Tom Tromey <tromey@redhat.com>
8842 * target-delegates.c: Rebuild.
8843 * target.c (update_current_target): Don't inherit or default
8844 to_upload_tracepoints.
8845 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8846 TARGET_DEFAULT_RETURN.
8848 2014-02-19 Tom Tromey <tromey@redhat.com>
8850 * target-delegates.c: Rebuild.
8851 * target.c (update_current_target): Don't inherit or default
8853 * target.h (struct target_ops) <to_save_trace_data>: Use
8854 TARGET_DEFAULT_NORETURN.
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8858 * target-delegates.c: Rebuild.
8859 * target.c (update_current_target): Don't inherit or default
8860 to_get_trace_state_variable_value.
8861 * target.h (struct target_ops)
8862 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8864 2014-02-19 Tom Tromey <tromey@redhat.com>
8866 * target-delegates.c: Rebuild.
8867 * target.c (update_current_target): Don't inherit or default
8869 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8876 * target.h (struct target_ops) <to_trace_stop>: Use
8877 TARGET_DEFAULT_NORETURN.
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8881 * target-delegates.c: Rebuild.
8882 * target.c (update_current_target): Don't inherit or default
8883 to_get_tracepoint_status.
8884 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8885 TARGET_DEFAULT_NORETURN.
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8889 * target-delegates.c: Rebuild.
8890 * target.c (update_current_target): Don't inherit or default
8891 to_get_trace_status.
8892 * target.h (struct target_ops) <to_get_trace_status>: Use
8893 TARGET_DEFAULT_RETURN.
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8900 * target.h (struct target_ops) <to_trace_start>: Use
8901 TARGET_DEFAULT_NORETURN.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8907 to_trace_set_readonly_regions.
8908 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8909 Use TARGET_DEFAULT_NORETURN.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8915 to_disable_tracepoint.
8916 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8917 TARGET_DEFAULT_NORETURN.
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8923 to_enable_tracepoint.
8924 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8925 TARGET_DEFAULT_NORETURN.
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target-delegates.c: Rebuild.
8930 * target.c (update_current_target): Don't inherit or default
8931 to_download_trace_state_variable.
8932 * target.h (struct target_ops) <to_download_trace_state_variable>:
8933 Use TARGET_DEFAULT_NORETURN.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8939 to_can_download_tracepoint.
8940 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8941 TARGET_DEFAULT_RETURN.
8943 2014-02-19 Tom Tromey <tromey@redhat.com>
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8947 to_download_tracepoint.
8948 * target.h (struct target_ops) <to_download_tracepoint>: Use
8949 TARGET_DEFAULT_NORETURN.
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8953 * target-delegates.c: Rebuild.
8954 * target.c (update_current_target): Don't inherit or default
8956 * target.h (struct target_ops) <to_trace_init>: Use
8957 TARGET_DEFAULT_RETURN.
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8961 * target-delegates.c: Rebuild.
8962 * target.c (update_current_target): Don't inherit or default
8963 to_supports_string_tracing.
8964 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8965 TARGET_DEFAULT_RETURN.
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8969 * target-delegates.c: Rebuild.
8970 * target.c (update_current_target): Don't inherit or default
8971 to_supports_enable_disable_tracepoint.
8972 * target.h (struct target_ops)
8973 <to_supports_enable_disable_tracepoint>: Use
8974 TARGET_DEFAULT_RETURN.
8976 2014-02-19 Tom Tromey <tromey@redhat.com>
8978 * target-delegates.c: Rebuild.
8979 * target.c (update_current_target): Don't inherit or default
8980 to_supports_multi_process.
8981 * target.h (struct target_ops) <to_supports_multi_process>: Use
8982 TARGET_DEFAULT_RETURN.
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8986 * target-delegates.c: Rebuild.
8987 * target.c (update_current_target): Don't inherit or default
8988 to_get_ada_task_ptid.
8989 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8990 TARGET_DEFAULT_FUNC.
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8994 * target-delegates.c: Rebuild.
8995 * target.c (update_current_target): Don't inherit or default
8996 to_thread_architecture.
8997 * target.h (struct target_ops) <to_thread_architecture>: Use
8998 TARGET_DEFAULT_FUNC.
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9002 * target-delegates.c: Rebuild.
9003 * target.c (update_current_target): Don't inherit or default
9004 to_execution_direction.
9005 * target.h (struct target_ops) <to_execution_direction>: Use
9006 TARGET_DEFAULT_FUNC.
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * target-delegates.c: Rebuild.
9011 * target.c (update_current_target): Don't inherit or default
9012 to_can_execute_reverse.
9013 * target.h (struct target_ops) <to_can_execute_reverse>: Use
9014 TARGET_DEFAULT_RETURN.
9015 (target_can_execute_reverse): Unconditionally delegate.
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9019 * target-delegates.c: Rebuild.
9020 * target.c (update_current_target): Don't inherit or default
9022 (dummy_goto_bookmark): Remove.
9023 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9024 * target.h (struct target_ops) <to_goto_bookmark>: Use
9025 TARGET_DEFAULT_NORETURN.
9027 2014-02-19 Tom Tromey <tromey@redhat.com>
9029 * target-delegates.c: Rebuild.
9030 * target.c (update_current_target): Don't inherit or default
9032 (dummy_get_bookmark): Remove.
9033 (init_dummy_target): Don't inherit or default to_get_bookmark.
9034 * target.h (struct target_ops) <to_get_bookmark>: Use
9035 TARGET_DEFAULT_NORETURN
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9039 * target-delegates.c: Rebuild.
9040 * target.c (update_current_target): Don't inherit or default
9041 to_make_corefile_notes.
9042 (init_dummy_target): Don't initialize to_make_corefile_notes.
9043 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9044 TARGET_DEFAULT_FUNC.
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9048 * target-delegates.c: Rebuild.
9049 * target.c (update_current_target): Don't inherit or default
9050 to_find_memory_regions.
9051 (init_dummy_target): Don't initialize to_find_memory_regions.
9052 * target.h (struct target_ops) <to_find_memory_regions>: Use
9053 TARGET_DEFAULT_FUNC.
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9057 * target-delegates.c: Rebuild.
9058 * target.c (update_current_target): Don't inherit or default
9060 * target.h (struct target_ops) <to_log_command>: Use
9061 TARGET_DEFAULT_IGNORE.
9062 (target_log_command): Unconditionally delegate.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target-delegates.c: Rebuild.
9067 * target.c (update_current_target): Don't inherit or default
9068 to_pid_to_exec_file.
9069 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9070 TARGET_DEFAULT_RETURN.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * target-delegates.c: Rebuild.
9075 * target.c (update_current_target): Don't inherit or default
9077 (target_thread_name): Unconditionally delegate.
9078 * target.h (struct target_ops) <to_thread_name>: Use
9079 TARGET_DEFAULT_RETURN.
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9083 * target-delegates.c: Rebuild.
9084 * target.c (update_current_target): Don't inherit or default
9085 to_extra_thread_info.
9086 * target.h (struct target_ops) <to_extra_thread_info>: Use
9087 TARGET_DEFAULT_RETURN.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target-delegates.c: Rebuild.
9092 * target.c (update_current_target): Don't inherit or default
9094 * target.h (struct target_ops) <to_has_exited>: Use
9095 TARGET_DEFAULT_RETURN..
9097 2014-02-19 Tom Tromey <tromey@redhat.com>
9099 * target-delegates.c: Rebuild.
9100 * target.c (update_current_target): Don't inherit or default
9101 to_set_syscall_catchpoint.
9102 (return_one): Remove.
9103 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9104 TARGET_DEFAULT_RETURN.
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target-delegates.c: Rebuild.
9109 * target.c (update_current_target): Don't inherit or default
9110 to_insert_exec_catchpoint.
9111 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9112 TARGET_DEFAULT_RETURN.
9114 2014-01-08 Tom Tromey <tromey@redhat.com>
9116 * target-delegates.c: Rebuild.
9117 * target.c (update_current_target): Don't inherit or default
9118 to_insert_exec_catchpoint.
9119 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9120 TARGET_DEFAULT_RETURN.
9122 2014-02-19 Tom Tromey <tromey@redhat.com>
9124 * target-delegates.c: Rebuild.
9125 * target.c (update_current_target): Don't inherit or default
9126 to_remove_vfork_catchpoint.
9127 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9128 TARGET_DEFAULT_RETURN.
9130 2014-02-19 Tom Tromey <tromey@redhat.com>
9132 * target-delegates.c: Rebuild.
9133 * target.c (update_current_target): Don't inherit or default
9134 to_insert_vfork_catchpoint.
9135 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9136 TARGET_DEFAULT_RETURN.
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9140 * target-delegates.c: Rebuild.
9141 * target.c (update_current_target): Don't inherit or default
9142 to_remove_fork_catchpoint.
9143 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9144 TARGET_DEFAULT_RETURN.
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * target-delegates.c: Rebuild.
9149 * target.c (update_current_target): Don't inherit or default
9150 to_insert_fork_catchpoint.
9151 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9152 TARGET_DEFAULT_RETURN.
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9156 * target-delegates.c: Rebuild.
9157 * target.c (update_current_target): Don't inherit or default
9158 to_post_startup_inferior.
9159 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9160 TARGET_DEFAULT_IGNORE.
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9164 * target-delegates.c: Rebuild.
9165 * target.c (update_current_target): Don't inherit or default
9167 * target.h (struct target_ops) <to_load>: Use
9168 TARGET_DEFAULT_NORETURN.
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * target-delegates.c: Rebuild.
9173 * target.c (update_current_target): Don't inherit or default
9175 * target.h (struct target_ops) <to_terminal_info>: Use
9176 TARGET_DEFAULT_FUNC.
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9180 * target-delegates.c: Rebuild.
9181 * target.c (update_current_target): Don't inherit or default
9182 to_terminal_save_ours.
9183 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9184 TARGET_DEFAULT_IGNORE.
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9188 * target-delegates.c: Rebuild.
9189 * target.c (update_current_target): Don't inherit or default
9191 * target.h (struct target_ops) <to_terminal_ours>: Use
9192 TARGET_DEFAULT_IGNORE.
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9196 * target-delegates.c: Rebuild.
9197 * target.c (update_current_target): Don't inherit or default
9198 to_terminal_ours_for_output.
9199 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9200 TARGET_DEFAULT_IGNORE.
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9204 * target-delegates.c: Rebuild.
9205 * target.c (update_current_target): Don't inherit or default
9206 to_terminal_inferior.
9207 * target.h (struct target_ops) <to_terminal_inferior>: Use
9208 TARGET_DEFAULT_IGNORE.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target-delegates.c: Rebuild.
9213 * target.c (update_current_target): Don't inherit or default
9215 * target.h (struct target_ops) <to_terminal_init>: Use
9216 TARGET_DEFAULT_IGNORE.
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9220 * target-delegates.c: Rebuild.
9221 * target.c (update_current_target): Don't inherit or default
9222 to_can_accel_watchpoint_condition.
9223 * target.h (struct target_ops)
9224 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9226 2014-02-19 Tom Tromey <tromey@redhat.com>
9228 * target-delegates.c: Rebuild.
9229 * target.c (update_current_target): Don't inherit or default
9230 to_region_ok_for_hw_watchpoint.
9231 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9232 Use TARGET_DEFAULT_FUNC.
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9236 * target-delegates.c: Rebuild.
9237 * target.c (update_current_target): Don't inherit or default
9238 to_watchpoint_addr_within_range.
9239 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9240 Use TARGET_DEFAULT_FUNC.
9242 2014-02-19 Tom Tromey <tromey@redhat.com>
9244 * target-delegates.c: Rebuild.
9245 * target.c (update_current_target): Don't inherit or default
9246 to_remove_watchpoint.
9247 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9248 TARGET_DEFAULT_NORETURN.
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9252 * target-delegates.c: Rebuild.
9253 * target.c (update_current_target): Don't inherit or default
9254 to_insert_watchpoint.
9255 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9256 TARGET_DEFAULT_RETURN.
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * target-delegates.c: Rebuild.
9261 * target.c (update_current_target): Don't inherit or default
9262 to_remove_hw_breakpoint.
9263 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9264 TARGET_DEFAULT_RETURN.
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * target-delegates.c: Rebuild.
9269 * target.c (update_current_target): Don't inherit or default
9270 to_insert_hw_breakpoint.
9271 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9272 TARGET_DEFAULT_RETURN.
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * target-delegates.c: Rebuild.
9277 * target.c (update_current_target): Don't inherit or default
9278 to_can_use_hw_breakpoint.
9279 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9280 TARGET_DEFAULT_RETURN.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * target-delegates.c: Rebuild.
9285 * target.c (update_current_target): Don't inherit or default
9287 * target.h (struct target_ops) <to_files_info>: Use
9288 TARGET_DEFAULT_IGNORE.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * target-delegates.c: Rebuild.
9293 * target.c (update_current_target): Don't inherit or default
9295 * target.h (struct target_ops) <to_store>: Use
9296 TARGET_DEFAULT_NORETURN.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target-delegates.c: Rebuild.
9301 * target.c (update_current_target): Don't inherit or default
9303 * target.h (struct target_ops) <to_post_attach>: Use
9304 TARGET_DEFAULT_IGNORE.
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target-delegates.c: Rebuild.
9309 * target.c (update_current_target): Don't inherit or default
9311 (default_rcmd): New function.
9312 (do_monitor_command): Unconditionally delegate.
9313 * target.h (struct target_ops) <to_rmcd>: Use
9314 TARGET_DEFAULT_FUNC.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target-delegates.c: Rebuild.
9319 * target.c (init_dummy_target): Don't initialize to_attach.
9320 (target_attach): Unconditionally delegate.
9321 * target.h (struct target_ops) <to_attach>: Use
9322 TARGET_DEFAULT_FUNC.
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target-delegates.c: Rebuild.
9327 * target.c (target_detach): Unconditionally delegate.
9328 (init_dummy_target): Don't initialize to_detach.
9329 * target.h (struct target_ops) <to_detach>: Use
9330 TARGET_DEFAULT_IGNORE.
9332 2014-02-19 Tom Tromey <tromey@redhat.com>
9334 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9336 (target_augmented_libraries_svr4_read): Add argument.
9337 * target.c (update_current_target): Update.
9338 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target.h (struct target_ops) <to_call_history_range>: Add
9345 * target.c (target_call_history_range): Add argument.
9346 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9348 (record_btrace_call_history_from): Update.
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9352 * target.h (struct target_ops) <to_call_history_from>: Add
9354 * target.c (target_call_history_from): Add argument.
9355 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * target.h (struct target_ops) <to_call_history>: Add argument.
9361 * target.c (target_call_history): Add argument.
9362 * record-btrace.c (record_btrace_call_history): Add 'self'
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9367 * target.h (struct target_ops) <to_insn_history_range>: Add
9369 * target.c (target_insn_history_range): Add argument.
9370 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9372 (record_btrace_insn_history_from): Update.
9374 2014-02-19 Tom Tromey <tromey@redhat.com>
9376 * target.h (struct target_ops) <to_insn_history_from>: Add
9378 * target.c (target_insn_history_from): Add argument.
9379 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9384 * target.h (struct target_ops) <to_insn_history>: Add argument.
9385 * target.c (target_insn_history): Add argument.
9386 * record-btrace.c (record_btrace_insn_history): Add 'self'
9389 2014-02-19 Tom Tromey <tromey@redhat.com>
9391 * target.h (struct target_ops) <to_goto_record>: Add argument.
9392 * target.c (target_goto_record): Add argument.
9393 * record-full.c (record_full_goto): Add 'self' argument.
9394 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9398 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9399 * target.c (target_goto_record_end): Add argument.
9400 * record-full.c (record_full_goto_end): Add 'self' argument.
9401 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9403 2014-02-19 Tom Tromey <tromey@redhat.com>
9405 * target.h (struct target_ops) <to_goto_record_begin>: Add
9407 * target.c (target_goto_record_begin): Add argument.
9408 * record-full.c (record_full_goto_begin): Add 'self' argument.
9409 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9414 * target.h (struct target_ops) <to_record_is_replaying>: Add
9416 * target.c (target_record_is_replaying): Add argument.
9417 * record-full.c (record_full_is_replaying): Add 'self' argument.
9418 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9420 (record_btrace_xfer_partial, record_btrace_store_registers)
9421 (record_btrace_prepare_to_store, record_btrace_resume)
9422 (record_btrace_wait, record_btrace_decr_pc_after_break)
9423 (record_btrace_find_new_threads, record_btrace_thread_alive):
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9428 * target.h (struct target_ops) <to_delete_record>: Add argument.
9429 * target.c (target_delete_record): Add argument.
9430 * record-full.c (record_full_delete): Add 'self' argument.
9432 2014-02-19 Tom Tromey <tromey@redhat.com>
9434 * target.h (struct target_ops) <to_save_record>: Add argument.
9435 * target.c (target_save_record): Add argument.
9436 * record-full.c (record_full_save): Add 'self' argument.
9437 (record_full_save): Add 'self' argument.
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9441 * target.h (struct target_ops) <to_info_record>: Add argument.
9442 * target.c (target_info_record): Add argument.
9443 * record.c (info_record_command): Add argument.
9444 * record-full.c (record_full_info): Add 'self' argument.
9445 * record-btrace.c (record_btrace_info): Add 'self' argument.
9447 2014-02-19 Tom Tromey <tromey@redhat.com>
9449 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9450 * target.c (target_stop_recording): Add argument.
9451 * record.c (record_stop): Add argument.
9452 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9458 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9459 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9461 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9462 (_initialize_amd64_linux_nat): Use it.
9463 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9464 (_initialize_i386_linux_nat): Use it.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9469 * target.c (target_teardown_btrace): Add argument.
9470 * remote.c (remote_teardown_btrace): Add 'self' argument.
9471 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9473 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9479 * target.c (target_disable_btrace): Add argument.
9480 * remote.c (remote_disable_btrace): Add 'self' argument.
9481 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9483 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9488 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9489 * target.c (target_enable_btrace): Add argument.
9490 * remote.c (remote_enable_btrace): Add 'self' argument.
9491 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9493 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9498 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9499 (target_can_use_agent): Add argument.
9500 * target.c (update_current_target): Update.
9501 * remote.c (remote_can_use_agent): Add 'self' argument.
9502 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9504 2014-02-19 Tom Tromey <tromey@redhat.com>
9506 * target.h (struct target_ops) <to_use_agent>: Add argument.
9507 (target_use_agent): Add argument.
9508 * target.c (update_current_target): Update.
9509 * remote.c (remote_use_agent): Add 'self' argument.
9510 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9512 2014-02-19 Tom Tromey <tromey@redhat.com>
9514 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9515 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9516 (target_traceframe_info): Add argument.
9517 * target.c (update_current_target): Update.
9518 * remote.c (remote_traceframe_info): Add 'self' argument.
9519 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9521 2014-02-19 Tom Tromey <tromey@redhat.com>
9523 * target.h (target_static_tracepoint_markers_by_strid): Add
9525 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9527 * target.c (update_current_target): Update.
9528 * remote.c (struct target_ops)
9529 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9530 * linux-nat.c (struct target_ops)
9531 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9535 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9537 (target_static_tracepoint_marker_at): Add argument.
9538 * target.c (update_current_target): Update.
9539 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9542 2014-02-19 Tom Tromey <tromey@redhat.com>
9544 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9545 (target_set_permissions): Add argument.
9546 * target.c (update_current_target): Update.
9547 * remote.c (remote_set_permissions): Add 'self' argument.
9548 (remote_start_remote): Update.
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9552 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9553 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9554 (target_get_tib_address): Add argument.
9555 * target.c (update_current_target): Update.
9556 * remote.c (remote_get_tib_address): Add 'self' argument.
9558 2014-02-19 Tom Tromey <tromey@redhat.com>
9560 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9561 (target_set_trace_notes): Add argument.
9562 * target.c (update_current_target): Update.
9563 * remote.c (remote_set_trace_notes): Add 'self' argument.
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9567 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9569 (target_set_trace_buffer_size): Add argument.
9570 * target.c (update_current_target): Update.
9571 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9573 2014-02-19 Tom Tromey <tromey@redhat.com>
9575 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9577 (target_set_circular_trace_buffer): Add argument.
9578 * target.c (update_current_target): Update.
9579 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9584 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9586 (target_set_disconnected_tracing): Add argument.
9587 * target.c (update_current_target): Update.
9588 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9590 2014-02-19 Tom Tromey <tromey@redhat.com>
9592 * target.h (struct target_ops)
9593 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9594 (target_get_min_fast_tracepoint_insn_len): Add argument.
9595 * target.c (update_current_target): Update.
9596 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9603 (target_get_raw_trace_data): Add argument.
9604 * target.c (update_current_target): Update.
9605 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9607 2014-02-19 Tom Tromey <tromey@redhat.com>
9609 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9611 (target_upload_trace_state_variables): Add argument.
9612 * target.c (update_current_target): Update.
9613 * remote.c (remote_upload_trace_state_variables): Add 'self'
9615 (remote_start_remote): Update.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9621 (target_upload_tracepoints): Add argument.
9622 * target.c (update_current_target): Update.
9623 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9624 (remote_start_remote): Update.
9626 2014-02-19 Tom Tromey <tromey@redhat.com>
9628 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9629 (target_save_trace_data): Add argument.
9630 * target.c (update_current_target): Update.
9631 * remote.c (remote_save_trace_data): Add 'self' argument.
9633 2014-02-19 Tom Tromey <tromey@redhat.com>
9635 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9637 * target.h (struct target_ops)
9638 <to_get_trace_state_variable_value>: Add argument.
9639 (target_get_trace_state_variable_value): Add argument.
9640 * target.c (update_current_target): Update.
9641 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9643 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9647 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9648 * target.h (struct target_ops) <to_trace_find>: Add argument.
9649 (target_trace_find): Add argument.
9650 * target.c (update_current_target): Update.
9651 * remote.c (remote_trace_find): Add 'self' argument.
9652 * ctf.c (ctf_trace_find): Add 'self' argument.
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9656 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9657 (target_trace_stop): Add argument.
9658 * target.c (update_current_target): Update.
9659 * remote.c (remote_trace_stop): Add 'self' argument.
9661 2014-02-19 Tom Tromey <tromey@redhat.com>
9663 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9664 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9666 (target_get_tracepoint_status): Add argument.
9667 * target.c (update_current_target): Update.
9668 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9670 2014-02-19 Tom Tromey <tromey@redhat.com>
9672 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9673 * target.h (struct target_ops) <to_get_trace_status>: Add
9675 (target_get_trace_status): Add argument.
9676 * target.c (update_current_target): Update.
9677 * remote.c (remote_get_trace_status): Add 'self' argument.
9678 (remote_start_remote, remote_can_download_tracepoint): Update.
9679 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * target.h (struct target_ops) <to_trace_start>: Add argument.
9684 (target_trace_start): Add argument.
9685 * target.c (update_current_target): Update.
9686 * remote.c (remote_trace_start): Add 'self' argument.
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9692 (target_trace_set_readonly_regions): Add argument.
9693 * target.c (update_current_target): Update.
9694 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9701 (target_disable_tracepoint): Add argument.
9702 * target.c (update_current_target): Update.
9703 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9709 (target_enable_tracepoint): Add argument.
9710 * target.c (update_current_target): Update.
9711 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9715 * target.h (struct target_ops) <to_download_trace_state_variable>:
9717 (target_download_trace_state_variable): Add argument.
9718 * target.c (update_current_target): Update.
9719 * remote.c (remote_download_trace_state_variable): Add 'self'
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9724 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9726 (target_can_download_tracepoint): Add argument.
9727 * target.c (update_current_target): Update.
9728 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9732 * target.h (struct target_ops) <to_download_tracepoint>: Add
9734 (target_download_tracepoint): Add argument.
9735 * target.c (update_current_target): Update.
9736 * remote.c (remote_download_tracepoint): Add 'self' argument.
9738 2014-02-19 Tom Tromey <tromey@redhat.com>
9740 * target.h (struct target_ops) <to_trace_init>: Add argument.
9741 (target_trace_init): Add argument.
9742 * target.c (update_current_target): Update.
9743 * remote.c (remote_trace_init): Add 'self' argument.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9748 * target.c (target_fileio_readlink): Add argument.
9749 * remote.c (remote_hostio_readlink): Add 'self' argument.
9750 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9754 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9755 * target.c (target_fileio_unlink): Add argument.
9756 * remote.c (remote_hostio_unlink): Add 'self' argument.
9757 (remote_file_delete): Update.
9758 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9762 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9763 * target.c (target_fileio_close): Add argument.
9764 * remote.c (remote_hostio_close): Add 'self' argument.
9765 (remote_hostio_close_cleanup): Update.
9766 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9768 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9770 2014-02-19 Tom Tromey <tromey@redhat.com>
9772 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9773 * target.c (target_fileio_pread): Add argument.
9774 * remote.c (remote_hostio_pread): Add 'self' argument.
9775 (remote_bfd_iovec_pread, remote_file_get): Update.
9776 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9778 2014-02-19 Tom Tromey <tromey@redhat.com>
9780 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9781 * target.c (target_fileio_pwrite): Add argument.
9782 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9783 (remote_file_put): Update.
9784 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9786 2014-02-19 Tom Tromey <tromey@redhat.com>
9788 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9789 * target.c (target_fileio_open): Add argument.
9790 * remote.c (remote_hostio_open): Add 'self' argument.
9791 (remote_bfd_iovec_open): Add 'self' argument.
9792 (remote_file_put): Add 'self' argument.
9793 (remote_file_get): Add 'self' argument.
9794 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9800 (target_can_run_breakpoint_commands): Add argument.
9801 * target.c (update_current_target): Update.
9802 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9804 (remote_insert_breakpoint): Add 'self' argument.
9805 (remote_insert_hw_breakpoint): Add 'self' argument.
9806 (remote_can_run_breakpoint_commands): Add 'self' argument.
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9810 * target.h (struct target_ops)
9811 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9812 (target_supports_evaluation_of_breakpoint_conditions): Add
9814 * target.c (update_current_target): Update.
9815 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9817 (remote_insert_breakpoint): Add 'self' argument.
9818 (remote_insert_hw_breakpoint): Add 'self' argument.
9819 (remote_supports_cond_breakpoints): Add 'self' argument.
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9823 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9825 (target_supports_string_tracing): Add argument.
9826 * target.c (update_current_target): Update.
9827 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9829 2014-02-19 Tom Tromey <tromey@redhat.com>
9831 * target.h (struct target_ops)
9832 <to_supports_disable_randomization>: Add argument.
9833 * target.c (find_default_supports_disable_randomization): Add
9835 (target_supports_disable_randomization): Add argument.
9836 (find_default_supports_disable_randomization): Add 'self'
9838 * remote.c (extended_remote_supports_disable_randomization): Add
9840 (remote_supports_disable_randomization): Add 'self' argument.
9841 (extended_remote_create_inferior): Update.
9842 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target.h (struct target_ops)
9848 <to_supports_enable_disable_tracepoint>: Add argument.
9849 (target_supports_enable_disable_tracepoint): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9854 2014-02-19 Tom Tromey <tromey@redhat.com>
9856 * target.h (struct target_ops) <to_supports_multi_process>: Add
9858 (target_supports_multi_process): Add argument.
9859 * target.c (update_current_target): Update.
9860 * remote.c (remote_supports_multi_process): Add 'self' argument.
9861 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9863 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9866 2014-02-19 Tom Tromey <tromey@redhat.com>
9868 * target.h (struct target_ops) <to_execution_direction>: Add
9870 (target_execution_direction): Add argument.
9871 * target.c (default_execution_direction): Add 'self' argument.
9872 * record-full.c (record_full_execution_direction): Add 'self'
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9877 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9879 (target_can_execute_reverse): Add argument.
9880 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9881 * record-full.c (record_full_can_execute_reverse): Add 'self'
9883 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9886 2014-02-19 Tom Tromey <tromey@redhat.com>
9888 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9889 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9891 (target_get_ada_task_ptid): Add argument.
9892 * target.c (update_current_target): Update.
9893 (default_get_ada_task_ptid): Add 'self' argument.
9894 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9895 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9896 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9898 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9900 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9902 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9904 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9905 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9908 2014-02-19 Tom Tromey <tromey@redhat.com>
9910 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9911 (target_goto_bookmark): Add argument.
9912 * target.c (dummy_goto_bookmark): Add 'self' argument.
9913 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9917 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9918 (target_get_bookmark): Add argument.
9919 * target.c (dummy_get_bookmark): Add 'self' argument.
9920 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9922 2014-02-19 Tom Tromey <tromey@redhat.com>
9924 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9926 (target_make_corefile_notes): Add argument.
9927 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9928 * procfs.c (procfs_make_note_section): Add 'self' argument.
9929 (procfs_make_note_section): Add 'self' argument.
9930 (procfs_make_note_section): Add 'self' argument.
9931 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9933 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9934 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9935 * exec.c (exec_make_note_section): Add 'self' argument.
9936 (exec_make_note_section): Add 'self' argument.
9938 2014-02-19 Tom Tromey <tromey@redhat.com>
9940 * target.h (struct target_ops) <to_find_memory_regions>: Add
9942 (target_find_memory_regions): Add argument.
9943 * target.c (dummy_find_memory_regions): Add 'self' argument.
9944 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9945 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9946 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9947 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9948 * exec. (exec_do_find_memory_regions): New global.
9949 (exec_set_find_memory_regions): Rewrite.
9950 (exec_find_memory_regions): New function.
9951 (init_exec_ops): Use exec_find_memory_regions.
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9955 * target.h (struct target_ops) <to_supports_non_stop>: Add
9957 * target.c (find_default_supports_non_stop): Add argument.
9958 (target_supports_non_stop): Add argument.
9959 (find_default_supports_non_stop): Add 'self' argument.
9960 * remote.c (remote_supports_non_stop): Add 'self' argument.
9961 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9963 2014-02-19 Tom Tromey <tromey@redhat.com>
9965 * target.h (struct target_ops) <to_log_command>: Add argument.
9966 (target_log_command): Add argument.
9967 * serial.h (serial_log_command): Add 'self' argument.
9968 * serial.c (serial_log_command): Add 'self' argument.
9970 2014-02-19 Tom Tromey <tromey@redhat.com>
9972 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9973 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9975 (target_pid_to_exec_file): Add argument.
9976 * target.c (debug_to_pid_to_exec_file): Add argument.
9977 (update_current_target): Update.
9978 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9979 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9980 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9981 (linux_handle_extended_wait): Update.
9982 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9983 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9984 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9985 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9987 2014-02-19 Tom Tromey <tromey@redhat.com>
9989 * target.h (struct target_ops) <to_rcmd>: Add argument.
9990 (target_rcmd): Add argument.
9991 * target.c (debug_to_rcmd): Add argument.
9992 (update_current_target, do_monitor_command): Update.
9993 * remote.c (remote_rcmd): Add 'self' argument.
9994 * monitor.c (monitor_rcmd): Add 'self' argument.
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * windows-nat.c (windows_stop): Add 'self' argument.
9999 * target.h (struct target_ops) <to_stop>: Add argument.
10000 * target.c (target_stop): Add argument.
10001 (debug_to_stop): Add argument.
10002 (update_current_target): Update.
10003 * remote.c (remote_stop): Add 'self' argument.
10004 * remote-sim.c (gdbsim_stop): Add 'self' argument.
10005 (gdbsim_cntrl_c): Update.
10006 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10007 * procfs.c (procfs_stop): Add 'self' argument.
10008 * nto-procfs.c (procfs_stop): Add 'self' argument.
10009 * monitor.c (monitor_stop): Add 'self' argument.
10010 (monitor_open): Update.
10011 * linux-nat.c (linux_nat_stop): Add argument.
10012 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10013 * gnu-nat.c (gnu_stop): Add 'self' argument.
10014 * darwin-nat.c (darwin_stop): Add 'self' argument.
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target.h (struct target_ops) <to_thread_name>: Add argument.
10019 * target.c (target_thread_name): Add argument.
10020 (update_current_target): Update.
10021 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10023 2014-02-19 Tom Tromey <tromey@redhat.com>
10025 * target.h (struct target_ops) <to_extra_thread_info>: Add
10027 (target_extra_thread_info): Add argument.
10028 * target.c (update_current_target): Update.
10029 * remote.c (remote_threads_extra_info): Add 'self' argument.
10030 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10032 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10033 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10034 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10036 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10038 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10040 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10043 2014-02-19 Tom Tromey <tromey@redhat.com>
10045 * target.h (struct target_ops) <to_program_signals>: Add argument.
10046 * target.c (target_program_signals): Add argument.
10047 * remote.c (remote_program_signals): Add 'self' argument.
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10051 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10052 * target.c (target_pass_signals): Add argument.
10053 * remote.c (remote_pass_signals): Add 'self' argument.
10054 (remote_start_remote): Update.
10055 * procfs.c (procfs_pass_signals): Add 'self' argument.
10056 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10057 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10058 (linux_nat_create_inferior, linux_nat_attach): Update.
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10062 * windows-nat.c (windows_can_run): Add 'self' argument.
10063 * target.h (struct target_ops) <to_can_run>: Add argument.
10064 (target_can_run): Add argument.
10065 * target.c (debug_to_can_run): Add argument.
10066 (update_current_target): Update.
10067 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10068 * inf-child.c (inf_child_can_run): Add 'self' argument.
10069 * go32-nat.c (go32_can_run): Add 'self' argument.
10071 2014-02-19 Tom Tromey <tromey@redhat.com>
10073 * target.h (struct target_ops) <to_has_exited>: Add argument.
10074 (target_has_exited): Add argument.
10075 * target.c (debug_to_has_exited): Add argument.
10076 (update_current_target): Update.
10078 2014-02-19 Tom Tromey <tromey@redhat.com>
10080 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10082 (target_set_syscall_catchpoint): Add argument.
10083 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10085 * target.c (update_current_target): Update.
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10089 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10091 (target_remove_exec_catchpoint): Add argument.
10092 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10093 (update_current_target): Update.
10094 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10099 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10101 (target_insert_exec_catchpoint): Add argument.
10102 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10103 (update_current_target): Update.
10104 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10107 2014-02-19 Tom Tromey <tromey@redhat.com>
10109 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10111 (target_remove_vfork_catchpoint): Add argument.
10112 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10113 (update_current_target): Update.
10114 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10117 2014-02-19 Tom Tromey <tromey@redhat.com>
10119 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10121 (target_insert_vfork_catchpoint): Add argument.
10122 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10123 (update_current_target): Update.
10124 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10127 2014-02-19 Tom Tromey <tromey@redhat.com>
10129 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10131 (target_remove_fork_catchpoint): Add argument.
10132 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10133 (update_current_target): Update.
10134 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10139 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10141 (target_insert_fork_catchpoint): Add argument.
10142 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10143 (update_current_target): Update.
10144 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10149 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10151 (target_post_startup_inferior): Add argument.
10152 * target.c (debug_to_post_startup_inferior): Add argument.
10153 (update_current_target): Update.
10154 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10156 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10158 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10160 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10162 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10164 (super_post_startup_inferior): Likewise.
10165 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10167 (super_post_startup_inferior): Likewise.
10168 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10169 Add 'self' argument.
10170 (super_post_startup_inferior): Likewise.
10172 2014-02-19 Tom Tromey <tromey@redhat.com>
10174 * target.h (struct target_ops) <to_load>: Add argument.
10175 * target.c (target_load): Add argument.
10176 (debug_to_load): Add argument.
10177 (update_current_target): Update.
10178 * remote.c (remote_load): Add 'self' argument.
10179 * remote-sim.c (gdbsim_load): Add 'self' argument.
10180 * remote-mips.c (mips_load): Add 'self' argument.
10181 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10182 * monitor.c (monitor_load): Add 'self' argument.
10183 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10188 (target_terminal_info): Add argument.
10189 * target.c (debug_to_terminal_info): Add argument.
10190 (default_terminal_info): Likewise.
10191 * inflow.c (child_terminal_info): Add 'self' argument.
10192 * inferior.h (child_terminal_info): Add 'self' argument.
10193 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10195 2014-02-19 Tom Tromey <tromey@redhat.com>
10197 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10199 (target_terminal_save_ours): Add argument.
10200 * target.c (debug_to_terminal_save_ours): Add argument.
10201 (update_current_target): Update.
10202 * inflow.c (terminal_save_ours): Add 'self' argument.
10203 * inferior.h (terminal_save_ours): Add 'self' argument.
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10207 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10208 (target_terminal_ours): Add argument.
10209 * target.c (debug_to_terminal_ours): Add argument.
10210 (update_current_target): Update.
10211 * remote.c (remote_terminal_ours): Add 'self' argument.
10212 (remote_close): Update.
10213 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10214 * inflow.c (terminal_ours): Add 'self' argument.
10215 * inferior.h (terminal_ours): Add 'self' argument.
10216 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10218 2014-02-19 Pedro Alves <palves@redhat.com>
10219 Tom Tromey <tromey@redhat.com>
10221 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10223 (target_terminal_ours_for_output): Add argument.
10224 * target.c (debug_to_terminal_ours_for_output): Add argument.
10225 (update_current_target): Update.
10226 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10227 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10228 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10230 2014-02-19 Tom Tromey <tromey@redhat.com>
10232 * target.h (struct target_ops) <to_terminal_inferior>: Add
10234 * target.c (target_terminal_inferior): Add argument.
10235 (update_current_target): Update.
10236 * remote.c (remote_terminal_inferior): Add 'self' argument.
10237 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10238 * inflow.c (terminal_inferior): Add 'self' argument.
10239 * inferior.h (terminal_inferior): Add 'self' argument.
10240 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10241 (go32_terminal_inferior): Add 'self' argument.
10243 2014-02-19 Tom Tromey <tromey@redhat.com>
10245 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10246 (target_terminal_init): Add argument.
10247 * target.c (debug_to_terminal_init): Add argument.
10248 (update_current_target): Update.
10249 * inflow.c (terminal_init_inferior): Add 'self' argument.
10250 * inferior.h (terminal_init_inferior): Add 'self' argument.
10251 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10252 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10254 2014-02-19 Tom Tromey <tromey@redhat.com>
10256 * target.h (struct target_ops)
10257 <to_can_accel_watchpoint_condition>: Add argument.
10258 (target_can_accel_watchpoint_condition): Add argument.
10259 * target.c (debug_to_can_accel_watchpoint_condition): Add
10261 (update_current_target): Update.
10262 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10265 2014-02-19 Tom Tromey <tromey@redhat.com>
10267 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10269 (target_region_ok_for_hw_watchpoint): Add argument.
10270 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10271 (default_region_ok_for_hw_watchpoint): Add argument.
10272 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10273 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10275 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10277 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10279 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10281 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10283 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10285 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10286 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10288 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10289 Add 'self' argument.
10291 2014-02-19 Tom Tromey <tromey@redhat.com>
10293 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10295 (target_insert_watchpoint): Add argument.
10296 * target.c (debug_to_insert_watchpoint): Add argument.
10297 (update_current_target): Update.
10298 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10299 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10300 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10301 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10302 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10303 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10305 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10306 (procfs_insert_hw_watchpoint): Add 'self' argument.
10307 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10309 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10311 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10313 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10314 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10316 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10323 (target_remove_watchpoint): Add argument.
10324 * target.c (debug_to_remove_watchpoint): Add argument.
10325 (update_current_target): Update.
10326 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10327 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10328 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10329 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10330 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10331 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10333 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10334 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10336 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10338 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10340 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10341 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10343 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10346 2014-02-19 Tom Tromey <tromey@redhat.com>
10348 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10350 (target_remove_hw_breakpoint): Add argument.
10351 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10352 (update_current_target): Update.
10353 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10354 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10356 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10357 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10359 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10362 2014-02-19 Tom Tromey <tromey@redhat.com>
10364 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10366 (target_insert_hw_breakpoint): Add argument.
10367 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10368 (update_current_target): Update.
10369 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10370 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10372 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10373 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10374 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10376 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10383 (target_can_use_hardware_watchpoint): Add argument.
10384 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10385 (update_current_target): Update.
10386 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10388 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10390 * remote.c (remote_check_watch_resources): Add 'self' argument.
10391 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10392 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10394 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10395 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10397 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10399 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10401 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10403 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10405 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10407 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10408 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10410 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10413 2014-02-19 Tom Tromey <tromey@redhat.com>
10415 * target.h (struct target_ops) <to_post_attach>: Add argument.
10416 (target_post_attach): Add argument.
10417 * target.c (debug_to_post_attach): Add argument.
10418 (update_current_target): Update.
10419 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10420 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10421 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10422 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10423 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10427 * windows-nat.c (windows_close): Add 'self' argument.
10428 * tracepoint.c (tfile_close): Add 'self' argument.
10429 * target.h (struct target_ops) <to_close>: Add argument.
10430 * target.c (target_close): Add argument.
10431 (update_current_target): Update.
10432 * remote.c (remote_close): Add 'self' argument.
10433 * remote-sim.c (gdbsim_close): Add 'self' argument.
10434 * remote-mips.c (mips_close): Add 'self' argument.
10435 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10436 * record-full.c (record_full_close): Add 'self' argument.
10437 * record-btrace.c (record_btrace_close): Add 'self' argument.
10438 * monitor.h (monitor_close): Add 'self' argument.
10439 * monitor.c (monitor_close): Add 'self' argument.
10440 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10441 * linux-nat.c (linux_nat_close): Add argument.
10442 * go32-nat.c (go32_close): Add 'self' argument.
10443 * exec.c (exec_close_1): Add 'self' argument.
10444 * ctf.c (ctf_close): Add 'self' argument.
10445 * corelow.c (core_close): Add 'self' argument.
10446 (core_close_cleanup): Update.
10447 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10448 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10450 2014-02-19 Tom Tromey <tromey@redhat.com>
10452 * remote.c (remote_load): New function.
10453 (init_remote_ops): Use it.
10455 2014-02-19 Tom Tromey <tromey@redhat.com>
10457 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10459 * common/linux-btrace.h (linux_supports_btrace): Update.
10460 * remote.c (remote_supports_btrace): Add "self" argument.
10461 * target-delegates.c: Rebuild.
10462 * target.c (target_supports_btrace): Remove.
10463 * target.h (struct target_ops) <to_supports_btrace>: Add
10464 target_ops argument.
10465 (target_supports_btrace): New define.
10467 2014-02-19 Tom Tromey <tromey@redhat.com>
10469 * record-full.c (record_full_beneath_to_resume_ops)
10470 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10471 (record_full_beneath_to_wait)
10472 (record_full_beneath_to_store_registers_ops)
10473 (record_full_beneath_to_store_registers)
10474 (record_full_beneath_to_xfer_partial_ops)
10475 (record_full_beneath_to_xfer_partial)
10476 (record_full_beneath_to_insert_breakpoint_ops)
10477 (record_full_beneath_to_insert_breakpoint)
10478 (record_full_beneath_to_remove_breakpoint_ops)
10479 (record_full_beneath_to_remove_breakpoint)
10480 (record_full_beneath_to_stopped_by_watchpoint)
10481 (record_full_beneath_to_stopped_data_address)
10482 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10483 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10484 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10485 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10486 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10487 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10488 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10489 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10490 (record_full_resume, record_full_wait_1)
10491 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10492 (record_full_store_registers, record_full_xfer_partial)
10493 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10494 (record_full_async, record_full_core_xfer_partial): Use target
10496 * target-delegates.c: Rebuild.
10497 * target.c (current_xfer_partial): Remove.
10498 (update_current_target): Do not INHERIT or de_fault
10499 to_insert_breakpoint, to_remove_breakpoint,
10500 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10501 to_is_async_p, to_async. Do not set to_xfer_partial field.
10502 (default_xfer_partial): Simplify.
10503 (current_xfer_partial): Remove.
10504 (target_wait, target_resume): Simplify.
10505 (find_default_can_async_p, find_default_is_async_p): Update.
10506 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10507 to_xfer_partial, to_stopped_by_watchpoint,
10508 to_stopped_data_address.
10509 (target_store_registers): Simplify.
10510 (forward_target_remove_breakpoint)
10511 (forward_target_insert_breakpoint): Remove.
10512 (target_remove_breakpoint, target_insert_breakpoint)
10513 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10514 * target.h (struct target_ops) <to_resume, to_wait,
10515 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10516 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10517 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10519 (forward_target_remove_breakpoint)
10520 (forward_target_insert_breakpoint): Remove.
10521 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10523 (record_btrace_insert_breakpoint): Delegate directly.
10525 2014-02-19 Tom Tromey <tromey@redhat.com>
10528 * target-delegates.c: New file.
10529 * target.c: Include target-delegates.c.
10530 (init_dummy_target): Call install_dummy_methods.
10531 (complete_target_initialization): Call install_delegators.
10532 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10533 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10534 * make-target-delegates: New file.
10536 2014-02-19 Tom Tromey <tromey@redhat.com>
10538 * record.c (find_record_target): Use find_target_at.
10539 * target.c (find_target_at): New function.
10540 * target.h (find_target_at): Declare.
10542 2014-02-19 Tom Tromey <tromey@redhat.com>
10544 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10545 Add 'ops' argument.
10546 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10548 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10549 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10551 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10553 * linux-nat.c (save_sigtrap): Update.
10554 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10555 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10556 (linux_nat_close): Update.
10557 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10559 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10561 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10562 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10563 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10564 (tmp_to_async): Add 'ops' argument.
10565 (record_full_stopped_by_watchpoint, record_full_async)
10566 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10568 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10569 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10570 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10571 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10572 (remote_is_async_p, remote_async): Add 'ops' argument.
10573 (remote_stopped_data_address): Update.
10574 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10575 * target.c (update_current_target)
10576 (find_default_can_async_p, find_default_is_async_p): Update.
10577 (init_dummy_target): Update.
10578 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10579 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10580 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10581 (target_can_async_p, target_is_async_p, target_async)
10582 (target_stopped_by_watchpoint): Update.
10584 2014-02-19 Yao Qi <yao@codesourcery.com>
10587 * gdbarch.sh: Remove startup_gdbarch.
10588 * gdbarch.c: Regenerated.
10589 * gdbarch.h: Likewise.
10591 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10593 * rl78-tdep.c (rl78_g10_register_name): New function.
10594 (rl78_return_value): Add g10 support.
10595 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10598 2014-02-17 Doug Evans <xdje42@gmail.com>
10600 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10601 (SUBDIR_GUILE_SRCS): Ditto.
10602 (scm-gsmob.o): Ditto.
10604 2014-02-17 Yao Qi <yao@codesourcery.com>
10606 * gnu-nat.c (ILL_RPC): Declare defined function.
10608 2014-02-17 Yao Qi <yao@codesourcery.com>
10610 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10611 mach_msg_type_number_t.
10612 (gnu_write_inferior): Likewise.
10614 2014-02-17 Yao Qi <yao@codesourcery.com>
10616 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10618 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10619 (inf_validate_procs, inf_signal): Likewise.
10620 (S_exception_raise_request): Likewise.
10621 (do_mach_notify_dead_name): Likewise.
10622 (steal_exc_port): Likewise.
10623 (gnu_read_inferior): Change 'copy_count''s type to
10624 mach_msg_type_number_t.
10625 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10628 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10630 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10631 flag. Adjust all users; in particular...
10632 (gnu_wait): ..., don't decrement its value in here...
10633 (gnu_create_inferior): ..., and instead set the flag in here,
10634 around the startup_inferior call, and call that one with
10635 START_INFERIOR_TRAPS_EXPECTED.
10637 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10638 (ILL_RPC): ... new macro.
10639 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10640 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10641 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10642 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10643 functions with ILL_RPC macro.
10644 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10645 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10646 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10647 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10648 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10649 (S_proc_getlogin_reply, S_proc_getsid_reply)
10650 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10651 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10652 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10653 (S_proc_getnports_reply, S_proc_is_important_reply)
10654 (S_proc_get_code_reply): New stub functions, generated with
10657 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10658 collected the type check structures.
10660 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10662 2014-02-14 Doug Evans <dje@google.com>
10664 * target.c (target_write_partial): Fix result type.
10666 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10668 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10669 the proper offsets to access fpregset_t.
10671 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10673 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10674 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10675 * h8300-tdep.c (setmachinelist): Remove global.
10676 * hppa-tdep.c (hppa_sigtramp): Remove global.
10677 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10678 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10679 * ravenscar-thread.c (update_target_observer): Remove global.
10680 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10682 2014-02-12 Tom Tromey <tromey@redhat.com>
10684 * common/rsp-low.c: Update comments.
10685 * common/rsp-low.h: Update comments.
10687 2014-02-12 Tom Tromey <tromey@redhat.com>
10689 * common/rsp-low.c (convert_ascii_to_int): Remove.
10690 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10692 2014-02-12 Tom Tromey <tromey@redhat.com>
10694 * common/rsp-low.h (unhexify): Don't declare.
10695 * common/rsp-low.c (unhexify): Remove.
10697 2014-02-12 Tom Tromey <tromey@redhat.com>
10699 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10700 * common/rsp-low.c (convert_int_to_ascii): Remove.
10702 2014-02-12 Tom Tromey <tromey@redhat.com>
10704 * common/rsp-low.h (hexify): Don't declare.
10705 * common/rsp-low.c (hexify): Remove.
10707 2014-02-12 Tom Tromey <tromey@redhat.com>
10709 * common/rsp-low.c (hexify): Never take strlen of argument.
10711 2014-02-12 Tom Tromey <tromey@redhat.com>
10713 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10714 * remote.c (extended_remote_run, remote_rcmd)
10715 (remote_download_trace_state_variable, remote_save_trace_data)
10716 (remote_set_trace_notes): Update.
10717 * tracepoint.c (encode_source_string, tfile_write_status)
10718 (tfile_write_uploaded_tsv): Update.
10720 2014-02-12 Tom Tromey <tromey@redhat.com>
10722 * tracepoint.c: Include rsp-low.h.
10723 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10724 * remote.c: Include rsp-low.h.
10725 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10726 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10727 (remote_unescape_input): Move to common/rsp-low.c.
10728 * common/rsp-low.h: New file.
10729 * common/rsp-low.c: New file.
10730 * Makefile.in (SFILES): Add common/rsp-low.c.
10731 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10732 (COMMON_OBS): Add rsp-low.o.
10733 (rsp-low.o): New target.
10735 2014-02-12 Tom Tromey <tromey@redhat.com>
10737 * utils.h: Include print-utils.h.
10738 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10739 (int_string, core_addr_to_string, core_addr_to_string_nz)
10740 (hex_string, hex_string_custom): Don't declare.
10741 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10742 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10743 (hex_string_custom, int_string, core_addr_to_string)
10744 (core_addr_to_string_nz, host_address_to_string): Move to
10745 common/print-utils.c.
10746 * common/print-utils.h: New file.
10747 * common/print-utils.c: New file
10748 * Makefile.in (SFILES): Add common/print-utils.c.
10749 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10750 (COMMON_OBS): Add print-utils.o.
10751 (print-utils.o): New target.
10753 2014-02-12 Tom Tromey <tromey@redhat.com>
10755 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10757 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10759 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10761 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10763 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10764 if a PT_IO ptrace request returns sucessfully but indicates that 0
10765 bytes were transferred.
10767 2014-02-12 Pedro Alves <palves@redhat.com>
10768 Kevin Buettner <kevinb@redhat.com>
10770 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10771 TYPE_INSTANCE_FLAG_CODE_SPACE.
10773 2014-02-12 Pedro Alves <palves@redhat.com>
10775 * h8300-tdep.c (pseudo_from_raw_register)
10776 (raw_from_pseudo_register): New functions.
10777 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10780 2014-02-12 Pedro Alves <palves@redhat.com>
10782 * h8300-tdep.c (h8300_register_sim_regno): New function.
10783 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10784 gdbarch_register_sim_regno hook.
10786 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10788 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10790 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10792 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10794 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10796 * obsd-tdep.h (obsd_init_abi): New prototype.
10797 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10798 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10799 (obsd_init_abi): New functions.
10800 * i386obsd-tdep.c: Include "obsd-tdep.h".
10801 (i386obsd_init_abi): Call obsd_init_abi.
10802 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10803 (amd64obsd_init_abi): Call obsd_init_abi.
10804 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10805 obsd-tdep.c to gdb_target_obs.
10807 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10809 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10810 double float arguments to 16-byte in the argument slots.
10812 2014-02-11 Doug Evans <xdje42@gmail.com>
10814 * configure.ac: Don't crash if pkg-config is not found and guile
10815 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10817 * configure: Regenerate.
10819 2014-02-11 Yao Qi <yao@codesourcery.com>
10821 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10822 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10823 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10824 * gnu-nat.c (gnu_xfer_memory): Likewise.
10825 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10826 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10827 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10828 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10830 2014-02-11 Yao Qi <yao@codesourcery.com>
10832 * target.h (enum target_xfer_error): Rename to ...
10833 (enum target_xfer_status): ... it. New. All users updated.
10834 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10836 (TARGET_XFER_STATUS_ERROR_P): New macro.
10837 (target_xfer_error_to_string): Remove declaration.
10838 (target_xfer_status_to_string): Declare.
10839 (target_xfer_partial_ftype): Adjust it.
10840 (struct target_ops) <to_xfer_partial>: Return
10841 target_xfer_status. Add argument xfered_len. Update
10843 * target.c (target_xfer_error_to_string): Rename to ...
10844 (target_xfer_status_to_string): ... it. New. All callers
10846 (target_read_live_memory): Likewise. Call target_xfer_partial
10847 instead of target_read.
10848 (memory_xfer_live_readonly_partial): Return
10849 target_xfer_status. Add argument xfered_len.
10850 (raw_memory_xfer_partial): Likewise.
10851 (memory_xfer_partial_1): Likewise.
10852 (memory_xfer_partial): Likewise.
10853 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10854 properly. Update debug message.
10855 (default_xfer_partial, current_xfer_partial): Likewise.
10856 (target_write_partial): Likewise.
10857 (target_read_partial): Likewise. All callers updated.
10858 (read_whatever_is_readable): Likewise.
10859 (target_write_with_progress): Likewise.
10860 (target_read_alloc_1): Likewise.
10862 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10863 * auxv.c (procfs_xfer_auxv): Likewise.
10864 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10865 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10866 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10867 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10868 * corefile.c (read_memory): Adjust.
10869 * corelow.c (core_xfer_partial): Likewise.
10870 * ctf.c (ctf_xfer_partial): Likewise.
10871 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10873 (darwin_xfer_partial): Likewise.
10874 * exec.c (section_table_xfer_memory_partial): Likewise. All
10876 (exec_xfer_partial): Likewise.
10877 * exec.h (section_table_xfer_memory_partial): Update
10879 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10881 (gnu_xfer_partial): Likewise.
10882 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10883 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10884 (ia64_hpux_xfer_solib_got): Likewise.
10885 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10886 type of 'partial_len' to ULONGEST.
10887 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10888 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10889 (linux_nat_xfer_partial): Likewise.
10890 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10891 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10892 * monitor.c (monitor_xfer_memory): Likewise.
10893 (monitor_xfer_partial): Likewise.
10894 * procfs.c (procfs_xfer_partial): Likewise.
10895 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10896 * record-full.c (record_full_xfer_partial): Likewise.
10897 (record_full_core_xfer_partial): Likewise.
10898 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10899 (gdbsim_xfer_partial): Likewise.
10900 * remote.c (remote_write_bytes_aux): Likewise. All callers
10902 (remote_write_bytes, remote_read_bytes): Likewise. All
10904 (remote_flash_erase): Likewise. All callers updated.
10905 (remote_write_qxfer): Likewise. All callers updated.
10906 (remote_read_qxfer): Likewise. All callers updated.
10907 (remote_xfer_partial): Likewise.
10908 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10909 (rs6000_xfer_shared_libraries): Likewise.
10910 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10911 (sol_thread_xfer_partial): Likewise.
10912 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10913 (sparc_xfer_partial): Likewise.
10914 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10916 (spu_xfer_partial): Likewise.
10917 * spu-multiarch.c (spu_xfer_partial): Likewise.
10918 * tracepoint.c (tfile_xfer_partial): Likewise.
10919 * windows-nat.c (windows_xfer_memory): Likewise.
10920 (windows_xfer_shared_libraries): Likewise.
10921 (windows_xfer_partial): Likewise.
10922 * valprint.c: Replace 'target_xfer_error' with
10923 'target_xfer_status' in comments.
10925 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10927 Checked in by Joel Brobecker <brobecker@adacore.com>.
10928 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10930 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10932 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10933 function parameters.
10935 2014-02-10 Will Newton <will.newton@linaro.org>
10937 * elfread.c (elf_rel_plt_read): Look for a .got section if
10938 looking up .got.plt fails.
10939 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10940 on address passed to elf_gnu_ifunc_record_cache.
10941 (elf_gnu_ifunc_resolve_addr): Likewise.
10942 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10944 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10946 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10947 (X_RETTURN): New macro.
10948 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10950 * sparc64-tdep.c (sparc64_init_abi): Hook
10951 sparc_in_function_epilogue_p.
10953 2014-02-10 Gary Benson <gbenson@redhat.com>
10955 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10956 Rename name_matcher to symbol_matcher.
10958 2014-02-10 Gary Benson <gbenson@redhat.com>
10960 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10961 Use expand_symtabs_file_matcher_ftype and
10962 expand_symtabs_symbol_matcher_ftype.
10964 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10966 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10967 (struct ada_symbol_cache): New.
10968 (ada_free_symbol_cache): Forward declare.
10969 (struct ada_pspace_data): New.
10970 (ada_pspace_data_handle): New static global.
10971 (get_ada_pspace_data, ada_pspace_data_cleanup)
10972 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10973 (cache_space, cache): Delete, now folded inside struct
10975 (ada_get_symbol_cache): New function.
10976 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10978 (_initialize_ada_language): Remove initialization of cache_space.
10979 Move call to observer_attach_inferior_exit up, grouping it
10980 with the other observer registrations inside this function.
10981 Rename command to be more general. Add call to
10982 register_program_space_data_with_cleanup.
10984 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10986 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10987 ada_new_objfile_observer.
10988 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10989 (_initialize_tasks): Update uses of ada_new_objfile_observer
10990 and ada_tasks_normal_stop_observer.
10992 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10994 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10995 returned by the 'Length attribute to integer.
10997 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10999 * ada-lang.c (_initialize_ada_language): Initialize
11000 cache_space obstack.
11002 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11004 * ada-lang.c (HASH_SIZE): New macro.
11005 (struct cache_entry): New type.
11006 (cache_space, cache): New static globals.
11007 (ada_clear_symbol_cache, find_entry): New functions.
11008 (lookup_cached_symbol, cache_symbol): Implement.
11009 (ada_new_objfile_observer, ada_free_objfile_observer): New.
11010 (_initialize_ada_language): Attach ada_new_objfile_observer
11011 and ada_free_objfile_observer.
11013 2014-02-10 Joel Brobecker <brobecker@adacore.com>
11015 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11016 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11017 struct block * parameter.
11018 (ada_lookup_symbol_list_worker): Constify local variable "block".
11019 Remove cast which is no longer necessary.
11021 2014-02-10 Doug Evans <xdje42@gmail.com>
11023 Add Guile as an extension language.
11024 * NEWS: Mention Guile scripting.
11025 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11026 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11027 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11028 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11029 (CLIBS): Add GUILE_LIBS.
11030 (install-guile): New rule.
11031 (guile.o): New rule.
11032 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11033 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11034 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11035 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11036 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11037 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11038 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11039 * configure.ac: New option --with-guile.
11040 * configure: Regenerate.
11041 * config.in: Regenerate.
11042 * auto-load.c: Remove #include "python/python.h". Add #include
11043 "gdb/section-scripts.h".
11044 (source_section_scripts): Handle Guile scripts.
11045 (_initialize_auto_load): Add name of Guile objfile script to
11046 scripts-directory help text.
11047 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11048 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11049 (struct breakpoint): New member scm_bp_object.
11050 * defs.h (enum command_control_type): New value guile_control.
11051 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11053 (show_user): Update comment.
11054 (_initialize_cli_cmds): Update help text for "show user". Update help
11055 text for max-user-call-depth.
11056 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11058 (multi_line_command_p): Add guile_control.
11059 (print_command_lines): Handle guile_control.
11060 (execute_control_command, recurse_read_control_structure): Ditto.
11061 (process_next_line): Recognize "guile" commands.
11062 * disasm.c (gdb_disassemble_info): Make non-static.
11063 * disasm.h: #include "dis-asm.h".
11064 (struct gdbarch): Add forward decl.
11065 (gdb_disassemble_info): Declare.
11066 * extension.c: #include "guile/guile.h".
11067 (extension_languages): Add guile.
11068 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11069 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11070 * gdbtypes.c (get_unsigned_type_max): New function.
11071 (get_signed_type_minmax): New function.
11072 * gdbtypes.h (get_unsigned_type_max): Declare.
11073 (get_signed_type_minmax): Declare.
11074 * guile/README: New file.
11075 * guile/guile-internal.h: New file.
11076 * guile/guile.c: New file.
11077 * guile/guile.h: New file.
11078 * guile/scm-arch.c: New file.
11079 * guile/scm-auto-load.c: New file.
11080 * guile/scm-block.c: New file.
11081 * guile/scm-breakpoint.c: New file.
11082 * guile/scm-disasm.c: New file.
11083 * guile/scm-exception.c: New file.
11084 * guile/scm-frame.c: New file.
11085 * guile/scm-gsmob.c: New file.
11086 * guile/scm-iterator.c: New file.
11087 * guile/scm-lazy-string.c: New file.
11088 * guile/scm-math.c: New file.
11089 * guile/scm-objfile.c: New file.
11090 * guile/scm-ports.c: New file.
11091 * guile/scm-pretty-print.c: New file.
11092 * guile/scm-safe-call.c: New file.
11093 * guile/scm-string.c: New file.
11094 * guile/scm-symbol.c: New file.
11095 * guile/scm-symtab.c: New file.
11096 * guile/scm-type.c: New file.
11097 * guile/scm-utils.c: New file.
11098 * guile/scm-value.c: New file.
11099 * guile/lib/gdb.scm: New file.
11100 * guile/lib/gdb/boot.scm: New file.
11101 * guile/lib/gdb/experimental.scm: New file.
11102 * guile/lib/gdb/init.scm: New file.
11103 * guile/lib/gdb/iterator.scm: New file.
11104 * guile/lib/gdb/printing.scm: New file.
11105 * guile/lib/gdb/types.scm: New file.
11106 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11107 (VPATH): Add $(GUILE_SRCDIR).
11108 (GUILE_DIR): New variable.
11109 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11110 (all): Add stamp-guile dependency.
11111 (stamp-guile): New rule.
11112 (clean-guile, install-guile, uninstall-guile): New rules.
11113 (install-only): Add install-guile dependency.
11114 (uninstall): Add uninstall-guile dependency.
11115 (clean): Add clean-guile dependency.
11117 2014-02-09 Doug Evans <xdje42@gmail.com>
11119 Revert this patch (which I approved, mea culpa).
11121 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11123 * Makefile.in (all-lib): Remove.
11124 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11126 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11128 Fix Python stack corruption.
11129 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11132 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11134 * Makefile.in (all-lib): Remove.
11135 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11137 2014-02-07 Doug Evans <dje@google.com>
11139 * extension-priv.h (extension_language_script_ops): Add comment.
11140 (extension_language_ops): Add comment.
11141 (active_ext_lang_state): Fix typo in comment.
11143 2014-02-07 Pedro Alves <palves@redhat.com>
11145 PR breakpoints/16292
11146 * infrun.c (handle_signal_stop) <signal arrives while stepping
11147 over a breakpoint>: Switch back to the stepping thread.
11149 2014-02-07 Yao Qi <yao@codesourcery.com>
11151 * target.c (target_xfer_partial): Return zero if LEN is zero.
11153 2014-02-07 Yao Qi <yao@codesourcery.com>
11155 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11156 (ld_so_xfer_auxv): Likewise.
11157 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11158 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11159 * corelow.c (core_xfer_partial): Likewise.
11160 * ctf.c (ctf_xfer_partial): Likewise.
11161 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11162 (darwin_xfer_partial): Likewise.
11163 * exec.c (exec_xfer_partial): Likewise.
11164 * gnu-nat.c (gnu_xfer_partial): Likewise.
11165 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11166 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11167 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11168 * linux-nat.c (linux_xfer_siginfo): Likewise.
11169 (linux_proc_xfer_spu): Likewise.
11170 * procfs.c (procfs_xfer_partial): Likewise.
11171 * record-full.c (record_full_xfer_partial): Likewise.
11172 (record_full_core_xfer_partial): Likewise.
11173 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11174 * remote.c (remote_write_qxfer): Likewise.
11175 (remote_write_qxfer, remote_read_qxfer): Likewise.
11176 (remote_xfer_partial): Likewise.
11177 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11178 (rs6000_xfer_shared_libraries): Likewise.
11179 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11180 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11181 (spu_xfer_partial): Likewise.
11182 * target.c (memory_xfer_partial_1): Likewise.
11183 * tracepoint.c (tfile_xfer_partial): Likewise.
11184 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11185 (windows_xfer_partial): Likewise.
11187 2014-02-07 Yao Qi <yao@codesourcery.com>
11189 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11191 (core_xfer_shared_libraries_aix): Likewise.
11192 * gdbarch.c, gdbarch.h: Regenerated.
11193 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11194 ULONGEST. Change 'len_avail' type to ULONGEST.
11195 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11196 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11198 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11200 2014-02-07 Yao Qi <yao@codesourcery.com>
11202 * corefile.c (memory_error): Get 'exception' from ERR and pass
11203 'exception' to throw_error.
11205 2014-02-06 Doug Evans <xdje42@gmail.com>
11207 * configure.ac (libpython checking): Remove all but python.o from
11208 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11209 * configure: Regenerate.
11211 * Makefile.in (SFILES): Add extension.c.
11212 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11213 (COMMON_OBS): Add extension.o.
11214 * extension.h: New file.
11215 * extension-priv.h: New file.
11216 * extension.c: New file.
11218 * python/python-internal.h: #include "extension.h".
11219 (gdbpy_auto_load_enabled): Declare.
11220 (gdbpy_apply_val_pretty_printer): Declare.
11221 (gdbpy_apply_frame_filter): Declare.
11222 (gdbpy_preserve_values): Declare.
11223 (gdbpy_breakpoint_cond_says_stop): Declare.
11224 (gdbpy_breakpoint_has_cond): Declare.
11225 (void source_python_script_for_objfile): Delete.
11226 * python/python.c: #include "extension-priv.h".
11227 Delete inclusion of "observer.h".
11228 (extension_language_python): Moved here and renamed from
11229 script_language_python in py-auto-load.c.
11230 Redefined to be of type extension_language_defn.
11231 (python_extension_script_ops): New global.
11232 (python_extension_ops): New global.
11233 (struct python_env): New member previous_active.
11234 (restore_python_env): Call restore_active_ext_lang.
11235 (ensure_python_env): Call set_active_ext_lang.
11236 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11238 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11240 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11242 (gdbpy_eval_from_control_command): Renamed from
11243 eval_python_from_control_command, made static. New arg extlang.
11244 (gdbpy_source_script) Renamed from source_python_script, made static.
11246 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11247 result to int. New arg extlang.
11248 (gdbpy_source_objfile_script): Renamed from
11249 source_python_script_for_objfile, made static. New arg extlang.
11250 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11251 static. New args extlang, extlang_printers. Change result type to
11253 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11254 static. New arg extlang. Rename arg printers to extlang_printers
11255 and change type to ext_lang_type_printers *.
11256 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11257 static. Replace argument arg with extlang, extlang_printers.
11258 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11259 (!HAVE_PYTHON, source_python_script): Delete.
11260 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11261 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11262 (!HAVE_PYTHON, start_type_printers): Delete.
11263 (!HAVE_PYTHON, apply_type_printers): Delete.
11264 (!HAVE_PYTHON, free_type_printers): Delete.
11265 (_initialize_python): Delete call to observer_attach_before_prompt.
11266 (finalize_python): Set/restore active extension language.
11267 (gdbpy_finish_initialization) Renamed from
11268 finish_python_initialization, made static. New arg extlang.
11269 (gdbpy_initialized): New function.
11270 * python/python.h: #include "extension.h". Delete #include
11271 "value.h", "mi/mi-cmds.h".
11272 (extension_language_python): Declare.
11273 (GDBPY_AUTO_FILE_NAME): Delete.
11274 (enum py_bt_status): Moved to extension.h and renamed to
11275 ext_lang_bt_status.
11276 (enum frame_filter_flags): Moved to extension.h.
11277 (enum py_frame_args): Moved to extension.h and renamed to
11278 ext_lang_frame_args.
11279 (finish_python_initialization): Delete.
11280 (eval_python_from_control_command): Delete.
11281 (source_python_script): Delete.
11282 (apply_val_pretty_printer): Delete.
11283 (apply_frame_filter): Delete.
11284 (preserve_python_values): Delete.
11285 (gdbpy_script_language_defn): Delete.
11286 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11287 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11289 * auto-load.c: #include "extension.h".
11290 (GDB_AUTO_FILE_NAME): Delete.
11291 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11292 (script_language_gdb): Delete, moved to extension.c and renamed to
11293 extension_language_gdb.
11294 (source_gdb_script_for_objfile): Delete.
11295 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11296 (loaded_script): Change type of language member to
11297 struct extension_language_defn *.
11298 (init_loaded_scripts_info): Initialize
11299 unsupported_script_warning_printed.
11300 (maybe_add_script): Make static. Change type of language arg to
11301 struct extension_language_defn *.
11302 (clear_section_scripts): Reset unsupported_script_warning_printed.
11303 (auto_load_objfile_script_1): Rewrite to use extension language API.
11304 (auto_load_objfile_script): Make public. Remove support-compiled-in
11305 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11306 (source_section_scripts): Rewrite to use extension language API.
11307 (load_auto_scripts_for_objfile): Rewrite to use
11308 auto_load_scripts_for_objfile.
11309 (collect_matching_scripts_data): Change type of language member to
11310 struct extension_language_defn *.
11311 (auto_load_info_scripts): Change type of language arg to
11312 struct extension_language_defn *.
11313 (unsupported_script_warning_print): New function.
11314 (script_not_found_warning_print): Make static.
11315 (_initialize_auto_load): Rewrite construction of scripts-directory
11317 * auto-load.h (struct objfile): Add forward decl.
11318 (struct script_language): Delete.
11319 (struct auto_load_pspace_info): Add forward decl.
11320 (struct extension_language_defn): Add forward decl.
11321 (maybe_add_script): Delete.
11322 (auto_load_objfile_script): Declare.
11323 (script_not_found_warning_print): Delete.
11324 (auto_load_info_scripts): Update prototype.
11325 (auto_load_gdb_scripts_enabled): Declare.
11326 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11327 auto_load_python_scripts_enabled and made public.
11328 (script_language_python): Delete, moved to python.c.
11329 (gdbpy_script_language_defn): Delete.
11330 (info_auto_load_python_scripts): Update to use
11331 extension_language_python.
11333 * breakpoint.c (condition_command): Replace call to
11334 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11335 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11336 with call to breakpoint_ext_lang_cond_says_stop.
11337 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11338 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11339 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11340 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11342 (local_setattro): Print name of extension language with existing
11345 * valprint.c (val_print, value_print): Update to call
11346 apply_ext_lang_val_pretty_printer.
11347 * cp-valprint.c (cp_print_value): Update call to
11348 apply_ext_lang_val_pretty_printer.
11349 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11350 (gdbpy_apply_val_pretty_printer): Renamed from
11351 apply_val_pretty_printer. New arg extlang.
11352 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11354 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11355 extension language API.
11356 * cli/cli-script.c (execute_control_command): Update to call
11357 eval_ext_lang_from_control_command.
11359 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11360 enum ext_lang_bt_status values. Update call to
11361 apply_ext_lang_frame_filter.
11362 (mi_cmd_stack_list_locals): Ditto.
11363 (mi_cmd_stack_list_args): Ditto.
11364 (mi_cmd_stack_list_variables): Ditto.
11365 * mi/mi-main.c: Delete #include "python/python-internal.h".
11366 Add #include "extension.h".
11367 (mi_cmd_list_features): Replace reference to python internal variable
11368 gdb_python_initialized with call to ext_lang_initialized_p.
11370 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11371 Update to use enum ext_lang_frame_args. Update to call
11372 apply_ext_lang_frame_filter.
11373 * python/py-framefilter.c (extract_sym): Update to use enum
11374 ext_lang_bt_status.
11375 (extract_value, py_print_type, py_print_value): Ditto.
11376 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11377 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11378 (py_print_frame): Ditto.
11379 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11380 New arg extlang. Update to use enum ext_lang_bt_status.
11382 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11383 finish_python_initialization. Replace with call to
11384 finish_ext_lang_initialization.
11386 * typeprint.c (do_free_global_table): Update to call
11387 free_ext_lang_type_printers.
11388 (create_global_typedef_table): Update to call
11389 start_ext_lang_type_printers.
11390 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11391 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11392 (type_print_options): Change type of global_printers from "void *"
11393 to "struct ext_lang_type_printers *".
11395 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11396 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11397 (gdbpy_preserve_values): Renamed from preserve_python_values.
11399 (!HAVE_PYTHON, preserve_python_values): Delete.
11401 * utils.c (quit_flag): Delete, moved to extension.c.
11402 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11405 * eval.c: Delete #include "python/python.h".
11406 * main.c: Delete #include "python/python.h".
11408 * defs.h: Update comment.
11410 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11414 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11416 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11419 2014-02-05 Yao Qi <yao@codesourcery.com>
11421 * remote.c (remote_pass_signals): Remove local 'buf' and use
11423 (remote_program_signals): Likewise.
11425 2014-02-05 Yao Qi <yao@codesourcery.com>
11427 * ctf.c: Include "inferior.h" and "gdbthread.h".
11428 (CTF_PID): A new macro.
11429 (ctf_open): Call inferior_appeared and add_thread_silent.
11430 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11431 (ctf_thread_alive): New function.
11432 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11434 2014-02-05 Yao Qi <yao@codesourcery.com>
11438 2013-05-24 Yao Qi <yao@codesourcery.com>
11440 * tracepoint.c (TFILE_PID): Remove.
11441 (tfile_open): Don't add thread and inferior.
11442 (tfile_close): Don't set 'inferior_ptid'. Don't call
11443 exit_inferior_silent.
11444 (tfile_thread_alive): Remove.
11445 (init_tfile_ops): Don't set field 'to_thread_alive' of
11448 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11450 * remote.c (remote_start_remote): Call remote_check_symbols even
11451 if only symbol-file (not file) has been given.
11453 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11455 * gdbarch.sh (skip_entrypoint): New callback.
11456 * gdbarch.c, gdbarch.h: Regenerate.
11457 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11458 * infrun.c (fill_in_stop_func): Likewise.
11459 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11460 (ppc_elfv2_elf_make_msymbol_special): New function.
11461 (ppc_elfv2_skip_entrypoint): Likewise.
11462 (ppc_linux_init_abi): Install them for ELFv2.
11464 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11466 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11467 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11468 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11469 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11470 structures returned in GPRs.
11472 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11474 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11475 offset to the stack parameter list for the ELFv2 ABI.
11477 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11479 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11480 set_gdbarch_convert_from_func_ptr_addr and
11481 set_gdbarch_elf_make_msymbol_special for ELFv1.
11482 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11483 function descriptors on ELFv1.
11484 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11485 set up r12 at function entry.
11487 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11489 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11490 (struct gdbarch_tdep): New member elf_abi.
11492 * rs6000-tdep.c: Include "elf/ppc64.h".
11493 (rs6000_gdbarch_init): Detect ELF ABI version.
11495 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11497 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11498 within a register pair holding a DFP 128-bit value on little-endian.
11499 (ppc64_sysv_abi_return_value_base): Likewise.
11500 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11501 (dfp_pseudo_register_write): Likewise.
11503 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11505 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11506 offset on little-endian when passing _Decimal32.
11507 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11509 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11511 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11512 of the overlapped FP register within the VSX register on little-
11514 (efpr_pseudo_register_write): Likewise.
11516 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11518 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11519 offset on little-endian when passing small structures.
11521 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11523 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11524 (struct ppc64_sysv_argpos): New data structure.
11525 (ppc64_sysv_abi_push_float): Remove.
11526 (ppc64_sysv_abi_push_val): New function.
11527 (ppc64_sysv_abi_push_integer): Likewise.
11528 (ppc64_sysv_abi_push_freg): Likewise.
11529 (ppc64_sysv_abi_push_vreg): Likewise.
11530 (ppc64_sysv_abi_push_param): Likewise.
11531 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11532 (ppc64_sysv_abi_return_value_base): New function.
11533 (ppc64_sysv_abi_return_value): Refactor to use it.
11535 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11537 * NEWS: Document new target powerpc64le-*-linux*.
11539 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11541 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11542 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11544 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11545 register set used in ELF core dumps. Add floating-point register set.
11547 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11549 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11550 dwarf2_to_gdb[] table using symbolic constants. Adjust
11551 penultimate entry from number representing the PC register
11552 to symbolic constant representing the MDR register. Add
11553 constant for the PC register to the end of the table.
11555 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11557 * bsd-kvm.c: Include <sys/param.h>
11559 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11561 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11563 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11565 * ada-lang.h (clear_ada_sym_cache): Delete.
11567 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11569 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11571 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11573 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11574 the sigreturn register save area only if the syscall is
11577 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11579 * valops.c (value_slice): Minor reformatting.
11581 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11583 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11585 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11587 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11588 New static globals.
11589 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11590 (ada_ignore_descriptive_types_p): New static global.
11591 (find_parallel_type_by_descriptive_type): Return immediately
11592 if ada_ignore_descriptive_types_p is set.
11593 (_initialize_ada_language): Register new commands "maintenance
11594 set ada", "maintenance show ada", "maintenance set ada
11595 ignore-descriptive-types" and "maintenance show ada
11596 ignore-descriptive-types".
11597 * NEWS: Add entry for new "maint ada set/show
11598 ignore-descriptive-types" commands.
11600 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11602 * record-btrace.c (record_btrace_close): Call btrace_teardown
11605 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11607 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11610 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11612 * ada-typeprint (type_is_full_subrange_of_target_type):
11614 (print_range): Add parameter bounds_prefered_p. If not set,
11615 try printing range types using the name of their base type.
11616 (print_range_type): Add parameter bounds_prefered_p.
11617 Use it in call to print_range.
11618 (print_array_type, ada_print_type): Update calls to print_range
11619 and print_range_type.
11621 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11623 * ada-typeprint.c (print_array_type, print_choices, print_range)
11624 (print_range_bound, print_dynamic_range_bound, print_range_type):
11625 Remove declaration.
11627 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11629 * ada-typeprint.c (print_range): Add missing empty line
11630 after local declaration.
11632 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11634 * ada-valprint.c (print_optional_low_bound): Get index_type's
11635 target type for as long as it is a TYPE_CODE_RANGE.
11637 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11639 * procfs.c (procfs_make_note_section): Remove assertion and
11640 associated comment.
11642 2014-01-24 Yao Qi <yao@codesourcery.com>
11644 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11645 * corelow.c (get_core_siginfo): Likewise.
11647 2014-01-24 Yao Qi <yao@codesourcery.com>
11649 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11650 ULONGEST. Don't check 'len' is negative.
11651 (remote_write_bytes): Change type of 'len' to ULONGEST.
11653 2014-01-23 Tom Tromey <tromey@redhat.com>
11656 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11657 Handle exception from frame.block.
11658 (FrameVars.fetch_frame_locals): Likewise.
11660 2014-01-23 Tom Tromey <tromey@redhat.com>
11663 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11664 on a NULL pointer. Move "goto error" to correct place.
11666 2014-01-23 Tom Tromey <tromey@redhat.com>
11669 * python/py-framefilter.c (apply_frame_filter): Call
11670 ensure_python_env after computing gdbarch.
11672 2014-01-23 Yao Qi <yao@codesourcery.com>
11674 * target.c (raw_memory_xfer_partial): Change argument type
11675 from void * to gdb_byte *.
11676 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11678 2014-01-22 Doug Evans <dje@google.com>
11680 New gdbserver option --debug-format=timestamp.
11681 * NEWS: Mention it.
11683 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11685 * syscalls/s390x-linux.xml: New file.
11686 * syscalls/s390-linux.xml: New file.
11687 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11688 (XML_SYSCALL_FILENAME_S390X): Likewise.
11689 (op_svc): New enum value for SVC opcode.
11690 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11691 (s390_linux_get_syscall_number): New function.
11692 (s390_gdbarch_init): Register '*get_syscall_number' and the
11693 syscall xml file name.
11694 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11695 "s390-linux.xml" and "s390x-linux.xml".
11696 * NEWS: Announce new feature.
11698 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11700 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11702 2014-01-22 Pedro Alves <palves@redhat.com>
11704 * xtensa-config.c: Include defs.h.
11706 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11708 * common/common-utils.h: Add "ARI:" comment beside __func__
11711 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11713 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11714 documentation a bit.
11716 2014-01-21 Roland McGrath <mcgrathr@google.com>
11718 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11719 * configure: Regenerate.
11720 * aclocal.m4: Regenerate.
11721 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11722 New substituted variables.
11723 (install-strip): New target.
11724 (INSTALL_SCRIPT): New substituted variable.
11725 (FLAGS_TO_PASS): Add it.
11726 (install-only): Use $(INSTALL_SCRIPT) rather than
11727 $(INSTALL_PROGRAM) for gcore.
11729 2014-01-20 Tom Tromey <tromey@redhat.com>
11731 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11734 2014-01-20 Tom Tromey <tromey@redhat.com>
11736 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11737 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11738 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11739 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11740 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11741 (struct cmd_list_element) <flags>: Remove.
11742 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11743 doc_allocated>: New fields.
11744 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11746 * maint.c (maintenance_do_deprecate): Update.
11747 * top.c (execute_command): Update.
11749 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11751 * xtensa-linux-nat.c: Include asm/ptrace.h.
11753 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11755 * Makefile.in (SFILES): Add d-support.c.
11756 (COMMON_OBS): Add d-support.o.
11757 * d-lang.h (d_parse_symbol): Add comment, now defined in
11759 * d-lang.c (parse_call_convention)
11760 (parse_attributes, parse_function_types)
11761 (parse_function_args, parse_type, parse_identifier)
11762 (call_convention_p, d_parse_symbol): Move functions to ...
11763 * d-support.c: ... New file.
11765 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11767 * d-lang.h (d_parse_symbol): Add declaration.
11768 * d-lang.c (extract_identifiers)
11769 (extract_type_info): Remove functions.
11770 (parse_call_convention, parse_attributes)
11771 (parse_function_types, parse_function_args)
11772 (parse_type, parse_identifier, call_convention_p)
11773 (d_parse_symbol): New functions.
11774 (d_demangle): Use d_parse_symbol to demangle D symbols.
11776 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11778 * d-lang.h (struct builtin_d_type): New data type.
11779 (builtin_d_type): Add declaration.
11780 * d-lang.c (d_language_arch_info, build_d_types)
11781 (builtin_d_type): New functions.
11782 (enum d_primitive_types): New data type.
11783 (d_language_defn): Change c_language_arch_info to
11784 d_language_arch_info.
11785 (d_type_data): New static variable.
11786 (_initialize_d_language): Initialize d_type_data.
11788 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11790 * d-lang.h (d_main_name): Add declaration.
11791 * d-lang.c (d_main_name): New function.
11792 * symtab.c (find_main_name): Add call to d_main_name.
11794 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11796 * d-lang.c (d_language_defn): Change macro_expansion_c to
11797 macro_expansion_no.
11799 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11801 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11803 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11805 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11806 gdb_exception" declaration.
11807 * remote.c (getpkt_or_notif_sane): Likewise.
11809 2014-01-17 Doug Evans <dje@google.com>
11811 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11812 function, contents of dirnames_to_char_ptr_vec_append moved here.
11813 (delim_string_to_char_ptr_vec): New function.
11814 (dirnames_to_char_ptr_vec_append): Rewrite.
11815 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11817 2014-01-17 Doug Evans <dje@google.com>
11819 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11821 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11822 #include "common-utils.h".
11823 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11824 * common/vec.h (VEC_ASSERT_PASS): Update.
11825 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11826 (MACH_CHECK_ERROR): Update.
11828 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11830 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11832 * gdbarch.h: Regenerate.
11834 2014-01-16 Tom Tromey <tromey@redhat.com>
11836 * value.c (struct value) <regnum>: Move earlier.
11838 2014-01-16 Tom Tromey <tromey@redhat.com>
11840 * remote.c (extended_remote_create_inferior): Rename from
11841 extended_remote_create_inferior_1. Add "ops" argument. Remove
11842 old implementation.
11844 2014-01-16 Pedro Alves <palves@redhat.com>
11846 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11847 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11850 2014-01-16 Doug Evans <dje@google.com>
11852 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11854 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11856 * btrace.h (btrace_thread_flag): New.
11857 (struct btrace_thread_info) <flags>: New.
11858 * record-btrace.c (record_btrace_resume_thread)
11859 (record_btrace_find_thread_to_move, btrace_step_no_history)
11860 (btrace_step_stopped, record_btrace_start_replaying)
11861 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11862 (record_btrace_find_resume_thread): New.
11863 (record_btrace_resume, record_btrace_wait): Extend.
11864 (record_btrace_can_execute_reverse): New.
11865 (record_btrace_open): Fail in non-stop mode.
11866 (record_btrace_set_replay): Split into this, ...
11867 (record_btrace_stop_replaying): ... this, ...
11868 (record_btrace_clear_histories): ... and this.
11869 (init_record_btrace_ops): Init to_can_execute_reverse.
11870 * NEWS: Announce it.
11872 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11874 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11875 (forward_target_decr_pc_after_break)
11876 (target_decr_pc_after_break): New.
11877 * target.c (forward_target_decr_pc_after_break)
11878 (target_decr_pc_after_break): New.
11879 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11880 instead of gdbarch_decr_pc_after_break.
11881 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11882 instead of gdbarch_decr_pc_after_break.
11883 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11884 instead of gdbarch_decr_pc_after_break.
11885 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11886 instead of gdbarch_decr_pc_after_break.
11887 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11888 instead of gdbarch_decr_pc_after_break.
11889 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11890 instead of gdbarch_decr_pc_after_break.
11892 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11894 * btrace.c: Include regcache.h.
11895 (btrace_add_pc): New.
11896 (btrace_enable): Call btrace_add_pc.
11897 (btrace_is_empty): New.
11898 * btrace.h (btrace_is_empty): New.
11899 * record-btrace.c (require_btrace, record_btrace_info): Call
11902 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11904 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11905 Support delta reads.
11906 (linux_disable_btrace): Change return type.
11907 * common/linux-btrace.h (linux_read_btrace): Change parameters
11908 and return type to allow error reporting. Update users.
11909 (linux_disable_btrace): Change return type. Update users.
11910 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11912 (btrace_error): New.
11913 (btrace_block) <begin>: Comment on BEGIN == 0.
11914 * btrace.c (btrace_compute_ftrace): Start from the end of
11916 (btrace_stitch_trace, btrace_clear_history): New.
11917 (btrace_fetch): Read delta trace, return if replaying.
11918 (btrace_clear): Move clear history code to btrace_clear_history.
11919 (parse_xml_btrace): Throw an error if parsing failed.
11920 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11921 and return type to allow error reporting.
11922 (target_read_btrace): Change parameters and return type to allow
11924 * target.c (target_read_btrace): Update.
11925 * remote.c (remote_read_btrace): Support delta reads. Pass
11927 * NEWS: Announce it.
11929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11931 * record.h (record_btrace_frame_unwind)
11932 (record_btrace_tailcall_frame_unwind): New declarations.
11933 * dwarf2-frame: Include record.h
11934 (dwarf2_frame_cfa): Throw an error for btrace frames.
11935 * record-btrace.c: Include hashtab.h.
11936 (btrace_get_bfun_name): New.
11937 (btrace_call_history): Call btrace_get_bfun_name.
11938 (struct btrace_frame_cache): New.
11940 (bfcache_hash, bfcache_eq, bfcache_new): New.
11941 (btrace_get_frame_function): New.
11942 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11943 (record_btrace_frame_this_id): Compute own id.
11944 (record_btrace_frame_prev_register): Provide PC, throw_error
11945 for all other registers.
11946 (record_btrace_frame_sniffer): Detect btrace frames.
11947 (record_btrace_tailcall_frame_sniffer): New.
11948 (record_btrace_frame_dealloc_cache): New.
11949 (record_btrace_frame_unwind): Add new functions.
11950 (record_btrace_tailcall_frame_unwind): New.
11951 (_initialize_record_btrace): Allocate cache.
11952 * btrace.c (btrace_clear): Call reinit_frame_cache.
11953 * NEWS: Announce it.
11955 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11957 * record-btrace.c (record_btrace_set_replay)
11958 (record_btrace_goto_begin, record_btrace_goto_end)
11959 (record_btrace_goto): New.
11960 (init_record_btrace_ops): Initialize them.
11961 * NEWS: Announce it.
11963 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11965 * record-btrace.c (record_btrace_find_new_threads)
11966 (record_btrace_thread_alive): New.
11967 (init_record_btrace_ops): Initialize to_find_new_threads and
11970 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11972 * record-btrace.c (record_btrace_resume): New.
11973 (record_btrace_wait): New.
11974 (init_record_btrace_ops): Initialize to_wait and to_resume.
11976 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11978 * record-btrace.c (record_btrace_xfer_partial)
11979 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11980 (record_btrace_allow_memory_access): New.
11981 (init_record_btrace_ops): Initialize new methods.
11982 * target.c (raw_memory_xfer_partial): Bail out if target reports
11983 that this memory is not available.
11985 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11987 * target.h (target_ops) <to_insert_breakpoint>
11988 <to_remove_breakpoint>: Add target_ops parameter.
11989 (forward_target_insert_breakpoint): New.
11990 (forward_target_remove_breakpoint): New.
11991 (memory_remove_breakpoint, memory_insert_breakpoint):
11992 Add target_ops parameter.
11993 * target.c (target_insert_breakpoint): Split into this and ...
11994 (forward_target_insert_breakpoint): ... this.
11995 (target_remove_breakpoint): Split into this and ...
11996 (forward_target_remove_breakpoint): ... this.
11997 (debug_to_insert_breakpoint): Add target_ops parameter.
11998 Call forward_target_insert_breakpoint.
11999 (debug_to_remove_breakpoint): Add target_ops parameter.
12000 Call forward_target_remove_breakpoint.
12001 (update_current_target): Do not inherit or default to_insert_breakpoint
12002 and to_remove_breakpoint.
12003 * corelow.c (ignore): Add target_ops parameter.
12004 * exec.c (ignore): Add target_ops parameter.
12005 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12006 Add target_ops parameter.
12007 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12008 Add target_ops parameter.
12009 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12010 Add target_ops parameter.
12011 * record-full.c (record_full_beneath_to_insert_breakpoint)
12012 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12013 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12014 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12015 (record_full_core_remove_breakpoint): Add target_ops parameter.
12017 (record_full_beneath_to_insert_breakpoint_ops)
12018 (record_full_beneath_to_remove_breakpoint_ops)
12019 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12020 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12021 tmp_to_remove_breakpoint_ops,
12022 record_full_beneath_to_insert_breakpoint_ops, and
12023 record_full_beneath_to_remove_breakpoint_ops.
12024 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12025 (m32r_remove_breakpoint): Add target_ops parameter.
12026 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12027 Add target_ops parameter.
12028 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12029 Add target_ops parameter.
12031 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12032 Markus Metzger <markus.t.metzger@intel.com>
12034 * record-btrace.c: Include frame-unwind.h.
12035 (record_btrace_frame_unwind_stop_reason)
12036 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12037 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12039 (init_record_btrace_ops): Install it.
12041 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12043 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12046 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12048 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12051 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12053 * frame-unwind.c: Include target.h.
12054 (frame_unwind_try_unwinder): New function with code from ...
12055 (frame_unwind_find_by_frame): ... here. New variable
12056 unwinder_from_target, call also target_get_unwinder)
12057 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12058 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12059 * target.h (struct target_ops): New fields to_get_unwinder and
12060 to_get_tailcall_unwinder.
12061 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12065 * record-btrace.c (record_btrace_fetch_registers)
12066 (record_btrace_store_registers)
12067 (record_btrace_to_prepare_to_store): New.
12068 (init_record_btrace_ops): Add the above.
12070 2014-01-16 Tom Tromey <tromey@redhat.com>
12072 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12073 * target.h (struct target_ops) <to_prepare_to_store>: Add
12075 (target_prepare_to_store): Add argument.
12076 * target.c (debug_to_prepare_to_store): Add argument.
12077 (update_current_target): Update.
12078 * remote.c (remote_prepare_to_store): Add 'self' argument.
12079 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12080 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12081 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12082 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12084 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12085 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12086 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12087 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12088 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12090 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12092 * btrace.h (replay) <replay>: New.
12093 (btrace_is_replaying): New.
12094 * btrace.c (btrace_clear): Free replay iterator.
12095 (btrace_is_replaying): New.
12096 * record-btrace.c (record_btrace_is_replaying): New.
12097 (record_btrace_info): Print insn number if replaying.
12098 (record_btrace_insn_history): Start at replay position.
12099 (record_btrace_call_history): Start at replay position.
12100 (init_record_btrace_ops): Init to_record_is_replaying.
12102 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12104 * record-btrace.c (record_btrace_insn_history_range): Include
12106 (record_btrace_insn_history_from): Adjust range.
12107 (record_btrace_call_history_range): Include
12109 (record_btrace_call_history_from): Adjust range.
12110 * NEWS: Announce changes.
12112 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12114 * record.h (enum record_print_flag)
12115 <record_print_indent_calls>: New.
12116 * record.c (get_call_history_modifiers): Recognize /c modifier.
12117 (_initialize_record): Document /c modifier.
12118 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12119 Reorder fields. Optionally indent the function name. Update
12121 * NEWS: Announce changes.
12123 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12125 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12127 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12129 * btrace.c (ftrace_new_function): Start counting at one.
12130 * record-btrace.c (record_btrace_info): Adjust number of calls
12132 * NEWS: Announce it.
12134 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12136 * record-btrace.c (btrace_call_history_insn_range): Print
12137 insn range as [begin, end].
12139 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12141 * btrace.h (struct btrace_func_link): New.
12142 (enum btrace_function_flag): New.
12143 (struct btrace_inst): Rename to ...
12144 (struct btrace_insn): ...this. Update all users.
12145 (struct btrace_func) <ibegin, iend>: Remove.
12146 (struct btrace_func_link): New.
12147 (struct btrace_func): Rename to ...
12148 (struct btrace_function): ...this. Update all users.
12149 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12150 (number, level, flags>: New.
12151 (struct btrace_insn_iterator): Rename to ...
12152 (struct btrace_insn_history): ...this.
12154 (struct btrace_insn_iterator, btrace_call_iterator): New.
12155 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12156 (struct btrace_target_info) <begin, end, level>
12157 <insn_history, call_history>: New.
12158 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12159 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12160 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12161 (btrace_call_number, btrace_call_begin, btrace_call_end)
12162 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12163 (btrace_find_function_by_number, btrace_set_insn_history)
12164 (btrace_set_call_history): New.
12165 * btrace.c (btrace_init_insn_iterator)
12166 (btrace_init_func_iterator, compute_itrace): Remove.
12167 (ftrace_print_function_name, ftrace_print_filename)
12168 (ftrace_skip_file): Change
12169 parameter to const.
12170 (ftrace_init_func): Remove.
12171 (ftrace_debug): Use new btrace_function fields.
12172 (ftrace_function_switched): Also consider gaining and
12173 losing symbol information).
12174 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12175 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12176 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12178 (ftrace_new_function): Move. Remove debug print.
12179 (ftrace_update_lines, ftrace_update_insns): New.
12180 (ftrace_update_function): Check for call, ret, and jump.
12181 (compute_ftrace): Renamed to ...
12182 (btrace_compute_ftrace): ...this. Rewritten to compute call
12184 (btrace_fetch, btrace_clear): Updated.
12185 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12186 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12187 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12188 (btrace_call_number, btrace_call_begin, btrace_call_end)
12189 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12190 (btrace_find_function_by_number, btrace_set_insn_history)
12191 (btrace_set_call_history): New.
12192 * record-btrace.c (require_btrace): Use new btrace thread
12194 (record_btrace_info, btrace_insn_history)
12195 (record_btrace_insn_history, record_btrace_insn_history_range):
12196 Use new btrace thread info fields and new iterator.
12197 (btrace_func_history_src_line): Rename to ...
12198 (btrace_call_history_src_line): ...this. Use new btrace
12199 thread info fields.
12200 (btrace_func_history): Rename to ...
12201 (btrace_call_history): ...this. Use new btrace thread info
12202 fields and new iterator.
12203 (record_btrace_call_history, record_btrace_call_history_range):
12204 Use new btrace thread info fields and new iterator.
12206 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12208 * frame.h (frame_id_build_unavailable_stack_special): New.
12209 * frame.c (frame_id_build_unavailable_stack_special): New.
12211 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12213 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12214 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12215 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12217 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12218 (i386_insn_is_jump, i386_jmp_p): New.
12219 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12220 insn_is_jump to gdbarch.
12221 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12222 * gdbarch.h: Regenerated.
12223 * gdbarch.c: Regenerated.
12224 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12225 (default_insn_is_jump): New.
12226 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12227 (default_insn_is_jump): New.
12229 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12231 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12233 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12234 (btrace_read_type) <btrace_read_new>: Change to ...
12235 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12239 * common/linux-btrace.c (linux_read_btrace): Free trace from
12240 previous iteration.
12242 2014-01-15 Doug Evans <dje@google.com>
12244 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12247 2014-01-15 Tom Tromey <tromey@redhat.com>
12249 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12250 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12251 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12252 (set_objfile_main_name): New function.
12253 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12254 language_of_main>: New fields.
12255 (set_objfile_main_name): Declare.
12256 * symtab.c (find_main_name): Loop over objfiles to find the main
12258 (set_main_name): Now static.
12259 (get_main_info): Add comment.
12260 * symtab.h (set_main_name): Don't declare.
12262 2014-01-15 Tom Tromey <tromey@redhat.com>
12264 * symtab.c (main_progspace_key): New global.
12265 (struct main_info): New.
12266 (name_of_main, language_of_main): Remove.
12267 (get_main_info, main_info_cleanup): New function.
12268 (set_main_name, main_name, main_language): Use get_main_info.
12269 (_initialize_symtab): Initialize main_progspace_key.
12271 2014-01-15 Tom Tromey <tromey@redhat.com>
12273 * dbxread.c (process_one_symbol): Update.
12274 * dwarf2read.c (read_partial_die): Update.
12275 * symfile.c (set_initial_language): Call main_language.
12276 * symtab.c (language_of_main): Now static.
12277 (set_main_name): Add 'lang' parameter.
12278 (find_main_name): Update.
12279 (main_language): New function.
12280 (symtab_observer_executable_changed): Update.
12281 * symtab.h (set_main_name): Update.
12282 (language_of_main): Remove.
12283 (main_language): Declare.
12285 2014-01-15 Tom Tromey <tromey@redhat.com>
12287 * symfile.c (init_entry_point_info): Use new "initialized" field.
12289 * objfiles.h (struct entry_point) <initialized>: New field.
12290 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12291 (struct objfile) <ei>: ...here. Remove.
12292 * objfiles.c (entry_point_address_query): Update.
12294 2014-01-15 Tom Tromey <tromey@redhat.com>
12296 * objfiles.c (entry_point_address_query): Relocate entry point
12298 (objfile_relocate1): Do not relocate entry point address.
12299 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12300 <the_bfd_section_index>: New field.
12301 * symfile.c (init_entry_point_info): Find the entry point's
12304 2014-01-15 Tom Tromey <tromey@redhat.com>
12306 * solib-frv.c (enable_break): Use entry_point_address_query.
12308 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12310 * NEWS: Add note on improved process record-replay on
12311 arm*-linux* targets.
12313 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12315 * arm-tdep.c (enum arm_record_result): New enum.
12316 (arm_record_unsupported_insn): New function.
12317 (arm_record_coproc_data_proc): Removed.
12318 (thumb2_record_ld_st_multiple): New function.
12319 (thumb2_record_ld_st_dual_ex_tbb): New function.
12320 (thumb2_record_data_proc_sreg_mimm): New function.
12321 (thumb2_record_ps_dest_generic): New function.
12322 (thumb2_record_branch_misc_cntrl): New function.
12323 (thumb2_record_str_single_data): New function.
12324 (thumb2_record_ld_mem_hints): New function.
12325 (thumb2_record_ld_word): New function.
12326 (thumb2_record_lmul_lmla_div): New function.
12327 (thumb2_record_decode_insn_handler): New function.
12328 (decode_insn): Add thumb32 instruction handlers.
12330 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12332 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12333 (struct arm_linux_record_tdep): Declare.
12334 (arm_canonicalize_syscall): New function.
12335 (arm_all_but_pc_registers_record): New function.
12336 (arm_linux_syscall_record): New function.
12337 (arm_linux_init_abi): Add syscall recording constructs.
12338 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12339 decoding. (arm_record_coproc_data_proc): Update arm syscall
12341 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12342 <arm_syscall_record>: New field.
12343 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12346 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12348 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12349 register for push instruction recording.
12351 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12353 * arm-tdep.c (thumb_record_misc): Update to correct logical
12354 error while recording ldm, ldmia and pop instructions.
12356 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12358 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12360 2014-01-15 Pedro Alves <palves@redhat.com>
12362 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12363 (go32_resume, go32_fetch_registers, store_register)
12364 (go32_store_registers, go32_prepare_to_store)
12365 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12366 (go32_create_inferior, go32_can_run, go32_terminal_init)
12367 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12370 2014-01-15 Tom Tromey <tromey@redhat.com>
12372 * target.h (async_callback_ftype): New typedef.
12373 (struct target_ops) <to_async>: Use it.
12375 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12377 * python/py-value.c (get_field_type): Remove unnecessary curly
12378 braces for single-statement if block.
12380 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12382 * python/py-type.c (convert_field): Add missing empty line
12383 after declarations.
12385 2014-01-14 Doug Evans <dje@google.com>
12387 * symfile.h (expand_symtabs_matching): Renamed from
12388 expand_partial_symbol_names. Update prototype.
12389 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12390 * symfile.c (expand_symtabs_matching): Renamed from
12391 expand_partial_symbol_names. New args file_matcher, kind.
12392 Rename arg fun to symbol_matcher.
12393 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12394 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12395 ada_expand_partial_symbol_name.
12396 (ada_make_symbol_completion_list): Update to call
12397 expand_symtabs_matching.
12398 (ada_add_global_exceptions): Call expand_symtabs_matching.
12399 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12400 call map_symbol_filenames.
12401 * symtab.c (sources_info): Update to call map_symbol_filenames.
12402 (search_symbols): Call expand_symtabs_matching.
12403 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12404 (default_make_symbol_completion_list_break_on): Update to call
12405 expand_symtabs_matching.
12406 (make_source_files_completion_list): Update to call
12407 map_symbol_filenames.
12409 2014-01-14 Doug Evans <dje@google.com>
12411 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12412 (expand_symtabs_symbol_matcher_ftype): New typedef.
12413 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12414 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12415 * symfile.c (expand_partial_symbol_names): Update to use
12416 expand_symtabs_symbol_matcher_ftype.
12417 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12418 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12419 Arg name_matcher renamed to symbol_matcher.
12420 * psymtab.c (recursively_search_psymtabs): Update to use
12421 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12423 (expand_symtabs_matching_via_partial): Update to use
12424 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12425 Arg name_matcher renamed to symbol_matcher.
12427 2014-01-14 Doug Evans <dje@google.com>
12429 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12430 (map_partial_symbol_filenames): Ditto.
12431 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12432 (map_partial_symbol_filenames): Ditto.
12433 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12434 (map_partial_symbol_filenames): Ditto.
12435 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12436 (map_partial_symbol_filenames): Ditto.
12437 * symtab.c: Delete #include "psymtab.h".
12439 2014-01-14 Pedro Alves <palves@redhat.com>
12440 Tom Tromey <tromey@redhat.com>
12442 * infrun.c (use_displaced_stepping): Use find_record_target
12443 instead of RECORD_IS_USED.
12444 (adjust_pc_after_break): Use record_full_is_used instead of
12446 * record-btrace.c (record_btrace_open): Call record_preopen
12447 instead of checking RECORD_IS_USED.
12448 * record-full.c (record_full_shortname)
12449 (record_full_core_shortname): New globals.
12450 (record_full_is_used): New function.
12451 (find_full_open): Call record_preopen instead of checking
12453 (init_record_full_ops): Set the target's shortname to
12454 record_full_shortname.
12455 (init_record_full_core_ops): Set the target's shortname to
12456 record_full_core_shortname.
12457 * record-full.h (record_full_is_used): Declare.
12458 * record.c (find_record_target): Make extern.
12459 (record_preopen): New function.
12460 * record.h (RECORD_IS_USED): Delete macro.
12461 (find_record_target, record_preopen): Declare functions.
12463 2014-01-14 Yao Qi <yao@codesourcery.com>
12465 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12466 'len''s type to ULONGEST.
12467 (core_xfer_shared_libraries_aix): Likewise.
12468 * gdbarch.c, gdbarch.h: Regenerated.
12469 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12470 Change type of 'len' to ULONGEST.
12471 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12472 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12474 2014-01-14 Yao Qi <yao@codesourcery.com>
12476 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12477 type of 'len' to ULONGEST.
12478 (linux_xfer_osdata_processgroups): Likewise.
12479 (linux_xfer_osdata_threads): Likewise.
12480 (linux_xfer_osdata_fds): Likewise.
12481 (linux_xfer_osdata_isockets): Likewise.
12482 (linux_xfer_osdata_shm): Likewise.
12483 (linux_xfer_osdata_sem): Likewise.
12484 (linux_xfer_osdata_msg): Likewise.
12485 (linux_common_xfer_osdata): Likewise.
12486 (struct osdata_type) <getter>: Likewise.
12487 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12490 2014-01-14 Yao Qi <yao@codesourcery.com>
12492 * target.h (target_xfer_partial_ftype): Update.
12493 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12495 * aix-thread.c (aix_thread_xfer_partial): Change type of
12496 argument 'len' to ULONGEST.
12497 * auxv.c (procfs_xfer_auxv): Likewise.
12498 (ld_so_xfer_auxv): Likewise.
12499 (memory_xfer_auxv): Likewise.
12500 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12501 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12502 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12503 * corelow.c (core_xfer_partial): Likewise.
12504 * ctf.c (ctf_xfer_partial): Likewise.
12505 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12507 (darwin_read_dyld_info): Likewise.
12508 (darwin_xfer_partial): Likewise.
12509 * exec.c (section_table_xfer_memory_partial): Likewise.
12510 (exec_xfer_partial): Likewise.
12511 * exec.h (section_table_xfer_memory_partial): Update
12513 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12514 instead of plongest.
12515 (gnu_xfer_partial): Likewise.
12516 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12517 (ia64_hpux_xfer_solib_got): Likewise.
12518 (ia64_hpux_xfer_partial): Likewise.
12519 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12520 * inf-ptrace.c (inf_ptrace_xfer_partial):
12521 * inf-ttrace.c (inf_ttrace_xfer_partial):
12522 * linux-nat.c (linux_xfer_siginfo): Likewise.
12523 (linux_nat_xfer_partial): Likewise.
12524 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12525 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12526 * monitor.c (monitor_xfer_memory): Likewise.
12527 (monitor_xfer_partial): Likewise.
12528 * procfs.c (procfs_xfer_partial): Likewise.
12529 * record-full.c (record_full_xfer_partial): Likewise.
12530 (record_full_core_xfer_partial): Likewise.
12531 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12532 instead of plongest.
12533 (gdbsim_xfer_partial): Likewise.
12534 * remote.c (remote_xfer_partial): Likewise.
12535 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12536 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12538 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12539 (rs6000_xfer_shared_libraries): Likewise.
12540 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12541 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12542 (sparc_xfer_partial): Likewise.
12543 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12544 (spu_xfer_partial): Likewise.
12545 * spu-multiarch.c (spu_xfer_partial): Likewise.
12546 * target.c (target_read_live_memory): Likewise.
12547 (memory_xfer_live_readonly_partial): Likewise.
12548 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12549 (target_xfer_partial, default_xfer_partial): Likewise.
12550 (current_xfer_partial): Likewise.
12551 * tracepoint.c (tfile_xfer_partial): Likewise.
12552 * windows-nat.c (windows_xfer_memory): Likewise. Call
12553 pulongest instead of plongest.
12554 (windows_xfer_partial): Likewise.
12555 (windows_xfer_shared_libraries): Likewise.
12557 2014-01-14 Yao Qi <yao@codesourcery.com>
12559 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12560 target_xfer_partial_ftype.
12562 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12566 * valops.c (value_struct_elt_bitpos): New function
12567 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12568 object to 'None' if the field name is an empty string ("").
12569 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12570 attribute to look for a field when 'name' is 'None'.
12571 (get_field_type): New function
12573 2014-01-13 Doug Evans <dje@google.com>
12576 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12577 (try_open_dwop_file): Ditto.
12578 * gdb_bfd.c: #include "vec.h".
12579 (bfdp): New typedef.
12580 (struct gdb_bfd_data): New member included_bfds.
12581 (gdb_bfd_unref): Unref all included bfds.
12582 (gdb_bfd_record_inclusion): New function.
12583 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12585 2014-01-13 Tom Tromey <tromey@redhat.com>
12587 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12589 2014-01-13 Tom Tromey <tromey@redhat.com>
12591 * defs.h (use_windows): Remove.
12592 * gdb.c (main): Update.
12593 * main.c (captured_main, gdb_main): Update.
12594 * main.h (struct captured_main_args) <use_windows>: Remove.
12595 * top.c (use_windows): Remove.
12597 2014-01-13 Tom Tromey <tromey@redhat.com>
12599 * defs.h (deprecated_flush_hook): Remove.
12601 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12604 * linux-thread-db.c (try_thread_db_load): Add parameter
12605 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12606 (try_thread_db_load_from_pdir_1): Move it there from here.
12607 (try_thread_db_load_from_sdir): Update caller.
12608 (try_thread_db_load_from_dir): Move it there from here.
12610 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12612 * regformats/regdat.sh: Always rewrite the register file.
12614 2014-01-13 Pedro Alves <palves@redhat.com>
12616 * Makefile.in (CHECK_HEADERS): New variable.
12617 (check-headers:): New rule.
12619 2014-01-13 Tom Tromey <tromey@redhat.com>
12621 * cli/cli-setshow.c (do_set_command): Update.
12622 * defs.h (deprecated_set_hook): Remove.
12623 * top.c (deprecated_set_hook): Remove.
12625 2014-01-13 Pedro Alves <palves@redhat.com>
12627 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12628 the tracepoint if the PC is a pseudo-register.
12630 2014-01-13 Tom Tromey <tromey@redhat.com>
12632 * defs.h (XCALLOC): Remove.
12633 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12634 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12635 * dwarf2loc.c (allocate_piece_closure): Likewise.
12636 * elfread.c (elf_symfile_segments): Likewise.
12637 (elf_symfile_segments): Likewise.
12638 * gdbtypes.c (copy_type_recursive): Likewise.
12639 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12640 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12641 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12643 * mt-tdep.c (mt_gdbarch_init): Likewise.
12644 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12646 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12647 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12648 * registry.c (registry_alloc_data): Likewise.
12649 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12650 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12651 * serial.c (serial_fdopen_ops): Likewise.
12652 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12654 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12655 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12658 2014-01-13 Tom Tromey <tromey@redhat.com>
12660 * defs.h (XMALLOC): Remove.
12661 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12662 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12663 * cli-out.c (struct ui_out *): Likewise.
12664 * cli/cli-dump.c (add_dump_command): Likewise.
12665 (add_dump_command): Likewise.
12666 * complaints.c (get_complaints): Likewise.
12667 (find_complaint): Likewise.
12668 * dwarf2-frame.c (execute_cfa_program): Likewise.
12669 * dwarf2read.c (abbrev_table_read_table): Likewise.
12670 * gdbarch.sh: Likewise.
12671 * gdbarch.c: Rebuild.
12672 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12673 * interps.c (interp_new): Likewise.
12674 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12675 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12676 * mi/mi-console.c (mi_console_file_new): Likewise.
12677 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12678 * mi/mi-out.c (mi_out_new): Likewise.
12679 * mi/mi-parse.c (mi_parse): Likewise.
12680 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12681 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12682 * observer.c (xalloc_observer_list_node): Likewise.
12683 * regcache.c (regcache_xmalloc_1): Likewise.
12684 * reggroups.c (reggroup_new): Likewise.
12685 (_initialize_reggroup): Likewise.
12686 * registry.c (register_data_with_cleanup): Likewise.
12687 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12688 * ser-base.c (serial_ttystate): Likewise.
12689 * ser-mingw.c (make_pipe_state): Likewise.
12690 * ser-pipe.c (pipe_open): Likewise.
12691 * serial.c (serial_open): Likewise.
12692 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12693 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12694 (tui_alloc_win_info): Likewise.
12695 (tui_add_content_elements): Likewise.
12696 * tui/tui-file.c (tui_file_new): Likewise.
12697 * tui/tui-out.c (tui_out_new): Likewise.
12698 * ui-file.c (mem_file_new): Likewise.
12699 * ui-out.c (push_level): Likewise.
12700 (make_cleanup_ui_out_end): Likewise.
12701 (append_header_to_list): Likewise.
12702 (ui_out_new): Likewise.
12703 * user-regs.c (user_reg_add_builtin): Likewise.
12705 2014-01-13 Tom Tromey <tromey@redhat.com>
12707 * defs.h (XZALLOC): Remove.
12708 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12709 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12710 (get_ada_tasks_inferior_data): Likewise.
12711 * auto-load.c (get_auto_load_pspace_data): Likewise.
12712 * auxv.c (get_auxv_inferior_data): Likewise.
12713 * bfd-target.c (target_bfd_reopen): Likewise.
12714 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12715 (deprecated_insert_raw_breakpoint): Likewise.
12716 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12717 * corelow.c (core_open): Likewise.
12718 * darwin-nat.c (darwin_check_new_threads): Likewise.
12719 (darwin_attach_pid): Likewise.
12720 * dummy-frame.c (dummy_frame_push): Likewise.
12721 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12722 * dwarf2loc.c (allocate_piece_closure): Likewise.
12723 * elfread.c (elf_symfile_segments): Likewise.
12724 * eval.c (ptrmath_type_p): Likewise.
12725 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12726 * gdbtypes.c (alloc_type_arch): Likewise.
12727 (alloc_type_instance): Likewise.
12728 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12729 * inf-child.c (inf_child_can_use_agent): Likewise.
12730 * inflow.c (get_inflow_inferior_data): Likewise.
12731 * infrun.c (save_infcall_suspend_state): Likewise.
12732 * jit.c (jit_reader_load): Likewise.
12733 (get_jit_objfile_data): Likewise.
12734 (get_jit_program_space_data): Likewise.
12735 (jit_object_open_impl): Likewise.
12736 (jit_symtab_open_impl): Likewise.
12737 (jit_block_open_impl): Likewise.
12738 (jit_frame_sniffer): Likewise.
12739 * linux-fork.c (add_fork): Likewise.
12740 * maint.c (make_command_stats_cleanup): Likewise.
12741 * objfiles.c (get_objfile_pspace_data): Likewise.
12742 * opencl-lang.c (struct lval_closure): Likewise.
12743 * osdata.c (osdata_start_osdata): Likewise.
12744 * progspace.c (new_address_space): Likewise.
12745 (add_program_space): Likewise.
12746 * remote-sim.c (get_sim_inferior_data): Likewise.
12747 * sh-tdep.c (sh_gdbarch_init): Likewise.
12748 * skip.c (Ignore): Likewise.
12749 (skip_delete_command): Likewise.
12750 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12751 (library_list_start_library): Likewise.
12752 (solib_aix_current_sos): Likewise.
12753 * solib-darwin.c (get_darwin_info): Likewise.
12754 (darwin_current_sos): Likewise.
12755 * solib-dsbt.c (get_dsbt_info): Likewise.
12756 * solib-ia64-hpux.c (new_so_list): Likewise.
12757 (ia64_hpux_get_solib_linkage_addr): Likewise.
12758 * solib-spu.c (append_ocl_sos): Likewise.
12759 (spu_current_sos): Likewise.
12760 * solib-svr4.c (get_svr4_info): Likewise.
12761 (svr4_keep_data_in_core): Likewise.
12762 (library_list_start_library): Likewise.
12763 (svr4_default_sos): Likewise.
12764 (svr4_read_so_list): Likewise.
12765 * solib-target.c (library_list_start_library): Likewise.
12766 (solib_target_current_sos): Likewise.
12767 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12768 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12769 * symfile.c (default_symfile_segments): Likewise.
12770 * target-descriptions.c (tdesc_data_init): Likewise.
12771 (tdesc_create_reg): Likewise.
12772 (struct tdesc_type *): Likewise.
12773 (tdesc_create_vector): Likewise.
12774 (tdesc_set_struct_size): Likewise.
12775 (struct tdesc_type *): Likewise.
12776 (tdesc_free_feature): Likewise.
12777 (tdesc_create_feature): Likewise.
12778 * windows-nat.c (windows_add_thread): Likewise.
12779 (windows_make_so): Likewise.
12780 * xml-support.c (gdb_xml_body_text): Likewise.
12781 (gdb_xml_create_parser_and_cleanup): Likewise.
12782 (xml_process_xincludes): Likewise.
12783 * xml-syscall.c (allocate_syscalls_info): Likewise.
12784 (syscall_create_syscall_desc): Likewise.
12786 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12788 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12789 function, with code from i386_stap_parse_special_token.
12790 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12791 (i386_stap_parse_special_token): Move code to the two functions
12792 above; simplify it.
12794 2014-01-09 Pedro Alves <palves@redhat.com>
12795 Hui Zhu <hui@codesourcery.com>
12798 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12799 bp_err_string. Don't mark the location shlib_disabled if the
12800 error thrown wasn't a generic or memory error. Catch errors
12801 thrown while inserting breakpoints in overlayed code. Output
12802 error message of software breakpoints.
12803 * remote.c (remote_insert_breakpoint): If this breakpoint has
12804 target-side commands but this stub doesn't support Z0 packets,
12805 throw NOT_SUPPORTED_ERROR error.
12806 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12807 * target.h (target_insert_breakpoint): Extend comment.
12808 (target_insert_hw_breakpoint): Add comment.
12810 2014-01-08 Pedro Alves <palves@redhat.com>
12812 * remote.c (remote_add_thread): Add threads silently if starting
12814 (remote_notice_new_inferior): If in all-stop, and starting up,
12815 don't call notice_new_inferior.
12816 (get_current_thread): New function, factored out from ...
12817 (add_current_inferior_and_thread): ... this. Adjust.
12818 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12819 found any thread, then select the remote's current thread as GDB's
12820 current thread too.
12822 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12824 * NEWS: Create a new section for the next release branch.
12825 Rename the section of the current branch, now that it has
12828 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12830 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12831 * version.in: Bump version to 7.7.50.DATE-cvs.
12833 2014-01-08 Yao Qi <yao@codesourcery.com>
12835 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12836 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12837 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12839 2014-01-08 Yao Qi <yao@codesourcery.com>
12841 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12842 return value of bfd_get_filename to symbol_file_add_from_bfd.
12844 2014-01-08 Pierre Muller <muller@sourceware.org>
12847 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12848 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12849 to prim_record_mininal_symbol_and_info.
12850 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12851 in call to prim_record_minimal_symbol_and_info.
12852 (read_pe_exported_syms): Set index field of section_data.
12854 2014-01-07 Andrew Pinski <apinski@cavium.com>
12856 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12857 * features/aarch64.c: Regenerate.
12859 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12861 * target.c (return_null): Define.
12862 (update_current_target): Use it instead of return_zero for
12863 functions that return a pointer.
12865 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12867 * source.c (add_path): Fix check for duplicated paths in the previously
12870 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12872 * ada-lang.c: Remove duplicated include statements.
12873 * alphabsd-nat.c: Ditto.
12874 * amd64-darwin-tdep.c: Ditto.
12875 * amd64fbsd-nat.c: Ditto.
12876 * auto-load.c: Ditto.
12878 * breakpoint.c: Ditto.
12879 * dbxread.c: Ditto.
12880 * fork-child.c: Ditto.
12881 * gdb_usleep.c: Ditto.
12882 * i386-darwin-tdep.c: Ditto.
12883 * i386fbsd-nat.c: Ditto.
12885 * inferior.c: Ditto.
12886 * jv-lang.c: Ditto.
12887 * linux-nat.c: Ditto.
12888 * linux-tdep.c: Ditto.
12889 * m68kbsd-nat.c: Ditto.
12890 * m68klinux-nat.c: Ditto.
12891 * microblaze-tdep.c: Ditto.
12892 * mips-linux-tdep.c: Ditto.
12893 * mn10300-tdep.c: Ditto.
12894 * nto-tdep.c: Ditto.
12895 * opencl-lang.c: Ditto.
12897 * printcmd.c: Ditto.
12898 * regcache.c: Ditto.
12899 * remote-m32r-sdi.c: Ditto.
12901 * symfile.c: Ditto.
12903 * tilegx-linux-nat.c: Ditto.
12904 * tilegx-tdep.c: Ditto.
12905 * tracepoint.c: Ditto.
12907 * vaxbsd-nat.c: Ditto.
12908 * windows-nat.c: Ditto.
12909 * xtensa-tdep.c: Ditto.
12911 2014-01-07 Yao Qi <yao@codesourcery.com>
12913 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12915 2014-01-07 Yao Qi <yao@codesourcery.com>
12916 Joel Brobecker <brobecker@adacore.com>
12918 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12919 (pdc_write_regs): Likewise.
12920 (fetch_regs_kernel_thread): Likewise.
12921 (store_regs_kernel_thread): Likewise.
12923 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12925 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12926 tagged type objects to their actual type.
12928 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12930 * ada-valprint.c (print_field_values): Add "language" parameter.
12931 Update calls to print_field_values and print_variant_part.
12932 Pass new parameter "language" in call to val_print instead
12933 of "current_language". Replace call to ada_val_print by call
12935 (print_variant_part): Add "language" parameter.
12936 (ada_val_print_struct_union): Update call to print_field_values.
12938 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12940 * ada-valprint.c (ui_memcpy): Delete.
12941 (ada_print_floating): Update documentation. Add empty line
12942 between between function documentation and implementation.
12943 Delete variable "buffer". Use ui_file_xstrdup in place of
12944 ui_file_put. Minor adjustments following this change.
12946 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12948 * ada-valprint.c (ada_val_print_string): New function,
12949 extracted from ada_val_print_array.
12950 (ada_val_print_array): Replace extracted code by call
12951 to ada_val_print_string followed by a return. Move
12952 "else" branch to the function's top block.
12954 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12956 * ada-valprint.c (ada_val_print_array): Move implementation
12957 down. Rename parameter "offset" and "val" into "offset_aligned"
12958 and "original_value" respectively. Add parameter "offset".
12960 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12962 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12963 re-organizing the code. Change the "???" message printed
12964 when target type is a TYPE_CODE_UNDEF into
12965 "<ref to undefined type>".
12967 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12969 * ada-valprint.c (print_record): Delete, implementation inlined...
12970 (ada_val_print_struct_union): ... here. Remove call to
12971 ada_check_typedef in inlined implementation.
12973 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12975 * ada-valprint.c (ada_val_print_gnat_array): New function,
12976 extracted from ada_val_print_1;
12977 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12978 (ada_val_print_flt, ada_val_print_struct_union)
12979 (ada_val_print_ref): Likewise.
12980 (ada_val_print_1): Delete variables i and elttype.
12981 Replace extracted-out code by call to corresponding
12984 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12986 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12988 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12990 * ada-valprint.c (ada_val_print_1): Replace calls to
12991 ada_val_print_1 by calls to val_print.
12993 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12995 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12996 Update calls to self accordingly. Replace calls to c_val_print
12997 by calls to val_print.
12999 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13001 * ada-valprint.c (print_record): Delete declaration.
13002 (adjust_type_signedness, ada_val_print_1): Likewise.
13003 (ada_val_print): Move function implementation down.
13004 (print_variant_part, print_field_values, print_record):
13005 Move function implementation up.
13007 2014-01-07 Joel Brobecker <brobecker@adacore.com>
13009 * python/py-type.c (typy_get_name): New function.
13010 (type_object_getset): Add entry for attribute "name".
13011 * NEWS: Add entry mentioning this new attribute.
13013 2014-01-07 Yao Qi <yao@codesourcery.com>
13015 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13018 2014-01-07 Yao Qi <yao@codesourcery.com>
13020 * gnu-nat.c (info_port_rights): Add qualifier const to
13023 2014-01-07 Yao Qi <yao@codesourcery.com>
13025 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13027 2014-01-07 Yao Qi <yao@codesourcery.com>
13029 * gnu-nat.c (make_inf) Update declaration.
13030 (make_inf): Make it static.
13031 (inf_set_traced): Likewise.
13032 (inf_port_to_thread, inf_task_died_status): Likewise.
13034 2014-01-07 Yao Qi <yao@codesourcery.com>
13036 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13038 2014-01-07 Yao Qi <yao@codesourcery.com>
13040 * gnu-nat.c (_initialize_gnu_nat): Declare.
13042 2014-01-07 Yao Qi <yao@codesourcery.com>
13044 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13046 (struct gdbarch_info) <byte_order>: Change type to
13048 <byte_order_for_code>: Likewise.
13049 * gdbarch.c, gdbarch.h: Regenerated.
13051 2014-01-06 Sasha Smundak <asmundak@google.com>
13053 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13055 2014-01-06 Tom Tromey <tromey@redhat.com>
13057 * doublest.c (convert_doublest_to_floatformat): Use const, not
13059 * somread.c (som_symtab_read): Likewise.
13061 2014-01-07 Hui Zhu <hui@codesourcery.com>
13063 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13064 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13065 (gdb_bfd_fopen): Ditto.
13066 (gdb_bfd_openr): Ditto.
13067 (gdb_bfd_openw): Ditto.
13068 (gdb_bfd_openr_iovec): Ditto.
13069 (gdb_bfd_fdopenr): Ditto.
13070 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13071 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13073 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13075 * symfile-mem.c (symbol_file_add_from_memory): Removed
13076 gdb_bfd_stash_filename.
13078 2014-01-03 Doug Evans <dje@google.com>
13080 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13083 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13085 Update year range in copyright notice of all files.
13087 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13089 * top.c (print_gdb_version): Set copyright year to 2014.
13091 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13093 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13095 For older changes see ChangeLog-2013.
13101 version-control: never