1 2014-09-22 Gary Benson <gbenson@redhat.com>
3 * target/target.h (target_stop_ptid): Renamed as...
4 (target_stop_and_wait): New function. Updated comment.
6 (target_continue_ptid): Renamed as...
7 (target_continue_no_signal): New function. Updated comment.
10 2014-09-22 Pedro Alves <palves@redhat.com>
12 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
14 * breakpoint.c (enum ugll_insert_mode): New enum.
15 (always_inserted_mode): Now a plain boolean.
16 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
17 (breakpoints_always_inserted_mode): Delete.
18 (breakpoints_should_be_inserted_now): New function.
19 (insert_breakpoints): Pass UGLL_INSERT to
20 update_global_location_list instead of calling
21 insert_breakpoint_locations manually.
22 (create_solib_event_breakpoint_1): New, factored out from ...
23 (create_solib_event_breakpoint): ... this.
24 (create_and_insert_solib_event_breakpoint): Use
25 create_solib_event_breakpoint_1 instead of calling
26 insert_breakpoint_locations manually.
27 (update_global_location_list): Change parameter type from boolean
28 to enum ugll_insert_mode. All callers adjusted. Adjust to use
29 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
30 (update_global_location_list_nothrow): Change parameter type from
31 boolean to enum ugll_insert_mode.
32 (_initialize_breakpoint): "breakpoint always-inserted" option is
33 now a boolean command. Update help text.
34 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
35 (breakpoints_should_be_inserted_now): New declaration.
36 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
37 Remove breakpoints_always_inserted_mode check.
38 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
39 * remote.c (remote_start_remote): Likewise.
41 2014-09-22 Pedro Alves <palves@redhat.com>
43 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
44 (insert_breakpoints): Don't call insert_breakpoint_locations here.
45 Instead, pass UGLL_INSERT to update_global_location_list.
46 (update_global_location_list): Change parameter type from boolean
47 to enum ugll_insert_mode. All callers adjusted. Adjust to use
48 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
49 (create_solib_event_breakpoint_1): New, factored out from ...
50 (create_solib_event_breakpoint): ... this.
51 (create_and_insert_solib_event_breakpoint): Use
52 create_solib_event_breakpoint_1 instead of calling
53 insert_breakpoint_locations manually.
54 (update_global_location_list): Handle UGLL_INSERT.
56 2014-09-22 Pedro Alves <palves@redhat.com>
58 * breakpoint.c (enum ugll_insert_mode): New enum.
59 (update_global_location_list)
60 (update_global_location_list_nothrow): Change parameter type from
61 boolean to enum ugll_insert_mode. All callers adjusted.
63 2014-09-19 Joel Brobecker <brobecker@adacore.com>
65 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
66 SystemTap support in GDB.
68 2014-09-19 Don Breazeal <donb@codesourcery.com>
70 * linux-nat.c (linux_handle_extended_wait): Call
71 linux_ptrace_get_extended_event.
72 (wait_lwp): Call linux_is_extended_waitstatus.
73 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
74 and linux_is_extended_waitstatus.
75 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
76 linux_ptrace_get_extended_event.
77 (linux_ptrace_get_extended_event): New function.
78 (linux_is_extended_waitstatus): New function.
79 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
80 (linux_is_extended_waitstatus): New declarations.
82 2014-09-19 Yao Qi <yao@codesourcery.com>
84 * dwarf2read.c (dwarf_decode_lines): Update declaration.
85 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
86 comments. Callers update.
87 (dwarf_decode_lines): Likewise.
88 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
89 comments. Skip the line table if 'lowpc' is greater than
90 'address'. Don't check
91 dwarf2_per_objfile->has_section_at_zero.
93 2014-09-18 Doug Evans <dje@google.com>
95 * NEWS: Mention new "producer" attribute of gdb.Symtab.
96 * python/py-symtab.c (stpy_get_producer): New function.
97 (symtab_object_getset): Add "producer" attribute.
99 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
102 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
103 (do_captured_read_memory_integer): Remove.
104 (safe_read_memory_integer): Use target_read_memory directly instead
105 of catching errors in do_captured_read_memory_integer.
107 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
109 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
112 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
114 * objc-lang.c (find_implementation_from_class): Remove dead code.
116 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
119 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
120 "fprintf_unfiltered (gdb_stdlog...)".
122 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
125 * breakpoint.h (struct watchpoint): New fields val_bitpos and
127 * breakpoint.c (watch_command_1): Use these fields to retain
128 bitfield information.
129 (extract_bitfield_from_watchpoint_value): New function.
130 (watchpoint_check): Use it.
131 (update_watchpoint): Use it. Optimize the address and length of a
132 HW watchpoint pointing to a bitfield.
133 * value.h (unpack_value_bitfield): New prototype.
134 * value.c (unpack_value_bitfield): Make extern.
136 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
138 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
140 * gnu-nat.c (inf_threads): New function.
141 * gnu-nat.h (inf_threads_ftype): New typedef.
142 (inf_threads): New declaration.
143 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
144 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
145 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
146 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
147 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
148 (i386_gnu_dr_get_control): New functions.
149 (reg_addr): New structure.
150 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
151 i386 debugging register hooks.
152 * NEWS: Mention this.
154 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
156 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
157 vector data transfer instructions.
158 (arm_record_coproc_data_proc): Updated.
160 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
162 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
163 arm_record_exreg_ld_st_insn.
164 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
167 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
169 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
170 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
171 processing instructions.
173 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
175 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
176 for advance SIMD struct ld/st insn.
177 (thumb2_record_decode_insn_handler): Replace stub handler with
178 thumb2_record_asimd_struct_ld_st.
180 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
182 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
183 for asimd, vfp and coprocessor insns.
184 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
185 and coprocessor insns.
186 (thumb2_record_coproc_insn): New function.
187 (thumb2_record_decode_insn_handler): Update coprocessor insns record
189 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
192 2014-09-13 Doug Evans <xdje42@gmail.com>
194 * NEWS: Mention new "queue-signal" command.
195 * infcmd.c (queue_signal_command): New function.
196 (_initialize_infcmd): Add new queue-signal command.
198 2014-09-13 Doug Evans <xdje42@gmail.com>
200 * linux-nat.c (wait_lwp): Add debugging printf.
201 (linux_nat_wait_1): Ditto.
203 2014-09-12 Pedro Alves <palves@redhat.com>
205 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
206 (create_and_insert_solib_event_breakpoint): New functions.
207 * breakpoint.h (create_and_insert_solib_event_breakpoint)
208 (remove_solib_event_breakpoints_at_next_stop): New declarations.
209 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
210 (remove_dbx_link_breakpoint): Delete function.
211 (insert_dbx_link_bpt_in_file): Use
212 create_and_insert_solib_event_breakpoint instead of
213 deprecated_insert_raw_breakpoint.
214 (procfs_wait): Don't check whether we hit __dbx_link here.
215 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
217 * solib-irix.c (base_breakpoint): Delete global.
218 (disable_break): Delete function.
219 (enable_break): Use create_solib_event_breakpoint
220 instead of deprecated_insert_raw_breakpoint.
221 (irix_solib_handle_event): New function.
222 (irix_solib_create_inferior_hook): Don't run the target or disable
223 the mapping-complete breakpoint here.
224 (_initialize_irix_solib): Install irix_solib_handle_event as
225 so_ops->handle_event hook.
227 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
228 Ulrich Weigand <uweigand@de.ibm.com>
231 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
232 instead of read_memory_unsigned_integer.
234 2014-09-12 Gary Benson <gbenson@redhat.com>
236 * nat/linux-waitpid.c: Include common-defs.h.
237 [GDBSERVER]: Add FIXME comment.
238 [!GDBSERVER]: Don't include defs.h or signal.h.
239 (linux_debug) [!GDBSERVER]: Remove empty block.
241 2014-09-12 Gary Benson <gbenson@redhat.com>
243 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
244 Don't include defs.h or server.h.
246 2014-09-12 Gary Benson <gbenson@redhat.com>
248 * nat/linux-btrace.c: Include common-defs.h.
249 Don't include defs.h, server.h or gdbthread.h.
250 * nat/linux-btrace.h (struct target_ops): New forward declaration.
252 2014-09-12 Gary Benson <gbenson@redhat.com>
254 * common/agent.c: Include common-defs.h.
255 Don't include defs.h or server.h.
256 * common/buffer.c: Likewise.
257 * common/common-debug.c: Likewise.
258 * common/common-utils.c: Likewise.
259 * common/errors.c: Likewise.
260 * common/filestuff.c: Likewise.
261 * common/format.c: Likewise.
262 * common/gdb_vecs.c: Likewise.
263 * common/print-utils.c: Likewise.
264 * common/ptid.c: Likewise.
265 * common/rsp-low.c: Likewise.
266 * common/signals.c: Likewise.
267 * common/vec.c: Likewise.
268 * common/xml-utils.c: Likewise.
269 * nat/linux-osdata.c: Likewise.
270 * nat/linux-procfs.c: Likewise.
271 * nat/linux-ptrace.c: Likewise.
272 * nat/mips-linux-watch.c: Likewise.
273 * target/waitstatus.c: Likewise.
275 2014-09-12 Tom Tromey <tromey@redhat.com>
276 Gary Benson <gbenson@redhat.com>
278 * common/common-regcache.h: New file.
279 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
280 * regcache.h: Include common-regcache.h.
281 (regcache_read_pc): Don't declare.
282 * regcache.c (get_thread_regcache_for_ptid): New function.
283 * nat/linux-btrace.c: Don't include regcache.h.
284 Include common-regcache.h.
285 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
287 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
289 * regcache.h (struct regset): Declare.
291 2014-09-11 Pedro Alves <palves@redhat.com>
294 * main.c: Include "infrun.h".
295 (catch_command_errors, catch_command_errors_const): Wait for the
296 foreground command to complete.
297 * top.c (maybe_wait_sync_command_done): New function, factored out
299 (maybe_wait_sync_command_done): ... here.
300 * top.h (maybe_wait_sync_command_done): New declaration.
302 2014-09-11 Tom Tromey <tromey@redhat.com>
303 Gary Benson <gbenson@redhat.com>
305 * common/symbol.h: New file.
306 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
307 * minsyms.c (find_minimal_symbol_address): New function.
308 * common/agent.c: Include common/symbol.h.
309 [!GDBSERVER]: Don't include objfiles.h.
310 (agent_look_up_symbols): Use find_minimal_symbol_address.
312 2014-09-11 Gary Benson <gbenson@redhat.com>
314 * target/target.h (target_stop_ptid, target_continue_ptid):
316 * target.c (target_stop_ptid, target_continue_ptid): New
318 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
319 (agent_run_command): Always use target_stop_ptid and
320 target_continue_ptid.
322 2014-09-11 Tom Tromey <tromey@redhat.com>
323 Gary Benson <gbenson@redhat.com>
325 * target/target.h: New file.
326 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
327 * target.h: Include target/target.h.
328 (target_read_memory, target_write_memory): Don't declare.
329 * target.c (target_read_uint32): New function.
330 * common/agent.c: Include target/target.h.
331 [!GDBSERVER]: Don't include target.h.
332 (helper_thread_id): Type changed to uint32_t.
333 (agent_get_helper_thread_id): Use target_read_uint32.
334 (agent_run_command): Always use target_read_memory and
336 (agent_capability): Type changed to uint32_t.
337 (agent_capability_check): Use target_read_uint32.
339 2014-09-11 Gary Benson <gbenson@redhat.com>
341 * common/common-debug.h (show_debug_regs): Declare.
342 * common/common-debug.c (show_debug_regs): Define.
343 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
344 all uses with show_debug_regs. Replace all uses that considered
345 debug_hw_points as a multi-value integer with straight boolean
347 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
348 with show_debug_regs.
349 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
350 all uses with show_debug_regs.
351 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
352 uses with show_debug_regs.
354 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
356 * findvar.c (address_from_register): Handle targets requiring
357 a special conversion routine even for plain pointer types.
359 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
361 * rs6000-nat.c (exec_one_dummy_insn): Remove.
362 (store_register): Do not call exec_one_dummy_insn.
364 2014-09-10 Joel Brobecker <brobecker@adacore.com>
366 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
367 dereference it first. Use value_enclosing_type instead of
369 (ada_array_length): Likewise.
371 2014-09-10 Joel Brobecker <brobecker@adacore.com>
373 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
374 Adjust function implementation and documentation accordingly.
375 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
376 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
377 Update call to ada_value_ptr_subscript.
379 2014-09-10 Joel Brobecker <brobecker@adacore.com>
381 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
382 instead of VAL's type.
384 2014-09-10 Joel Brobecker <brobecker@adacore.com>
386 * amd64-linux-nat.c: Add <sys/uio.h> #include.
388 2014-09-09 Doug Evans <xdje42@gmail.com>
391 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
392 last parameter to pkg-config, not first.
393 * configure.ac: Pass --with-guile provided pkg-config path to
394 GDB_GUILE_PROGRAM_NAMES.
395 * configure: Regenerate.
397 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
399 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
402 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
404 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
405 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
406 the list of sections determining GDB_OSABI_IRIX.
408 2014-09-09 James Hogan <james.hogan@imgtec.com>
410 * MAINTAINERS (Write After Approval): Add "James Hogan".
412 2014-09-09 James Hogan <james.hogan@imgtec.com>
414 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
416 2014-09-09 Joel Brobecker <brobecker@adacore.com>
418 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
420 2014-09-08 Doug Evans <xdje42@gmail.com>
423 * guile.c: #include <signal.h>.
424 (_initialize_guile): Block SIGCHLD while initializing Guile.
426 Replaces the following, which is reverted.
428 2014-07-26 Doug Evans <xdje42@gmail.com>
431 * configure.ac: Add check for header gc/gc.h.
432 Add check for function setenv.
433 * configure: Regenerate.
434 * config.in: Regenerate.
435 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
437 2014-09-08 Doug Evans <xdje42@gmail.com>
439 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
440 with named constant. Fix style of pointer comparison.
441 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
443 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
446 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
447 decide whether we display the command on "show user".
448 * cli/cli-script.c (show_user_1): Only verify cmdlines after
449 printing command name.
450 * cli/cli-decode.h (cli_user_command_p): Declare new function.
451 * cli/cli-decode.c (cli_user_command_p): Create helper function
452 to verify whether cmd_list_element is a user-defined command.
454 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
457 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
458 Fix goto out of TRY_CATCH.
460 2014-09-06 Doug Evans <xdje42@gmail.com>
461 Tom Tromey <tromey@redhat.com>
464 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
465 $_any_caller_matches.
466 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
467 * python/lib/gdb/function/caller_is.py: New file.
469 2014-09-06 Doug Evans <xdje42@gmail.com>
471 * infcmd.c (program_info): Fix typo.
473 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
476 * stap-probe.c (stap_parse_single_operand): Delete unused variable
477 'number'. New variable 'has_digit'. Rewrite code to deal with
478 subexpressions on SDT probes.
480 2014-09-04 Pedro Alves <palves@redhat.com>
482 * c-exp.y (parse_number): Skip handling base-switching prefixes if
483 the input is only one character long.
485 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
488 * f-valprint.c (f_val_print): Specify the correct print option to
489 use when printing integer values.
491 2014-09-04 Gary Benson <gbenson@redhat.com>
493 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
494 Remove code to cope with LWPs wrapped as PIDs.
495 Add assertions to ensure no wrapped LWPs are passed.
497 2014-09-04 Pedro Alves <palves@redhat.com>
499 * value.c (value_ranges_copy_adjusted): New function, factored out
501 (value_contents_copy_raw): ... here.
502 (unpack_value_bits_as_long_1): Rename back to ...
503 (unpack_bits_as_long): ... this. Remove 'original_value' and
504 'result' parameters. Change return type to LONGEST.
505 (unpack_value_bits_as_long): Delete.
506 (unpack_value_field_as_long_1): Delete.
507 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
508 (unpack_value_bitfield): New function.
509 (value_field_bitfield): Reimplement using unpack_value_bitfield.
510 (value_fetch_lazy): Use unpack_value_bitfield.
511 * value.h (unpack_value_bits_as_long): Delete declaration.
513 2014-09-03 Sasha Smundak <asmundak@google.com>
515 * python/py-frame.c (frapy_read_register): New function.
517 2014-09-03 James Hogan <james.hogan@imgtec.com>
519 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
520 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
522 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
525 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
527 (add_cmd): Set "completer_handle_brkchars" to NULL.
528 * cli/cli-decode.h (struct cmd_list_element)
529 <completer_handle_brkchars>: New field.
530 * command.h (completer_ftype_void): New typedef.
531 (set_cmd_completer_handle_brkchars): New prototype.
532 * completer.c (set_gdb_completion_word_break_characters): New
534 (complete_line_internal): Call "completer_handle_brkchars"
535 callback from command.
536 * completer.h: Include "command.h".
537 (set_gdb_completion_word_break_characters): New prototype.
538 * python/py-cmd.c (cmdpy_completer_helper): New function.
539 (cmdpy_completer_handle_brkchars): New function.
540 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
541 (cmdpy_init): Set completer_handle_brkchars to
542 cmdpy_completer_handle_brkchars.
544 2014-09-03 Gary Benson <gbenson@redhat.com>
546 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
547 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
548 Loop conditions changed to equivalent form.
549 (struct x86_debug_reg_state): Updated dr_ref_count comment.
550 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
551 ALL_DEBUG_ADDRESS_REGISTERS.
553 2014-09-03 Joel Brobecker <brobecker@adacore.com>
555 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
558 2014-09-02 Doug Evans <dje@google.com>
560 * typeprint.c (find_global_typedef): Fix comment.
562 2014-09-02 Gary Benson <gbenson@redhat.com>
564 * i386-nat.h: Renamed as...
565 * x86-nat.h: New file. All type, function and variable name
566 prefixes changed from "i386_" to "x86_". All references updated.
567 * i386-nat.c: Renamed as...
568 * x86-nat.c: New file. All type, function and variable name
569 prefixes changed from "i386_" to "x86_". All references updated.
570 * common/i386-xstate.h: Renamed as...
571 * common/x86-xstate.h: New file. All type, function and variable
572 name prefixes changed from "i386_" to "x86_". All references
574 * nat/i386-cpuid.h: Renamed as...
575 * nat/x86-cpuid.h: New file. All type, function and variable name
576 prefixes changed from "i386_" to "x86_". All references updated.
577 * nat/i386-gcc-cpuid.h: Renamed as...
578 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
579 name prefixes changed from "i386_" to "x86_". All references
581 * nat/i386-dregs.h: Renamed as...
582 * nat/x86-dregs.h: New file. All type, function and variable name
583 prefixes changed from "i386_" to "x86_". All references updated.
584 * nat/i386-dregs.c: Renamed as...
585 * nat/x86-dregs.c: New file. All type, function and variable name
586 prefixes changed from "i386_" to "x86_". All references updated.
588 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
590 * varobj.c (_initialize_varobj): Move to the end of file.
592 2014-08-29 Gary Benson <gbenson@redhat.com>
594 * common/common-exceptions.h: New file.
595 * common/common-exceptions.c: Likewise.
596 * Makefile.in (SFILES): Add common/common-exceptions.c.
597 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
598 (COMMON_OBS): Add common-exceptions.o.
599 (common-exceptions.o): New rule.
600 * exceptions.h (common-exceptions.h): Include.
601 (gdb_setjmp.h): Do not include.
602 (return_reason): Moved to common-exceptions.h.
603 (enum return_reason): Likewise.
604 (RETURN_MASK): Likewise.
605 (typedef return_mask): Likewise.
606 (enum errors): Likewise.
607 (struct gdb_exception): Likewise.
608 (exceptions_state_mc_init): Likewise.
609 (exceptions_state_mc_action_iter): Likewise.
610 (exceptions_state_mc_action_iter_1): Likewise.
611 (TRY_CATCH): Likewise.
612 (throw_exception): Likewise.
613 (throw_verror): Likewise.
614 (throw_vquit): Likewise.
615 (throw_error): Likewise.
616 (throw_quit): Likewise.
617 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
618 (enum catcher_action): Likewise.
619 (struct catcher): Likewise.
620 (current_catcher): Likewise.
621 (catcher_list_size): Likewise.
622 (exceptions_state_mc_init): Likewise.
623 (catcher_pop): Likewise.
624 (exceptions_state_mc): Likewise.
625 (exceptions_state_mc_action_iter): Likewise.
626 (exceptions_state_mc_action_iter_1): Likewise.
627 (throw_exception): Likewise.
628 (exception_messages): Likewise.
629 (exception_messages_size): Likewise.
630 (throw_it): Likewise.
631 (throw_verror): Likewise.
632 (throw_vquit): Likewise.
633 (throw_error): Likewise.
634 (throw_quit): Likewise.
635 (prepare_to_throw_exception): New function.
637 2014-08-29 Gary Benson <gbenson@redhat.com>
639 * common/gdb_setjmp.h: New file.
640 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
641 * configure.ac: Move sigsetjmp check...
642 * common/common.m4: ...here.
643 * configure: Regenerate.
644 * cp-support.c (SIGJMP_BUF): Delete.
645 (SIGSETJMP): Likewise.
646 (SIGLONGJMP): Likewise.
647 * exceptions.h (gdb_setjmp.h): Include.
648 (setjmp.h): Do not include.
649 (EXCEPTIONS_SIGJMP_BUF): Delete.
650 (EXCEPTIONS_SIGSETJMP): Likewise.
651 (EXCEPTIONS_SIGLONGJMP): Likewise.
652 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
654 * exceptions.c: Likewise.
656 2014-08-29 Gary Benson <gbenson@redhat.com>
658 * cleanups.h: Moved to...
659 * common/cleanups.h: New file.
660 * cleanups.c: Moved to...
661 * common/cleanups.c: New file. Include common-defs.h and
662 cleanups.h. Do not include defs.h.
663 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
664 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
665 (cleanups.o): New rule.
667 2014-08-29 Gary Benson <gbenson@redhat.com>
669 * common/errors.h (internal_warning): New declaration.
670 (internal_vwarning): Likewise.
671 * common/errors.c (internal_warning): New function.
672 * utils.h (internal_warning): Don't declare.
673 (internal_vwarning): Likewise.
674 * utils.c (internal_warning): Removed.
676 2014-08-29 Gary Benson <gbenson@redhat.com>
678 * main.c (captured_main): Use warning during startup.
679 Prefix startup warning messages with command name.
681 2014-08-29 Gary Benson <gbenson@redhat.com>
683 * main.c (captured_main): Handle usage errors with error.
685 2014-08-29 Gary Benson <gbenson@redhat.com>
687 * go32-nat.c (go32_create_inferior): Replace a fprintf/
688 exit pair with a call to error. Wrap the message with _().
690 2014-08-29 Gary Benson <gbenson@redhat.com>
692 * main.c (captured_main): Replace a fprintf/exit
693 pair with a call to error. Wrap the message with _().
695 2014-08-29 Gary Benson <gbenson@redhat.com>
697 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
698 pairs with calls to error. Wrap the message with _().
700 2014-08-29 Gary Benson <gbenson@redhat.com>
702 * utils.c (vwarning): Protect calls to target_terminal_ours
705 2014-08-29 Gary Benson <gbenson@redhat.com>
707 * exceptions.c (print_flush): Protect calls to
708 target_terminal_ours and wrap_here.
710 2014-08-29 Gary Benson <gbenson@redhat.com>
712 * utils.h (filtered_printing_initialized): New declaration.
713 * utils.c (abort_with_message): New function.
714 (internal_vproblem): Use abort_with_message for first level
715 recursive internal problems, and if gdb_stderr is not set up.
716 Protect calls to target_terminal_ours, begin_line and query.
718 2014-08-28 Doug Evans <dje@google.com>
720 * symtab.c (in_prologue): Move definition to better spot.
721 (skip_prologue_using_sal): Ditto.
723 2014-08-28 Doug Evans <dje@google.com>
725 * symtab.c (find_function_start_sal): Move definition to better spot.
727 2014-08-28 Yao Qi <yao@codesourcery.com>
729 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
730 found_stack_adjust in forward scan. Remove condition check
731 on found_stack_adjust which is always true. Indent the code.
733 2014-08-28 Yao Qi <yao@codesourcery.com>
735 * dwarf2read.c (dwarf_decode_lines): Update declaration.
736 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
737 (dwarf_decode_lines): Remove argument
738 want_line_info. Remove condition check on want_line_info.
741 2014-08-27 Doug Evans <dje@google.com>
743 * dwarf2read.c (dwarf_record_line): Fix typo.
745 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
747 * target.h (struct target_ops::to_terminal_save_ours): Remove
749 (target_terminal_save_ours): Remove macro.
750 * target-delegates.c: Regenerate.
751 * inf-child.c (inf_child_target): Don't set the nonexistent
752 field to_terminal_save_ours.
753 * inferior.h (child_terminal_save_ours): Remove declaration.
754 * terminal.h (gdb_save_tty_state): New declaration.
755 * inflow.c (child_terminal_save_ours): Rename to ...
756 (gdb_save_tty_state): ... this.
757 * tui/tui.c: Include terminal.h.
758 (tui_enable): Use gdb_save_tty_state instead of
759 target_terminal_save_ours.
760 (tui_disable): Likewise.
762 2014-08-25 Doug Evans <dje@google.com>
764 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
765 Pass NULL instead of 0 for context pointer.
767 2014-08-25 Yao Qi <yao@codesourcery.com>
769 * dwarf2read.c: Fix grammatical error.
771 2014-08-24 Yao Qi <yao@codesourcery.com>
773 * dwarf2read.c (scan_partial_symbols): Update comments.
774 Rename argument 'need_pc' with 'set_addrmap'.
775 (add_partial_namespace): Rename argument 'need_pc' with
777 (add_partial_module): Likewise.
778 (add_partial_subprogram): Likewise. Update comments.
779 (dwarf2_name): Fix typo.
781 2014-08-22 Doug Evans <dje@google.com>
784 * dwarf2read.c (dwarf_record_line_p): New function.
785 (dwarf_decode_lines_1): Ignore subsequent line number entries
786 for the same line if any entry had a non-zero discriminator.
788 2014-08-22 Doug Evans <dje@google.com>
790 * buildsym.h (record_line_ftype): New typedef.
791 (record_line): Use it.
792 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
793 (dwarf_decode_lines_1): Call them.
795 2014-08-22 Yao Qi <yao@codesourcery.com>
797 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
798 (ctf_end): Remove code.
800 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
802 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
803 (linux_make_corefile_notes): call update_thread_list, protected against
806 2014-08-21 Pedro Alves <palves@redhat.com>
808 * infcmd.c (attach_command): Remove comment.
810 2014-08-21 Bin Cheng <bin.cheng@arm.com>
812 * aarch64-linux-nat.c (dr_changed_t): Change the type from
813 unsigned LONGEST to ULONGEST.
815 2014-08-20 Pedro Alves <palves@redhat.com>
817 * Makefile.in (check-read1): New rule.
819 2014-08-20 Joel Brobecker <brobecker@adacore.com>
821 * value.c (value_from_contents_and_address): Strip resolved_type's
822 typedef layers before checking its TYPE_DATA_LOCATION.
824 2014-08-20 Pedro Alves <palves@redhat.com>
826 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
828 2014-08-20 Yao Qi <yao@codesourcery.com>
830 * amd64-tdep.c (amd64_classify): Add a blank line after the
831 example. Move "*/" to a new line.
832 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
833 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
834 * dwarf2read.c (psymtab_include_file_name): Likewise.
836 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
837 Pedro Alves <palves@redhat.com>
841 * ada-lang.c (coerce_unspec_val_to_type): Use
842 value_contents_copy_raw.
843 * ada-valprint.c (val_print_packed_array_elements): Adjust.
844 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
845 * cp-valprint.c (cp_print_value_fields): Let the common printing
846 code handle optimized out values.
847 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
848 * d-valprint.c (dynamic_array_type): Use
849 value_bits_any_optimized_out.
850 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
851 check_any_valid fields.
852 (check_pieced_value_bits): Delete and inline ...
853 (check_pieced_synthetic_pointer): ... here.
854 (check_pieced_value_validity): Delete.
855 (check_pieced_value_invalid): Delete.
856 (pieced_value_funcs): Remove check_validity and check_any_valid
858 (read_pieced_value): Use mark_value_bits_optimized_out.
859 (write_pieced_value): Switch to use
860 mark_value_bytes_optimized_out.
861 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
862 of assuming the whole value is optimized out.
863 * findvar.c (read_frame_register_value): Remove special handling
864 of optimized out registers.
865 (value_from_register): Use mark_value_bytes_optimized_out.
866 * frame-unwind.c (frame_unwind_got_optimized): Use
867 mark_value_bytes_optimized_out.
868 * jv-valprint.c (java_value_print): Adjust.
869 (java_print_value_fields): Let the common printing code handle
870 optimized out values.
871 * mips-tdep.c (mips_print_register): Remove special handling of
872 optimized out registers.
873 * opencl-lang.c (lval_func_check_validity): Delete.
874 (lval_func_check_any_valid): Delete.
875 (opencl_value_funcs): Remove check_validity and check_any_valid
877 * p-valprint.c (pascal_object_print_value_fields): Let the common
878 printing code handle optimized out values.
879 * stack.c (read_frame_arg): Remove special handling of optimized
880 out values. Fetch both VAL and ENTRYVAL before comparing
881 contents. Adjust to value_available_contents_eq rename.
882 * valprint.c (valprint_check_validity)
883 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
884 (val_print_array_elements): Adjust.
885 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
886 (value_bits_any_optimized_out): New function.
887 (value_entirely_covered_by_range_vector): New function, factored
888 out from value_entirely_unavailable.
889 (value_entirely_unavailable): Reimplement.
890 (value_entirely_optimized_out): New function.
891 (insert_into_bit_range_vector): New function, factored out from
892 mark_value_bits_unavailable.
893 (mark_value_bits_unavailable): Reimplement.
894 (struct ranges_and_idx): New struct.
895 (find_first_range_overlap_and_match): New function, factored out
896 from value_available_contents_bits_eq.
897 (value_available_contents_bits_eq): Rename to ...
898 (value_contents_bits_eq): ... this. Check both unavailable
899 contents and optimized out contents.
900 (value_available_contents_eq): Rename to ...
901 (value_contents_eq): ... this.
902 (allocate_value_lazy): Remove reference to the old optimized_out
904 (allocate_optimized_out_value): Use
905 mark_value_bytes_optimized_out.
906 (require_not_optimized_out): Adjust to check whether the
907 optimized_out vec is empty.
908 (ranges_copy_adjusted): New function, factored out from
909 value_contents_copy_raw.
910 (value_contents_copy_raw): Also copy the optimized out ranges.
911 Assert the destination ranges aren't optimized out.
912 (value_contents_copy): Update comment, remove call to
913 require_not_optimized_out.
914 (value_contents_equal): Adjust to check whether the optimized_out
916 (set_value_optimized_out, value_optimized_out_const): Delete.
917 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
919 (value_entirely_optimized_out, value_bits_valid): Delete.
920 (value_copy): Take a VEC copy of the 'optimized_out' field.
921 (value_primitive_field): Remove special handling of optimized out.
922 (value_fetch_lazy): Assert that lazy values have no unavailable
923 regions. Use value_bits_any_optimized_out. Remove some special
924 handling for optimized out values.
925 * value.h: Add intro comment about <optimized out> and
927 (struct lval_funcs): Remove check_validity and check_any_valid
929 (set_value_optimized_out, value_optimized_out_const): Remove.
930 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
932 (value_bits_any_optimized_out): New declaration.
933 (value_bits_valid): Delete declaration.
934 (value_available_contents_eq): Rename to ...
935 (value_contents_eq): ... this, and extend comments.
937 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
939 Fix -fsanitize=address on unreadable inferior strings.
940 * valprint.c (val_print_string): Fix access before BUFFER.
942 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
944 * target.c (target_struct_size): Remove.
945 (target_struct_allocsize): Remove.
946 (DEFAULT_ALLOCSIZE): Remove.
947 (target_ops_p): New typedef.
948 (DEF_VEC_P (target_ops_p)): New vector type.
949 (target_structs): Change type to VEC (target_ops_p).
950 (add_target_with_completer): Replace "push" code by VEC_safe_push.
951 (find_default_run_target): Rewrite for loop following changes to
954 2014-08-19 Joel Brobecker <brobecker@adacore.com>
956 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
957 Adjust code accordingly. Adjust function description comment.
959 2014-08-19 Yao Qi <yao@codesourcery.com>
961 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
964 2014-08-19 Alan Modra <amodra@gmail.com>
966 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
967 * config.in: Regenerate.
968 * configure: Regenerate.
970 2014-08-19 Tom Tromey <tromey@redhat.com>
971 Gary Benson <gbenson@redhat.com>
973 * common/common-debug.h: New file.
974 * common/common-debug.c: Likewise.
976 * Makefile.in (SFILES): Add common/common-debug.c.
977 (HFILES_NO_SRCDIR): Add common/common-debug.h.
978 (COMMON_OBS): Add common-debug.o and debug.o.
979 (common-debug.o): New rule.
980 * common/common-defs.h: Include common-debug.h.
981 * common/agent.c (debug_agent_printf): New function.
982 (DEBUG_AGENT): Redefine.
983 * nat/i386-dregs.c (debug_printf): Undefine.
985 2014-08-19 Gary Benson <gbenson@redhat.com>
987 * common/common-defs.h: Include print-utils.h.
988 * utils.h: Do not include print-utils.h.
990 2014-08-19 Tom Tromey <tromey@redhat.com>
991 Gary Benson <gbenson@redhat.com>
993 * common/common-types.h: New file.
994 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
995 * common/common-defs.h: Include common-types.h.
996 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
999 2014-08-19 Tom Tromey <tromey@redhat.com>
1000 Gary Benson <gbenson@redhat.com>
1002 * common/errors.h: New file.
1003 * common/errors.c: Likewise.
1004 * Makefile.in (SFILES): Add common/errors.c.
1005 (HFILES_NO_SRCDIR): Add common/errors.h.
1006 (COMMON_OBS): Add errors.o.
1007 (errors.o): New rule.
1008 * common/common-defs.h: Include errors.h.
1009 * utils.h (perror_with_name, error, verror, warning, vwarning):
1011 * common/common-utils.h: (malloc_failure, internal_error):
1014 2014-08-19 Gary Benson <gbenson@redhat.com>
1016 * utils.c (internal_vproblem): Always print the message.
1018 2014-08-18 Doug Evans <dje@google.com>
1020 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1022 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1024 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1025 Return 0 if TYPE is dynamic.
1026 (print_range): Add handling of dynamic ranges.
1028 2014-08-18 Keven Boell <keven.boell@intel.com>
1029 Joel Brobecker <brobecker@adacore.com>
1031 * gdbtypes.h (struct main_type): Add field "data_location".
1032 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1033 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1034 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1035 a dynamic data location.
1036 (resolve_dynamic_type): Add DW_AT_data_location handling.
1037 (copy_recursive, copy_type): Copy the data_location information
1039 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1040 * value.c (value_from_contents_and_address): Add
1041 DW_AT_data_location handling.
1043 2014-08-18 Keven Boell <keven.boell@intel.com>
1044 Joel Brobecker <brobecker@adacore.com>
1046 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1047 field "get_object_address".
1048 * dwarf2expr.c (execute_stack_op): Add handling for
1049 DW_OP_push_object_address.
1050 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1051 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1052 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1053 (dwarf_expr_get_obj_addr): New function.
1054 (dwarf_expr_ctx_funcs): Add get_object_address field.
1055 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1056 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1057 (dwarf2_evaluate_property): Add parameter "address". Use it.
1058 (needs_get_obj_addr): New function.
1059 (needs_frame_ctx_funcs): Add get_object_address field.
1060 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1061 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1062 (resolve_dynamic_array): Likewise.
1064 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1066 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1067 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1068 fixed value for records and unions for which some GNAT encodings
1071 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1073 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1074 rewrite to avoid "else if" and "else" constructs. Should be
1075 a no-op in practice.
1077 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1079 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1082 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1085 * eval.c: Update all calls to find_overload_match.
1086 * valarith.c: Likewise.
1087 (value_user_defined_cpp_op, value_user_defined_op): New
1088 argument NOSIDE. Update all callers.
1089 * valops.c (find_overload_match): New argument NOSIDE.
1090 * value.h (find_overload_match): Update signature.
1092 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1094 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1095 'items' methods instead of 'iteritems' method on dictionaries.
1097 2014-08-15 Doug Evans <dje@google.com>
1099 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1102 2014-08-15 Doug Evans <dje@google.com>
1104 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1106 2014-08-15 Doug Evans <dje@google.com>
1108 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1110 2014-08-15 Doug Evans <dje@google.com>
1112 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1115 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1117 * dcache.h: Include target.h, to avoid compile time warnings.
1119 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1121 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1122 frame_info" partial declaration.
1123 * gdbarch.h: Regenerate.
1125 2014-08-15 Yao Qi <yao@codesourcery.com>
1127 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1128 Add parameter 'decode_for_pst_p'. Callers update.
1130 2014-08-13 Yao Qi <yao@codesourcery.com>
1133 * configure.ac: Use local variable 'pos'.
1134 * configure: Regenerated.
1136 2014-08-11 Doug Evans <dje@google.com>
1138 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1139 message, it is redundant with "Reading symbols from ..." message.
1141 2014-08-10 Doug Evans <xdje42@gmail.com>
1143 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1145 2014-08-09 Yao Qi <yao@codesourcery.com>
1148 * remote.c (remote_xfer_partial): Remove dead code.
1150 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1152 * ia64-linux-tdep.c: Include "regset.h".
1153 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1154 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1155 (ia64_linux_supply_fpregset): New function.
1156 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1157 (ia64_linux_regset_from_core_section): New function.
1158 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1161 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1163 * m68klinux-tdep.c: Include "regset.h".
1164 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1165 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1166 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1167 (m68k_linux_regset_from_core_section): New function.
1168 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1171 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1173 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1174 function. Move logic to...
1175 (tilegx_linux_regmap): ... this new register map.
1176 (tilegx_linux_regset): Refer to register map, replace supply
1177 method by regcache_supply_regset, and add collect method.
1178 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1179 TILEGX_FIRST_EASY_REGNUM.
1181 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1183 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1184 that calls regcache_supply_regset and handles the EPC register
1185 separately. Move main logic to...
1186 (score7_linux_gregmap): ... this new register map.
1187 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1188 (score7_linux_gregset): Refer to register map. Add collect method.
1189 (score7_linux_regset_from_core_section): Replace
1190 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1191 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1192 (struct regset): Delete unused forward declaraction.
1193 (struct pt_regs): Delete structure definition.
1194 (elf_gregset_t): Delete typedef.
1196 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1198 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1199 (nios2_core_regset): Add collect method.
1201 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1203 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1204 platform-independent and don't write to read-only input buffer.
1205 (m32r_linux_collect_gregset): New function.
1206 (m32r_linux_gregset): Add collect method.
1208 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1210 * hppa-linux-tdep.c (greg_map): Rename to...
1211 (hppa_linux_gregmap): ... this. Also convert to
1212 regcache_map_entry format.
1213 (hppa_linux_supply_regset): Delete function.
1214 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1215 (hppa_linux_fpregmap): ... this new register map.
1216 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1217 register map, replace supply method by regcache_supply_regset, and
1218 add collect method regcache_collect_regset.
1220 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1222 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1223 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1224 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1225 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1226 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1227 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1228 (frv_linux_supply_gregset): Replace main logic by call to
1229 regcache_supply_regset, but keep clearing gr32-gr63.
1230 (frv_linux_supply_fpregset): Delete function.
1231 (frv_linux_gregset): Refer to appropriate register map and add
1232 regcache_collect_regset as the collect method.
1233 (frv_linux_fpregset): Likewise. Also exchange the supply method
1234 by regcache_supply_regset.
1236 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1238 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1239 by call to alpha_supply_int_regs.
1240 (alpha_linux_collect_gregset): New function.
1241 (alpha_linux_supply_fpregset): Replace logic by call to
1242 alpha_supply_fp_regs.
1243 (alpha_linux_collect_fpregset): New function.
1244 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1246 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1248 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1249 by call to regcache_collect_regset.
1250 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1251 instead of aarch64_linux_supply_gregset/_fpregset.
1252 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1253 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1254 header file instead.
1255 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1256 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1257 functions. Move logic to ...
1258 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1260 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1261 refer to new register maps, replace *_regset_from_core by
1262 regcache_supply_regset, and also use regcache_collect_regset.
1263 * aarch64-linux-tdep.h: Include "regset.h".
1264 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1266 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1267 macros, moved from C source file.
1268 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1269 variable declarations.
1271 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1273 * s390-linux-nat.c: Include "regset.h".
1274 (regmap_gregset): Delete macro.
1275 (s390_64_regmap_gregset): New register map for
1276 regcache_supply/_collect_regset.
1277 (s390_64_gregset): New regset.
1278 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1279 (regmap_fpregset): Delete macro.
1280 (s390_native_supply, s390_native_collect): Delete functions.
1281 (supply_gregset, fill_gregset): Replace s390-specific regmap
1282 handling by a call to regcache_supply/_collect_regset.
1283 (supply_fpregset, fill_fpregset): Call regcache_supply/
1284 _collect_regset instead of s390_native_supply/_collect.
1285 (fetch_regset, store_regset): Likewise. Also change the last
1286 parameter to a regset instead of a regmap.
1287 (s390_linux_fetch_inferior_registers)
1288 (390_linux_store_inferior_registers): Adjust last parameter in
1289 calls to fetch_regset and store_regset.
1290 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1291 (s390_gregmap): ... this. Also make static const and convert to
1292 regcache_map_entry format.
1293 (s390x_regmap_gregset): Delete.
1294 (s390_regmap_fpregset): Rename to...
1295 (s390_fpregmap): ... this. Make static const and convert to
1296 regcache_map_entry format.
1297 (s390_regmap_upper, s390_regmap_last_break)
1298 (s390x_regmap_last_break, s390_regmap_system_call)
1299 (s390_regmap_tdb): Likewise.
1300 (s390_supply_regset, s390_collect_regset): Remove functions.
1301 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1303 (s390_gregset, s390_fpregset, s390_upper_regset)
1304 (s390_last_break_regset, s390x_last_break_regset)
1305 (s390_system_call_regset, s390_tdb_regset): Make global and
1306 replace s390_supply/_collect_regset by regcache_supply/
1308 (s390x_gregset): Delete.
1309 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1310 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1311 (s390_regmap_fpregset, s390_regmap_last_break)
1312 (s390x_regmap_last_break, s390_regmap_system_call)
1313 (s390_regmap_tdb): Delete global variable declarations.
1314 (s390_gregset, s390_fpregset, s390_last_break_regset)
1315 (s390x_last_break_regset, s390_system_call_regset)
1316 (s390_tdb_regset): New global variable declarations.
1318 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1320 * regcache.c: Include "regset.h".
1321 (regcache_transfer_regset): New local function.
1322 (regcache_supply_regset, regcache_collect_regset): New functions.
1323 * regcache.h (struct regcache_map_entry): New structure.
1324 (REGCACHE_MAP_SKIP): New enum value.
1325 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1327 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1329 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1330 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1331 (ppc_linux_collect_gregset ): Likewise.
1332 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1333 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1334 (ppc_collect_vrregset): Likewise.
1335 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1338 2014-08-07 Yao Qi <yao@codesourcery.com>
1340 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1341 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1342 * remote.c (remote_read_bytes): Likewise.
1344 2014-08-07 Yao Qi <yao@codesourcery.com>
1346 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1348 2014-08-07 Yao Qi <yao@codesourcery.com>
1351 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1352 TARGET_XFER_OK instead of 0.
1354 2014-08-07 Gary Benson <gbenson@redhat.com>
1356 * common/common-defs.h: Include errno.h.
1357 * defs.h: Do not include errno.h.
1358 * ada-typeprint.c: Likewise.
1359 * c-typeprint.c: Likewise.
1360 * core-regset.c: Likewise.
1361 * corefile.c: Likewise.
1362 * corelow.c: Likewise.
1363 * event-loop.c: Likewise.
1364 * f-typeprint.c: Likewise.
1365 * gnu-nat.c: Likewise.
1366 * go32-nat.c: Likewise.
1367 * i386gnu-nat.c: Likewise.
1368 * m2-typeprint.c: Likewise.
1369 * nat/linux-btrace.c: Likewise.
1370 * p-typeprint.c: Likewise.
1371 * procfs.c: Likewise.
1372 * remote-sim.c: Likewise.
1373 * rs6000-nat.c: Likewise.
1374 * target.c: Likewise.
1375 * typeprint.c: Likewise.
1376 * ui-file.c: Likewise.
1377 * valops.c: Likewise.
1378 * valprint.c: Likewise.
1380 2014-08-07 Gary Benson <gbenson@redhat.com>
1382 * common/common-defs.h: Include string.h.
1383 * aarch64-tdep.c: Do not include string.h.
1384 * ada-exp.y: Likewise.
1385 * ada-lang.c: Likewise.
1386 * ada-lex.l: Likewise.
1387 * ada-typeprint.c: Likewise.
1388 * ada-valprint.c: Likewise.
1389 * aix-thread.c: Likewise.
1390 * alpha-linux-tdep.c: Likewise.
1391 * alpha-mdebug-tdep.c: Likewise.
1392 * alpha-nat.c: Likewise.
1393 * alpha-osf1-tdep.c: Likewise.
1394 * alpha-tdep.c: Likewise.
1395 * alphanbsd-tdep.c: Likewise.
1396 * amd64-dicos-tdep.c: Likewise.
1397 * amd64-linux-tdep.c: Likewise.
1398 * amd64-nat.c: Likewise.
1399 * amd64-sol2-tdep.c: Likewise.
1400 * amd64fbsd-tdep.c: Likewise.
1401 * amd64obsd-tdep.c: Likewise.
1402 * arch-utils.c: Likewise.
1403 * arm-linux-nat.c: Likewise.
1404 * arm-linux-tdep.c: Likewise.
1405 * arm-tdep.c: Likewise.
1406 * arm-wince-tdep.c: Likewise.
1407 * armbsd-tdep.c: Likewise.
1408 * armnbsd-nat.c: Likewise.
1409 * armnbsd-tdep.c: Likewise.
1410 * armobsd-tdep.c: Likewise.
1411 * avr-tdep.c: Likewise.
1412 * ax-gdb.c: Likewise.
1413 * ax-general.c: Likewise.
1414 * bcache.c: Likewise.
1415 * bfin-tdep.c: Likewise.
1416 * breakpoint.c: Likewise.
1417 * build-id.c: Likewise.
1418 * buildsym.c: Likewise.
1419 * c-exp.y: Likewise.
1420 * c-lang.c: Likewise.
1421 * c-typeprint.c: Likewise.
1422 * c-valprint.c: Likewise.
1423 * charset.c: Likewise.
1424 * cli-out.c: Likewise.
1425 * cli/cli-cmds.c: Likewise.
1426 * cli/cli-decode.c: Likewise.
1427 * cli/cli-dump.c: Likewise.
1428 * cli/cli-interp.c: Likewise.
1429 * cli/cli-logging.c: Likewise.
1430 * cli/cli-script.c: Likewise.
1431 * cli/cli-setshow.c: Likewise.
1432 * cli/cli-utils.c: Likewise.
1433 * coffread.c: Likewise.
1434 * common/agent.c: Likewise.
1435 * common/buffer.c: Likewise.
1436 * common/buffer.h: Likewise.
1437 * common/common-utils.c: Likewise.
1438 * common/filestuff.c: Likewise.
1439 * common/filestuff.c: Likewise.
1440 * common/format.c: Likewise.
1441 * common/print-utils.c: Likewise.
1442 * common/rsp-low.c: Likewise.
1443 * common/signals.c: Likewise.
1444 * common/vec.h: Likewise.
1445 * common/xml-utils.c: Likewise.
1446 * core-regset.c: Likewise.
1447 * corefile.c: Likewise.
1448 * corelow.c: Likewise.
1449 * cp-abi.c: Likewise.
1450 * cp-name-parser.y: Likewise.
1451 * cp-support.c: Likewise.
1452 * cp-valprint.c: Likewise.
1453 * cris-tdep.c: Likewise.
1454 * d-exp.y: Likewise.
1455 * darwin-nat.c: Likewise.
1456 * dbxread.c: Likewise.
1457 * dcache.c: Likewise.
1458 * demangle.c: Likewise.
1459 * dicos-tdep.c: Likewise.
1460 * disasm.c: Likewise.
1461 * doublest.c: Likewise.
1462 * dsrec.c: Likewise.
1463 * dummy-frame.c: Likewise.
1464 * dwarf2-frame.c: Likewise.
1465 * dwarf2loc.c: Likewise.
1466 * dwarf2read.c: Likewise.
1467 * elfread.c: Likewise.
1468 * environ.c: Likewise.
1470 * event-loop.c: Likewise.
1471 * exceptions.c: Likewise.
1473 * expprint.c: Likewise.
1474 * f-exp.y: Likewise.
1475 * f-lang.c: Likewise.
1476 * f-typeprint.c: Likewise.
1477 * f-valprint.c: Likewise.
1478 * fbsd-nat.c: Likewise.
1479 * findcmd.c: Likewise.
1480 * findvar.c: Likewise.
1481 * fork-child.c: Likewise.
1482 * frame.c: Likewise.
1483 * frv-linux-tdep.c: Likewise.
1484 * frv-tdep.c: Likewise.
1486 * gdb_bfd.c: Likewise.
1487 * gdbarch.c: Likewise.
1488 * gdbarch.sh: Likewise.
1489 * gdbtypes.c: Likewise.
1490 * gnu-nat.c: Likewise.
1491 * gnu-v2-abi.c: Likewise.
1492 * gnu-v3-abi.c: Likewise.
1493 * go-exp.y: Likewise.
1494 * go-lang.c: Likewise.
1495 * go32-nat.c: Likewise.
1496 * guile/guile.c: Likewise.
1497 * guile/scm-auto-load.c: Likewise.
1498 * hppa-hpux-tdep.c: Likewise.
1499 * hppa-linux-nat.c: Likewise.
1500 * hppanbsd-tdep.c: Likewise.
1501 * hppaobsd-tdep.c: Likewise.
1502 * i386-cygwin-tdep.c: Likewise.
1503 * i386-dicos-tdep.c: Likewise.
1504 * i386-linux-tdep.c: Likewise.
1505 * i386-nto-tdep.c: Likewise.
1506 * i386-sol2-tdep.c: Likewise.
1507 * i386-tdep.c: Likewise.
1508 * i386bsd-tdep.c: Likewise.
1509 * i386gnu-nat.c: Likewise.
1510 * i386nbsd-tdep.c: Likewise.
1511 * i386obsd-tdep.c: Likewise.
1512 * i387-tdep.c: Likewise.
1513 * ia64-libunwind-tdep.c: Likewise.
1514 * ia64-linux-nat.c: Likewise.
1515 * inf-child.c: Likewise.
1516 * inf-ptrace.c: Likewise.
1517 * inf-ttrace.c: Likewise.
1518 * infcall.c: Likewise.
1519 * infcmd.c: Likewise.
1520 * inflow.c: Likewise.
1521 * infrun.c: Likewise.
1522 * interps.c: Likewise.
1523 * iq2000-tdep.c: Likewise.
1524 * irix5-nat.c: Likewise.
1525 * jv-exp.y: Likewise.
1526 * jv-lang.c: Likewise.
1527 * jv-typeprint.c: Likewise.
1528 * jv-valprint.c: Likewise.
1529 * language.c: Likewise.
1530 * linux-fork.c: Likewise.
1531 * linux-nat.c: Likewise.
1532 * lm32-tdep.c: Likewise.
1533 * m2-exp.y: Likewise.
1534 * m2-typeprint.c: Likewise.
1535 * m32c-tdep.c: Likewise.
1536 * m32r-linux-nat.c: Likewise.
1537 * m32r-linux-tdep.c: Likewise.
1538 * m32r-rom.c: Likewise.
1539 * m32r-tdep.c: Likewise.
1540 * m68hc11-tdep.c: Likewise.
1541 * m68k-tdep.c: Likewise.
1542 * m68kbsd-tdep.c: Likewise.
1543 * m68klinux-nat.c: Likewise.
1544 * m68klinux-tdep.c: Likewise.
1545 * m88k-tdep.c: Likewise.
1546 * machoread.c: Likewise.
1547 * macrocmd.c: Likewise.
1549 * mdebugread.c: Likewise.
1550 * mem-break.c: Likewise.
1551 * memattr.c: Likewise.
1552 * memory-map.c: Likewise.
1553 * mep-tdep.c: Likewise.
1554 * mi/mi-cmd-break.c: Likewise.
1555 * mi/mi-cmd-disas.c: Likewise.
1556 * mi/mi-cmd-env.c: Likewise.
1557 * mi/mi-cmd-stack.c: Likewise.
1558 * mi/mi-cmd-var.c: Likewise.
1559 * mi/mi-cmds.c: Likewise.
1560 * mi/mi-console.c: Likewise.
1561 * mi/mi-getopt.c: Likewise.
1562 * mi/mi-interp.c: Likewise.
1563 * mi/mi-main.c: Likewise.
1564 * mi/mi-parse.c: Likewise.
1565 * microblaze-rom.c: Likewise.
1566 * microblaze-tdep.c: Likewise.
1567 * mingw-hdep.c: Likewise.
1568 * minidebug.c: Likewise.
1569 * minsyms.c: Likewise.
1570 * mips-irix-tdep.c: Likewise.
1571 * mips-linux-tdep.c: Likewise.
1572 * mips-tdep.c: Likewise.
1573 * mips64obsd-tdep.c: Likewise.
1574 * mipsnbsd-tdep.c: Likewise.
1575 * mipsread.c: Likewise.
1576 * mn10300-linux-tdep.c: Likewise.
1577 * mn10300-tdep.c: Likewise.
1578 * monitor.c: Likewise.
1579 * moxie-tdep.c: Likewise.
1580 * mt-tdep.c: Likewise.
1581 * nat/linux-btrace.c: Likewise.
1582 * nat/linux-osdata.c: Likewise.
1583 * nat/linux-procfs.c: Likewise.
1584 * nat/linux-ptrace.c: Likewise.
1585 * nat/linux-waitpid.c: Likewise.
1586 * nbsd-tdep.c: Likewise.
1587 * nios2-linux-tdep.c: Likewise.
1588 * nto-procfs.c: Likewise.
1589 * nto-tdep.c: Likewise.
1590 * objc-lang.c: Likewise.
1591 * objfiles.c: Likewise.
1592 * opencl-lang.c: Likewise.
1593 * osabi.c: Likewise.
1594 * osdata.c: Likewise.
1595 * p-exp.y: Likewise.
1596 * p-lang.c: Likewise.
1597 * p-typeprint.c: Likewise.
1598 * parse.c: Likewise.
1599 * posix-hdep.c: Likewise.
1600 * ppc-linux-nat.c: Likewise.
1601 * ppc-sysv-tdep.c: Likewise.
1602 * ppcfbsd-tdep.c: Likewise.
1603 * ppcnbsd-tdep.c: Likewise.
1604 * ppcobsd-tdep.c: Likewise.
1605 * printcmd.c: Likewise.
1606 * procfs.c: Likewise.
1607 * prologue-value.c: Likewise.
1608 * python/py-auto-load.c: Likewise.
1609 * python/py-gdb-readline.c: Likewise.
1610 * ravenscar-thread.c: Likewise.
1611 * regcache.c: Likewise.
1612 * registry.c: Likewise.
1613 * remote-fileio.c: Likewise.
1614 * remote-m32r-sdi.c: Likewise.
1615 * remote-mips.c: Likewise.
1616 * remote-notif.c: Likewise.
1617 * remote-sim.c: Likewise.
1618 * remote.c: Likewise.
1619 * reverse.c: Likewise.
1620 * rs6000-aix-tdep.c: Likewise.
1621 * ser-base.c: Likewise.
1622 * ser-go32.c: Likewise.
1623 * ser-mingw.c: Likewise.
1624 * ser-pipe.c: Likewise.
1625 * ser-tcp.c: Likewise.
1626 * ser-unix.c: Likewise.
1627 * serial.c: Likewise.
1628 * sh-tdep.c: Likewise.
1629 * sh64-tdep.c: Likewise.
1630 * shnbsd-tdep.c: Likewise.
1632 * sol-thread.c: Likewise.
1633 * solib-dsbt.c: Likewise.
1634 * solib-frv.c: Likewise.
1635 * solib-osf.c: Likewise.
1636 * solib-som.c: Likewise.
1637 * solib-spu.c: Likewise.
1638 * solib-target.c: Likewise.
1639 * solib.c: Likewise.
1640 * somread.c: Likewise.
1641 * source.c: Likewise.
1642 * sparc-nat.c: Likewise.
1643 * sparc-sol2-tdep.c: Likewise.
1644 * sparc-tdep.c: Likewise.
1645 * sparc64-tdep.c: Likewise.
1646 * sparc64fbsd-tdep.c: Likewise.
1647 * sparc64nbsd-tdep.c: Likewise.
1648 * sparcnbsd-tdep.c: Likewise.
1649 * spu-linux-nat.c: Likewise.
1650 * spu-multiarch.c: Likewise.
1651 * spu-tdep.c: Likewise.
1652 * stabsread.c: Likewise.
1653 * stack.c: Likewise.
1654 * std-regs.c: Likewise.
1655 * symfile.c: Likewise.
1656 * symmisc.c: Likewise.
1657 * symtab.c: Likewise.
1658 * target.c: Likewise.
1659 * thread.c: Likewise.
1660 * tilegx-linux-nat.c: Likewise.
1661 * tilegx-tdep.c: Likewise.
1663 * tracepoint.c: Likewise.
1664 * tui/tui-command.c: Likewise.
1665 * tui/tui-data.c: Likewise.
1666 * tui/tui-disasm.c: Likewise.
1667 * tui/tui-file.c: Likewise.
1668 * tui/tui-layout.c: Likewise.
1669 * tui/tui-out.c: Likewise.
1670 * tui/tui-regs.c: Likewise.
1671 * tui/tui-source.c: Likewise.
1672 * tui/tui-stack.c: Likewise.
1673 * tui/tui-win.c: Likewise.
1674 * tui/tui-windata.c: Likewise.
1675 * tui/tui-winsource.c: Likewise.
1676 * typeprint.c: Likewise.
1677 * ui-file.c: Likewise.
1678 * ui-out.c: Likewise.
1679 * user-regs.c: Likewise.
1680 * utils.c: Likewise.
1681 * v850-tdep.c: Likewise.
1682 * valarith.c: Likewise.
1683 * valops.c: Likewise.
1684 * valprint.c: Likewise.
1685 * value.c: Likewise.
1686 * varobj.c: Likewise.
1687 * vax-tdep.c: Likewise.
1688 * vaxnbsd-tdep.c: Likewise.
1689 * vaxobsd-tdep.c: Likewise.
1690 * windows-nat.c: Likewise.
1691 * xcoffread.c: Likewise.
1692 * xml-support.c: Likewise.
1693 * xstormy16-tdep.c: Likewise.
1694 * xtensa-linux-nat.c: Likewise.
1696 2014-08-07 Gary Benson <gbenson@redhat.com>
1698 * common/common-defs.h: Include gdb_assert.h.
1699 * aarch64-tdep.c: Do not include gdb_assert.h.
1700 * addrmap.c: Likewise.
1701 * aix-thread.c: Likewise.
1702 * alpha-linux-tdep.c: Likewise.
1703 * alpha-mdebug-tdep.c: Likewise.
1704 * alphanbsd-tdep.c: Likewise.
1705 * amd64-nat.c: Likewise.
1706 * amd64-tdep.c: Likewise.
1707 * amd64bsd-nat.c: Likewise.
1708 * amd64fbsd-nat.c: Likewise.
1709 * amd64fbsd-tdep.c: Likewise.
1710 * amd64nbsd-nat.c: Likewise.
1711 * amd64nbsd-tdep.c: Likewise.
1712 * amd64obsd-nat.c: Likewise.
1713 * amd64obsd-tdep.c: Likewise.
1714 * arch-utils.c: Likewise.
1715 * arm-tdep.c: Likewise.
1716 * armbsd-tdep.c: Likewise.
1718 * bcache.c: Likewise.
1719 * bfin-tdep.c: Likewise.
1720 * blockframe.c: Likewise.
1721 * breakpoint.c: Likewise.
1722 * bsd-kvm.c: Likewise.
1723 * bsd-uthread.c: Likewise.
1724 * buildsym.c: Likewise.
1725 * c-exp.y: Likewise.
1726 * c-lang.c: Likewise.
1727 * charset.c: Likewise.
1728 * cleanups.c: Likewise.
1729 * cli-out.c: Likewise.
1730 * cli/cli-decode.c: Likewise.
1731 * cli/cli-dump.c: Likewise.
1732 * cli/cli-logging.c: Likewise.
1733 * cli/cli-script.c: Likewise.
1734 * cli/cli-utils.c: Likewise.
1735 * coffread.c: Likewise.
1736 * common/common-utils.c: Likewise.
1737 * common/queue.h: Likewise.
1738 * common/signals.c: Likewise.
1739 * common/vec.h: Likewise.
1740 * complaints.c: Likewise.
1741 * completer.c: Likewise.
1742 * corelow.c: Likewise.
1743 * cp-abi.c: Likewise.
1744 * cp-name-parser.y: Likewise.
1745 * cp-namespace.c: Likewise.
1746 * cp-support.c: Likewise.
1747 * cris-tdep.c: Likewise.
1748 * dbxread.c: Likewise.
1749 * dictionary.c: Likewise.
1750 * doublest.c: Likewise.
1751 * dsrec.c: Likewise.
1752 * dummy-frame.c: Likewise.
1753 * dwarf2-frame-tailcall.c: Likewise.
1754 * dwarf2-frame.c: Likewise.
1755 * dwarf2expr.c: Likewise.
1756 * dwarf2loc.c: Likewise.
1757 * dwarf2read.c: Likewise.
1759 * event-loop.c: Likewise.
1760 * exceptions.c: Likewise.
1761 * expprint.c: Likewise.
1762 * f-valprint.c: Likewise.
1763 * fbsd-nat.c: Likewise.
1764 * findvar.c: Likewise.
1765 * frame-unwind.c: Likewise.
1766 * frame.c: Likewise.
1767 * frv-tdep.c: Likewise.
1768 * gcore.c: Likewise.
1769 * gdb-dlfcn.c: Likewise.
1770 * gdb_bfd.c: Likewise.
1771 * gdbarch.c: Likewise.
1772 * gdbarch.sh: Likewise.
1773 * gdbtypes.c: Likewise.
1774 * gnu-nat.c: Likewise.
1775 * gnu-v3-abi.c: Likewise.
1776 * go-lang.c: Likewise.
1777 * guile/scm-exception.c: Likewise.
1778 * guile/scm-gsmob.c: Likewise.
1779 * guile/scm-lazy-string.c: Likewise.
1780 * guile/scm-math.c: Likewise.
1781 * guile/scm-pretty-print.c: Likewise.
1782 * guile/scm-safe-call.c: Likewise.
1783 * guile/scm-utils.c: Likewise.
1784 * guile/scm-value.c: Likewise.
1785 * h8300-tdep.c: Likewise.
1786 * hppa-hpux-nat.c: Likewise.
1787 * hppa-tdep.c: Likewise.
1788 * hppanbsd-tdep.c: Likewise.
1789 * hppaobsd-tdep.c: Likewise.
1790 * i386-darwin-nat.c: Likewise.
1791 * i386-darwin-tdep.c: Likewise.
1792 * i386-nto-tdep.c: Likewise.
1793 * i386-tdep.c: Likewise.
1794 * i386bsd-nat.c: Likewise.
1795 * i386fbsd-tdep.c: Likewise.
1796 * i386gnu-nat.c: Likewise.
1797 * i386nbsd-tdep.c: Likewise.
1798 * i386obsd-tdep.c: Likewise.
1799 * i387-tdep.c: Likewise.
1800 * ia64-libunwind-tdep.c: Likewise.
1801 * ia64-tdep.c: Likewise.
1802 * inf-ptrace.c: Likewise.
1803 * inf-ttrace.c: Likewise.
1804 * infcall.c: Likewise.
1805 * infcmd.c: Likewise.
1806 * infrun.c: Likewise.
1807 * inline-frame.c: Likewise.
1808 * interps.c: Likewise.
1809 * jv-lang.c: Likewise.
1810 * jv-typeprint.c: Likewise.
1811 * linux-fork.c: Likewise.
1812 * linux-nat.c: Likewise.
1813 * linux-thread-db.c: Likewise.
1814 * m32c-tdep.c: Likewise.
1815 * m32r-linux-nat.c: Likewise.
1816 * m32r-tdep.c: Likewise.
1817 * m68k-tdep.c: Likewise.
1818 * m68kbsd-nat.c: Likewise.
1819 * m68kbsd-tdep.c: Likewise.
1820 * m88k-tdep.c: Likewise.
1821 * machoread.c: Likewise.
1822 * macroexp.c: Likewise.
1823 * macrotab.c: Likewise.
1824 * maint.c: Likewise.
1825 * mdebugread.c: Likewise.
1826 * memory-map.c: Likewise.
1827 * mep-tdep.c: Likewise.
1828 * mi/mi-common.c: Likewise.
1829 * microblaze-tdep.c: Likewise.
1830 * mingw-hdep.c: Likewise.
1831 * mips-linux-nat.c: Likewise.
1832 * mips-linux-tdep.c: Likewise.
1833 * mips-tdep.c: Likewise.
1834 * mips64obsd-tdep.c: Likewise.
1835 * mipsnbsd-tdep.c: Likewise.
1836 * mn10300-linux-tdep.c: Likewise.
1837 * mn10300-tdep.c: Likewise.
1838 * moxie-tdep.c: Likewise.
1839 * mt-tdep.c: Likewise.
1840 * nat/linux-btrace.c: Likewise.
1841 * nat/linux-osdata.c: Likewise.
1842 * nat/linux-ptrace.c: Likewise.
1843 * nat/mips-linux-watch.c: Likewise.
1844 * nios2-linux-tdep.c: Likewise.
1845 * nios2-tdep.c: Likewise.
1846 * objc-lang.c: Likewise.
1847 * objfiles.c: Likewise.
1848 * obsd-nat.c: Likewise.
1849 * opencl-lang.c: Likewise.
1850 * osabi.c: Likewise.
1851 * parse.c: Likewise.
1852 * ppc-linux-nat.c: Likewise.
1853 * ppc-sysv-tdep.c: Likewise.
1854 * ppcfbsd-nat.c: Likewise.
1855 * ppcfbsd-tdep.c: Likewise.
1856 * ppcnbsd-nat.c: Likewise.
1857 * ppcnbsd-tdep.c: Likewise.
1858 * ppcobsd-nat.c: Likewise.
1859 * ppcobsd-tdep.c: Likewise.
1860 * printcmd.c: Likewise.
1861 * procfs.c: Likewise.
1862 * prologue-value.c: Likewise.
1863 * psymtab.c: Likewise.
1864 * python/py-lazy-string.c: Likewise.
1865 * python/py-value.c: Likewise.
1866 * regcache.c: Likewise.
1867 * reggroups.c: Likewise.
1868 * registry.c: Likewise.
1869 * remote-sim.c: Likewise.
1870 * remote.c: Likewise.
1871 * rs6000-aix-tdep.c: Likewise.
1872 * rs6000-tdep.c: Likewise.
1873 * s390-linux-tdep.c: Likewise.
1874 * score-tdep.c: Likewise.
1875 * ser-base.c: Likewise.
1876 * ser-mingw.c: Likewise.
1877 * sh-tdep.c: Likewise.
1878 * sh64-tdep.c: Likewise.
1879 * solib-darwin.c: Likewise.
1880 * solib-spu.c: Likewise.
1881 * solib-svr4.c: Likewise.
1882 * source.c: Likewise.
1883 * sparc-nat.c: Likewise.
1884 * sparc-sol2-tdep.c: Likewise.
1885 * sparc-tdep.c: Likewise.
1886 * sparc64-sol2-tdep.c: Likewise.
1887 * sparc64-tdep.c: Likewise.
1888 * sparc64fbsd-tdep.c: Likewise.
1889 * sparc64nbsd-tdep.c: Likewise.
1890 * sparc64obsd-tdep.c: Likewise.
1891 * sparcnbsd-tdep.c: Likewise.
1892 * sparcobsd-tdep.c: Likewise.
1893 * spu-multiarch.c: Likewise.
1894 * spu-tdep.c: Likewise.
1895 * stabsread.c: Likewise.
1896 * stack.c: Likewise.
1897 * symfile.c: Likewise.
1898 * symtab.c: Likewise.
1899 * target-descriptions.c: Likewise.
1900 * target-memory.c: Likewise.
1901 * target.c: Likewise.
1902 * tic6x-linux-tdep.c: Likewise.
1903 * tic6x-tdep.c: Likewise.
1904 * tilegx-linux-nat.c: Likewise.
1905 * tilegx-tdep.c: Likewise.
1907 * tramp-frame.c: Likewise.
1908 * tui/tui-out.c: Likewise.
1909 * tui/tui-winsource.c: Likewise.
1910 * ui-out.c: Likewise.
1911 * user-regs.c: Likewise.
1912 * utils.c: Likewise.
1913 * v850-tdep.c: Likewise.
1914 * valops.c: Likewise.
1915 * value.c: Likewise.
1916 * varobj.c: Likewise.
1917 * vax-nat.c: Likewise.
1918 * xml-syscall.c: Likewise.
1919 * xml-tdesc.c: Likewise.
1920 * xstormy16-tdep.c: Likewise.
1921 * xtensa-linux-nat.c: Likewise.
1922 * xtensa-tdep.c: Likewise.
1924 2014-08-07 Gary Benson <gbenson@redhat.com>
1926 * common/common-defs.h: Include common-utils.h.
1927 * defs.h: Do not include common-utils.h.
1928 * common/gdb_assert.h: Likewise.
1929 * darwin-nat.h: Likewise.
1930 * nat/linux-btrace.c: Likewise.
1931 * target/waitstatus.h: Likewise.
1933 2014-08-07 Gary Benson <gbenson@redhat.com>
1935 * common/common-defs.h: Include ptid.h.
1936 * defs.h: Do not include ptid.h.
1937 * inferior.h: Likewise.
1938 * infrun.h: Likewise.
1939 * nat/linux-btrace.h: Likewise.
1940 * nat/linux-osdata.h: Likewise.
1941 * target/waitstatus.h: Likewise.
1943 2014-08-07 Gary Benson <gbenson@redhat.com>
1945 * common/common-defs.h: Include gdb_locale.h.
1946 * defs.h: Do not include gdb_locale.h.
1948 2014-08-07 Gary Benson <gbenson@redhat.com>
1950 * common/common-defs.h: Include gdb/signals.h.
1951 * defs.h: Do not include gdb/signals.h.
1953 2014-08-07 Gary Benson <gbenson@redhat.com>
1955 * common/common-defs.h: Include pathmax.h.
1956 * defs.h: Do not include pathmax.h.
1958 2014-08-07 Gary Benson <gbenson@redhat.com>
1960 * common/common-defs.h: Include libiberty.h.
1961 * defs.h: Do not include libiberty.h.
1962 * common/queue.h: Likewise.
1963 * cp-name-parser.y: Likewise.
1964 * mi/mi-cmd-catch.c: Likewise.
1965 * python/python.c: Likewise.
1967 2014-08-07 Gary Benson <gbenson@redhat.com>
1969 * common/common-defs.h: Include ansidecl.h.
1970 * defs.h: Do not include ansidecl.h.
1971 * common/buffer.h: Likewise.
1972 * common/common-utils.h: Likewise.
1974 2014-08-07 Gary Benson <gbenson@redhat.com>
1976 * common/common-defs.h: Include stddef.h.
1977 * defs.h: Do not include stddef.h.
1978 * common/common-utils.h: Likewise.
1979 * amd64fbsd-nat.c: Likewise.
1980 * bcache.c: Likewise.
1981 * charset.c: Likewise.
1982 * common/buffer.h: Likewise.
1983 * common/vec.h: Likewise.
1984 * i386bsd-nat.c: Likewise.
1985 * nat/linux-btrace.h: Likewise.
1986 * ppcfbsd-nat.c: Likewise.
1987 * ppcnbsd-tdep.h: Likewise.
1988 * ppcobsd-nat.c: Likewise.
1989 * ppcobsd-tdep.h: Likewise.
1990 * python/py-gdb-readline.c: Likewise.
1992 2014-08-07 Gary Benson <gbenson@redhat.com>
1994 * common/common-defs.h: Include stdarg.h.
1995 * defs.h: Do not include stdarg.h.
1996 * ada-lang.c: Likewise.
1997 * common/common-utils.h: Likewise.
1998 * guile/scm-string.c: Likewise.
1999 * guile/scm-utils.c: Likewise.
2000 * m32c-tdep.c: Likewise.
2002 2014-08-07 Gary Benson <gbenson@redhat.com>
2004 * common/common-defs.h: Include stdlib.h.
2005 * defs.h: Do not include stdlib.h.
2006 * addrmap.c: Likewise.
2007 * bcache.c: Likewise.
2008 * common/buffer.c: Likewise.
2009 * common/common-utils.c: Likewise.
2010 * cp-name-parser.y: Likewise.
2011 * go32-nat.c: Likewise.
2012 * mn10300-linux-tdep.c: Likewise.
2013 * nat/linux-osdata.c: Likewise.
2014 * tui/tui.c: Likewise.
2015 * windows-nat.c: Likewise.
2017 2014-08-07 Gary Benson <gbenson@redhat.com>
2019 * common/common-defs.h: Include stdio.h.
2020 * defs.h: Do not include stdio.h.
2021 * ada-lang.c: Likewise.
2022 * common/buffer.c: Likewise.
2023 * common/common-utils.c: Likewise.
2024 * cp-name-parser.y: Likewise.
2025 * gnu-nat.c: Likewise.
2026 * go32-nat.c: Likewise.
2027 * i386gnu-nat.c: Likewise.
2028 * proc-api.c: Likewise.
2029 * proc-events.c: Likewise.
2030 * proc-flags.c: Likewise.
2031 * proc-why.c: Likewise.
2032 * python/python-internal.h: Likewise.
2033 * target-memory.c: Likewise.
2034 * tui/tui-io.c: Likewise.
2035 * tui/tui.c: Likewise.
2037 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2039 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2040 (scan_dyntag_auxv): Same.
2042 2014-08-06 Yao Qi <yao@codesourcery.com>
2044 * amd64-linux-nat.c: Remove duplicated include
2046 * i386-linux-nat.c: Likewise.
2048 2014-08-06 Yao Qi <yao@codesourcery.com>
2050 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2051 operand" with "Special opcode" in comments.
2053 2014-08-05 Gary Benson <gbenson@redhat.com>
2055 * interps.c (initialize_interps): Remove prototype.
2056 (interpreter_initialized): Remove static global.
2057 (interp_add): Do not call initialize_interps.
2058 (initialize_interps): Remove function.
2060 2014-08-05 Gary Benson <gbenson@redhat.com>
2062 * utils.c (vwarning): Remove spurious va_end.
2064 2014-08-05 Alan Modra <amodra@gmail.com>
2066 * charset.c (convert_between_encodings): Cast result of obstack_base.
2067 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2068 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2069 (read_unwind_info): Use size_t for some locals.
2070 * jit.c (finalize_symtab): Likewise.
2071 * utils.c (hashtab_obstack_allocate): Likewise.
2072 * symmisc.c (print_objfile_statistics): Update format strings.
2074 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2076 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2077 (Changes in GDB 7.8): ... here.
2079 2014-08-04 Tom Tromey <tromey@redhat.com>
2081 * target.c (set_targetdebug): New function.
2082 (initialize_targets): Pass set_targetdebug when creating "set
2085 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2087 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2088 if detecting a variable-sized field that is not the last field.
2089 Fix struct type length computation.
2091 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2093 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2096 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2098 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2099 Remove "+ 8" offset in computation of CHAIN_VMA.
2101 2014-07-31 Doug Evans <dje@google.com>
2103 * inflow.c (child_terminal_inferior): Add comment.
2104 (child_terminal_ours_for_output): Add comment.
2105 (child_terminal_ours): Add comment.
2106 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2107 (linux_nat_terminal_ours): Add comment.
2109 2014-07-31 Gary Benson <gbenson@redhat.com>
2111 * common/btrace-common.h: Do not include defs.h or server.h.
2112 * nat/mips-linux-watch.h: Likewise.
2113 * gdb-dlfcn.h: Do not include defs.h.
2114 * tracefile.h: Likewise.
2116 2014-07-30 Roland McGrath <mcgrathr@google.com>
2118 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2120 2014-07-30 Tom Tromey <tromey@redhat.com>
2122 * bsd-kvm.c (bsd_kvm_open): Constify.
2123 * corelow.c (core_open): Constify.
2124 * ctf.c (ctf_open): Constify.
2125 * dbug-rom.c (dbug_open): Constify.
2126 * exec.c (exec_open): Constify.
2127 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2128 * microblaze-rom.c (picobug_open): Constify.
2129 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2131 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2132 * record-btrace.c (record_btrace_open): Constify.
2133 * record-full.c (record_full_core_open_1, record_full_open_1)
2134 (record_full_open): Constify.
2135 * remote-m32r-sdi.c (m32r_open): Constify.
2136 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2137 (rockhopper_open, lsi_open): Constify.
2138 * remote-sim.c (gdbsim_open): Constify.
2139 * remote.c (remote_open, extended_remote_open, remote_open_1):
2141 * target.h (struct target_ops) <to_open>: Make "arg" const.
2142 * tracefile-tfile.c (tfile_open): Constify.
2144 2014-07-30 Tom Tromey <tromey@redhat.com>
2146 * breakpoint.c (map_breakpoint_numbers): Update.
2147 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2148 (get_number_const): New function.
2149 (get_number): Rewrite using get_number_const.
2150 (init_number_or_range): Make "string" const.
2151 (number_is_in_list): Make "list" const.
2152 * cli/cli-utils.h (get_number_const): Declare.
2153 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2154 (init_number_or_range, number_is_in_list): Update.
2155 * printcmd.c (map_display_numbers): Update.
2156 * value.c (value_from_history_ref): Constify.
2157 * value.h (value_from_history_ref): Update.
2159 2014-07-30 Tom Tromey <tromey@redhat.com>
2161 * corefile.c (hook_type, call_extra_exec_file_hooks)
2162 (specify_exec_file_hook): Constify.
2163 * exec.c (exec_file_attach): Make "filename" const.
2164 * gdbcore.h (deprecated_exec_file_display_hook)
2165 (specify_exec_file_hook, exec_file_attach): Constify.
2166 * main.c (captured_main): Use catch_command_errors_const.
2168 2014-07-30 Tom Tromey <tromey@redhat.com>
2170 * target.c (open_target): New function.
2171 (add_target_with_completer, add_deprecated_target_alias): Use
2172 set_cmd_sfunc, set_cmd_context.
2173 (debug_to_open): Remove.
2174 (setup_target_debug): Update.
2176 2014-07-30 Yao Qi <yao@codesourcery.com>
2178 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2180 * parse.c (exp_iterate): Update comments.
2182 2014-07-30 Gary Benson <gbenson@redhat.com>
2184 * common/common-defs.h: New file.
2185 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2186 * defs.h: Include common-defs.h.
2187 Do not include config.h or build-gnulib/config.h.
2189 2014-07-30 Gary Benson <gbenson@redhat.com>
2191 * common/common-utils.h: Do not include config.h.
2192 * nat/linux-btrace.h: Likewise.
2194 2014-07-30 Gary Benson <gbenson@redhat.com>
2196 * btrace.c: Include defs.h.
2197 * common/ptid.c: Include defs.h or server.h as appropriate.
2198 * nat/mips-linux-watch.c: Likewise.
2200 2014-07-29 Tom Tromey <tromey@redhat.com>
2202 * target.c (target_is_pushed): Simplify.
2204 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2208 2014-07-29 Yao Qi <yao@codesourcery.com>
2211 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2213 2014-07-28 Doug Evans <xdje42@gmail.com>
2216 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2217 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2220 2014-07-28 Will Newton <will.newton@linaro.org>
2222 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2223 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2224 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2225 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2226 (THUMB2_EABI_SYSCALL): Likewise.
2227 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2229 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2230 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2232 2014-07-27 Doug Evans <xdje42@gmail.com>
2234 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2236 2014-07-27 Doug Evans <xdje42@gmail.com>
2238 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2240 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2241 Doug Evans <xdje42@gmail.com>
2244 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2245 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2246 * configure.ac: Try to use guild to compile an scm file, if it fails
2247 then disable guile support.
2248 * configure: Regenerate.
2249 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2251 (GUILE_COMPILED_FILES): New variable.
2252 (GUILE_FILES) Update.
2253 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2254 (stamp-guile): Compile scm files.
2255 * guile/guile.c (boot_guile_support): New function.
2256 (standard_throw_args_p): New function.
2257 (print_standard_throw_error, print_throw_error): New functions.
2258 (handle_boot_error): New function.
2259 (initialize_scheme_side): Rewrite to call boot_guile_support.
2260 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2261 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2263 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2264 Doug Evans <xdje42@gmail.com>
2267 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2268 * guile/lib/gdb/support.scm: New file.
2269 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2270 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2272 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2274 (%assert-type): Ditto, and renamed to assert-type.
2275 (%exception-print-style): Delete.
2277 2014-07-26 Doug Evans <xdje42@gmail.com>
2280 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2281 * configure: Regenerate.
2282 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2284 (PYTHON_FILES): New variable.
2285 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2286 (GUILE_FILES): New variable.
2287 (stamp-python, install-python, uninstall-python): Handle empty
2289 (stamp-guile, install-guile, uninstall-guile): Ditto.
2291 2014-07-26 Doug Evans <xdje42@gmail.com>
2294 * guile/lib/gdb.scm (pretty-printers): Export.
2295 (set-pretty-printers!): Export.
2296 * guile/lib/gdb/printing.scm (gdb module): Update.
2297 (prepend-pretty-printer!, append-pretty-printer!): Update.
2298 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2299 (pretty_printer_list_var): Delete.
2300 (pretty_printer_list): New static global.
2301 (gdbscm_pretty_printers): New function.
2302 (gdbscm_set_pretty_printers_x): New function.
2303 (ppscm_find_pretty_printer_from_gdb): Update.
2304 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2305 (gdbscm_initialize_pretty_printers): Update.
2307 2014-07-26 Doug Evans <xdje42@gmail.com>
2310 * configure.ac: Add check for header gc/gc.h.
2311 Add check for function setenv.
2312 * configure: Regenerate.
2313 * config.in: Regenerate.
2314 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2316 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2318 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2319 variation in gdbarch matching.
2321 2014-07-25 Tom Tromey <tromey@redhat.com>
2323 * exec.c (using_exec_ops): Remove.
2324 (exec_close_1): Update. Remove extraneous block, reindent.
2325 (add_target_sections): Use target_is_pushed.
2327 2014-07-25 Pedro Alves <palves@redhat.com>
2329 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2330 * monitor.c (monitor_create_inferior): Likewise.
2331 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2332 * remote-sim.c (gdbsim_create_inferior): Likewise.
2333 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2334 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2335 * windows-nat.c (do_initial_windows_stuff): Likewise.
2337 2014-07-25 Pedro Alves <palves@redhat.com>
2339 * NEWS: Mention signal passing and "signal" command changes.
2340 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2342 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2344 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2345 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2346 (jump_command): Adjust clear_proceed_status call.
2347 (signal_command): Warn if other thread that are resumed have
2348 signals that will be delivered. Adjust clear_proceed_status call.
2349 (until_next_command, finish_command)
2350 (proceed_after_attach_callback, attach_command_post_wait)
2351 (attach_command): Adjust clear_proceed_status call.
2352 * infrun.c (proceed_after_vfork_done): Likewise.
2353 (proceed_after_attach_callback): Adjust comment.
2354 (clear_proceed_status_thread): Clear stop_signal if not in pass
2356 (clear_proceed_status_callback): Delete.
2357 (clear_proceed_status): New 'step' parameter. Only clear the
2358 proceed status of threads the command being prepared is about to
2360 (proceed): If passed in an explicit signal, override stop_signal
2361 with it. Don't pass the last stop signal to the thread we're
2363 (init_wait_for_inferior): Adjust clear_proceed_status call.
2364 (switch_back_to_stepped_thread): Clear the signal if it should not
2366 * infrun.h (clear_proceed_status): New 'step' parameter.
2367 (user_visible_resume_ptid): Add comment.
2368 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2369 signal is in pass state.
2370 * remote.c (append_pending_thread_resumptions): Likewise.
2371 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2373 2014-07-25 Tom Tromey <tromey@redhat.com>
2375 * target.h (target_stopped_data_address)
2376 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2379 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2381 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2383 (avr_pointer_to_address): Likewise.
2385 2014-07-24 Tom Tromey <tromey@redhat.com>
2387 * monitor.c (compile_pattern): Update.
2388 * target.h (struct target_ops) <to_shortname, to_longname,
2391 2014-07-24 Tom Tromey <tromey@redhat.com>
2393 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2394 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2395 (add_info_alias, add_com): Make "doc" const.
2396 (print_doc_line): Make "str" const.
2397 (delete_cmd): Update.
2398 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2399 (print_doc_line): Update.
2400 * cli/cli-script.c (document_command): Update.
2401 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2402 (add_com, add_info, add_info_alias): Update.
2403 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2404 * python/py-cmd.c (cmdpy_destroyer): Update.
2406 2014-07-24 Tom Tromey <tromey@redhat.com>
2408 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2409 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2410 (help_cmd_list): Constify.
2411 (lookup_cmd): Update.
2412 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2414 (help_cmd_list, apropos_cmd): Update.
2415 * cli/cli-script.c (show_user): Update.
2416 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2417 * cli/cli-setshow.h (cmd_show_list): Update.
2418 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2419 (cmd_show_list): Update.
2420 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2421 * python/py-cmd.c (cmdpy_destroyer): Update.
2423 2014-07-24 Tom Tromey <tromey@redhat.com>
2425 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2426 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2428 * command.h (deprecate_cmd): Update.
2429 * maint.c (maintenance_do_deprecate): Add casts.
2431 2014-07-24 Tom Tromey <tromey@redhat.com>
2433 * cli/cli-decode.c (help_cmd): Make parameter "const".
2434 * cli/cli-decode.h (help_cmd): Update.
2436 2014-07-24 Tom Tromey <tromey@redhat.com>
2438 * stack.c (up_silently_base, down_silently_base): Make argument
2441 2014-07-24 Tom Tromey <tromey@redhat.com>
2443 * solib.c (solib_add): Make "pattern" const.
2444 * solib.h (solib_add): Update.
2446 2014-07-24 Tom Tromey <tromey@redhat.com>
2448 * remote.c (remote_serial_open, print_packet, putpkt)
2449 (putpkt_binary): Constify.
2450 * remote.h (putpkt): Update.
2452 2014-07-24 Tom Tromey <tromey@redhat.com>
2454 * monitor.c (monitor_open): Make "args" const.
2455 * monitor.h (monitor_open): Update.
2457 2014-07-24 Tom Tromey <tromey@redhat.com>
2459 * maint.c (match_bfd_flags): Make "string" const.
2460 (print_bfd_section_info): Remove casts.
2461 (print_objfile_section_info): Make "string" const.
2463 2014-07-24 Tom Tromey <tromey@redhat.com>
2465 * inf-child.c (inf_child_open_target): Make "arg" const.
2466 * inf-child.h (inf_child_open_target): Update.
2468 2014-07-24 Tom Tromey <tromey@redhat.com>
2470 * environ.c (unset_in_environ): Make "var" const.
2471 * environ.h (unset_in_environ): Update.
2473 2014-07-24 Tom Tromey <tromey@redhat.com>
2475 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2477 (scan_filename_with_cleanup): Likewise.
2478 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2479 Make arguments const.
2480 (restore_command): Update.
2482 2014-07-24 Pedro Alves <palves@redhat.com>
2484 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2486 2014-07-24 Tom Tromey <tromey@redhat.com>
2487 Gary Benson <gbenson@redhat.com>
2489 * nat/linux-ptrace.c (additional_flags): New global.
2490 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2491 additional_flags; don't check GDBSERVER.
2492 (linux_ptrace_set_additional_flags): New function.
2493 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2495 * linux-nat.c (_initialize_linux_nat): Call
2496 linux_ptrace_set_additional_flags.
2498 2014-07-24 Tom Tromey <tromey@redhat.com>
2500 * make-target-delegates (munge_type, write_debugmethod): New
2502 (debug_names): New global.
2503 ($TARGET_DEBUG_PRINTER): New global.
2504 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2506 Write debug methods. Generate init_debug_target.
2507 * target-debug.h: New file.
2508 * target-delegates.c: Rebuild.
2509 * target.c: Include target-debug.h.
2510 (debug_target): Hoist definition.
2511 (target_kill, target_get_section_table, target_memory_map)
2512 (target_flash_erase, target_flash_done, target_detach)
2513 (target_disconnect, target_wait, target_resume)
2514 (target_pass_signals, target_program_signals, target_follow_fork)
2515 (target_mourn_inferior, target_search_memory)
2516 (target_thread_address_space, target_close)
2517 (target_find_new_threads, target_core_of_thread)
2518 (target_verify_memory, target_insert_mask_watchpoint)
2519 (target_remove_mask_watchpoint): Remove targetdebug code.
2520 (debug_to_post_attach, debug_to_prepare_to_store)
2521 (debug_to_files_info, debug_to_insert_breakpoint)
2522 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2523 (debug_to_region_ok_for_hw_watchpoint)
2524 (debug_to_can_accel_watchpoint_condition)
2525 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2526 (debug_to_watchpoint_addr_within_range)
2527 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2528 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2529 (debug_to_terminal_init, debug_to_terminal_inferior)
2530 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2531 (debug_to_terminal_save_ours, debug_to_terminal_info)
2532 (debug_to_load, debug_to_post_startup_inferior)
2533 (debug_to_insert_fork_catchpoint)
2534 (debug_to_remove_fork_catchpoint)
2535 (debug_to_insert_vfork_catchpoint)
2536 (debug_to_remove_vfork_catchpoint)
2537 (debug_to_insert_exec_catchpoint)
2538 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2539 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2540 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2541 (setup_target_debug): Call init_debug_target.
2542 * target.h (TARGET_DEBUG_PRINTER): New macro.
2543 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2544 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2546 2014-07-24 Gary Benson <gbenson@redhat.com>
2548 * exceptions.h (throw_vfatal): Renamed to...
2549 (throw_vquit): New declaration.
2550 (throw_quit): Likewise.
2551 * exceptions.c (throw_vfatal): Renamed to...
2552 (throw_vquit): New function.
2553 (throw_quit): Likewise.
2554 (throw_error): Call throw_verror rather than throw_it.
2555 * utils.h (vfatal): Removed.
2557 * utils.c (vfatal): Removed.
2559 (internal_verror): Replaced call to fatal with call to throw_quit.
2560 (quit): Replaced calls to fatal with calls to throw_quit.
2562 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2564 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2567 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2569 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2570 less than zero in conditional expression.
2572 2014-07-23 Tom Tromey <tromey@redhat.com>
2574 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2575 ($INTRO_PART): Don't match whitespace.
2576 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2578 ($METHOD): Add $METHOD_TRAILER.
2580 (scan_target_h): New sub.
2581 Change main loop not to collect state.
2582 * target-delegates.c: Rebuild.
2584 2014-07-23 Gary Benson <gbenson@redhat.com>
2586 * cp-support.c (gdb_demangle): Fix build on systems without
2589 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2591 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2592 for reference entry value target data value.
2594 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2596 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2597 value_available_contents_eq.
2599 2014-07-22 Pedro Alves <palves@redhat.com>
2601 * value.c (allocate_optimized_out_value): Don't mark value as
2604 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2606 * MAINTAINERS (Write After Approval): Update my email address.
2608 2014-07-20 Doug Evans <dje@google.com>
2611 * remote.c (putpkt_binary): Add text to error message.
2613 2014-07-20 Yao Qi <yao@codesourcery.com>
2615 * eval.c: Remove "Chill" from comments.
2616 * gdbtypes.h: Likewise.
2617 * symtab.h: Likewise.
2619 2014-07-20 Yao Qi <yao@codesourcery.com>
2621 * std-operator.def: Update comments to TERNOP_SLICE.
2623 2014-07-20 Yao Qi <yao@codesourcery.com>
2625 * std-operator.def: Remove BINOP_RANGE.
2626 * breakpoint.c (watchpoint_exp_is_const): Update.
2627 * expprint.c (dump_subexp_body_standard): Likewise.
2628 * eval.c (init_array_element): Remove dead code.
2629 (evaluate_subexp_standard): Likewise.
2631 2014-07-20 Yao Qi <yao@codesourcery.com>
2633 * std-operator.def: Remove BINOP_IN.
2634 * breakpoint.c (watchpoint_exp_is_const): Update.
2635 * eval.c (evaluate_subexp_standard): Likewise.
2636 * expprint.c (dump_subexp_body_standard): Likewise.
2638 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2640 * microblaze-tdep.c (microblaze_register_names): Add
2641 the rshr and rslr register names.
2642 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2643 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2644 Use of tdesc_numbered_register. Use of
2645 microblaze_register_g_packet_guesses. Use of
2646 tdesc_use_registers. Use of set_gdbarch_register_type.
2647 (microblaze_register_g_packet_guesses): New.
2648 * microblaze-tdep.h (microblaze_reg_num): Add
2649 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2650 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2651 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2652 * features/microblaze-core.xml: New file.
2653 * features/microblaze-stack-protect.xml: New file.
2654 * features/microblaze-with-stack-protect.c: New file.
2655 * features/microblaze-with-stack-protect.xml: New file.
2656 * features/microblaze.xml: New file.
2657 * features/microblaze.c: New file.
2658 * features/Makefile (microblaze-with-stack-protect): Add
2659 microblaze-with-stack-protect microblaze and microblaze-expedite.
2660 * regformats/microblaze-with-stack-protect.dat: New file.
2661 * regformats/microblaze.dat: New file.
2662 * doc/gdb.texinfo (MicroBlaze Features): Added.
2664 2014-07-18 Tom Tromey <tromey@redhat.com>
2666 * exec.c (exec_ops): Now static.
2667 * exec.h (exec_ops): Don't declare.
2669 2014-07-18 Tom Tromey <tromey@redhat.com>
2671 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2672 to find_target_beneath.
2673 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2674 find_target_beneath.
2675 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2677 2014-07-18 Tom Tromey <tromey@redhat.com>
2680 * utils.c (quit): Use target_supports_terminal_ours.
2681 * target.h (target_supports_terminal_ours): Declare.
2682 * target.c (target_supports_delete_record): Don't check
2683 to_delete_record against NULL.
2684 (target_supports_terminal_ours): New function.
2686 2014-07-18 Tom Tromey <tromey@redhat.com>
2689 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2690 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2691 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2692 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2693 * windows-nat.c (windows_xfer_partial): Always delegate.
2694 * record-btrace.c (record_btrace_xfer_partial): Simplify
2696 (record_btrace_fetch_registers, record_btrace_store_registers)
2697 (record_btrace_prepare_to_store, record_btrace_resume)
2698 (record_btrace_wait, record_btrace_find_new_threads)
2699 (record_btrace_thread_alive): Likewise.
2700 * procfs.c (procfs_xfer_partial): Always delegate.
2701 * corelow.c (core_xfer_partial): Always delegate.
2702 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2704 2014-07-18 Tom Tromey <tromey@redhat.com>
2706 * exec.c (exec_make_note_section): Move earlier.
2708 2014-07-17 Doug Evans <dje@google.com>
2711 * maint.c (count_symtabs_and_blocks): Handle NULL
2712 current_program_space.
2713 (report_command_stats): Check global enabled flag in addition to
2714 recorded enabled flag.
2715 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2717 2014-07-16 Pedro Alves <palves@redhat.com>
2719 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2721 2014-07-16 Tom Tromey <tromey@redhat.com>
2723 * target.h (struct target_ops) <to_delete_record>: Reformat
2726 2014-07-16 Tom Tromey <tromey@redhat.com>
2728 * target-delegates.c: Rebuild.
2730 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2732 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2733 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2734 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2735 (avr_pointer_to_address): Likewise.
2736 (avr_address_class_type_flags): New function.
2737 (avr_address_class_type_flags_to_name): Likewise.
2738 (avr_address_class_name_to_type_flags): Likewise.
2739 (avr_gdbarch_init): Set address_class_type_flags,
2740 address_class_type_flags_to_name and
2741 address_class_name_to_type_flags.
2743 2014-07-15 Pedro Alves <palves@redhat.com>
2745 * linux-nat.c (kill_callback): Save errno and work with saved
2748 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2750 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2752 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2754 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2755 breakpoint support correctly.
2757 2014-07-14 Pedro Alves <palves@redhat.com>
2759 * utils.c (prompt_for_continue): Call target_terminal_ours.
2761 2014-07-14 Pedro Alves <palves@redhat.com>
2763 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2764 catch_errors. Don't re-enable stdin or notify observers where,
2766 (fetch_inferior_event_wrapper): Delete.
2768 2014-07-14 Pedro Alves <palves@redhat.com>
2771 * top.c: Include "inf-loop.h".
2772 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2774 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2776 (gdb_readline_wrapper): Store whether the target is async, and
2779 2014-07-14 Pedro Alves <palves@redhat.com>
2782 * top.c (gdb_readline_wrapper_line): Tweak comment.
2783 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2784 the input handler callback.
2786 2014-07-14 Pedro Alves <palves@redhat.com>
2789 * main.c: Include event-top.h.
2790 (handle_command_errors): New function.
2791 (catch_command_errors, catch_command_errors_const): Use it.
2793 2014-07-14 Pedro Alves <palves@redhat.com>
2795 * exceptions.c (catch_command_errors, catch_command_errors_const):
2797 * exceptions.h (catch_command_errors_ftype)
2798 (catch_command_errors_const_ftype): Moved to main.c.
2799 (catch_command_errors, catch_command_errors_const): Delete
2801 * main.c (catch_command_errors_ftype)
2802 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2803 (catch_command_errors, catch_command_errors_const)): Moved here
2804 from exceptions.c and make static.
2806 2014-07-14 Pedro Alves <palves@redhat.com>
2808 * exceptions.c (print_any_exception): Delete.
2809 (catch_exceptions_with_msg): Use exception_print instead of
2810 print_any_exception.
2811 (catch_errors): Use exception_fprintf instead of
2812 print_any_exception.
2813 (catch_command_errors, catch_command_errors_const): Use
2814 exception_print instead of print_any_exception.
2816 2014-07-14 Pedro Alves <palves@redhat.com>
2818 * infcall.c (run_inferior_call): Set 'sync_execution' while
2819 running the inferior call.
2821 2014-07-14 Pedro Alves <palves@redhat.com>
2823 * value.c (value_contents_equal): Delete function.
2824 * value.h (value_contents_equal): Delete declaration.
2826 2014-07-14 Tom Tromey <tromey@redhat.com>
2829 * gdbtypes.c (is_dynamic_type_internal): New function, from
2831 (is_dynamic_type): Rewrite.
2832 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2833 (resolve_dynamic_struct): Likewise.
2834 (resolve_dynamic_type_internal): New function, from
2835 resolve_dynamic_type.
2836 (resolve_dynamic_type): Rewrite.
2838 2014-07-14 Tom Tromey <tromey@redhat.com>
2840 * target.c (target_require_runnable): Also check record_stratum.
2843 2014-07-11 Yao Qi <yao@codesourcery.com>
2845 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2846 thumb_instruction_restores_sp return true.
2848 2014-07-11 Yao Qi <yao@codesourcery.com>
2850 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2851 (thumb_in_function_epilogue_p): Call
2852 thumb_instruction_restores_sp.
2854 2014-07-11 Yao Qi <yao@codesourcery.com>
2856 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2858 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2860 2014-07-11 Gary Benson <gbenson@redhat.com>
2862 * amd64-linux-nat.c (gdbcore.h): Remove include.
2863 (regset.h): Likewise.
2864 (nat/linux-btrace.h): Likewise.
2865 (btrace.h): Likewise.
2866 (gdb_assert.h): Likewise.
2867 (string.h): Likewise.
2868 (sys/uio.h): Likewise.
2869 (sys/debugreg.h): Likewise.
2870 (sys/syscall.h): Likewise.
2871 (sys/procfs.h): Likewise.
2872 (sys/user.h): Likewise.
2873 (asm/ptrace.h): Likewise.
2874 (i386-nat.h): Likewise.
2875 * i386-linux-nat.c (i386-nat.h): Likewise.
2876 (regset.h): Likewise.
2877 (target.h): Likewise.
2878 (linux-nat.h): Likewise.
2879 (nat/linux-btrace.h): Likewise.
2880 (btrace.h): Likewise.
2881 (gdb_assert.h): Likewise.
2882 (string.h): Likewise.
2883 (sys/uio.h): Likewise.
2884 (sys/user.h): Likewise.
2885 (sys/procfs.h): Likewise.
2886 (sys/reg.h): Likewise.
2887 (sys/debugreg.h): Likewise.
2888 (ORIG_EAX): Remove definition.
2890 2014-07-11 Gary Benson <gbenson@redhat.com>
2892 * i386-linux-nat.h: New file.
2893 * x86-linux-nat.h: Likewise.
2894 * x86-linux-nat.c: Likewise.
2895 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2896 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2897 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2898 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2899 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2900 (PTRACE_SETREGSET): Likewise.
2901 (arch_lwp_info): Now in x86-linux-nat.c.
2902 (have_ptrace_getregset): Now in x86-linux-nat.h.
2903 (x86_linux_dr_get): Now in x86-linux-nat.c.
2904 (x86_linux_dr_set): Likewise.
2905 (x86_linux_dr_get_addr): Likewise.
2906 (x86_linux_dr_get_control): Likewise.
2907 (x86_linux_dr_get_status): Likewise.
2908 (update_debug_registers_callback): Likewise.
2909 (x86_linux_dr_set_control): Likewise.
2910 (x86_linux_dr_set_addr): Likewise.
2911 (x86_linux_prepare_to_resume): Likewise.
2912 (x86_linux_new_thread): Likewise.
2913 (x86_linux_new_fork): Likewise.
2914 (x86_linux_get_thread_area): Likewise.
2915 (super_post_startup_inferior): Likewise.
2916 (x86_linux_child_post_startup_inferior): Likewise.
2917 (AMD64_LINUX_USER64_CS): Likewise.
2918 (AMD64_LINUX_X32_DS): Likewise.
2919 (x86_linux_read_description): Likewise.
2920 (x86_linux_enable_btrace): Likewise.
2921 (x86_linux_disable_btrace): Likewise.
2922 (x86_linux_teardown_btrace): Likewise.
2923 (x86_linux_read_btrace): Likewise.
2924 (x86_linux_create_target): Likewise.
2925 (x86_linux_add_target): Likewise.
2926 * i386-linux-nat.c (x86-linux-nat.h): New include.
2927 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2928 (PTRACE_SETREGSET): Likewise.
2929 (arch_lwp_info): Now in x86-linux-nat.c.
2930 (have_ptrace_getregset): Now in x86-linux-nat.h.
2931 (x86_linux_dr_get): Now in x86-linux-nat.c.
2932 (x86_linux_dr_set): Likewise.
2933 (x86_linux_dr_get_addr): Likewise.
2934 (x86_linux_dr_get_control): Likewise.
2935 (x86_linux_dr_get_status): Likewise.
2936 (update_debug_registers_callback): Likewise.
2937 (x86_linux_dr_set_control): Likewise.
2938 (x86_linux_dr_set_addr): Likewise.
2939 (x86_linux_prepare_to_resume): Likewise.
2940 (x86_linux_new_thread): Likewise.
2941 (x86_linux_new_fork): Likewise.
2942 (x86_linux_get_thread_area): Likewise.
2943 (super_post_startup_inferior): Likewise.
2944 (x86_linux_child_post_startup_inferior): Likewise.
2945 (AMD64_LINUX_USER64_CS): Likewise.
2946 (AMD64_LINUX_X32_DS): Likewise.
2947 (x86_linux_read_description): Likewise.
2948 (x86_linux_enable_btrace): Likewise.
2949 (x86_linux_disable_btrace): Likewise.
2950 (x86_linux_teardown_btrace): Likewise.
2951 (x86_linux_read_btrace): Likewise.
2952 (x86_linux_create_target): Likewise.
2953 (x86_linux_add_target): Likewise.
2955 2014-07-11 Gary Benson <gbenson@redhat.com>
2957 * amd64-linux-nat.c: Comment and whitespace changes.
2958 * i386-linux-nat.c: Comment and whitespace changes.
2960 2014-07-11 Gary Benson <gbenson@redhat.com>
2962 * amd64-linux-nat.c (x86_linux_create_target): New function.
2963 (x86_linux_add_target): Likewise.
2964 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2965 * i386-linux-nat.c (x86_linux_create_target): New function.
2966 (x86_linux_add_target): Likewise.
2967 (_initialize_i386_linux_nat): Delegate to the above new functions.
2969 2014-07-11 Gary Benson <gbenson@redhat.com>
2971 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2972 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2973 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2974 (ps_get_thread_area): Delegate to the above.
2976 2014-07-11 Gary Benson <gbenson@redhat.com>
2978 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2979 x86_linux_read_description. All uses updated. amd64-specific
2980 code conditionalized. Conditionalized i386-specific code added.
2981 Redundant cast removed.
2982 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2983 x86_linux_read_description. All uses updated. i386-specific
2984 code conditionalized. Conditionalized amd64-specific code added.
2985 One sizeof replaced with the actual type it is describing.
2987 2014-07-11 Gary Benson <gbenson@redhat.com>
2989 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2990 x86_linux_dr_get. All uses updated.
2991 (amd64_linux_dr_set): Renamed to
2992 x86_linux_dr_set. All uses updated.
2993 (amd64_linux_dr_get_addr): Renamed to
2994 x86_linux_dr_get_addr. All uses updated.
2995 (amd64_linux_dr_get_control): Renamed to
2996 x86_linux_dr_get_control. All uses updated.
2997 (amd64_linux_dr_get_status): Renamed to
2998 x86_linux_dr_get_status. All uses updated.
2999 (amd64_linux_dr_set_control): Renamed to
3000 x86_linux_dr_set_control. All uses updated.
3001 (amd64_linux_dr_set_addr): Renamed to
3002 x86_linux_dr_set_addr. All uses updated.
3003 (amd64_linux_prepare_to_resume): Renamed to
3004 x86_linux_prepare_to_resume. All uses updated.
3005 (amd64_linux_new_thread): Renamed to
3006 x86_linux_new_thread. All uses updated.
3007 (amd64_linux_new_fork): Renamed to
3008 x86_linux_new_fork. All uses updated.
3009 (amd64_linux_child_post_startup_inferior): Renamed to
3010 x86_linux_child_post_startup_inferior. All uses updated.
3011 (amd64_linux_enable_btrace): Renamed to
3012 x86_linux_enable_btrace. All uses updated.
3013 (amd64_linux_disable_btrace): Renamed to
3014 x86_linux_disable_btrace. All uses updated.
3015 (amd64_linux_teardown_btrace): Renamed to
3016 x86_linux_teardown_btrace. All uses updated.
3017 (amd64_linux_read_btrace): Renamed to
3018 x86_linux_read_btrace. All uses updated.
3019 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3020 x86_linux_dr_get. All uses updated.
3021 (i386_linux_dr_set): Renamed to
3022 x86_linux_dr_set. All uses updated.
3023 (i386_linux_dr_get_addr): Renamed to
3024 x86_linux_dr_get_addr. All uses updated.
3025 (i386_linux_dr_get_control): Renamed to
3026 x86_linux_dr_get_control. All uses updated.
3027 (i386_linux_dr_get_status): Renamed to
3028 x86_linux_dr_get_status. All uses updated.
3029 (i386_linux_dr_set_control): Renamed to
3030 x86_linux_dr_set_control. All uses updated.
3031 (i386_linux_dr_set_addr): Renamed to
3032 x86_linux_dr_set_addr. All uses updated.
3033 (i386_linux_prepare_to_resume): Renamed to
3034 x86_linux_prepare_to_resume. All uses updated.
3035 (i386_linux_new_thread): Renamed to
3036 x86_linux_new_thread. All uses updated.
3037 (i386_linux_new_fork): Renamed to
3038 x86_linux_new_fork. All uses updated.
3039 (i386_linux_child_post_startup_inferior): Renamed to
3040 x86_linux_child_post_startup_inferior. All uses updated.
3041 (i386_linux_enable_btrace): Renamed to
3042 x86_linux_enable_btrace. All uses updated.
3043 (i386_linux_disable_btrace): Renamed to
3044 x86_linux_disable_btrace. All uses updated.
3045 (i386_linux_teardown_btrace): Renamed to
3046 x86_linux_teardown_btrace. All uses updated.
3047 (i386_linux_read_btrace): Renamed to
3048 x86_linux_read_btrace. All uses updated.
3050 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3052 * remote.c (extended_remote_post_attach): New function.
3053 (init_extended_remote_ops): Install it as to_post_attach method.
3055 2014-07-09 Pedro Alves <palves@redhat.com>
3057 * infcmd.c (attach_command_post_wait): Don't call
3058 target_terminal_inferior here.
3059 (attach_command): Call it here instead.
3061 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3063 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3065 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3066 from varobj.c, with additional checks.
3067 (c_varobj_ops): Fill in is_path_expr_parent field.
3068 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3069 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3071 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3073 (varobj_default_is_path_expr_parent): New function.
3074 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3075 (varobj_default_is_path_expr_parent): Declare new function.
3077 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3079 * infcmd.c (finish_backward): Turn internal error into normal error.
3081 2014-07-07 Pedro Alves <palves@redhat.com>
3084 * remote.c (async_handle_remote_sigint)
3085 (async_handle_remote_sigint_twice): Call
3086 gdb_call_async_signal_handler instead of
3087 mark_async_signal_handler.
3089 2014-07-07 Tom Tromey <tromey@redhat.com>
3091 * target-delegates.c: Rebuild.
3092 * target.c (target_info_record): Remove.
3093 * record.c (info_record_command): Unconditionally call
3095 * target.h (struct target_ops) <to_info_record>: Use
3096 TARGET_DEFAULT_IGNORE.
3097 (target_info_record): Remove.
3099 2014-07-07 Tom Tromey <tromey@redhat.com>
3101 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3102 TARGET_DEFAULT_NORETURN.
3103 * target.c (generic_tls_error): New function.
3104 (target_translate_tls_address): Don't search target stack.
3105 * target-delegates.c: Rebuild.
3106 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3108 * linux-thread-db.c (thread_db_get_thread_local_address):
3109 Unconditionally call beneath target.
3111 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3113 * cli/cli-logging.c (pop_output_files): Assign targerr to
3116 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3118 * MAINTAINERS (Write After Approval): Update my email address.
3120 2014-07-02 Gary Benson <gbenson@redhat.com>
3122 * proc-service.c (ps_xfer_memory): Update comment.
3123 (ps_pstop): Remove unused function.
3124 (ps_pcontinue): Likewise.
3125 (ps_lstop): Likewise.
3126 (ps_lcontinue): Likewise.
3127 (ps_lgetxregsize): Likewise.
3128 (ps_lgetxregs): Likewise.
3129 (ps_lsetxregs): Likewise.
3130 (ps_plog): Likewise.
3131 (ps_ptread): Likewise.
3132 (ps_ptwrite): Likewise.
3134 2014-07-01 Mark Wielaard <mjw@redhat.com>
3136 * dwarf2read.c (add_array_cv_type): New function.
3137 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3138 (read_tag_volatile_type): Likewise.
3140 2014-07-01 Tom Tromey <tromey@redhat.com>
3142 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3143 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3144 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3145 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3146 * command.h (cmd_cfunc_ftype): Move earlier.
3147 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3148 (add_com, add_info): Use cmd_cfunc_ftype.
3150 2014-06-30 Tom Tromey <tromey@redhat.com>
3152 * symtab.c (operator_chars): Make parameters and return type
3154 (file_matches): Make "files" const.
3155 (struct search_symbols_data) <files>: Now const.
3156 (search_symbols): Make "regexp" and "files" parameters const.
3158 (symtab_symbol_info): Remove cast.
3159 (rbreak_command): Update.
3160 * symtab.h (search_symbols): Update.
3162 2014-06-27 Yao Qi <yao@codesourcery.com>
3164 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3165 Change parameter type to 'struct thread_info *'. Caller
3167 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3169 * dummy-frame.c (struct dummy_frame_id): New.
3170 (dummy_frame_id_eq): New function.
3171 (struct dummy_frame) <id>: Change its type to 'struct
3173 (dummy_frame_push): Add parameter ptid and save it in
3175 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3177 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3179 (lookup_dummy_frame): Change parameter type to 'struct
3180 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3181 instead of frame_id_eq.
3182 (dummy_frame_pop): Add parameter ptid. Callers updated.
3183 Update comments. Compose dummy_frame_id and pass it to
3185 (dummy_frame_discard): Add parameter ptid.
3186 (dummy_frame_sniffer): Compose dummy_frame_id and call
3187 dummy_frame_id_eq instead of frame_id_eq.
3188 (fprint_dummy_frames): Print ptid.
3189 * dummy-frame.h: Remove comments.
3190 (dummy_frame_push): Add ptid in declaration.
3191 (dummy_frame_pop, dummy_frame_discard): Likewise.
3193 2014-06-26 Tom Tromey <tromey@redhat.com>
3195 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3196 * command.h (error_no_arg): Update.
3198 2014-06-26 Tom Tromey <tromey@redhat.com>
3200 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3201 (do_show_command): Make "arg" const.
3202 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3204 2014-06-26 Tom Tromey <tromey@redhat.com>
3206 * record-full.c (record_full_get_bookmark): Make "args" const.
3207 (record_full_goto_bookmark): Make "raw_bookmark" const.
3208 * record.c (record_goto): New function.
3209 (cmd_record_goto): Use it. Now static.
3210 * record.h (record_goto): Declare.
3211 (cmd_record_goto): Remove declaration.
3212 * target-delegates.c: Rebuild.
3213 * target.h (struct target_ops) <to_get_bookmark,
3214 to_goto_bookmark>: Make parameter const.
3216 2014-06-26 Tom Tromey <tromey@redhat.com>
3218 * defs.h (generic_load): Update.
3219 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3220 * monitor.c (monitor_load): Make "args" const.
3221 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3222 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3224 (mips_load): Make "file" const.
3225 * remote-sim.c (gdbsim_load): Make "args" const.
3226 * remote.c (remote_load): Make "name" const.
3227 * symfile.c (generic_load): Make "args" const.
3228 * target-delegates.c: Rebuild.
3229 * target.c (target_load): Make "arg" const.
3230 (debug_to_load): Make "args" const.
3231 * target.h (struct target_ops) <to_load>: Make parameter const.
3232 (target_load): Update.
3234 2014-06-26 Tom Tromey <tromey@redhat.com>
3237 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3238 (dwarf2_physname, read_partial_die)
3239 (guess_partial_die_structure_name, fixup_partial_die)
3240 (guess_full_die_structure_name, anonymous_struct_prefix)
3241 (dwarf2_name): Use per-BFD obstack.
3243 2014-06-26 Yao Qi <yao@codesourcery.com>
3245 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3246 dummyframe and this_id into inner block below.
3248 2014-06-26 Yao Qi <yao@codesourcery.com>
3250 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3251 with "signal_pass[0]" in the initialization of signal_pass.
3253 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3255 * record-btrace.c (record_btrace_generating_corefile)
3256 (record_btrace_prepare_to_generate_core)
3257 (record_btrace_done_generating_core): New.
3258 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3259 (record_btrace_store_registers, record_btrace_prepare_to_store):
3260 Forward request when generating a core file.
3261 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3262 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3263 to_done_generating_core.
3265 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3267 * target.h (target_ops) <to_prepare_to_generate_core>
3268 <to_done_generating_core>: New.
3269 (target_prepare_to_generate_core, target_done_generating_core): New.
3270 * target.c (target_prepare_to_generate_core)
3271 (target_done_generating_core): New.
3272 * target-delegates.c: Regenerate.
3273 * gcore.c: (write_gcore_file): Rename to ...
3274 (write_gcore_file_1): ...this.
3275 (write_gcore_file): Call target_prepare_to_generate_core
3276 and target_done_generating_core.
3278 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3280 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3281 * gcore.c (write_gcore_file): Free memory returned from
3282 make_corefile_notes.
3283 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3284 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3286 2014-06-24 Yao Qi <yao@codesourcery.com>
3288 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3289 (arm_linux_init_abi): Set skip_trampoline_code with
3290 gdbarch_skip_trampoline_code instead of
3291 find_solib_trampoline_target.
3293 2014-06-24 Yao Qi <yao@codesourcery.com>
3295 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3296 arm_skip_bx_reg returns non-zero.
3298 2014-06-24 Yao Qi <yao@codesourcery.com>
3300 * arm-tdep.c (arm_skip_bx_reg): New function.
3301 (arm_skip_stub): Call arm_skip_bx_reg.
3303 2014-06-23 Don Breazeal <donb@codesourcery.com>
3305 * MAINTAINERS: Add myself as write-after-approval maintainer.
3307 2014-06-23 Pedro Alves <palves@redhat.com>
3309 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3310 DR_CONTROL before setting DR0..DR3.
3311 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3312 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3313 bits of DR_CONTROL related to the debug register slot being
3314 disabled. If all slots are vacant, clear local slowdown as well,
3315 and assert DR_CONTROL is 0.
3317 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3319 * python/lib/gdb/command/xmethods.py
3320 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3321 current progspace only if the string "progspace" matches LOCUS_RE.
3323 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3325 Fix --with-system-readline with readline-6.3 patch 5.
3326 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3327 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3330 2014-06-20 Tom Tromey <tromey@redhat.com>
3332 * dwarf2read.c (dw2_get_real_path): Use correct type in
3334 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3336 2014-06-20 Gary Benson <gbenson@redhat.com>
3338 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3339 * common/glibc_thread_db.h: Likewise.
3340 * common/i386-cpuid.h: Likewise.
3341 * common/i386-gcc-cpuid.h: Likewise.
3342 * common/linux-btrace.h: Likewise.
3343 * common/linux-osdata.h: Likewise.
3344 * common/linux-procfs.h: Likewise.
3345 * common/linux-ptrace.h: Likewise.
3346 * common/mips-linux-watch.h: Likewise.
3347 * common/linux-btrace.c: Moved to nat.
3348 * common/linux-osdata.c: Likewise.
3349 * common/linux-procfs.c: Likewise.
3350 * common/linux-ptrace.c: Likewise.
3351 * common/mips-linux-watch.c: Likewise.
3352 * nat/gdb_thread_db.h: Moved from common.
3353 * nat/glibc_thread_db.h: Likewise.
3354 * nat/i386-cpuid.h: Likewise.
3355 * nat/i386-gcc-cpuid.h: Likewise.
3356 * nat/linux-btrace.c: Likewise.
3357 * nat/linux-btrace.h: Likewise.
3358 * nat/linux-osdata.c: Likewise.
3359 * nat/linux-osdata.h: Likewise.
3360 * nat/linux-procfs.c: Likewise.
3361 * nat/linux-procfs.h: Likewise.
3362 * nat/linux-ptrace.c: Likewise.
3363 * nat/linux-ptrace.h: Likewise.
3364 * nat/mips-linux-watch.c: Likewise.
3365 * nat/mips-linux-watch.h: Likewise.
3366 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3367 (object file files): Reordered.
3368 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3369 of glibc_thread_db.h.
3371 2014-06-20 Gary Benson <gbenson@redhat.com>
3373 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3374 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3375 (i386_dr_low): Likewise.
3376 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3377 (i386_dr_low_set_addr): Likewise.
3378 (i386_dr_low_get_addr): Likewise.
3379 (i386_dr_low_can_set_control): Likewise.
3380 (i386_dr_low_set_control): Likewise.
3381 (i386_dr_low_get_control): Likewise.
3382 (i386_dr_low_get_status): Likewise.
3383 (i386_get_debug_register_length): Likewise.
3384 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3385 (i386_dr_low): Likewise.
3386 * nat/i386-dregs.c (i386-low.h): Remove include.
3387 (i386-nat.h): Likewise.
3388 (nat/i386-dregs.h): New include.
3389 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3390 (i386_dr_low_set_addr): Likewise.
3391 (i386_dr_low_get_addr): Likewise.
3392 (i386_dr_low_can_set_control): Likewise.
3393 (i386_dr_low_set_control): Likewise.
3394 (i386_dr_low_get_control): Likewise.
3395 (i386_dr_low_get_status): Likewise.
3396 (i386_get_debug_register_length): Likewise.
3397 (debug_hw_points): Likewise.
3399 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3401 * Makefile.in (SFILES): Add d-exp.y.
3402 (YYFILES): Add d-exp.c.
3403 (YYOBJ): Add d-exp.o.
3404 (local-maintainer-clean): Delete d-exp.c.
3405 * d-exp.y: New file.
3406 * d-lang.h (d_parse): New declaration.
3407 (d_error): New declaration.
3408 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3409 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3410 PREC_ORDER operators.
3411 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3413 2014-06-19 Yao Qi <yao@codesourcery.com>
3415 * gdbthread.h (any_running): Remove the declaration.
3416 * thread.c (any_running): Remove.
3418 2014-06-19 Yao Qi <yao@codesourcery.com>
3420 * gdbthread.h (struct thread_info) <state>: Change its type to
3421 'enum thread_state'. Update comments.
3423 2014-06-19 Pedro Alves <palves@redhat.com>
3425 * gdbthread.h (ALL_THREADS): Delete.
3426 (ALL_NON_EXITED_THREADS): New macro.
3427 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3428 instead of ALL_THREADS.
3429 * infrun.c (find_thread_needs_step_over)
3430 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3431 instead of ALL_THREADS.
3432 * record-btrace.c (record_btrace_open)
3433 (record_btrace_stop_recording, record_btrace_close)
3434 (record_btrace_is_replaying, record_btrace_resume)
3435 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3436 * remote.c (append_pending_thread_resumptions): Likewise.
3437 * thread.c (thread_apply_all_command): Likewise.
3439 2014-06-19 Gary Benson <gbenson@redhat.com>
3441 * i386-nat.c (i386_stopped_by_watchpoint):
3442 Use i386_dr_stopped_by_watchpoint.
3443 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3444 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3446 2014-06-19 Gary Benson <gbenson@redhat.com>
3448 * nat/i386-dregs.c: New file.
3449 * Makefile.in (i386-dregs.o): New rule.
3450 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3451 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3452 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3453 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3454 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3455 * config/i386/go32.mh (NATDEPFILES): Likewise.
3456 * config/i386/linux.mh (NATDEPFILES): Likewise.
3457 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3458 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3459 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3460 * i386-nat.h (debug_hw_points): New declaration.
3461 * i386-nat.c (breakpoint.h): Remove include.
3462 (command.h): Likewise.
3463 (target.h): Likewise.
3464 (gdb_assert.h): Likewise.
3465 (debug_hw_points): Made nonstatic.
3466 (debug_printf): Now in i386-dregs.c.
3467 (TARGET_HAS_DR_LEN_8): Likewise.
3468 (DR_CONTROL_SHIFT): Likewise.
3469 (DR_CONTROL_SIZE): Likewise.
3470 (DR_RW_EXECUTE): Likewise.
3471 (DR_RW_WRITE): Likewise.
3472 (DR_RW_READ): Likewise.
3473 (DR_RW_IORW): Likewise.
3474 (DR_LEN_1): Likewise.
3475 (DR_LEN_2): Likewise.
3476 (DR_LEN_4): Likewise.
3477 (DR_LEN_8): Likewise.
3478 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3479 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3480 (DR_ENABLE_SIZE): Likewise.
3481 (DR_LOCAL_SLOWDOWN): Likewise.
3482 (DR_GLOBAL_SLOWDOWN): Likewise.
3483 (DR_CONTROL_RESERVED): Likewise.
3484 (I386_DR_CONTROL_MASK): Likewise.
3485 (I386_DR_VACANT): Likewise.
3486 (I386_DR_LOCAL_ENABLE): Likewise.
3487 (I386_DR_GLOBAL_ENABLE): Likewise.
3488 (I386_DR_DISABLE): Likewise.
3489 (I386_DR_SET_RW_LEN): Likewise.
3490 (I386_DR_GET_RW_LEN): Likewise.
3491 (I386_DR_WATCH_HIT): Likewise.
3492 (i386_wp_op_t): Likewise.
3493 (i386_show_dr): Likewise.
3494 (i386_length_and_rw_bits): Likewise.
3495 (i386_insert_aligned_watchpoint): Likewise.
3496 (i386_remove_aligned_watchpoint): Likewise.
3497 (i386_handle_nonaligned_watchpoint): Likewise.
3498 (i386_update_inferior_debug_regs): Likewise.
3499 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3500 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3501 (i386_region_ok_for_watchpoint):
3502 Use i386_dr_region_ok_for_watchpoint.
3503 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3505 2014-06-19 Gary Benson <gbenson@redhat.com>
3507 * i386-nat.c (i386_insert_hw_breakpoint): Use
3508 i386_insert_watchpoint.
3509 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3511 2014-06-19 Gary Benson <gbenson@redhat.com>
3513 * i386-nat.c (i386_dr_show): Renamed to
3514 i386_show_dr and made static. All uses updated.
3515 (i386_dr_length_and_rw_bits): Renamed to
3516 i386_length_and_rw_bits and made static.
3518 (i386_dr_insert_aligned_watchpoint): Renamed to
3519 i386_insert_aligned_watchpoint and made static.
3521 (i386_dr_remove_aligned_watchpoint): Renamed to
3522 i386_remove_aligned_watchpoint and made static.
3524 (i386_dr_update_inferior_debug_regs): Renamed to
3525 i386_update_inferior_debug_regs and made static.
3527 * nat/i386-dregs.h (i386_dr_show): Removed.
3528 (i386_dr_length_and_rw_bits): Likewise.
3529 (i386_dr_insert_aligned_watchpoint): Likewise.
3530 (i386_dr_remove_aligned_watchpoint): Likewise.
3531 (i386_dr_update_inferior_debug_regs): Likewise.
3533 2014-06-19 Gary Benson <gbenson@redhat.com>
3535 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3536 * configure: Regenerate.
3537 * config.in: Likewise.
3538 * main.c (signal.h): New include.
3539 (setup_alternate_signal_stack): New function.
3540 (captured_main): Call the above.
3541 * cp-support.c (signal.h): New include.
3542 (catch_demangler_crashes): New flag.
3543 (SIGJMP_BUF): New define.
3544 (SIGSETJMP): Likewise.
3545 (SIGLONGJMP): Likewise.
3546 (gdb_demangle_jmp_buf): New static global.
3547 (gdb_demangle_attempt_core_dump): Likewise.
3548 (gdb_demangle_signal_handler): New function.
3549 (gdb_demangle): If catch_demangler_crashes is set, install the
3550 above signal handler before calling bfd_demangle, and restore
3551 the original signal handler afterwards. Display the offending
3552 symbol and call demangler_warning the first time a segmentation
3554 (_initialize_cp_support): New maint set/show command.
3556 2014-06-19 Gary Benson <gbenson@redhat.com>
3558 * utils.h (resource_limit_kind): New enum.
3559 (can_dump_core): New declaration.
3560 (warn_cant_dump_core): Likewise.
3561 (dump_core): Likewise.
3562 * utils.c (dump_core): Made nonstatic. Added new
3563 parameter "limit_kind".
3564 (can_dump_core): Made nonstatic. Moved printing code to...
3565 (warn_cant_dump_core): New function.
3566 (can_dump_core_warn): Likewise.
3567 (internal_vproblem): Replace calls to can_dump_core with
3568 calls to can_dump_core_warn. Supply new argument to each.
3570 2014-06-19 Gary Benson <gbenson@redhat.com>
3572 * utils.h (demangler_vwarning): New declaration.
3573 (demangler_warning): Likewise.
3574 * utils.c (struct internal_problem)
3575 <user_settable_should_quit>: New field.
3576 <user_settable_should_dump_core>: Likewise
3577 (internal_error_problem): Add values for above new fields.
3578 (internal_warning_problem): Likewise.
3579 (demangler_warning_problem): New static global.
3580 (demangler_vwarning): New function.
3581 (demangler_warning): Likewise.
3582 (add_internal_problem_command): Selectively add commands.
3583 (_initialize_utils): New internal problem command.
3584 * maint.c (maintenance_demangler_warning): New function.
3585 (_initialize_maint_cmds): New command.
3587 2014-06-18 Tom Tromey <tromey@redhat.com>
3589 * f-valprint.c (info_common_command_for_block): Update.
3590 * symtab.h (struct general_symbol_info) <common_block>: Now
3593 2014-06-18 Tom Tromey <tromey@redhat.com>
3595 * symtab.h (struct symtab) <blockvector>: Now const.
3596 * ada-lang.c (ada_add_global_exceptions): Update.
3597 * buildsym.c (augment_type_symtab): Update.
3598 * dwarf2read.c (dw2_lookup_symbol): Update.
3599 * jit.c (finalize_symtab): Update.
3600 * jv-lang.c (add_class_symtab_symbol): Update.
3601 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3603 * objfiles.c (objfile_relocate1): Update.
3604 * psymtab.c (lookup_symbol_aux_psymtabs)
3605 (maintenance_check_psymtabs): Update.
3606 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3608 * spu-tdep.c (spu_catch_start): Update.
3609 * symmisc.c (dump_symtab_1): Update.
3610 * symtab.c (lookup_global_symbol_from_objfile)
3611 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3612 (basic_lookup_transparent_type_quick)
3613 (basic_lookup_transparent_type, find_pc_sect_symtab)
3614 (find_pc_sect_line, search_symbols): Update.
3615 * block.c (find_block_in_blockvector): Make "bl" const.
3616 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3618 (blockvector_contains_pc): Make "bv" const.
3619 (block_for_pc_sect): Update.
3620 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3621 (blockvector_contains_pc): Update.
3622 * breakpoint.c (resolve_sal_pc): Update.
3623 * inline-frame.c (block_starting_point_at): Update.
3625 2014-06-18 Tom Tromey <tromey@redhat.com>
3627 * completer.c (complete_line): Make "line_buffer" const.
3628 * completer.h (complete_line): Update.
3630 2014-06-18 Tom Tromey <tromey@redhat.com>
3632 * symtab.c (add_macro_name): Remove unneeded cast.
3634 2014-06-18 Tom Tromey <tromey@redhat.com>
3636 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3637 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3639 2014-06-18 Tom Tromey <tromey@redhat.com>
3641 * probe.c (info_probes_for_ops): Make "arg" const.
3642 * probe.h (info_probes_for_ops): Update.
3644 2014-06-18 Tom Tromey <tromey@redhat.com>
3646 * varobj.c (varobj_create): Update.
3647 * valops.c (value_of_this): Update.
3648 * tracepoint.c (add_local_symbols, scope_info): Update.
3649 * symtab.h (struct general_symbol_info) <block>: Now const.
3650 * symtab.c (skip_prologue_sal)
3651 (default_make_symbol_completion_list_break_on)
3652 (skip_prologue_using_sal): Update.
3653 * stack.h (iterate_over_block_locals)
3654 (iterate_over_block_local_vars): Update.
3655 * stack.c (print_frame_args): Update.
3656 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3658 (get_selected_block): Make return type const.
3659 * python/py-frame.c (frapy_block): Update.
3660 * python/py-block.c (gdbpy_block_for_pc): Update.
3661 * p-exp.y (%union) <bval>: Now const.
3662 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3663 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3664 * m2-exp.y (%union) <bval>: Now const.
3665 * linespec.c (get_current_search_block): Make return type const.
3666 (create_sals_line_offset, find_label_symbols): Update.
3667 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3669 (block_starting_point_at): Make "block" const.
3670 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3671 (check_exception_resume): Update.
3672 * guile/scm-frame.c (gdbscm_frame_block): Update.
3673 * guile/scm-block.c (gdbscm_lookup_block): Update.
3674 * frame.h (get_frame_block): Update.
3675 (get_selected_block): Make return type const.
3676 * frame.c (frame_id_inner): Update.
3677 * f-valprint.c (info_common_command_for_block)
3678 (info_common_command): Update.
3679 * dwarf2loc.c (dwarf2_find_location_expression)
3680 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3681 (locexpr_describe_location_piece): Update.
3682 * c-exp.y (%union) <bval>: Now const.
3683 * breakpoint.c (resolve_sal_pc): Update.
3684 * blockframe.c (get_frame_block):Make return type const.
3685 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3686 (block_innermost_frame): Update.
3687 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3688 (block_for_pc, block_for_pc_sect): Update.
3689 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3691 (block_for_pc_sect, block_for_pc): Make return type const.
3692 * ax-gdb.c (gen_expr): Update.
3693 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3694 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3695 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3696 (ada_read_var_value): Update.
3697 * ada-exp.y (struct name_info) <block>: Now const.
3699 (block_lookup): Constify.
3701 2014-06-18 Gary Benson <gbenson@redhat.com>
3703 * nat/i386-dregs.h: New file.
3704 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3705 * i386-nat.h (i386-dregs.h): New include.
3706 (DR_FIRSTADDR): Now in i386-dregs.h.
3707 (DR_LASTADDR): Likewise.
3708 (DR_NADDR): Likewise.
3709 (DR_STATUS): Likewise.
3710 (DR_CONTROL): Likewise.
3711 (i386_debug_reg_state): Likewise.
3712 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3714 2014-06-18 Don Breazeal <donb@codesourcery.com>
3716 * breakpoint.c (set_longjmp_breakpoint): Call
3717 momentary_breakpoint_from_master with additional argument.
3718 (set_longjmp_breakpoint_for_call_dummy): Call
3719 momentary_breakpoint_from_master with additional argument.
3720 (set_std_terminate_breakpoint): Call
3721 momentary_breakpoint_from_master with additional argument.
3722 (momentary_breakpoint_from_master): Add argument to function
3723 definition and use it to initialize structure member flag.
3724 (clone_momentary_breakpoint): Call
3725 momentary_breakpoint_from_master with additional argument.
3726 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3727 member flags set in momentary_breakpoint_from_master.
3729 2014-06-18 Gary Benson <gbenson@redhat.com>
3731 * i386-nat.c (i386_show_dr): Renamed to
3732 i386_dr_show and made nonstatic. All uses updated.
3733 (i386_length_and_rw_bits): Renamed to
3734 i386_dr_length_and_rw_bits and made nonstatic.
3736 (i386_insert_aligned_watchpoint): Renamed to
3737 i386_dr_insert_aligned_watchpoint and made nonstatic.
3739 (i386_remove_aligned_watchpoint): Renamed to
3740 i386_dr_remove_aligned_watchpoint and made nonstatic.
3742 (i386_update_inferior_debug_regs): Renamed to
3743 i386_dr_update_inferior_debug_regs and made nonstatic.
3746 2014-06-18 Gary Benson <gbenson@redhat.com>
3748 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3749 (i386_dr_low_can_set_control): Likewise.
3750 (i386_dr_low_set_addr): Likewise.
3751 (i386_dr_low_set_control): Likewise.
3752 (i386_dr_low_get_addr): Likewise.
3753 (i386_dr_low_get_status): Likewise.
3754 (i386_dr_low_get_control): Likewise.
3755 (i386_insert_aligned_watchpoint): Use new macros.
3756 (i386_update_inferior_debug_regs): Likewise.
3757 (i386_stopped_data_address): Likewise.
3759 2014-06-18 Gary Benson <gbenson@redhat.com>
3761 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3762 New parameter. All uses updated.
3764 2014-06-18 Gary Benson <gbenson@redhat.com>
3766 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3769 2014-06-18 Gary Benson <gbenson@redhat.com>
3771 * i386-nat.c (debug_printf): New macro.
3772 (i386_get_debug_register_length): Likewise.
3773 (TARGET_HAS_DR_LEN_8): Use above macro.
3774 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3775 and printf_unfiltered. Use phex to format values.
3777 2014-06-18 Gary Benson <gbenson@redhat.com>
3779 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3782 2014-06-18 Gary Benson <gbenson@redhat.com>
3784 * i386-nat.c: Comment changes.
3786 2014-06-18 Gary Benson <gbenson@redhat.com>
3788 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3790 2014-06-18 Gary Benson <gbenson@redhat.com>
3792 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3793 (i386_insert_aligned_watchpoint): Likewise.
3794 (i386_remove_aligned_watchpoint): Likewise.
3795 (i386_handle_nonaligned_watchpoint): Likewise.
3797 2014-06-18 Gary Benson <gbenson@redhat.com>
3799 * i386-nat.c: Whitespace changes.
3801 2014-06-17 Samuel Bronson <naesten@gmail.com>
3803 * MAINTAINERS: Update Roland McGrath's email address.
3804 Thanks to Sergio Durigan Junior for pointing out that he left
3805 Red Hat a while ago, and giving me a current address.
3807 2014-06-17 Tom Tromey <tromey@redhat.com>
3809 * utils.h (savestring): Remove declaration.
3811 2014-06-17 Tom Tromey <tromey@redhat.com>
3813 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3815 2014-06-16 Keith Seitz <keiths@redhat.com>
3818 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3819 to update the varobj if inferior_ptid is null_ptid.
3821 2014-06-16 Tom Tromey <tromey@redhat.com>
3823 * target.h (struct target_ops) <to_info_proc>: Make parameter
3825 (target_info_proc): Update.
3826 * target.c (target_info_proc): Make "args" const.
3827 * procfs.c (procfs_info_proc): Update.
3828 * linux-tdep.c (linux_info_proc): Update.
3829 (linux_core_info_proc_mappings): Make "args" const.
3830 (linux_core_info_proc): Update.
3831 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3832 * gdbarch.c: Rebuild.
3833 * gdbarch.h: Rebuild.
3834 * corelow.c (core_info_proc): Update.
3836 2014-06-16 Tom Tromey <tromey@redhat.com>
3838 * target.h (struct target_ops) <to_disconnect>: Make parameter
3840 (target_disconnect): Update.
3841 * target.c (target_disconnect): Make "args" const.
3842 * target-delegates.c: Rebuild.
3843 * remote.c (remote_disconnect): Update.
3844 * record.h (record_disconnect): Update.
3845 * record.c (record_disconnect): Update.
3846 * inf-child.c (inf_child_disconnect): Update.
3848 2014-06-16 Tom Tromey <tromey@redhat.com>
3850 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3851 * target.c (debug_to_rcmd, default_rcmd): Update.
3852 * target-delegates.c: Rebuild.
3853 * remote.c (remote_rcmd): Update.
3854 * monitor.c (monitor_rcmd): Update.
3856 2014-06-16 Pedro Alves <palves@redhat.com>
3858 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3859 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3860 have OBJF_SHARED set.
3861 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3862 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3863 instead of OBJF_USERLOADED.
3864 * objfiles.h (OBJF_SHARED): Update comment.
3865 (userloaded_objfile_contains_address_p): Rename to ...
3866 (shared_objfile_contains_address_p): ... this, and update
3868 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3870 (remove_symbol_file_command): Skip objfiles that don't have
3873 2014-06-16 Tom Tromey <tromey@redhat.com>
3875 * minsyms.h (prim_record_minimal_symbol)
3876 (prim_record_minimal_symbol_and_info): Update comments.
3878 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3880 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3881 or --without-guile, according to how GDB was built.
3883 2014-06-13 Tom Tromey <tromey@redhat.com>
3885 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3887 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3889 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3891 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3892 help_list.Pass all_commands, not -1, to help_list.
3893 * cli/cli-dump.c (dump_command, append_command)
3894 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3895 (binary_dump_command, binary_append_command): Pass all_commands,
3896 not -1, to help_list.
3897 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3899 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3901 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3903 * top.c (set_history): Pass all_commands, not -1, to help_list.
3904 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3905 all_commands, not -1, to help_list.
3906 * symfile.c (overlay_command): Pass all_commands, not -1, to
3908 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3910 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3912 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3914 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3915 not -1, to help_list.
3916 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3917 not -1, to help_list.
3918 * maint.c (maintenance_command, maintenance_info_command)
3919 (maintenance_print_command, maintenance_set_cmd): Pass
3920 all_commands, not -1, to help_list.
3921 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3923 * language.c (set_check): Pass all_commands, not -1, to help_list.
3924 * infcmd.c (unset_command): Pass all_commands, not -1, to
3926 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3928 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3930 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3932 * breakpoint.c (save_command): Pass all_commands, not -1, to
3934 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3935 all_commands, not -1, to help_list.
3937 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3939 * regcache.c (struct register_to_invalidate): New structure.
3940 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3942 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3944 2014-06-12 Yao Qi <yao@codesourcery.com>
3946 * varobj.c (varobj_get_num_children): Call
3947 varobj_is_dynamic_p.
3948 (varobj_list_children): Likewise.
3949 (varobj_update): Likewise. Update comments.
3951 2014-06-12 Yao Qi <yao@codesourcery.com>
3953 * varobj.c (varobj_pretty_printed_p): Rename to ...
3954 (varobj_is_dynamic_p): ... this. New function.
3955 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3956 (varobj_is_dynamic_p): Declare.
3957 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3958 (mi_print_value_p, varobj_update_one): Likewise.
3960 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3961 Yao Qi <yao@codesourcery.com>
3963 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3964 (varobj_get_iterator): Wrap up code for pretty-printer by
3965 "#if HAVE_PYTHON" and "#endif".
3966 (update_dynamic_varobj_children): Likewise.
3968 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3969 Yao Qi <yao@codesourcery.com>
3971 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3972 gdb_python_initialized is false. Move some code from varobj.c.
3973 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3974 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3975 (struct varobj_item): Moved to varobj-iter.h".
3976 (varobj_clear_saved_item): New function.
3977 (update_dynamic_varobj_children): Move python-related code to
3979 (free_variable): Call varobj_clear_saved_item and
3982 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3983 Yao Qi <yao@codesourcery.com>
3985 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3986 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3987 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3988 (py-varobj.o): New rule.
3989 * python/py-varobj.c: New file.
3990 * python/python-internal.h (py_varobj_get_iterator): Declare.
3991 * varobj-iter.h: New file.
3992 * varobj.c: Include "varobj-iter.h"
3993 (struct varobj) <child_iter>: Change its type from "PyObject *"
3994 to "struct varobj_iter *".
3995 <saved_item>: Likewise.
3996 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3997 [HAVE_PYTHON] (varobj_get_iterator): New function.
3998 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3999 python-specific code to python/py-varobj.c.
4000 (install_visualizer): Call varobj_iter_delete instead of
4002 * varobj.h (varobj_ensure_python_env): Declare.
4004 2014-06-12 Yao Qi <yao@codesourcery.com>
4006 * varobj.c (struct varobj_item): New structure.
4007 (create_child_with_value): Update declaration.
4008 (varobj_add_child): Replace arguments 'name' and 'value' with
4009 'item'. All callers updated.
4010 (install_dynamic_child): Likewise.
4011 (update_dynamic_varobj_children): Likewise.
4012 (varobj_add_child): Likewise.
4013 (create_child_with_value): Likewise.
4015 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4017 * NEWS: Create a new section for the next release branch.
4018 Rename the section of the current branch, now that it has
4021 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4023 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4024 * version.in: Bump version to 7.8.50.DATE-cvs.
4026 2014-06-11 Pedro Alves <palves@redhat.com>
4029 * ser-mingw.c (net_windows_socket_check_pending): New function.
4030 (net_windows_select_thread): Ignore spurious wakeups. Use
4031 net_windows_socket_check_pending.
4032 (net_windows_wait_handle): Check for pending events with
4033 ioctlsocket, through net_windows_socket_check_pending, instead of
4034 checking the socket's event.
4036 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4038 * python/python-internal.h (gdb_PyObject_GetAttrString)
4039 (gdb_PyObject_HasAttrString): New inline function definitions.
4040 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4041 char * of the second argument to PyObject_GetAttrString.
4043 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4045 * serial.c (serial_write): Fix index of character to be printed
4046 in call to serial_logchar when serial debug traces are enabled.
4048 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4050 * gdbtypes (resolve_dynamic_range): Add function description.
4052 2014-06-09 Pedro Alves <palves@redhat.com>
4054 * linux-nat.c (linux_child_follow_fork): Initialize status with
4055 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4056 inner block. Only pass the signal to PTRACE_DETACH if in pass
4059 2014-06-09 Gary Benson <gbenson@redhat.com>
4061 * common/signals.c (gdb_signal_from_host): Reorder to separate
4062 the always-available ANSI-standard signals from the signals that
4064 (do_gdb_signal_to_host): Likewise.
4065 * proc-events.c (signal_table): Likewise.
4067 2014-06-08 Hui Zhu <hui@codesourcery.com>
4069 * common/linux-ptrace.c (linux_disable_event_reporting): New
4071 * common/linux-ptrace.h (linux_disable_event_reporting): New
4073 * linux-nat.c (linux_child_follow_fork): Do a single step before
4076 2014-06-07 Keith Seitz <keiths@redhat.com>
4080 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4081 from symbol_matches_domain in symtab.c. All local callers
4082 of symbol_matches_domain updated.
4083 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4084 search STRUCT_DOMAIN.
4085 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4086 independently. standard_lookup will do that automatically.
4087 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4088 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4089 (cp_lookup_symbol_in_namespace): Likewise.
4090 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4091 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4092 may return a STRUCT_DOMAIN match.
4093 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4094 * cp-support.c: Include language.h.
4095 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4097 * psymtab.c (match_partial_symbol): Compare the requested
4098 domain with the symbol's domain directly.
4099 (lookup_partial_symbol): Likewise.
4100 * symtab.c (lookup_symbol_in_language): Explain when/why
4101 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4102 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4103 appropriate languages.
4104 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4105 and moved to ada-lang.c
4106 (lookup_block_symbol): Explain that this function only returns
4107 symbol matching the requested DOMAIN.
4108 Compare the requested domain with the symbol's domain directly.
4109 (iterate_over_symbols): Compare the requested domain with the
4110 symbol's domain directly.
4111 * symtab.h (symbol_matches_domain): Remove.
4113 2014-06-06 Doug Evans <xdje42@gmail.com>
4115 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4116 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4117 (gdbscm_guile_version_is_at_least): Declare.
4118 (gdbscm_scm_string_to_int): Declare.
4119 * guile/guile.c (gdbscm_guile_major_version): New global.
4120 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4121 (guile_datadir): New static global.
4122 (gdbscm_guile_data_directory): New function.
4123 (initialize_scheme_side): Update.
4124 (misc_guile_functions): Add guile-data-directory.
4125 (initialize_gdb_module): Fetch guile version number.
4126 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4127 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4128 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4129 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4131 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4132 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4133 * guile/scm-value.c (gdbscm_value_to_string): Only call
4134 scm_port_conversion_strategy if Guile version >= 2.0.6.
4136 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4138 * main.c (print_gdb_help): Add -q and --silent.
4140 2014-06-06 Gary Benson <gbenson@redhat.com>
4142 * common/signals.c: Remove preprocessor conditionals for
4143 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4144 SIGSEGV and SIGTERM.
4145 * proc-events.c: Likewise.
4147 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4149 * symfile.c (symfile_free_objfile): Remove restriction to
4151 * symfile-mem.c (symbol_file_add_from_memory): Call
4152 add_target_sections_of_objfile.
4154 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4156 * guile/scm-value.c (gdbscm_history_append_x): Use
4157 'vlscm_get_value_smob_arg_unsafe' instead of
4158 'vlscm_scm_to_value'.
4160 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4163 * utils.c (printchar): Don't escape at all if quoter is NUL.
4164 Update function documentation to clarify effect of parameter
4166 * remote.c (escape_buffer): Pass '\\' as the quoter to
4167 fputstrn_unfiltered.
4168 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4169 generate the output.
4170 (mi_solib_unloaded): Same.
4172 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4174 * development.sh: Delete.
4175 * Makefile.in (config.status): Adjust dependency on development.sh.
4176 * configure.ac: Adjust development.sh source call.
4177 * configure: Regenerate.
4179 2014-06-04 Doug Evans <xdje42@gmail.com>
4181 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4182 is_scheme_bkpt, spec.
4183 (bpscm_make_breakpoint_smob): Initialize new members.
4184 (gdbscm_create_breakpoint_x): Split into two ...
4185 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4186 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4187 (scheme_function breakpoint_functions): Update.
4188 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4189 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4190 register-breakpoint!.
4192 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4195 * mem-break.c (z_type_supported): Return zero if
4196 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4198 2014-06-04 Tom Tromey <tromey@redhat.com>
4200 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4201 value_from_contents_and_address_unresolved.
4202 (ada_template_to_fixed_record_type_1): Likewise.
4203 (ada_which_variant_applies): Likewise.
4204 * value.h (value_from_contents_and_address_unresolved): Declare.
4205 * value.c (value_from_contents_and_address_unresolved): New
4207 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4208 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4209 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4211 2014-06-04 Tom Tromey <tromey@redhat.com>
4213 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4215 2014-06-04 Tom Tromey <tromey@redhat.com>
4217 * procfs.c (procfs_attach): Make "args" const.
4218 * windows-nat.c (windows_attach): Make "args" const.
4219 * nto-procfs.c (procfs_attach): Make "args" const.
4220 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4221 * go32-nat.c (go32_attach): Make "args" const.
4222 * gnu-nat.c (gnu_attach): Make "args" const.
4223 * darwin-nat.c (darwin_attach): Make "args" const.
4224 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4225 * linux-nat.c (linux_nat_attach): Make "args" const.
4226 * remote.c (extended_remote_attach_1, extended_remote_attach):
4228 * target.h (struct target_ops) <to_attach>: Make "args" const.
4229 (find_default_attach): Likewise.
4230 * utils.c (parse_pid_to_attach): Make "args" const.
4231 * utils.h (parse_pid_to_attach): Update.
4233 2014-06-04 Tom Tromey <tromey@redhat.com>
4235 * target-delegates.c: Rebuild.
4236 * target.c (default_thread_address_space): New function.
4237 (target_thread_address_space): Simplify.
4238 * target.h (struct target_ops) <to_thread_address_space>: Add
4239 TARGET_DEFAULT_FUNC.
4241 2014-06-04 Doug Evans <xdje42@gmail.com>
4243 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4245 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4247 * record-btrace.c: Include event-loop.h and inf-loop.h.
4248 (record_btrace_resume_exec_dir)
4249 (record_btrace_async_inferior_event_handler)
4250 (record_btrace_handle_async_inferior_event): New.
4251 (record_btrace_open): Create async event handler.
4252 (record_btrace_close): Delete async event handler.
4253 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4254 Mark async event handler.
4255 (record_btrace_execution_direction): New.
4256 (init_record_btrace_ops): Initialize to_execution_direction.
4258 2014-06-03 Doug Evans <xdje42@gmail.com>
4260 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4261 (gdbscm_make_parameter): Ditto.
4263 2014-06-03 Doug Evans <dje@google.com>
4265 * exec.c (exec_close_1): Call clear_section_table instead of
4266 resize_section_table.
4267 (clear_section_table): New function.
4268 (resize_section_table): Make static. Rename arg num_added to
4270 * exec.h (clear_section_table): Declare.
4271 (resize_section_table): Delete.
4272 * progspace.c (release_program_space): Call clear_section_table
4273 instead of resize_section_table.
4275 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4277 * NEWS (Python Scripting): Add entry about the new xmethods
4280 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4282 * python/py-xmethods.c: New file.
4283 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4284 (objfpy_dealloc): XDECREF on the new xmethods field.
4285 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4287 (objfpy_get_xmethods): New function.
4288 (objfile_getset): New entry 'xmethods'.
4289 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4290 (pspy_dealloc): XDECREF on the new xmethods field.
4291 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4293 (pspy_get_xmethods): New function.
4294 (pspace_getset): New entry 'xmethods'.
4295 * python/python-internal.h: Add declarations for new functions.
4296 * python/python.c (_initialize_python): Invoke
4297 gdbpy_initialize_xmethods.
4298 * python/lib/gdb/__init__.py (xmethods): New
4300 * python/lib/gdb/xmethod.py: New file.
4301 * python/lib/gdb/command/xmethods.py: New file.
4303 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4305 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4306 best match method returned by find_overload_match is an xmethod.
4307 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4308 the best matching operator returned by find_overload_match is an
4310 * valops.c: #include "extension.h".
4311 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4312 Return void. The list of matching source methods is returned in
4313 "fn_list" and a vector of matching debug method workers is
4314 returned in "xm_worker_vec". Update all callers.
4315 (value_find_oload_method_list): Likewise.
4316 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4317 non-NULL, then the index of the best matching method in this
4318 vector is returned. Update all callers.
4319 (find_overload_match): Include xmethods while performing overload
4322 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4324 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4325 * extension-priv.h (struct extension_language_ops): Add the
4327 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4328 get_matching_xmethod_workers, get_xmethod_argtypes,
4329 invoke_xmethod, free_xmethod_worker,
4330 free_xmethod_worker_vec): New functions.
4331 * extension.h: #include "common/vec.h".
4332 New function declarations.
4333 (struct xmethod_worker): New struct.
4334 (VEC (xmethod_worker_ptr)): New vector type.
4335 (xmethod_worker_ptr): New typedef.
4336 (xmethod_worker_vec): Likewise.
4337 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4339 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4340 (struct builtin_type): New field "xmethod".
4341 * valarith.c (value_ptradd): Assert that the value argument is not
4343 * valops.c (value_must_coerce_to_target): Return 0 for
4344 lval_xcallable values.
4345 * value.c (struct value): New field XM_WORKER in the field
4347 (value_address, value_raw_address): Return 0 for lval_xcallable
4349 (set_value_address): Assert that the value is not an
4351 (value_free): Free the associated xmethod worker when freeing
4352 lval_xcallable values.
4353 (set_value_component_location): Assert that the WHOLE value is not
4355 (value_of_xmethod, call_xmethod): New functions.
4356 * value.h: Declare "struct xmethod_worker".
4357 Declare new functions value_of_xmethod, call_xmethod.
4359 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4360 Pedro Alves <palves@redhat.com>
4362 PR breakpoints/17000
4363 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4364 New function, extracted from software_breakpoint_inserted_here_p.
4365 (software_breakpoint_inserted_here_p): Replace factored out code
4366 by call to find_non_raw_software_breakpoint_inserted_here.
4367 (bp_target_info_copy_insertion_state): New function.
4368 (bkpt_insert_location): Handle the case of a single-step
4369 breakpoint already inserted at the same address.
4370 (bkpt_remove_location): Handle the case of a single-step
4371 breakpoint still inserted at the same address.
4372 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4373 breakpoint already inserted at the same address.
4374 (deprecated_remove_raw_breakpoint): Handle the case of a
4375 non-raw breakpoint still inserted at the same address.
4376 (find_single_step_breakpoint): New function, extracted from
4377 single_step_breakpoint_inserted_here_p.
4378 (find_single_step_breakpoint): New function,
4379 factored out from single_step_breakpoint_inserted_here_p.
4380 (single_step_breakpoint_inserted_here_p): Reimplement.
4382 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4384 Pushed by Joel Brobecker <brobecker@adacore.com>
4385 * source.c (show_substitute_path_command): Fix display of matching
4388 2014-06-03 Gary Benson <gbenson@redhat.com>
4390 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4392 2014-06-02 Doug Evans <xdje42@gmail.com>
4394 Add parameter support for Guile.
4395 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4396 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4397 (scm-param.o): New rule.
4398 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4399 (gdbscm_misc_error): Declare.
4400 (gdbscm_canonicalize_command_name): Declare.
4401 (gdbscm_scm_to_host_string): Declare.
4402 (gdbscm_scm_from_host_string): Declare.
4403 (gdbscm_initialize_parameters): Declare.
4404 * guile/guile.c (initialize_gdb_module): Call
4405 gdbscm_initialize_parameters.
4406 * guile/lib/gdb.scm: Export parameter symbols.
4407 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4408 cmdscm_canonicalize_name and made public. All callers updated.
4409 * guile/scm-exception.c (gdbscm_misc_error): New function.
4410 * guile/scm-param.c: New file.
4411 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4412 (gdbscm_scm_to_host_string): New function.
4413 (gdbscm_scm_from_host_string): New function.
4414 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4416 2014-06-02 Doug Evans <xdje42@gmail.com>
4418 Add command support for Guile.
4419 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4420 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4421 (scm-cmd.o): New rule.
4422 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4423 (gdbscm_user_error_p): Declare.
4424 (gdbscm_parse_command_name): Declare.
4425 (gdbscm_valid_command_class_p): Declare.
4426 (gdbscm_initialize_commands): Declare.
4427 * guile/guile.c (initialize_gdb_module): Call
4428 gdbscm_initialize_commands.
4429 * guile/lib/gdb.scm: Export command symbols.
4430 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4431 (throw-user-error): New function.
4432 * guile/scm-cmd.c: New file.
4433 * guile/scm-exception.c (user_error_symbol): New static global.
4434 (gdbscm_user_error_p): New function.
4435 (gdbscm_initialize_exceptions): Set user_error_symbol.
4436 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4438 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4440 * top.c (command_loop): Handle comments here...
4441 (command_line_input): ... not here.
4443 2014-06-02 Doug Evans <xdje42@gmail.com>
4445 Add progspace support for Guile.
4446 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4447 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4448 (scm-progspace.o): New rule.
4449 * guile/guile-internal.h (pspace_smob): New typedef.
4450 (psscm_pspace_smob_pretty_printers): Declare.
4451 (psscm_pspace_smob_from_pspace): Declare.
4452 (psscm_scm_from_pspace): Declare.
4453 * guile/guile.c (initialize_gdb_module): Call
4454 gdbscm_initialize_pspaces.
4455 * guile/lib/gdb.scm: Export progspace symbols.
4456 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4458 (append-pretty-printer!): Ditto.
4459 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4461 * guile/scm-progspace.c: New file.
4463 2014-06-03 Alan Modra <amodra@gmail.com>
4465 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4466 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4468 2014-06-02 Doug Evans <dje@google.com>
4470 Add support for skeletonless type units.
4471 * dwarf2read.c (struct dwarf2_per_objfile): New member
4472 n_allocated_type_units.
4473 (struct dwarf2_per_objfile) <tu_stats>: New member
4474 nr_all_type_units_reallocs.
4475 (create_signatured_type_table_from_index): Initialize
4476 n_allocated_type_units
4477 (create_all_type_units): Ditto.
4478 (add_type_unit): Move up in file. New arg slot.
4479 All callers updated. Increase space for all_type_units more
4481 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4482 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4483 (lookup_dwp_signatured_type): Ditto.
4484 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4485 All callers updated.
4486 (build_type_psymtabs_1): Leave type_unit_groups as
4487 NULL if no TUs present.
4488 (print_tu_stats): New function.
4489 (process_skeletonless_type_unit): New function.
4490 (process_dwo_file_for_skeletonless_type_units): New
4492 (process_skeletonless_type_units): New function.
4493 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4494 Call print tu_stats if debugging enabled.
4496 2014-06-02 Pedro Alves <palves@redhat.com>
4498 * breakpoint.c (build_target_command_list): Don't build a command
4499 list if we have any duplicate location that isn't a dprintf.
4501 2014-06-02 Pedro Alves <palves@redhat.com>
4503 * breakpoint.c (dprintf_breakpoint_hit): New function.
4504 (initialize_breakpoint_ops): Install it as dprintf's
4505 breakpoint_hit method.
4507 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4509 * source.c (substitute_path_rule_matches): Simplify using
4510 filename_ncmp instead of FILENAME_CMP.
4512 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4514 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4516 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4518 * configure.ac: When Guile is available, check for the
4519 availability of 'scm_new_smob'.
4520 * configure, config.h.in: Regenerate.
4521 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4524 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4526 * frame.c (struct frame_info): Add stop_string field.
4527 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4528 (get_prev_frame_always): Old content moved into
4529 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4530 TRY_CATCH, handle MEMORY_ERROR exceptions.
4531 (frame_stop_reason_string): New function definition.
4532 * frame.h (unwind_stop_reason_to_string): Extend comment to
4533 mention frame_stop_reason_string.
4534 (frame_stop_reason_string): New function declaration.
4535 * stack.c (frame_info): Switch to frame_stop_reason_string.
4536 (backtrace_command_1): Switch to frame_stop_reason_string.
4537 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4538 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4539 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4541 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4543 * frame.c (frame_stop_reason_string): Rename to ...
4544 (unwind_stop_reason_to_string): this.
4545 * frame.h (frame_stop_reason_string): Rename to ...
4546 (unwind_stop_reason_to_string): this.
4547 * stack.c (frame_info): Update call to frame_stop_reason_string.
4548 (backtrace_command_1): Likewise.
4549 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4550 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4552 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4554 * frame.c (remove_prev_frame): New function.
4555 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4558 2014-05-29 Pedro Alves <palves@redhat.com>
4560 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4561 and make it const. When a single-step decays to a continue,
4562 clear 'step', not 'hw_step'. Pass whether the caller wanted
4563 to step to user_visible_resume_ptid, not what we ask the
4566 2014-05-29 Pedro Alves <palves@redhat.com>
4568 * infrun.c (process_event_stop_test, handle_step_into_function)
4569 (handle_step_into_function_backward): Adjust.
4570 Don't set the even thread's stop_step and call stop_waiting before
4571 calling end_stepping_range. Instead do that ...
4572 (end_stepping_range): ... here. Take an ecs pointer parameter.
4574 2014-05-29 Pedro Alves <palves@redhat.com>
4576 * infrun.c (stop_stepping): Rename to ...
4577 (stop_waiting): ... this.
4578 (proceed): Update comment.
4579 (process_event_stop_test, handle_inferior_event)
4580 (handle_signal_stop, handle_step_into_function)
4581 (handle_step_into_function_backward): Update.
4583 2014-05-29 Pedro Alves <palves@redhat.com>
4585 * infcall.c (run_inferior_call): Don't check whether the current
4586 thread is running after the proceed call.
4588 2014-05-29 Pedro Alves <palves@redhat.com>
4589 Tom Tromey <tromey@redhat.com>
4591 * NEWS: Mention "maint set target-async", "set mi-async", and that
4592 background execution commands are now always available.
4593 * target.h (target_async_permitted): Update comment.
4594 * target.c (target_async_permitted, target_async_permitted_1):
4596 (set_target_async_command): Rename to ...
4597 (maint_set_target_async_command): ... this.
4598 (show_target_async_command): Rename to ...
4599 (maint_show_target_async_command): ... this.
4600 (_initialize_target): Adjust.
4601 * infcmd.c (prepare_execution_command): Make extern.
4602 * inferior.h (prepare_execution_command): Declare.
4603 * infrun.c (set_observer_mode): Leave target async alone.
4604 * mi/mi-interp.c (mi_interpreter_init): Install
4605 mi_on_sync_execution_done as sync_execution_done observer.
4606 (mi_on_sync_execution_done): New function.
4607 (mi_execute_command_input_handler): Don't print the prompt if we
4608 just started a synchronous command with an async target.
4609 (mi_on_resume): Check sync_execution before printing prompt.
4610 * mi/mi-main.h (mi_async_p): Declare.
4611 * mi/mi-main.c: Include gdbcmd.h.
4612 (mi_async_p): New function.
4613 (mi_async, mi_async_1): New globals.
4614 (set_mi_async_command, show_mi_async_command, mi_async): New
4616 (exec_continue): Call prepare_execution_command.
4617 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4618 (mi_execute_async_cli_command): Use mi_async_p.
4619 (_initialize_mi_main): Install "set mi-async". Make
4620 "target-async" a deprecated alias.
4622 2014-05-29 Pedro Alves <palves@redhat.com>
4624 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4625 (_initialize_cli_interp): Adjust.
4626 * event-loop.c: Include "observer.h".
4627 (start_event_loop): Notify 'command_error' observers instead of
4628 calling display_gdb_prompt. Remove FIXME comment.
4629 * event-top.c (display_gdb_prompt): Remove call into the
4631 * inf-loop.c: Include "observer.h".
4632 (inferior_event_handler): Notify 'command_error' observers instead
4633 of calling display_gdb_prompt.
4634 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4635 observers instead of calling display_gdb_prompt.
4636 * interps.c (interp_set): Don't call display_gdb_prompt.
4637 (current_interp_display_prompt_p): Delete.
4638 * interps.h (interp_prompt_p): Delete declaration.
4639 (interp_prompt_p_ftype): Delete.
4640 (struct interp_procs) <prompt_proc_p>: Delete field.
4641 (current_interp_display_prompt_p): Delete declaration.
4642 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4643 (_initialize_mi_interp): Adjust.
4644 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4645 'command_error' observers.
4646 (tui_on_sync_execution_done, tui_on_command_error): New
4648 (tui_display_prompt_p): Delete.
4649 (_initialize_tui_interp): Adjust.
4651 2014-05-29 Pedro Alves <palves@redhat.com>
4654 * cli/cli-interp.c: Include infrun.h and observer.h.
4655 (cli_uiout, cli_interp): New globals.
4656 (cli_on_signal_received, cli_on_end_stepping_range)
4657 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4659 (cli_interpreter_init): Install them as 'end_stepping_range',
4660 'signal_received' 'signal_exited', 'exited' and 'no_history'
4662 (_initialize_cli_interp): Remove cli_interp local.
4663 * infrun.c (handle_inferior_event): Call the several stop reason
4664 observers instead of printing the stop reason directly.
4665 (end_stepping_range): New function.
4666 (print_end_stepping_range_reason, print_signal_exited_reason)
4667 (print_exited_reason, print_signal_received_reason)
4668 (print_no_history_reason): Make static, and add an uiout
4669 parameter. Print to that instead of to CURRENT_UIOUT.
4670 * infrun.h (print_end_stepping_range_reason)
4671 (print_signal_exited_reason, print_exited_reason)
4672 (print_signal_received_reason print_no_history_reason): New
4674 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4676 <cli_uiout>: New field.
4677 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4678 uiout for CLI output. Install 'signal_received',
4679 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4681 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4682 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4683 (mi_on_no_history): New functions.
4684 (ui_out_free_cleanup): Delete function.
4685 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4686 instead use the one already stored in the MI interpreter data.
4687 (mi_ui_out): Adjust.
4688 * tui/tui-interp.c: Include infrun.h and observer.h.
4689 (tui_interp): New global.
4690 (tui_on_signal_received, tui_on_end_stepping_range)
4691 (tui_on_signal_exited, tui_on_exited)
4692 (tui_on_no_history): New functions.
4693 (tui_init): Install them as 'end_stepping_range',
4694 'signal_received' 'signal_exited', 'exited' and 'no_history'
4696 (_initialize_tui_interp): Delete tui_interp local.
4698 2014-05-29 Pedro Alves <palves@redhat.com>
4701 * linux-nat.c (linux_nat_resume_callback): Rename the second
4702 parameter to 'except'. Skip LP if it points to EXCEPT.
4703 (linux_nat_resume): Don't mark the event lwp as not stopped
4704 before resuming sibling lwps. Instead ask
4705 linux_nat_resume_callback to skip the event lwp. Mark it as not
4706 stopped after actually resuming it.
4707 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4709 (wait_lwp): Mark the lwp as stopped here.
4710 (stop_wait_callback): Mark the lwp as not stopped right after
4711 resuming it. Don't mark lwps as stopped here.
4712 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4713 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4715 2014-05-29 Pedro Alves <palves@redhat.com>
4718 * infrun.c (resume): Determine how much to resume depending on
4719 whether the caller wanted a step, not whether we can hardware step
4720 the target. Mark all threads that we intend to run as running,
4721 unless we're calling an inferior function.
4722 (normal_stop): If the thread is running an infcall, don't finish
4724 * target.c (target_resume): Don't mark threads as running here.
4726 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4728 * serial.c (_initialize_serial): Remove support for
4729 the "set remotebaud" and "show remotebaud" commands.
4730 * NEWS: Add entry documenting the removal of that command.
4732 2014-05-28 Yao Qi <yao@codesourcery.com>
4734 * charset.c: Fix typo in comments.
4736 2014-05-27 Gary Benson <gbenson@redhat.com>
4738 * utils.c (internal_vproblem): Prompt for a bug report.
4740 2014-05-26 Andy Wingo <wingo@igalia.com>
4742 * guile/scm-arch.c (arscm_mark_arch_smob):
4743 * guile/scm-block.c (bkscm_mark_block_smob)
4744 (bkscm_mark_block_syms_progress_smob):
4745 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4746 * guile/scm-exception.c (exscm_mark_exception_smob):
4747 * guile/scm-frame.c (frscm_mark_frame_smob):
4748 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4749 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4750 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4751 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4752 (ppscm_mark_pretty_printer_worker_smob):
4753 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4754 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4755 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4756 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4758 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4761 2014-05-26 Andy Wingo <wingo@igalia.com>
4762 Doug Evans <xdje42@gmail.com>
4764 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4765 empty_base_class. All uses updated.
4766 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4767 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4769 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4770 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4771 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4772 (gdbscm_gsmob_has_property_p, add_property_name)
4773 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4774 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4775 (gdb-object-has-property?, gdb-object-properties): Remove.
4776 (gdb-object-kind): Renamed from gsmob-kind.
4778 2014-05-26 Andy Wingo <wingo@igalia.com>
4780 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4781 * configure: Regenerate.
4783 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4785 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4787 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4789 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4790 (replay_memory_access_read_only, replay_memory_access_read_write)
4791 (replay_memory_access_types, replay_memory_access)
4792 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4793 (cmd_set_record_btrace, cmd_show_record_btrace)
4794 (cmd_show_replay_memory_access): New.
4795 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4796 (record_btrace_remove_breakpoint): Replace
4797 record_btrace_allow_memory_access with replay_memory_access.
4798 (_initialize_record_btrace): Add commands.
4799 * NEWS: Announce it.
4801 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4803 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4805 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4807 * MAINTAINERS (Write After Approval): Move self back from
4810 2014-05-22 Pedro Alves <palves@redhat.com>
4812 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4813 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4814 (disable_randomization, enum exec_direction_kind)
4815 (execution_direction, stop_registers, start_remote)
4816 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4817 (wait_for_inferior, normal_stop, get_last_target_status)
4818 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4819 (insert_step_resume_breakpoint_at_sal)
4820 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4821 (set_step_info, print_stop_event, signal_stop_state)
4822 (signal_print_state, signal_pass_state, signal_stop_update)
4823 (signal_print_update, signal_pass_update)
4824 (update_signals_program_target, clear_exit_convenience_vars)
4825 (displaced_step_dump_bytes, update_observer_mode)
4826 (signal_catch_update, gdb_signal_from_command): Move
4828 * infrun.h: ... to this new file.
4829 * amd64-tdep.c: Include infrun.h.
4830 * annotate.c: Include infrun.h.
4831 * arch-utils.c: Include infrun.h.
4832 * arm-linux-tdep.c: Include infrun.h.
4833 * arm-tdep.c: Include infrun.h.
4834 * break-catch-sig.c: Include infrun.h.
4835 * breakpoint.c: Include infrun.h.
4836 * common/agent.c: Include infrun.h instead of inferior.h.
4837 * corelow.c: Include infrun.h.
4838 * event-top.c: Include infrun.h.
4839 * go32-nat.c: Include infrun.h.
4840 * i386-tdep.c: Include infrun.h.
4841 * inf-loop.c: Include infrun.h.
4842 * infcall.c: Include infrun.h.
4843 * infcmd.c: Include infrun.h.
4844 * infrun.c: Include infrun.h.
4845 * linux-fork.c: Include infrun.h.
4846 * linux-nat.c: Include infrun.h.
4847 * linux-thread-db.c: Include infrun.h.
4848 * monitor.c: Include infrun.h.
4849 * nto-tdep.c: Include infrun.h.
4850 * procfs.c: Include infrun.h.
4851 * record-btrace.c: Include infrun.h.
4852 * record-full.c: Include infrun.h.
4853 * remote-m32r-sdi.c: Include infrun.h.
4854 * remote-mips.c: Include infrun.h.
4855 * remote-notif.c: Include infrun.h.
4856 * remote-sim.c: Include infrun.h.
4857 * remote.c: Include infrun.h.
4858 * reverse.c: Include infrun.h.
4859 * rs6000-tdep.c: Include infrun.h.
4860 * s390-linux-tdep.c: Include infrun.h.
4861 * solib-irix.c: Include infrun.h.
4862 * solib-osf.c: Include infrun.h.
4863 * solib-svr4.c: Include infrun.h.
4864 * target.c: Include infrun.h.
4865 * top.c: Include infrun.h.
4866 * windows-nat.c: Include infrun.h.
4867 * mi/mi-interp.c: Include infrun.h.
4868 * mi/mi-main.c: Include infrun.h.
4869 * python/py-threadevent.c: Include infrun.h.
4871 2014-05-22 Pedro Alves <palves@redhat.com>
4873 * infrun.c (handle_inferior_event): Store the exit code for
4874 --return-child-result here, instead of ...
4875 (print_exited_reason): ... here.
4877 2014-05-21 Pedro Alves <palves@redhat.com>
4880 * gdbthread.h (struct thread_control_state): New field
4882 * infrun.c (follow_fork): Copy the new thread control field to the
4884 (clear_proceed_status_thread): Clear the new thread control field.
4885 (proceed): Set the new thread control field.
4886 * interps.h (command_interp): Declare.
4887 * interps.c (command_interpreter): New global.
4888 (command_interp): New function.
4889 (interp_exec): Set `command_interpreter' while here.
4890 * cli-out.c (cli_uiout_dtor): New function.
4891 (cli_ui_out_impl): Install it.
4892 * mi/mi-interp.c: Include cli-out.h.
4893 (mi_cmd_interpreter_exec): Add comment.
4894 (restore_current_uiout_cleanup): New function.
4895 (ui_out_free_cleanup): New function.
4896 (mi_on_normal_stop): If finishing an execution command started by
4897 a CLI command, or any kind of breakpoint-like event triggered,
4898 print the stop event to the output (CLI) stream.
4899 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4901 2014-05-21 Pedro Alves <palves@redhat.com>
4903 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4904 current source line having changed.
4905 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4906 * infrun.c (normal_stop): Adjust call to
4907 set_current_sal_from_frame.
4908 * source.c (clear_lines_listed_range): New function.
4909 (set_current_source_symtab_and_line, identify_source_line): Clear
4910 the lines listed range.
4911 (line_info): Handle the first "info line" after the current source
4912 line having changed.
4913 * stack.c (print_stack_frame): Remove center handling.
4914 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4917 2014-05-21 Pedro Alves <palves@redhat.com>
4919 * inf-child.c (inf_child_mourn_inferior): New function.
4920 * inf-child.h (inf_child_mourn_inferior): New declaration.
4921 * darwin-nat.c (darwin_mourn_inferior): Use
4922 inf_child_mourn_inferior.
4923 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4924 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4925 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4926 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4927 * windows-nat.c (windows_mourn_inferior): Likewise.
4929 2014-05-21 Doug Evans <xdje42@gmail.com>
4931 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4933 2014-05-21 Doug Evans <xdje42@gmail.com>
4935 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4936 (gdbscm_out_of_range_error): Ditto.
4937 (gdbscm_memory_error): Ditto.
4938 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4939 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4940 (gdbscm_out_of_range_error): Update.
4941 (gdbscm_memory_error): Update.
4942 (gdbscm_scm_to_target_string_unsafe): Delete.
4944 2014-05-21 Pedro Alves <palves@redhat.com>
4946 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4948 (inf_child_open_target): New function.
4949 (inf_child_open): Use inf_child_open_target to push the target
4950 instead of erroring out.
4951 (inf_child_disconnect, inf_child_close)
4952 (inf_child_maybe_unpush_target): New functions.
4953 (inf_child_target): Install inf_child_disconnect and
4954 inf_child_close. Store a pointer to the returned object.
4955 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4957 * target.c (auto_connect_native_target): New global.
4958 (show_default_run_target): New function.
4959 (find_default_run_target): Return NULL if automatically connecting
4960 to the native target is disabled.
4961 (_initialize_target): Install set/show auto-connect-native-target.
4962 * NEWS: Mention "set auto-connect-native-target", and "target
4964 * linux-nat.c (super_close): New global.
4965 (linux_nat_close): Call super_close.
4966 (linux_nat_add_target): Store a pointer to the base class's
4968 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4969 inf_child_maybe_unpush.
4970 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4972 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4973 the inferior. Use inf_child_maybe_unpush_target.
4974 (inf_ttrace_attach): Don't push the target if it is already
4976 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4977 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4978 after mourning the inferior. Use inf_child_maybe_unpush_target.
4979 (darwin_attach_pid): Don't push the target if it is already
4981 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4982 mourning the inferior. Use inf_child_maybe_unpush_target.
4983 (gnu_detach): Use inf_child_maybe_unpush_target.
4984 * go32-nat.c (go32_create_inferior): Don't push the target if it
4986 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4987 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4988 (procfs_open): Rename to ...
4989 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4990 comments. Can target_preopen before changing node. Call
4991 inf_child_open_target to push the target explicitly.
4992 (procfs_attach): Don't push the target if it is already pushed.
4993 (procfs_detach): Use inf_child_maybe_unpush_target.
4994 (procfs_create_inferior): Don't push the target if it is already
4996 (nto_native_ops): New global.
4997 (procfs_open): Reimplement.
4998 (procfs_native_open): New function.
4999 (init_procfs_targets): Install procfs_native_open as to_open of
5000 "target native". Store a pointer to the "native" target in
5002 * procfs.c (procfs_attach): Don't push the target if it is already
5004 (procfs_detach): Use inf_child_maybe_unpush_target.
5005 (procfs_mourn_inferior): Only unpush the target after mourning the
5006 inferior. Use inf_child_maybe_unpush_target.
5007 (procfs_init_inferior): Don't push the target if it is already
5009 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5010 if it is already pushed.
5012 2014-05-21 Pedro Alves <palves@redhat.com>
5014 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5015 and "procfs" targets are now called "native" instead.
5017 2014-05-21 Pedro Alves <palves@redhat.com>
5019 * go32-nat.c (go32_open): Delete.
5020 (go32_target): Don't override the to_open method.
5022 2014-05-21 Pedro Alves <palves@redhat.com>
5024 * nto-procfs.c (procfs_can_run): New function.
5025 (nto_procfs_ops): New global.
5026 (init_procfs_targets): New, based on procfs_target. Install
5027 "target native" in addition to "target procfs".
5028 (_initialize_procfs): Call init_procfs_targets instead of adding
5031 2014-05-21 Pedro Alves <palves@redhat.com>
5033 * windows-nat.c (windows_target): Don't override to_shortname,
5034 to_longname or to_doc.
5036 2014-05-21 Pedro Alves <palves@redhat.com>
5038 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5041 2014-05-21 Pedro Alves <palves@redhat.com>
5043 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5044 to_shortname, to_longname or to_doc.
5046 2014-05-21 Pedro Alves <palves@redhat.com>
5048 * go32-nat.c (go32_target): Don't override to_shortname,
5049 to_longname or to_doc.
5051 2014-05-21 Pedro Alves <palves@redhat.com>
5053 * inf-child.c (inf_child_open): Remove mention of "child".
5054 (inf_child_target): Rename target to "native" instead of "child".
5056 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5058 * Makefile.in (SFILES): Delete "regset.c".
5059 (COMMON_OBS): Delete "regset.o".
5061 * regset.h (regset_alloc): Delete prototype.
5063 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5065 * sparc-linux-tdep.c (sparc32_linux_gregset)
5066 (sparc32_linux_fpregset): New static regset structures.
5067 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5068 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5070 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5071 (sparc64_linux_fpregset): New static regset structures.
5072 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5073 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5074 New static regset structures.
5075 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5076 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5077 New static regset structures.
5078 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5079 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5080 New static regset structures.
5081 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5082 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5083 New static regset structures.
5084 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5086 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5088 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5089 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5090 register maps ("regmaps") from "*regset" to "*regmap". Do this
5091 for all regmap types and variables.
5092 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5093 (sparc32_linux_supply_core_gregset)
5094 (sparc32_linux_collect_core_gregset)
5095 (sparc32_linux_supply_core_fpregset)
5096 (sparc32_linux_collect_core_fpregset): Likewise.
5097 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5098 (sparc_gregmap, sparc_fpregmap): ... these.
5099 (sparc_supply_gregset, sparc_collect_gregset)
5100 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5101 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5102 (_initialize_sparc_nat): Rename regmaps.
5103 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5104 (sparc_gregmap, sparc_fpregmap): ... these.
5105 (sparc_supply_gregset, sparc_collect_gregset)
5106 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5107 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5109 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5110 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5112 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5114 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5115 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5116 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5118 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5119 (sparc32_bsd_fpregset): Rename to...
5120 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5121 (sparc32_bsd_fpregmap): ... these.
5122 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5123 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5124 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5125 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5126 (struct sparc_gregmap, struct sparc_fpregmap)
5127 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5128 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5129 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5130 (sparc32_supply_regset, sparc32_collect_gregset)
5131 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5133 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5134 (sparc64_linux_ptrace_gregmap): ... this.
5135 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5136 (_initialize_sparc64_linux_nat): Rename regmaps.
5137 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5138 (sparc64_linux_core_gregmap): ... this.
5139 (sparc64_linux_supply_core_gregset)
5140 (sparc64_linux_collect_core_gregset)
5141 (sparc64_linux_supply_core_fpregset)
5142 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5143 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5144 (sparc64_sol2_fpregset): Rename to...
5145 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5146 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5147 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5149 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5150 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5151 (sparc64_bsd_fpregset): Rename to...
5152 (struct sparc_gregmap, sparc64_sol2_gregmap)
5153 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5154 (sparc64_bsd_fpregmap): ... these.
5155 (sparc64_supply_gregset, sparc64_collect_gregset)
5156 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5158 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5159 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5160 (sparc64fbsd_gregmap): ... this.
5161 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5162 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5164 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5165 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5166 (sparc64nbsd_collect_fpregset): Likewise.
5167 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5168 (sparc64nbsd_gregmap): ... this.
5169 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5171 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5172 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5173 (sparc64obsd_gregmap): ... this.
5174 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5176 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5177 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5178 (sparc32nbsd_gregmap): ... this.
5179 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5182 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5184 * score-tdep.c (score7_linux_gregset): New static regset
5186 (score7_linux_regset_from_core_section): Remove dynamic regset
5188 (score_gdbarch_init): Drop allocation of tdep structure.
5189 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5191 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5193 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5195 (am33_regset_from_core_section): Remove dynamic regset
5198 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5200 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5201 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5203 (mips_linux_regset_from_core_section): Remove dynamic regset
5205 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5206 'gregset64', 'fpregset', and 'fpregset64'.
5207 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5208 deleted tdep fields.
5210 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5212 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5214 (amd64_regset_from_core_section): Remove dynamic regset
5216 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5218 (amd64obsd_regset_from_core_section): Remove dynamic regset
5220 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5222 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5223 x86-common regset supply function.
5224 * i386-tdep.c (i386_collect_gregset): Make static.
5225 (i386_gregset): New global regset structure.
5226 (i386_fpregset, i386_xstateregset): New static regset structures.
5227 (i386_regset_from_core_section): Remove dynamic regset
5229 (i386_gdbarch_init): Remove initialization of tdep fields
5230 'gregset', 'fpregset', and 'xstateregset'.
5231 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5232 'fpregset', and 'xstateregset'.
5233 (i386_collect_gregset): Remove prototype.
5234 (i386_gregset): New declaration.
5235 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5237 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5240 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5242 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5243 (arm_linux_vfpregset): New static regset structures.
5244 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5246 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5247 and 'vfpregset' fields.
5249 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5251 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5252 (aarch64_linux_fpregset): New static regset structures.
5253 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5254 of regset structures.
5255 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5258 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5260 * regset.h (struct regset): Remove gdbarch field.
5261 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5262 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5263 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5265 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5266 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5267 (ppc32_linux_vsxregset): Likewise.
5268 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5269 via the regcache instead of the regset.
5270 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5271 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5272 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5273 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5276 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5278 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5279 Constify structures.
5280 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5281 (alphanbsd_aout_gregset): Likewise.
5282 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5283 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5285 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5286 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5288 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5289 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5290 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5291 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5292 * m88k-tdep.c (m88k_gregset): Likewise.
5293 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5294 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5295 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5296 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5297 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5298 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5299 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5300 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5301 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5303 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5304 * sh-tdep.h (sh_corefile_gregset): Likewise.
5305 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5306 * vax-tdep.c (vax_gregset): Likewise.
5308 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5310 Fix TLS access for -static -pthread.
5311 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5312 (try_thread_db_load_1): Initialize it.
5313 (thread_db_get_thread_local_address): Call it if LM is zero.
5314 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5315 * target.h (struct target_ops) (to_get_thread_local_address): Add
5316 load_module_addr comment.
5318 2014-05-21 Pedro Alves <palves@redhat.com>
5320 * dcache.c (dcache_read_memory_partial): If reading the cache line
5321 fails, fallback to reading just the memory the caller wanted.
5323 2014-05-20 Doug Evans <dje@google.com>
5325 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5326 instead of get_current_arch.
5328 2014-05-20 Pedro Alves <palves@redhat.com>
5330 * NEWS: Mention that compare-sections now works with all targets.
5332 * remote.c (PACKET_qCRC): New enum value.
5333 (remote_verify_memory): Don't send qCRC if the target has no
5334 execution. Use packet_support/packet_ok. If the target doesn't
5335 support the qCRC packet, fallback to a deep memory copy.
5336 (compare_sections_command): Say "target image" instead of "remote
5338 (_initialize_remote): Add PACKET_qCRC to the list of config
5339 packets that have no associated command. Extend comment.
5340 * target.c (simple_verify_memory, default_verify_memory): New
5342 * target.h (struct target_ops) <to_verify_memory>: Default to
5343 default_verify_memory.
5344 (simple_verify_memory): New declaration.
5345 * target-delegates.c: Regenerate.
5347 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5349 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5351 2014-05-20 Hui Zhu <hui@codesourcery.com>
5352 Yao Qi <yao@codesourcery.com>
5355 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5356 and change address of sp and pc.
5358 2014-05-19 Tom Tromey <tromey@redhat.com>
5360 * gdbtypes.c (rank_function): Use XNEWVEC.
5361 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5363 2014-05-19 Doug Evans <dje@google.com>
5365 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5366 build_type_unit_groups and moved closer to only caller. Remove
5367 arguments. All references updated. Remove outdated .gdb_index
5369 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5370 build_type_psymtabs_1.
5372 2014-05-19 Doug Evans <dje@google.com>
5374 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5375 n_type_unit_groups, all_type_unit_groups. All uses removed.
5376 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5377 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5378 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5379 (add_type_unit_group_to_table): Delete.
5381 2014-05-19 Doug Evans <dje@google.com>
5383 * eval.c (evaluate_subexp_standard): Add some comments.
5385 2014-05-17 Doug Evans <xdje42@gmail.com>
5387 * progspace.c (remove_program_space): Delete, unused.
5388 * progspace.h (remove_program_space): Ditto.
5390 2014-05-17 Doug Evans <xdje42@gmail.com>
5392 * inferior.c (prune_inferiors): Fix comment.
5393 (remove_inferior_command): Call prune_program_spaces.
5395 2014-05-16 Doug Evans <dje@google.com>
5397 New command line option -D.
5399 * main.c (set_gdb_data_directory): New function.
5400 (captured_main): Recognize -D. Flag error for --data-directory "".
5401 Call set_gdb_data_directory.
5402 (print_gdb_help): Print --data-directory, -D.
5403 * main.h (set_gdb_data_directory): Declare.
5404 * top.c (staged_gdb_datadir): New static global.
5405 (set_gdb_datadir): Call set_gdb_data_directory
5406 (show_gdb_datadir): New function.
5407 (init_main): Update init of data-directory parameter.
5409 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5411 Import the "dirfd" gnulib module.
5412 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5413 * gnulib/aclocal.m4: Update.
5414 * gnulib/config.in: Update.
5415 * gnulib/configure: Update.
5416 * gnulib/import/Makefile.am: Update.
5417 * gnulib/import/Makefile.in: Update.
5418 * gnulib/import/dirfd.c: New.
5419 * gnulib/import/m4/dirfd.m4: New.
5420 * gnulib/import/m4/gnulib-cache.m4: Update.
5421 * gnulib/import/m4/gnulib-comp.m4: Update.
5423 2014-05-16 Pierre Muller <muller@sourceware.org>
5424 Yao Qi <yao@codesourcery.com>
5426 * valprint.c (print_wchar): Move the code on checking whether
5427 W is a printable wide char to the default branch of switch
5428 statement below. Call wchar_printable instead of gdb_iswprint.
5430 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5432 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5433 ldr.w and ldrd instructions.
5435 2014-05-15 Doug Evans <dje@google.com>
5437 * dwarf2read.c (read_structure_type): Delete outdated comments.
5439 2014-05-14 Tom Tromey <tromey@redhat.com>
5441 * macrocmd.c (print_macro_definition): Reindent.
5443 2014-05-13 Doug Evans <xdje42@gmail.com>
5445 * python/py-cmd.c (cmdpy_completer): Add comment.
5446 (completers): Make const.
5448 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5450 * infrun.c (resume): Remove should_resume (unused). Move up
5451 declaration of resume_ptid.
5453 2014-05-13 Tom Tromey <tromey@redhat.com>
5455 * language.h (unop_type_check): Remove.
5456 (binop_type_check): Don't declare.
5458 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5460 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5461 call to regcache_raw_collect.
5463 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5465 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5466 mi_console->quote as the quoting character.
5468 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5470 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5472 2014-04-29 Tom Tromey <tromey@redhat.com>
5474 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5475 "show debug varobj".
5477 2014-05-07 Kyle McMartin <kyle@redhat.com>
5479 Pushed by Joel Brobecker <brobecker@adacore.com>.
5480 * aarch64-tdep.c (aarch64_software_single_step): New function.
5481 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5482 with aarch64_software_single_step.
5484 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5488 2014-05-05 Keith Seitz <keiths@redhat.com>
5490 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5491 variable or history value is successfully parsed.
5493 2014-05-05 Yao Qi <yao@codesourcery.com>
5494 Pedro Alves <palves@redhat.com>
5496 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5497 address of blocks that intersects the requested range. Trim
5498 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5500 * ctf.c (ctf_xfer_partial): Likewise.
5502 2014-05-05 Yao Qi <yao@codesourcery.com>
5504 * printcmd.c (display_command): Remove the check to
5505 target_has_execution.
5507 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5509 * ppcobsd-nat.c: Include "obsd-nat.h".
5510 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5512 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5514 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5516 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5517 and 16-bit signed and unsigned arguments. Update comment.
5518 (stap_parse_probe_arguments): Extend code to handle such
5519 arguments. Use warning instead of complaint to notify about
5520 unrecognized bitness.
5522 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5524 PR breakpoints/16889
5525 * stap-probe.c (stap_parse_probe_arguments): Simplify
5526 check for non-prefixed probes (i.e., probes whose
5527 arguments do not start with "N@"). Always set the
5528 argument type to a sane value.
5530 2014-05-01 David Taylor <dtaylor@emc.com>
5532 * remote.c (compare_sections_command): Add -r option to compare
5533 all loadable read-only sections.
5535 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5537 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5538 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5540 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5541 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5542 Remove unused CORE_ADDR argument. Update all callers.
5544 2014-04-29 Pedro Alves <palves@redhat.com>
5546 * remote.c (struct packet_config) <detect>: Extend comment.
5547 (add_packet_config_cmd): Don't set the config's detect or support
5549 (init_all_packet_configs): Also initialize the config's 'detect'
5551 (reset_all_packet_configs_support): New function.
5552 (remote_open_1): Call reset_all_packet_configs_support instead of
5553 init_all_packet_configs.
5554 (_initialize_remote): Initialize all packet configs. Assert that
5555 all packets have an associated command, except a few known
5558 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5560 * dwarf2read.c (read_subrange_type): Handle dynamic
5561 DW_AT_lower_bound attributes.
5563 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5565 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5566 dynamic bounds before computing its upper bound.
5567 (ada_discrete_type_low_bound): Same as above with the lower bound.
5569 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5571 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5572 range types. Adjust the array handling implementation to
5573 take advantage of this change.
5574 (resolve_dynamic_range): New function, mostly extracted from
5575 resolve_dynamic_bounds.
5576 (resolve_dynamic_array): New function, mostly extracted from
5577 resolve_dynamic_bounds.
5578 (resolve_dynamic_bounds): Delete.
5579 (resolve_dynamic_type): Reimplement. Add handling of
5580 TYPE_CODE_RANGE types.
5582 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5584 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5585 handling of parallel ___XA types.
5587 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5589 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5590 unnecessary second call to static_unwrap_type.
5592 2014-04-27 Hui Zhu <hui@codesourcery.com>
5594 * stack.c (print_frame_info): Call do_gdb_disassembly with
5595 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5597 2014-04-26 Doug Evans <xdje42@gmail.com>
5599 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5601 2014-04-25 Pedro Alves <palves@redhat.com>
5604 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5605 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5606 and newline from built string.
5607 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5608 (linux_ptrace_attach_fail_reason): ... this.
5609 * linux-nat.c (linux_nat_attach): Adjust to use
5610 linux_ptrace_attach_fail_reason.
5612 2014-04-25 Pedro Alves <palves@redhat.com>
5614 * remote.c (struct remote_state): Remove multi_process_aware,
5615 non_stop_aware, cond_tracepoints, cond_breakpoints,
5616 breakpoint_commands, fast_tracepoints, static_tracepoints,
5617 install_in_trace, disconnected_tracing,
5618 enable_disable_tracepoints, string_tracing, and
5619 augmented_libraries_svr4_read fields.
5620 (remote_multi_process_p): Move further below in the file.
5621 (struct packet_config): Add comments.
5622 (update_packet_config): Delete function.
5623 (show_packet_config_cmd): Use packet_config_support.
5624 (add_packet_config_cmd): Use NULL as set callback.
5625 (packet_ok): "set remote foo-packet"-style commands no longer
5626 change config->supported -- adjust.
5627 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5628 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5629 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5630 (PACKET_QNonStop, PACKET_multiprocess_feature)
5631 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5632 (PACKET_DisconnectedTracing_feature)
5633 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5634 (set_remote_protocol_packet_cmd): Delete function.
5635 (packet_config_support, packet_support): New functions.
5636 (set_remote_protocol_Z_packet_cmd): Don't call
5637 update_packet_config.
5638 (remote_query_attached, remote_pass_signals)
5639 (remote_program_signals, remote_threads_info)
5640 (remote_threads_extra_info, remote_start_remote): Use
5642 (remote_start_remote): Use packet_config_support and
5644 (init_all_packet_configs): Set all packets to unknown support,
5645 instead of calling update_packet_config.
5646 (remote_check_symbols): Use packet_support.
5647 (remote_supported_packet): Unconditionally set the packet config's
5649 (remote_multi_process_feature, remote_non_stop_feature)
5650 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5651 (remote_breakpoint_commands_feature)
5652 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5653 (remote_install_in_trace_feature)
5654 (remote_disconnected_tracing_feature)
5655 (remote_enable_disable_tracepoint_feature)
5656 (remote_string_tracing_feature)
5657 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5658 (remote_protocol_features): Adjust to use remote_supported_packet
5659 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5660 "ConditionalTracepoints", "ConditionalBreakpoints",
5661 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5662 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5663 "EnableDisableTracepoints", and "tracenz".
5664 (remote_query_supported): Use packet_support.
5665 (remote_open_1): Adjust.
5666 (extended_remote_attach_1): Use packet_support. Switch on the
5667 result of packet_ok instead of checking whether the packet ended
5669 (remote_vcont_resume): Use packet_support.
5670 (remote_resume, remote_stop_ns, fetch_register_using_p)
5671 (remote_prepare_to_store, store_register_using_P)
5672 (check_binary_download, remote_write_bytes): Use packet_support.
5673 (remote_vkill): Use packet_support. Switch on the result of
5674 packet_ok instead of checking whether the packet ended up
5676 (extended_remote_supports_disable_randomization): Use
5678 (extended_remote_run): Switch on the result of packet_ok instead
5679 of checking whether the packet ended up disabled.
5680 (remote_insert_breakpoint, remote_remove_breakpoint)
5681 (remote_insert_watchpoint, remote_remove_watchpoint)
5682 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5684 (remote_search_memory): Use packet_config_support.
5685 (remote_get_thread_local_address, remote_get_tib_address)
5686 (remote_hostio_send_command, remote_can_execute_reverse): Use
5688 (remote_supports_cond_tracepoints)
5689 (remote_supports_cond_breakpoints)
5690 (remote_supports_fast_tracepoints)
5691 (remote_supports_static_tracepoints)
5692 (remote_supports_install_in_trace)
5693 (remote_supports_enable_disable_tracepoint)
5694 (remote_supports_string_tracing)
5695 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5696 the packet config says the feature is enabled or disabled.
5697 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5698 (remote_get_trace_status): Use packet_support.
5699 (remote_set_disconnected_tracing): Adjust to check whether the
5700 feature is enabled with packet_support.
5701 (remote_set_trace_buffer_size, remote_use_agent)
5702 (remote_can_use_agent, remote_supports_btrace): Use
5704 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5705 Use packet_config_support.
5706 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5707 the packet config says the feature is enabled or disabled.
5708 (set_range_stepping): Use packet_support.
5710 2014-04-25 Tom Tromey <tromey@redhat.com>
5712 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5715 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5717 * NEWS: Mention support for C99 variable length arrays.
5719 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5721 * ada-lang.c (standard_exc): Expand introductory comment.
5723 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5724 Walfred Tedeschi <walfred.tedeschi@intel.com>
5726 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5728 (amd64_linux_read_description): Add code to handle AVX512 xstate
5729 mask and return respective tdesc.
5730 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5731 and features/i386/x32-avx512-linux.c.
5732 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5733 (amd64_linux_core_read_description): Add code to handle AVX512
5734 xstate mask and return respective tdesc.
5735 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5736 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5738 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5739 (tdesc_amd64_avx512_linux): New prototype.
5740 (tdesc_x32_avx512_linux): Likewise.
5741 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5742 features/i386/x32-avx512.c.
5743 (amd64_ymm_avx512_names): New register names for pseudo
5745 (amd64_ymmh_avx512_names): New register names for raw registers
5747 (amd64_k_names): New register names for K registers.
5748 (amd64_zmmh_names): New register names for ZMM raw registers.
5749 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5750 (amd64_xmm_avx512_names): New register names for XMM16-31
5752 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5754 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5755 if feature is present.
5756 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5757 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5758 (AMD64_NUM_REGS): Adjust to new number of registers.
5759 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5760 registers supplied via XSTATE by AVX512 registers.
5761 (i386_linux_read_description): Add case for AVX512.
5762 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5763 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5764 (i386_linux_core_read_description): Add case for AVX512.
5765 (i386_linux_init_abi): Install supported register note section
5767 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5769 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5770 registers to be number of zmm7h + 1.
5771 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5772 * i386-tdep.c: Include features/i386/i386-avx512.c.
5773 (i386_zmm_names): Add ZMM pseudo register names array.
5774 (i386_zmmh_names): Add ZMM raw register names array.
5775 (i386_k_names): Add K raw register names array.
5776 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5777 registers. AVX512 has 16 more ZMM registers than there are YMM
5779 (i386_zmmh_regnum_p): Add function to look up register number of
5781 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5782 (i386_k_regnum_p): Likewise for K raw registers.
5783 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5784 registers added by AVX512.
5785 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5786 registers added by AVX512.
5787 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5789 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5790 (i386_pseudo_register_name): Add ZMM pseudo registers.
5791 (i386_zmm_type): Construct and return vector registers type for ZMM
5793 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5794 ZMM0-31 pseudo registers and K registers.
5795 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5796 and YMM16-31 registers from register cache.
5797 (i386_pseudo_register_write): Add code to write K, ZMM and
5799 (i386_register_reggroup_p): Add code to include/exclude AVX512
5800 registers in/from respective register groups.
5801 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5802 registers if feature is present in xcr0.
5803 (i386_gdbarch_init): Add code to initialize AVX512 feature
5804 variables in tdep structure, wire in pseudo registers and call
5805 initialize_tdesc_i386_avx512.
5806 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5808 (i386_regnum): Add AVX512 registers.
5809 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5810 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5811 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5812 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5814 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5815 (i386_ymm_avx512_regnum_p): Likewise.
5816 (i386_k_regnum_p): Likewise.
5817 (i386_zmm_regnum_p): Likewise.
5818 (i386_zmmh_regnum_p): Likewise.
5819 * i387-tdep.c : Update year in copyright notice.
5820 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5822 (XSAVE_YMM_AVX512_ADDR): New macro.
5823 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5825 (XSAVE_XMM_AVX512_ADDR): New macro.
5826 (xsave_avx512_k_offset): New table for K register offsets in
5828 (XSAVE_AVX512_K_ADDR): New macro.
5829 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5831 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5832 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5834 (i387_collect_xsave): Add code to collect AVX512 registers from
5836 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5837 of XMM16-31 registers.
5838 (I387_NUM_K_REGS): New define for number of K registers.
5839 (I387_K0_REGNUM): New define for K0 register number.
5840 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5841 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5842 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5844 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5845 (I387_XMM16_REGNUM): New define for XMM16 register number.
5846 (I387_YMM0_REGNUM): New define for YMM0 register number.
5847 (I387_KEND_REGNUM): New define for last K register number.
5848 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5849 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5851 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5853 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5855 * features/Makefile: Add AVX512 related files.
5856 * features/i386/32bit-avx512.xml: New file.
5857 * features/i386/64bit-avx512.xml: Likewise.
5858 * features/i386/amd64-avx512-linux.c: Likewise.
5859 * features/i386/amd64-avx512-linux.xml: Likewise.
5860 * features/i386/amd64-avx512.c: Likewise.
5861 * features/i386/amd64-avx512.xml: Likewise.
5862 * features/i386/i386-avx512-linux.c: Likewise.
5863 * features/i386/i386-avx512-linux.xml: Likewise.
5864 * features/i386/i386-avx512.c: Likewise.
5865 * features/i386/i386-avx512.xml: Likewise.
5866 * features/i386/x32-avx512-linux.c: Likewise.
5867 * features/i386/x32-avx512-linux.xml: Likewise.
5868 * features/i386/x32-avx512.c: Likewise.
5869 * features/i386/x32-avx512.xml: Likewise.
5870 * regformats/i386/amd64-avx512-linux.dat: New file.
5871 * regformats/i386/amd64-avx512.dat: Likewise.
5872 * regformats/i386/i386-avx512-linux.dat: Likewise.
5873 * regformats/i386/i386-avx512.dat: Likewise.
5874 * regformats/i386/x32-avx512-linux.dat: Likewise.
5875 * regformats/i386/x32-avx512.dat: Likewise.
5876 * NEWS: Add note about new support for AVX512.
5879 2014-04-23 Pedro Alves <palves@redhat.com>
5881 * breakpoint.c (insert_bp_location): Tolerate errors if the
5882 breakpoint is set in a user-loaded objfile.
5883 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5884 location is marked shlib_disabled. If the breakpoint is set in a
5885 user-loaded objfile is a GDB-side memory breakpoint, validate it
5886 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5887 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5889 * mem-break.c (memory_validate_breakpoint): New function.
5890 * objfiles.c (userloaded_objfile_contains_address_p): New
5892 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5893 * target.h (memory_validate_breakpoint): New declaration.
5895 2014-04-23 Pedro Alves <palves@redhat.com>
5897 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5898 the breakpoint is set in a shared library, only suppress
5899 errors for software breakpoints, not hardware breakpoints.
5901 2014-04-22 Pedro Alves <palves@redhat.com>
5903 * infrun.c (schedlock_applies): New function, factored out from
5904 find_thread_needs_step_over.
5905 (find_thread_needs_step_over): Use it.
5906 (switch_back_to_stepped_thread): Always clear trap_expected if the
5907 step over is finished. Return early if scheduler locking applies.
5908 Look for the stepping thread and a potential step-over thread with
5910 (currently_stepping_or_nexting_callback): Delete.
5912 2014-04-22 Nick Clifton <nickc@redhat.com>
5914 * NEWS: Mention that ARM sim now supports tracing.
5916 2014-04-22 Yao Qi <yao@codesourcery.com>
5918 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5920 * tracefile.c (tracefile_fetch_registers): ... it. New
5922 * tracefile.h (tracefile_fetch_registers): Declare.
5923 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5924 tracefile_fetch_registers.
5926 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5929 * windows-nat.c (thread_rec): Don't display a warning when
5930 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5931 fails for any reason, set th->suspended to -1, so that we don't
5932 try to resume such a thread. Also, don't return NULL in these
5933 cases, to avoid completely ruin the session due to "PC register is
5934 not available" error.
5935 (do_windows_fetch_inferior_registers): Check errors in
5936 GetThreadContext call.
5937 (windows_continue): Accept an additional argument KILLED; if not
5938 zero, ignore errors in the SetThreadContext call, since the
5939 inferior was killed and is shutting down.
5940 (windows_resume, get_windows_debug_event)
5941 (windows_create_inferior, windows_mourn_inferior)
5942 (windows_kill_inferior): All callers of windows_continue changed
5943 to adjust to its new calling sequence.
5945 2014-04-19 Yao Qi <yao@codesourcery.com>
5947 * ctf.c (ctf_open): Call post_create_inferior.
5949 2014-04-19 Yao Qi <yao@codesourcery.com>
5951 * ctf.c (handle_id): New static variable.
5952 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5953 value. Get the declaration of event "register" and get length
5954 of field "contents".
5956 2014-04-19 Yao Qi <yao@codesourcery.com>
5958 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5960 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5962 * valops.c (oload_method_static): Remove unnecessary argument
5963 METHOD. Update all callers.
5965 2014-04-18 Pedro alves <palves@redhat.com>
5966 Tom Tromey <tromey@redhat.com>
5969 * frame.c (get_prev_frame_1): Rename to ...
5970 (get_prev_frame_always): ... this, and make extern. Adjust.
5971 (skip_artificial_frames): Use get_prev_frame_always.
5972 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5973 (get_frame_unwind_stop_reason): Adjust to rename.
5974 * frame.h (get_prev_frame_always): Declare.
5975 * inline-frame.c: Include frame.h.
5976 (inline_frame_this_id): Use get_prev_frame_always.
5978 2014-04-18 Tristan Gingold <gingold@adacore.com>
5980 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5981 code by using bfd_mach_o_get_base_address.
5983 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5985 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5986 (spu_ax_pseudo_register_collect): New function.
5987 (spu_ax_pseudo_register_push_stack): Likewise.
5988 (spu_dwarf_reg_to_regnum): Likewise.
5989 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5991 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5993 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5994 Replace FRAME argument with FRAME_ID.
5995 * gdbarch.c, gdbarch.h: Regenerate.
5996 * findvar.c (default_value_from_register): Add GDBARCH argument;
5997 replace FRAME by FRAME_ID. No longer call get_frame_id.
5998 (value_from_register): Update call to gdbarch_value_from_register.
5999 * value.h (default_value_from_register): Update prototype.
6000 * s390-linux-tdep.c (s390_value_from_register): Update interface
6001 and call to default_value_from_register.
6002 * spu-tdep.c (spu_value_from_register): Likewise.
6004 * findvar.c (address_from_register): Remove TYPE argument.
6005 Do not call value_from_register; use gdbarch_value_from_register
6006 with null_frame_id instead.
6007 * value.h (address_from_register): Update prototype.
6008 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6009 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6010 address_from_register interface change.
6012 2014-04-17 Yao Qi <yao@codesourcery.com>
6014 * gdbtypes.h: Update comments to link to types and macros'
6017 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6019 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6021 2014-04-16 Keith Seitz <keiths@redhat.com>
6024 * dwarf2read.c (skip_one_die): Check that all relative-offset
6025 sibling DIEs fall within range of the current reader's buffer.
6026 (read_partial_die): Likewise.
6028 2014-04-16 Keith Seitz <keiths@redhat.com>
6031 * cp-namespace.c (lookup_symbol_file): If the type name of
6032 `this' is NULL, return immediately.
6034 2014-04-14 Keith Seitz <keiths@redhat.com>
6037 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6038 from symbol_matches_domain in symtab.c. All local callers
6039 of symbol_matches_domain updated.
6040 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6041 search STRUCT_DOMAIN.
6042 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6043 independently. standard_lookup will do that automatically.
6044 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6045 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6046 (cp_lookup_symbol_in_namespace): Likewise.
6047 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6048 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6049 may return a STRUCT_DOMAIN match.
6050 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6051 * cp-support.c: Include language.h.
6052 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6054 * psymtab.c (match_partial_symbol): Compare the requested
6055 domain with the symbol's domain directly.
6056 (lookup_partial_symbol): Likewise.
6057 * symtab.c (lookup_symbol_in_language): Explain when/why
6058 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6059 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6060 appropriate languages.
6061 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6062 and moved to ada-lang.c
6063 (lookup_block_symbol): Explain that this function only returns
6064 symbol matching the requested DOMAIN.
6065 Compare the requested domain with the symbol's domain directly.
6066 (iterate_over_symbols): Compare the requested domain with the
6067 symbol's domain directly.
6068 * symtab.h (symbol_matches_domain): Remove.
6070 2014-04-14 Tom Tromey <tromey@redhat.com>
6073 * c-exp.y (type_aggregate_p): New function.
6074 (qualified_name, classify_inner_name): Use it.
6075 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6076 and TYPE_TARGET_TYPE of an enum type.
6077 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6079 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6080 handle TYPE_DECLARED_CLASS.
6081 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6083 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6084 * valops.c (enum_constant_from_type): New function.
6085 (value_aggregate_elt): Use it.
6086 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6089 2014-04-14 Tom Tromey <tromey@redhat.com>
6091 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6092 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6094 * value.h (value_aggregate_elt): Update.
6096 2014-04-14 Tom Tromey <tromey@redhat.com>
6098 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6100 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6102 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6103 (evaluate_subexp_standard): Pass noside argument.
6104 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6105 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6106 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6107 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6108 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6110 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6112 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6113 points to a constant blob.
6115 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6117 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6118 property and store it as the high bound and flag the range accordingly.
6119 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6120 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6121 * gdbtypes.h (enum range_flags): New enum.
6122 (struct range_bounds): Add flags member.
6124 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6126 * c-typeprint.c (c_type_print_varspec_suffix): Added
6127 check for not yet resolved high bound. If unresolved, print
6128 "variable length" string to the console instead of random
6131 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6133 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6135 (ada_template_to_fixed_record_type_1): Likewise.
6136 (ada_to_fixed_type_1): Likewise.
6137 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6138 (cp_print_value): Likewise.
6139 * d-valprint.c (dynamic_array_type): Likewise.
6140 * findvar.c (address_of_variable): Likewise.
6141 * jv-valprint.c (java_value_print): Likewise.
6142 * valops.c (value_ind): Likewise.
6143 * value.c (coerce_ref): Likewise.
6145 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6147 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6148 value and retrieve the dynamic type size.
6150 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6152 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6153 passed to sizeof is dynamic evaluate the argument to compute the length.
6155 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6156 Joel Brobecker <brobecker@adacore.com>
6158 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6159 (dwarf2_evaluate_property): New function.
6160 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6161 * dwarf2read.c (attr_to_dynamic_prop): New function.
6162 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6164 * gdbtypes.c: Include dwarf2loc.h.
6165 (is_dynamic_type): New function.
6166 (resolve_dynamic_type): New function.
6167 (resolve_dynamic_bounds): New function.
6168 (get_type_length): New function.
6169 (check_typedef): Use get_type_length to compute type length.
6170 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6171 (TYPE_LOW_BOUND_KIND): New macro.
6172 (is_dynamic_type): New function prototype.
6173 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6174 to resolve dynamic properties of the type. Update comment.
6175 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6177 2014-04-14 Richard Henderson <rth@redhat.com>
6179 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6181 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6182 Doug Evans <xdje42@gmail.com>
6184 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6185 dereference TYPE_CODE_REF values.
6187 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6189 Revert the following changes due to regressions:
6191 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6192 (dwarf2_evaluate_property): New function.
6193 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6194 * dwarf2read.c (attr_to_dynamic_prop): New function.
6195 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6197 * gdbtypes.c: Include dwarf2loc.h.
6198 (is_dynamic_type): New function.
6199 (resolve_dynamic_type): New function.
6200 (resolve_dynamic_bounds): New function.
6201 (get_type_length): New function.
6202 (check_typedef): Use get_type_length to compute type length.
6203 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6204 (TYPE_LOW_BOUND_KIND): New macro.
6205 (is_dynamic_type): New function prototype.
6206 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6207 to resolve dynamic properties of the type. Update comment.
6208 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6210 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6211 passed to sizeof is dynamic evaluate the argument to compute the length.
6213 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6214 value and retrieve the dynamic type size.
6216 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6217 (ada_template_to_fixed_record_type_1): Likewise.
6218 (ada_to_fixed_type_1): Likewise.
6219 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6220 (cp_print_value): Likewise.
6221 * d-valprint.c (dynamic_array_type): Likewise.
6222 * eval.c (evaluate_subexp_with_coercion): Likewise.
6223 * findvar.c (address_of_variable): Likewise.
6224 * jv-valprint.c (java_value_print): Likewise.
6225 * valops.c (value_ind): Likewise.
6226 * value.c (coerce_ref): Likewise.
6228 * c-typeprint.c (c_type_print_varspec_suffix): Added
6229 check for not yet resolved high bound. If unresolved, print
6230 "variable length" string to the console instead of random
6233 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6234 property and store it as the high bound and flag the range accordingly.
6235 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6236 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6237 * gdbtypes.h (enum range_flags): New enum.
6238 (struct range_bounds): Add flags member.
6240 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6241 points to a constant blob.
6243 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6244 (evaluate_subexp_standard): Pass noside argument.
6245 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6246 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6247 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6248 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6249 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6251 2014-04-11 Keith Seitz <keiths@redhat.com>
6254 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6255 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6258 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6260 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6261 (evaluate_subexp_standard): Pass noside argument.
6262 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6263 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6264 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6265 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6266 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6268 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6270 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6271 points to a constant blob.
6273 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6275 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6276 property and store it as the high bound and flag the range accordingly.
6277 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6278 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6279 * gdbtypes.h (enum range_flags): New enum.
6280 (struct range_bounds): Add flags member.
6282 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6284 * c-typeprint.c (c_type_print_varspec_suffix): Added
6285 check for not yet resolved high bound. If unresolved, print
6286 "variable length" string to the console instead of random
6289 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6291 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6292 (ada_template_to_fixed_record_type_1): Likewise.
6293 (ada_to_fixed_type_1): Likewise.
6294 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6295 (cp_print_value): Likewise.
6296 * d-valprint.c (dynamic_array_type): Likewise.
6297 * eval.c (evaluate_subexp_with_coercion): Likewise.
6298 * findvar.c (address_of_variable): Likewise.
6299 * jv-valprint.c (java_value_print): Likewise.
6300 * valops.c (value_ind): Likewise.
6301 * value.c (coerce_ref): Likewise.
6303 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6305 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6306 value and retrieve the dynamic type size.
6308 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6310 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6311 passed to sizeof is dynamic evaluate the argument to compute the length.
6313 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6315 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6316 (dwarf2_evaluate_property): New function.
6317 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6318 * dwarf2read.c (attr_to_dynamic_prop): New function.
6319 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6321 * gdbtypes.c: Include dwarf2loc.h.
6322 (is_dynamic_type): New function.
6323 (resolve_dynamic_type): New function.
6324 (resolve_dynamic_bounds): New function.
6325 (get_type_length): New function.
6326 (check_typedef): Use get_type_length to compute type length.
6327 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6328 (TYPE_LOW_BOUND_KIND): New macro.
6329 (is_dynamic_type): New function prototype.
6330 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6331 to resolve dynamic properties of the type. Update comment.
6332 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6334 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6336 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6337 declaring high/low bounds and change uses accordingly. Call
6338 create_range_type instead of create_static_range_type.
6339 * gdbtypes.c (create_range_type): New function.
6340 (create_range_type): Convert bounds into struct bound_prop and pass
6341 them to create_range_type.
6342 * gdbtypes.h (struct bound_prop): New struct.
6343 (create_range_type): New function prototype.
6344 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6345 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6346 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6348 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6350 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6352 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6353 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6354 * ada-lang.c: All uses of create_range_type updated.
6355 * coffread.c: All uses of create_range_type updated.
6356 * dwarf2read.c: All uses of create_range_type updated.
6357 * f-exp.y: All uses of create_range_type updated.
6358 * m2-valprint.c: All uses of create_range_type updated.
6359 * mdebugread.c: All uses of create_range_type updated.
6360 * stabsread.c: All uses of create_range_type updated.
6361 * valops.c: All uses of create_range_type updated.
6362 * valprint.c: All uses of create_range_type updated.
6364 2014-04-10 Pedro Alves <palves@redhat.com>
6366 * breakpoint.c (single_step_breakpoints)
6367 (single_step_gdbarch): Move up in the file.
6368 (one_breakpoint_xfer_memory): New function, factored out from ...
6369 (breakpoint_xfer_memory): ... here. Also process single-step
6372 2014-04-09 Tristan Gingold <gingold@adacore.com>
6374 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6376 (darwin_decode_exception_message): Free port only after use.
6378 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6380 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6381 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6382 when setting the size of call_length.
6384 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6386 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6387 dereference TYPE_CODE_REF values.
6389 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6391 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6392 end of warning message.
6394 2014-04-03 Doug Evans <dje@google.com>
6396 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6397 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6399 2014-04-02 Alan Modra <amodra@gmail.com>
6401 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6402 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6403 (struct symbol_file_add_from_memory_args): Add size field.
6404 (find_vdso_size): New function.
6405 (add_vsyscall_page): Attempt to find vdso size.
6407 2014-04-01 Doug Evans <dje@google.com>
6409 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6411 2014-04-01 Tristan Gingold <gingold@adacore.com>
6413 * darwin-nat.c (darwin_encode_reply): Add prototype.
6414 (darwin_decode_exception_message): Reply to unknown inferiors.
6415 (darwin_decode_message): Handle message by id. Ignore message
6416 to unknown inferior.
6417 (darwin_wait): Discard unknown messages, add debug trace.
6419 2014-03-31 Doug Evans <dje@google.com>
6421 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6424 2014-03-31 Doug Evans <dje@google.com>
6426 New option "set print symbol-loading".
6428 * solib.c (solib_read_symbols): Only print symbol loading messages
6430 (solib_add): If symbol loading is in "brief" mode, notify user
6431 symbols are being loaded.
6432 (reload_shared_libraries_1): Ditto.
6433 * symfile.c (print_symbol_loading_off): New static global.
6434 (print_symbol_loading_brief): New static global.
6435 (print_symbol_loading_full): New static global.
6436 (print_symbol_loading_enums): New static global.
6437 (print_symbol_loading): New static global.
6438 (print_symbol_loading_p): New function.
6439 (symbol_file_add_with_addrs): Only print symbol loading messages
6441 (_initialize_symfile): Register "print symbol-loading" set/show
6443 * symfile.h (print_symbol_loading_p): Declare.
6445 2014-03-30 Doug Evans <xdje42@gmail.com>
6447 * infrun.c (set_last_target_status): New function.
6448 (handle_inferior_event): Call it.
6450 2014-03-30 Doug Evans <xdje42@gmail.com>
6452 * inferior.h (enum stop_kind): Improve comment.
6454 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6456 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6457 a reference, strip the reference layer before calling
6458 the lang_ops value_has_mutated callback.
6460 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6462 Remove some globals from our parser.
6463 * language.c (unk_lang_parser): Add "struct parser_state"
6465 * language.h (struct language_defn) <la_parser>: Likewise.
6466 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6467 (initialize_expout): Add "struct parser_state" argument.
6468 Rewrite function to use the parser state.
6469 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6470 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6471 write_exp_elt_longcst, write_exp_elt_dblcst,
6472 write_exp_elt_decfloatcst, write_exp_elt_type,
6473 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6474 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6475 write_dollar_variable): Likewise.
6476 (parse_exp_in_context_1): Use parser state.
6477 (insert_type_address_space): Add "struct parser_state" argument.
6479 (increase_expout_size): New function.
6480 * parser-defs.h: Forward declare "struct language_defn" and
6481 "struct parser_state".
6482 (expout, expout_size, expout_ptr): Remove extern declarations.
6483 (parse_gdbarch, parse_language): Rewrite macro declarations to
6484 accept the parser state.
6485 (struct parser_state): New struct.
6486 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6487 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6488 write_exp_elt_decfloatcst, write_exp_elt_type,
6489 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6490 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6491 write_exp_msymbol, write_dollar_variable,
6492 mark_struct_expression, insert_type_address_space): Add "struct
6493 parser_state" argument.
6494 (increase_expout_size): New function.
6495 * utils.c (do_clear_parser_state): New function.
6496 (make_cleanup_clear_parser_state): Likewise.
6497 * utils.h (make_cleanup_clear_parser_state): New function
6499 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6500 Update calls to write_exp* in order to pass the parser state.
6501 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6502 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6503 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6504 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6505 * stap-probe.c (stap_parse_register_operand): Likewise.
6506 (stap_parse_single_operand): Likewise.
6507 (stap_parse_argument_1): Likewise.
6508 (stap_parse_argument): Use parser state.
6509 * stap-probe.h: Include "parser-defs.h".
6510 (struct stap_parse_info) <pstate>: New field.
6511 * c-exp.y (parse_type): Rewrite to use parser state.
6512 (yyparse): Redefine to c_parse_internal.
6513 (pstate): New global variable.
6514 (parse_number): Add "struct parser_state" argument.
6515 (write_destructor_name): Likewise.
6516 (type_exp): Update calls to write_exp* and similars in order to
6518 (exp1, exp, variable, qualified_name, space_identifier,
6519 typename, typebase): Likewise.
6520 (write_destructor_name, parse_number, lex_one_token,
6521 classify_name, classify_inner_name, c_parse): Add "struct
6522 parser_state" argument. Update function to use parser state.
6523 * c-lang.h: Forward declare "struct parser_state".
6524 (c_parse): Add "struct parser_state" argument.
6525 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6526 (yyparse): Redefine macro to ada_parse_internal.
6527 (pstate): New variable.
6528 (write_int, write_object_renaming, write_var_or_type,
6529 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6530 type_int, type_long, type_long_long, type_float, type_double,
6531 type_long_double, type_char, type_boolean, type_system_address):
6532 Add "struct parser_state" argument.
6533 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6534 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6535 var_or_type, aggregate, aggregate_component_list,
6536 positional_list, others, component_group,
6537 component_associations): Update calls to write_exp* and similar
6538 functions in order to use parser state.
6539 (ada_parse, write_var_from_sym, write_int,
6540 write_exp_op_with_string, write_object_renaming,
6541 find_primitive_type, write_selectors, write_ambiguous_var,
6542 write_var_or_type, write_name_assoc, type_int, type_long,
6543 type_long_long, type_float, type_double, type_long_double,
6544 type_char, type_boolean, type_system_address): Add "struct
6545 parser_state" argument. Adjust function to use parser state.
6546 * ada-lang.c (parse): Likewise.
6547 * ada-lang.h: Forward declare "struct parser_state".
6548 (ada_parse): Add "struct parser_state" argument.
6549 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6550 calls to both functions.
6551 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6553 (yyparse): Redefine macro to f_parse_internal.
6554 (pstate): New variable.
6555 (parse_number): Add "struct parser_state" argument.
6556 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6557 and similars in order to use parser state.
6558 (parse_number): Adjust code to use parser state.
6560 (f_parse): New function.
6561 * f-lang.h: Forward declare "struct parser_state".
6562 (f_parse): Add "struct parser_state" argument.
6563 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6565 (yyparse): Redefine macro for java_parse_internal.
6566 (pstate): New variable.
6567 (push_expression_name, push_expression_name, insert_exp): Add
6568 "struct parser_state" argument.
6569 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6570 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6571 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6572 PostIncrementExpression, PostDecrementExpression,
6573 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6574 UnaryExpressionNotPlusMinus, CastExpression,
6575 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6576 RelationalExpression, EqualityExpression, AndExpression,
6577 ExclusiveOrExpression, InclusiveOrExpression,
6578 ConditionalAndExpression, ConditionalOrExpression,
6579 ConditionalExpression, Assignment, LeftHandSide): Update
6580 calls to write_exp* and similars in order to use parser state.
6581 (parse_number): Ajust code to use parser state.
6583 (java_parse): New function.
6584 (push_variable): Add "struct parser_state" argument. Adjust
6585 code to user parser state.
6586 (push_fieldnames, push_qualified_expression_name,
6587 push_expression_name, insert_exp): Likewise.
6588 * jv-lang.h: Forward declare "struct parser_state".
6589 (java_parse): Add "struct parser_state" argument.
6590 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6592 (yyparse): Redefine macro to m2_parse_internal.
6593 (pstate): New variable.
6594 (type_exp, exp, fblock, variable, type): Update calls to
6595 write_exp* and similars to use parser state.
6597 (m2_parse): New function.
6598 * m2-lang.h: Forward declare "struct parser_state".
6599 (m2_parse): Add "struct parser_state" argument.
6600 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6601 * objc-lang.h: Forward declare "struct parser_state".
6602 (end_msglist): Add "struct parser_state" argument.
6603 * p-exp.y (parse_type): Rewrite macro to use parser state.
6604 (yyparse): Redefine macro to pascal_parse_internal.
6605 (pstate): New variable.
6606 (parse_number): Add "struct parser_state" argument.
6607 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6608 write_exp* and similars in order to use parser state.
6609 (parse_number, yylex): Adjust code to use parser state.
6610 (pascal_parse): New function.
6611 * p-lang.h: Forward declare "struct parser_state".
6612 (pascal_parse): Add "struct parser_state" argument.
6613 * go-exp.y (parse_type): Rewrite macro to use parser state.
6614 (yyparse): Redefine macro to go_parse_internal.
6615 (pstate): New variable.
6616 (parse_number): Add "struct parser_state" argument.
6617 (type_exp, exp1, exp, variable, type): Update calls to
6618 write_exp* and similars in order to use parser state.
6619 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6620 to use parser state.
6621 (go_parse): Likewise.
6622 * go-lang.h: Forward declare "struct parser_state".
6623 (go_parse): Add "struct parser_state" argument.
6625 2014-03-27 Doug Evans <dje@google.com>
6627 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6629 2014-03-27 Doug Evans <dje@google.com>
6631 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6632 Remove argument abbrev_section. All callers updated.
6634 2014-03-27 Doug Evans <dje@google.com>
6636 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6637 addr_base, ranges_base.
6639 2014-03-26 Keith Seitz <keiths@redhat.com>
6641 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6642 types, not VAR_DOMAIN.
6644 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6646 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6648 * features/nios2-linux.c: Regenerated.
6649 * features/nios2.c: Regenerated.
6651 2014-03-25 Pedro Alves <palves@redhat.com>
6653 * cli/cli-script.c (script_from_file): Force the interpreter to
6656 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6658 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6659 small stack allocation.
6661 2014-03-24 Tristan Gingold <gingold@adacore.com>
6663 * darwin-nat.c (exc_server): Remove unused prototype.
6664 (darwin_dump_message): Correctly display data on x86_64.
6665 (darwin_encode_reply): Fix style.
6666 Add comments and fix indentation.
6668 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6670 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6672 2014-03-22 Doug Evans <xdje42@gmail.com>
6674 * infcmd.c: Whitespace fixes.
6675 (interrupt_command): Merge two function comments into one.
6677 2014-03-22 Doug Evans <xdje42@gmail.com>
6679 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6682 2014-03-22 Yao Qi <yao@codesourcery.com>
6684 * remote.c (target_read_live_memory): Remove.
6685 (memory_xfer_live_readonly_partial): Rename it to
6686 remote_xfer_live_readonly_partial. Remove argument 'object'.
6687 All callers updated. Call remote_read_bytes_1
6688 instead of target_read_live_memory.
6689 * tracepoint.c (set_traceframe_number): Remove.
6690 (make_cleanup_restore_traceframe_number): Likewise .
6691 * tracepoint.h (set_traceframe_number): Remove declaration.
6692 (make_cleanup_restore_traceframe_number): Likewise.
6694 2014-03-22 Yao Qi <yao@codesourcery.com>
6696 * remote.c (remote_read_bytes): Move code on reading from the
6698 (remote_read_bytes_1): ... here. New function.
6700 2014-03-22 Yao Qi <yao@codesourcery.com>
6702 * ctf.c (ctf_xfer_partial): Check the return value of
6703 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6704 return TARGET_XFER_UNAVAILABLE.
6705 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6706 * target.c (target_read_live_memory): Move it to remote.c.
6707 (memory_xfer_live_readonly_partial): Likewise.
6708 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6709 * remote.c (target_read_live_memory): Moved from target.c.
6710 (memory_xfer_live_readonly_partial): Likewise.
6711 (remote_read_bytes): Factored out from
6712 memory_xfer_partial_1.
6714 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6716 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6719 2014-03-21 Pedro Alves <palves@redhat.com>
6721 * infrun.c (normal_stop): Extend comment.
6723 2014-03-21 Hui Zhu <hui@codesourcery.com>
6724 Pedro Alves <palves@redhat.com>
6726 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6728 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6729 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6730 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6732 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6734 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6735 `z' formatted output modifier.
6737 2014-03-20 Tom Tromey <tromey@redhat.com>
6738 Sergio Durigan Junior <sergiodj@redhat.com>
6740 * probe.c (parse_probes): Turn assert into an ordinary error.
6741 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6742 exceptions when parsing probes. Rearrange the code for clarity.
6744 2014-03-20 Tom Tromey <tromey@redhat.com>
6747 * top.c (execute_command): Only dispatch events if the command
6750 2014-03-20 Tom Tromey <tromey@redhat.com>
6753 * infcall.c: Include event-top.h.
6754 (run_inferior_call): Call async_disable_stdin if needed.
6756 2014-03-20 Pedro Alves <palves@redhat.com>
6758 * infrun.c (prepare_to_proceed): Delete.
6759 (thread_still_needs_step_over): New function.
6760 (find_thread_needs_step_over): New function.
6761 (proceed): If the current thread needs a step-over, set its
6762 steping_over_breakpoint flag. Adjust to use
6763 find_thread_needs_step_over instead of prepare_to_proceed.
6764 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6765 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6767 (switch_back_to_stepped_thread): Step over breakpoints of all
6768 threads not the stepping thread, before switching back to the
6771 2014-03-20 Pedro Alves <palves@redhat.com>
6773 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6775 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6776 * infrun.c (saved_singlestep_ptid)
6777 (stepping_past_singlestep_breakpoint): Delete.
6778 (resume): Remove stepping_past_singlestep_breakpoint handling.
6779 (proceed): Store the prev_pc of the stepping thread too.
6780 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6782 (enum infwait_states): Delete infwait_thread_hop_state.
6783 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6785 (handle_inferior_event): Adjust.
6786 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6787 handling and the thread-hop code. Before removing single-step
6788 breakpoints, check whether the thread hit a single-step breakpoint
6789 of another thread. If it did, the trap is not a random signal.
6790 (switch_back_to_stepped_thread): If the event thread hit a
6791 single-step breakpoint, unblock it before switching to the
6792 stepping thread. Handle the case of the stepped thread having
6794 (keep_going): Handle the case of the current thread moving past a
6795 single-step breakpoint.
6797 2014-03-20 Pedro Alves <palves@redhat.com>
6800 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6801 are being stepped over.
6802 (breakpoint_address_match): Make extern.
6803 * breakpoint.h (breakpoint_address_match): New declaration.
6804 * inferior.h (stepping_past_instruction_at): New declaration.
6805 * infrun.c (struct step_over_info): New type.
6806 (step_over_info): New global.
6807 (set_step_over_info, clear_step_over_info)
6808 (stepping_past_instruction_at): New functions.
6809 (handle_inferior_event): Clear the step-over info when
6810 trap_expected is cleared.
6811 (resume): Remove now stale comment.
6812 (clear_proceed_status): Clear step-over info.
6813 (proceed): Adjust step-over handling to set or clear the step-over
6814 info instead of removing all breakpoints.
6815 (handle_signal_stop): When setting up a thread-hop, don't remove
6817 (stop_stepping): Clear step-over info.
6818 (keep_going): Adjust step-over handling to set or clear step-over
6819 info and then always inserting breakpoints, instead of removing
6820 all breakpoints when stepping over one.
6822 2014-03-20 Pedro Alves <palves@redhat.com>
6824 * infrun.c (previous_inferior_ptid): Adjust comment.
6825 (deferred_step_ptid): Delete.
6826 (infrun_thread_ptid_changed, prepare_to_proceed)
6827 (init_wait_for_inferior): Adjust.
6828 (handle_signal_stop): Delete deferred_step_ptid handling.
6830 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6833 * defs.h (sync_quit_force_run): New declaration.
6834 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6835 * event-top.c (async_sigterm_handler): New declaration.
6836 (async_sigterm_token): New variable.
6837 (async_init_signals): Create also async_sigterm_token.
6838 (async_sigterm_handler): New function.
6839 (sync_quit_force_run): New variable.
6840 (handle_sigterm): Replace quit_force call by other calls.
6841 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6843 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6845 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6846 offset into SPE pseudo registers.
6848 2014-03-18 Pedro Alves <palves@redhat.com>
6851 * inferior.h (print_stop_event): Declare.
6852 * infrun.c (print_stop_event): New, factored out from ...
6853 (normal_stop): ... this.
6854 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6855 of bpstat_print/print_stack_frame.
6857 2014-03-17 Tom Tromey <tromey@redhat.com>
6859 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6861 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6863 * ada-lang.c (decode_constrained_packed_array): Perform a
6864 minimal coercion for reference with coerce_ref instead of
6867 2014-03-17 Tristan Gingold <gingold@adacore.com>
6869 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6870 (darwin_solib_create_inferior_hook): Emit a warning if version
6873 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6875 * python/py-value.c (get_field_flag): Cast flag_name argument to
6876 PyObject_GetAttrString to support Python 2.4.
6878 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6880 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6881 (Global Maintainers): Remove Jan Kratochvil.
6883 2014-03-14 Pedro Alves <palves@redhat.com>
6885 * inferior.h (terminal_ours_for_output): Rename to ...
6886 (child_terminal_ours_for_output): ... this.
6887 (terminal_save_ours): Rename to ...
6888 (child_terminal_save_ours): ... this.
6889 (terminal_ours): Rename to ...
6890 (child_terminal_ours): ... this.
6891 (terminal_inferior): Rename to ...
6892 (child_terminal_inferior): ... this.
6893 (terminal_init_inferior): Rename to ...
6894 (child_terminal_init_inferior): ... this.
6895 (terminal_init_inferior_with_pgrp): Rename to ...
6896 (child_terminal_init_inferior_with_pgrp): ... this.
6897 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6898 (child_terminal_init_with_pgrp): ... this.
6899 (terminal_save_ours): Rename to ...
6900 (child_terminal_save_ours): ... this.
6901 (terminal_init_inferior): Rename to ...
6902 (child_terminal_init): ... this. Adjust.
6903 (terminal_inferior): Rename to ...
6904 (child_terminal_inferior): ... this.
6905 (terminal_ours_for_output): Rename to ...
6906 (child_terminal_ours_for_output): ... this. Adjust.
6907 (terminal_ours): Rename to ...
6908 (child_terminal_ours): ... this.
6909 (terminal_ours_1): Rename to ...
6910 (child_terminal_ours_1): ... this. Adjust.
6911 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6912 * windows-nat.c (do_initial_windows_stuff): Adjust.
6913 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6914 (gnu_terminal_init): ... this. Adjust.
6915 (gnu_target): Adjust.
6916 * inf-child.c (inf_child_target): Adjust.
6918 2014-03-13 Doug Evans <xdje42@gmail.com>
6921 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6924 2014-03-13 Doug Evans <xdje42@gmail.com>
6926 * value.c (record_latest_value): Call release_value_or_incref
6927 instead of release_value.
6929 2014-03-13 Pedro Alves <palves@redhat.com>
6931 * procfs.c (procfs_target): Don't override to_shortname,
6932 to_longname or to_doc.
6934 2014-03-13 Pedro Alves <palves@redhat.com>
6936 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6937 Unix in user visible strings.
6939 2014-03-12 Stan Shebs <stan@codesourcery.com>
6941 * gdbtypes.h: Annotate comments for Doxygen, add a page
6942 block comment with some general info.
6944 2014-03-12 Pedro Alves <palves@redhat.com>
6946 * infcmd.c (prepare_execution_command): New function, factored out
6947 from several execution commands.
6948 (run_command_1, continue_command, step_1, jump_command)
6949 (signal_command, until_command, advance_command, finish_command)
6950 (attach_command): Use prepare_execution_command.
6952 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6954 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6957 (struct arm_linux_thread_points): Removed.
6958 (struct arm_linux_process_info): New.
6959 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6960 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6961 (arm_linux_find_breakpoints_by_tid): Removed.
6962 (struct arch_lwp_info): New.
6963 (arm_linux_find_process_pid): New functions.
6964 (arm_linux_add_process): New functions.
6965 (arm_linux_process_info_get): New functions.
6966 (arm_linux_forget_process): New function.
6967 (arm_linux_get_debug_reg_state): New function.
6968 (struct update_registers_data): New.
6969 (update_registers_callback): New function.
6970 (arm_linux_insert_hw_breakpoint1): Updated.
6971 (arm_linux_remove_hw_breakpoint1): Updated.
6972 (arm_linux_insert_hw_breakpoint): Updated.
6973 (arm_linux_remove_hw_breakpoint): Updated.
6974 (arm_linux_insert_watchpoint): Updated.
6975 (arm_linux_remove_watchpoint): Updated.
6976 (arm_linux_new_thread): Updated.
6977 (arm_linux_prepare_to_resume): New function.
6978 (arm_linux_new_fork): New function.
6979 (_initialize_arm_linux_nat): Updated.
6981 2014-03-12 Pedro Alves <palves@redhat.com>
6983 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6985 2014-03-12 Tom Tromey <tromey@redhat.com>
6987 * inf-child.c (return_zero): New function.
6988 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6989 * aix-thread.c (aix_thread_inferior_created): New function.
6990 (aix_thread_attach): Remove.
6991 (init_aix_thread_ops): Don't set to_attach.
6992 (_initialize_aix_thread): Register inferior_created observer.
6993 * corelow.c (init_core_ops): Don't set to_attach or
6995 * exec.c (init_exec_ops): Don't set to_attach or
6997 * infcmd.c (run_command_1): Use find_run_target. Make direct
6999 (attach_command): Use find_attach_target. Make direct target
7001 * record-btrace.c (init_record_btrace_ops): Don't set
7003 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7005 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7006 set to_create_inferior.
7007 * target.c (complete_target_initialization): Add assertion.
7008 (target_create_inferior): Remove.
7009 (find_default_attach, find_default_create_inferior): Remove.
7010 (find_attach_target, find_run_target): New functions.
7011 (find_default_is_async_p, find_default_can_async_p)
7012 (target_supports_non_stop, target_attach): Remove.
7013 (init_dummy_target): Don't set to_create_inferior or
7014 to_supports_non_stop.
7015 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7016 TARGET_DEFAULT_FUNC.
7017 <to_create_inferior>: Add comment.
7018 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7019 TARGET_DEFAULT_RETURN.
7020 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7021 (find_attach_target, find_run_target): Declare.
7022 (target_create_inferior): Remove.
7023 (target_has_execution_1): Update comment.
7024 (target_supports_non_stop): Remove.
7025 * target-delegates.c: Rebuild.
7027 2014-03-12 Pedro Alves <palves@redhat.com>
7029 * inf-child.h: Update comment to not mention Unix.
7031 2014-03-12 Pedro Alves <palves@redhat.com>
7033 * inf-child.c: Update top comment to not mention Unix. Add
7034 generic comment describing how this target is meant to be used.
7035 (inf_child_post_attach, inf_child_post_startup_inferior)
7036 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7039 2014-03-12 Pedro Alves <palves@redhat.com>
7041 * nto-procfs.c: Include inf-child.h.
7042 (procfs_ops): Delete global.
7043 (procfs_can_run): Delete method.
7044 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7045 target pointer instead of referencing procfs_ops.
7046 (procfs_prepare_to_store): Delete.
7047 (init_procfs_ops): Delete function.
7048 (procfs_target): New function, based on init_procfs_ops, but
7049 inherit inf_child_target.
7050 (_initialize_procfs): Use procfs_target.
7052 2014-03-12 Pedro Alves <palves@redhat.com>
7054 * windows-nat.c: Include inf-child.h.
7055 (windows_ops): Delete global.
7056 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7058 (init_windows_ops): Delete function.
7059 (windows_target): New function, based on init_windows_ops, but
7060 inherit inf_child_target.
7061 (_initialize_windows_nat): Use windows_target. Install x86
7062 specific target methods here.
7064 2014-03-10 Doug Evans <xdje42@gmail.com>
7066 * guile/guile.c (call_initialize_gdb_module): New function.
7067 (initialize_guile): Replace call to scm_init_guile with call to
7070 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7072 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7073 in call to TYPE_CODE macro.
7075 2014-03-10 Jerome Guitton <guitton@adacore.com>
7077 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7078 Resolve tagged types to full view.
7080 2014-03-10 Hui Zhu <hui@codesourcery.com>
7082 * target.h (target_insert_breakpoint): Remove "hardware" from its
7085 2014-03-07 Doug Evans <dje@google.com>
7087 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7089 2014-03-07 Doug Evans <dje@google.com>
7091 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7092 Remove unused local comp_dir_attr. Assert exactly one of
7093 stub_comp_unit_die, stub_comp_dir is non-NULL.
7095 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7097 * target.h (complete_target_initialization, add_target):
7100 2014-03-07 Pedro Alves <palves@redhat.com>
7102 * go32-nat.c: Include inf-child.h.
7103 (go32_ops): Delete global.
7104 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7106 (go32_create_inferior): Push the passed in target pointer instead
7107 of referencing go32_ops.
7108 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7109 (go32_target): New function, based on init_go32_ops, but inherit
7111 (_initialize_go32_nat): Use go32_target. Move parts of
7114 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7116 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7117 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7118 SYMBOL_VALUE_ADDRESS.
7119 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7121 2014-03-06 Yao Qi <yao@codesourcery.com>
7123 * breakpoint.c (get_tracepoint_by_number): Remove argument
7124 optional_p. All callers updated. Adjust comments. Update
7126 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7128 2014-03-06 Yao Qi <yao@codesourcery.com>
7130 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7131 early if get_number returns zero. Use 'p' instead of 'args'.
7133 2014-03-06 Yao Qi <yao@codesourcery.com>
7135 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7138 2014-03-06 Yao Qi <yao@codesourcery.com>
7140 PR breakpoints/16508
7141 * tracepoint.c (check_trace_running): New function.
7142 (trace_find_command): Move code to check_trace_running and
7143 call check_trace_running.
7144 (trace_find_pc_command): Likewise.
7145 (trace_find_tracepoint_command): Likewise.
7146 (trace_find_line_command): Likewise.
7147 (trace_find_range_command): Likewise.
7148 * tracepoint.h (check_trace_running): Likewise.
7149 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7151 2014-03-06 Yao Qi <yao@codesourcery.com>
7153 * target.h (struct target_ops) <to_traceframe_info>: Use
7154 TARGET_DEFAULT_NORETURN (tcomplain ()).
7155 * target-delegates.c: Regenerated.
7157 2014-03-05 Pedro Alves <palves@redhat.com>
7160 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7161 void. Update comment.
7162 (dcache_xfer_memory): Delete.
7163 (dcache_read_memory_partial): New, based on the read bits of
7165 (dcache_update): Add status parameter. Use ULONGEST for len, and
7166 adjust. Discard cache lines if the reason for the update was
7168 * dcache.h (dcache_xfer_memory): Delete declaration.
7169 (dcache_read_memory_partial): New declaration.
7170 (dcache_update): Update prototype.
7171 * target.c (raw_memory_xfer_partial): Update the dcache here.
7172 (memory_xfer_partial_1): Don't handle dcache writes here.
7174 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7176 * remote-sim.c (gdbsim_load): Add const to prog.
7178 2014-03-03 Tom Tromey <tromey@redhat.com>
7180 * elfread.c (probe_key): Change to bfd_data.
7181 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7182 now per-BFD, not per-objfile.
7183 * stap-probe.c (stap_probe_destroy): Update comment.
7184 (handle_stap_probe): Allocate on the per-BFD obstack.
7186 2014-03-03 Tom Tromey <tromey@redhat.com>
7188 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7189 * breakpoint.c (create_longjmp_master_breakpoint): Use
7191 (add_location_to_breakpoint, bkpt_probe_insert_location)
7192 (bkpt_probe_remove_location): Update.
7193 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7194 * elfread.c (elf_symfile_relocate_probe): Remove.
7195 (elf_probe_fns): Update.
7196 (insert_exception_resume_breakpoint): Change type of "probe"
7197 parameter to bound_probe.
7198 (check_exception_resume): Update.
7199 * objfiles.c (objfile_relocate1): Don't relocate probes.
7200 * probe.c (bound_probe_s): New typedef.
7201 (parse_probes): Use get_probe_address. Set sal's objfile.
7202 (find_probe_by_pc): Return a bound_probe.
7203 (collect_probes): Return a VEC(bound_probe_s).
7204 (compare_probes): Update.
7205 (gen_ui_out_table_header_info): Change type of "probes"
7207 (info_probes_for_ops): Update.
7208 (get_probe_address): New function.
7209 (probe_safe_evaluate_at_pc): Update.
7210 * probe.h (struct probe_ops) <get_probe_address>: New field.
7211 <set_semaphore, clear_semaphore>: Add objfile parameter.
7212 (struct probe) <objfile>: Remove field.
7214 <address>: Update comment.
7215 (struct bound_probe): New.
7216 (find_probe_by_pc): Return a bound_probe.
7217 (get_probe_address): Declare.
7218 * solib-svr4.c (struct probe_and_action) <address>: New field.
7219 (hash_probe_and_action, equal_probe_and_action): Update.
7220 (register_solib_event_probe): Add address parameter.
7221 (solib_event_probe_at): Update.
7222 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7224 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7225 (stap_get_probe_address): New function.
7226 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7227 (compile_probe_arg): Update.
7228 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7230 (handle_stap_probe): Don't relocate the probe.
7231 (stap_relocate): Remove.
7232 (stap_gen_info_probes_table_values): Update.
7233 (stap_probe_ops): Remove stap_relocate.
7234 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7235 (debug_sym_probe_fns): Update.
7236 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7237 * symtab.c (init_sal): Use memset.
7238 * symtab.h (struct symtab_and_line) <objfile>: New field.
7239 * tracepoint.c (start_tracing, stop_tracing): Update.
7241 2014-03-03 Tom Tromey <tromey@redhat.com>
7243 * probe.h (parse_probes, find_probe_by_pc)
7244 (find_probes_in_objfile): Fix comments.
7246 2014-03-02 Doug Evans <xdje42@gmail.com>
7248 * infrun.c (handle_signal_stop): Replace test for
7249 TARGET_WAITKIND_STOPPED with an assert.
7251 2014-03-02 Doug Evans <xdje42@gmail.com>
7253 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7255 2014-03-02 Doug Evans <xdje42@gmail.com>
7257 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7259 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7261 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7263 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7265 * i386obsd-nat.c: Include "obsd-nat.h".
7266 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7268 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7270 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7272 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7274 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7276 * mips64obsd-nat.c: Include "obsd-nath".
7277 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7279 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7281 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7283 * amd64obsd-nat.c: Include "obsd-nat,h.
7284 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7286 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7288 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7290 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7291 (find_overload_match): Update call to find_oload_champ.
7292 (find_oload_champ_namespace_loop): Likewise
7294 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7296 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7298 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7299 * config/sparc/obsd64.mh: New file.
7300 * sparc64obsd-nat.c: New file.
7302 * obsd-nat.h: New file.
7303 * obsd-nat.c: New file.
7304 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7305 (ALLDEPFILES): Add obsd-nat.c.
7307 2014-02-28 Tom Tromey <tromey@redhat.com>
7309 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7310 * cli-out.h (cli_ui_out_impl): Now const.
7311 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7312 * ui-out.c (struct ui_out) <impl>: Now const.
7313 (default_ui_out_impl): Now const.
7314 (ui_out_new): Make 'impl' parameter const.
7315 * ui-out.h (ui_out_new): Update.
7317 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7319 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7321 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7323 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7325 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7327 Additional PR 8882 fix.
7328 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7330 2014-02-27 Pedro Alves <palves@redhat.com>
7332 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7335 2014-02-27 Pedro Alves <palves@redhat.com>
7338 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7339 * nat/linux-waitpid.c: Include string.h.
7340 (status_to_str): Moved here and made extern.
7341 * nat/linux-waitpid.h (status_to_str): New declaration.
7343 2014-02-27 Hui Zhu <hui@codesourcery.com>
7346 * infrun.c (ptid_match): Move ...
7347 * common/ptid.c (ptid_match): ... here.
7348 * inferior.h (ptid_match): Move ...
7349 * common/ptid.h (ptid_match): ... here.
7351 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7353 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7354 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7357 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7359 * obsd-tdep.c (obsd_auxv_parse): New function.
7360 (obsd_init_abi): Set auxv_parse.
7362 * gdbarch.sh (auxv_parse): New.
7363 * gdbarch.h: Regenerated.
7364 * gdbarch.c: Regenerated.
7365 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7367 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7369 * guile/scm-value.c (gdbscm_history_append_x): New function.
7370 (value_functions): Add it.
7372 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7374 * dwarf2read.c (attr_value_as_address): New function.
7375 (dwarf2_find_base_address, read_call_site_scope): Use
7376 attr_value_as_address in place of DW_ADDR.
7377 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7378 the low and high addresses. Slight rework of the handling
7379 of the high pc being a constant form, and limit it to
7380 DWARF verson 4 or higher.
7381 (dwarf2_record_block_ranges): Likewise.
7382 (read_partial_die): Likewise.
7383 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7385 2014-02-26 Tom Tromey <tromey@redhat.com>
7387 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7389 2014-02-26 Tom Tromey <tromey@redhat.com>
7391 * elfread.c (elf_read_minimal_symbols): Return early if
7392 minimal symbols have already been read. Add "ei" parameter.
7393 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7394 * minsyms.c (prim_record_minimal_symbol_full): Update.
7395 * objfiles.h (struct objstats) <n_minsyms>: Move...
7396 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7397 * symmisc.c (print_objfile_statistics): Update.
7399 2014-02-26 Tom Tromey <tromey@redhat.com>
7401 * elfread.c (elf_read_minimal_symbols): New function, from
7403 (elf_symfile_read): Call it.
7405 2014-02-26 Tom Tromey <tromey@redhat.com>
7407 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7408 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7409 (lookup_minimal_symbol_solib_trampoline)
7410 (lookup_minimal_symbol_by_pc_section_1)
7411 (lookup_minimal_symbol_and_objfile): Update.
7412 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7413 Don't allocate a minimal symbol if minsyms have already been read.
7414 (build_minimal_symbol_hash_tables): Update.
7415 (install_minimal_symbols): Do nothing if minsyms already read.
7416 Use the per-BFD obstack.
7417 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7418 * objfiles.c (allocate_objfile): Call
7419 terminate_minimal_symbol_table later.
7420 (have_minimal_symbols): Update.
7421 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7422 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7423 Move from struct objfile.
7424 <minsyms_read>: New field.
7425 (struct objfile) <msymbols, minimal_symbol_count,
7426 msymbol_hash, msymbol_demangled_hash>: Move.
7427 (ALL_OBJFILE_MSYMBOLS): Update.
7428 * symfile.c (read_symbols): Set minsyms_read.
7429 (reread_symbols): Update.
7430 * symmisc.c (dump_objfile, dump_msymbols): Update.
7432 2014-02-26 Tom Tromey <tromey@redhat.com>
7434 * minsyms.c (msymbols_sort): Remove.
7435 * minsyms.h (msymbols_sort): Remove.
7436 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7437 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7438 * elfread.c (elf_symtab_read): Don't add section offsets.
7439 * xcoffread.c (record_minimal_symbol): Don't add section offset
7440 to minimal symbol address.
7441 * somread.c (text_offset, data_offset): Remove.
7442 (som_symtab_read): Don't add section offsets to minimal symbol
7444 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7445 Don't add section offsets to minimal symbols.
7446 * coffread.c (coff_symtab_read): Don't add section offsets
7447 to minimal symbol addresses.
7448 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7449 to minimal symbol addresses.
7450 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7451 section offset to minimal symbol addresses.
7452 * mdebugread.c (parse_partial_symbols): Don't add section
7453 offset to minimal symbol addresses.
7454 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7455 offset to minimal symbol addresses.
7457 2014-02-26 Tom Tromey <tromey@redhat.com>
7459 * ada-lang.c (ada_main_name): Update.
7460 (ada_add_standard_exceptions): Update.
7461 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7462 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7463 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7464 * auxv.c (ld_so_xfer_auxv): Update.
7465 * avr-tdep.c (avr_scan_prologue): Update.
7466 * ax-gdb.c (gen_var_ref): Update.
7467 * blockframe.c (get_pc_function_start)
7468 (find_pc_partial_function_gnu_ifunc): Update.
7469 * breakpoint.c (create_overlay_event_breakpoint)
7470 (create_longjmp_master_breakpoint)
7471 (create_std_terminate_master_breakpoint)
7472 (create_exception_master_breakpoint): Update.
7473 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7474 * c-valprint.c (c_val_print): Update.
7475 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7476 * common/agent.c (agent_look_up_symbols): Update.
7477 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7478 * dwarf2loc.c (call_site_to_target_addr): Update.
7479 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7480 * elfread.c (elf_gnu_ifunc_record_cache)
7481 (elf_gnu_ifunc_resolve_by_got): Update.
7482 * findvar.c (default_read_var_value): Update.
7483 * frame.c (inside_main_func): Update.
7484 * frv-tdep.c (frv_frame_this_id): Update.
7485 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7486 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7488 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7489 (hppa_hpux_find_dummy_bpaddr): Update.
7490 * hppa-tdep.c (hppa_symbol_address): Update.
7491 * infcmd.c (until_next_command): Update.
7492 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7494 * linespec.c (minsym_found, add_minsym): Update.
7495 * linux-nat.c (get_signo): Update.
7496 * linux-thread-db.c (inferior_has_bug): Update.
7497 * m32c-tdep.c (m32c_return_value)
7498 (m32c_m16c_address_to_pointer): Update.
7499 * m32r-tdep.c (m32r_frame_this_id): Update.
7500 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7501 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7502 * maint.c (maintenance_translate_address): Update.
7503 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7504 (frob_address): New function.
7505 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7506 frob_address. Rename parameter to "pc_in".
7507 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7509 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7511 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7512 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7513 * objc-lang.c (find_objc_msgsend): Update.
7514 * objfiles.c (objfile_relocate1): Update.
7515 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7516 * p-valprint.c (pascal_val_print): Update.
7517 * parse.c (write_exp_msymbol): Update.
7518 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7519 (ppc_elfv2_skip_entrypoint): Update.
7520 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7521 * printcmd.c (build_address_symbolic, msym_info)
7522 (address_info): Update.
7523 * proc-service.c (ps_pglobal_lookup): Update.
7524 * psymtab.c (find_pc_sect_psymtab_closer)
7525 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7526 Change msymbol parameter to bound_minimal_symbol.
7527 * ravenscar-thread.c (get_running_thread_id): Update.
7528 * remote.c (remote_check_symbols): Update.
7529 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7531 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7532 * solib-dsbt.c (lm_base): Update.
7533 * solib-frv.c (lm_base, main_got): Update.
7534 * solib-irix.c (locate_base): Update.
7535 * solib-som.c (som_solib_create_inferior_hook)
7536 (link_map_start): Update.
7537 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7538 * solib-svr4.c (elf_locate_base, enable_break): Update.
7539 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7540 (flush_ea_cache): Update.
7541 * stabsread.c (define_symbol, scan_file_globals): Update.
7542 * stack.c (find_frame_funname): Update.
7543 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7544 (debug_qf_find_pc_sect_symtab): Update.
7545 * symfile.c (simple_read_overlay_table)
7546 (simple_overlay_update): Update.
7547 * symfile.h (struct quick_symbol_functions)
7548 <find_pc_sect_symtab>: Change type of msymbol to
7549 bound_minimal_symbol.
7550 * symmisc.c (dump_msymbols): Update.
7551 * symtab.c (find_pc_sect_symtab_via_partial)
7552 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7553 (search_symbols, print_msymbol_info): Update.
7554 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7555 (MSYMBOL_VALUE_ADDRESS): Redefine.
7556 (BMSYMBOL_VALUE_ADDRESS): New macro.
7557 * tracepoint.c (scope_info): Update.
7558 * tui/tui-disasm.c (tui_find_disassembly_address)
7559 (tui_get_begin_asm_address): Update.
7560 * valops.c (find_function_in_inferior): Update.
7561 * value.c (value_static_field, value_fn_field): Update.
7563 2014-02-26 Tom Tromey <tromey@redhat.com>
7565 * ada-lang.c (ada_update_initial_language): Update.
7566 (ada_main_name, ada_has_this_exception_support): Update.
7567 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7568 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7569 * arm-tdep.c (arm_skip_stub): Update.
7570 * auxv.c (ld_so_xfer_auxv): Update.
7571 * avr-tdep.c (avr_scan_prologue): Update.
7572 * ax-gdb.c (gen_var_ref): Update.
7573 * breakpoint.c (struct breakpoint_objfile_data)
7574 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7575 type to bound_minimal_symbol.
7576 (create_overlay_event_breakpoint)
7577 (create_longjmp_master_breakpoint)
7578 (create_std_terminate_master_breakpoint)
7579 (create_exception_master_breakpoint): Update.
7580 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7581 * c-exp.y (classify_name): Update.
7582 * coffread.c (coff_symfile_read): Update.
7583 * common/agent.c (agent_look_up_symbols): Update.
7584 * d-lang.c (d_main_name): Update.
7585 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7586 * dec-thread.c (enable_dec_thread): Update.
7587 * dwarf2loc.c (call_site_to_target_addr): Update.
7588 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7589 * eval.c (evaluate_subexp_standard): Update.
7590 * findvar.c (struct minsym_lookup_data) <result>: Change type
7591 to bound_minimal_symbol.
7593 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7594 * frame.c (inside_main_func): Update.
7595 * frv-tdep.c (frv_frame_this_id): Update.
7596 * gcore.c (call_target_sbrk): Update.
7597 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7598 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7600 * go-lang.c (go_main_name): Update.
7601 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7602 (hppa_hpux_find_import_stub_for_addr): Update.
7603 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7604 Update. Change return type.
7605 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7607 * jit.c (jit_breakpoint_re_set_internal): Update.
7608 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7610 * linux-nat.c (get_signo): Update.
7611 * linux-thread-db.c (inferior_has_bug): Update
7612 * m32c-tdep.c (m32c_return_value)
7613 (m32c_m16c_address_to_pointer): Update.
7614 * m32r-tdep.c (m32r_frame_this_id): Update.
7615 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7616 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7617 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7618 lookup_minimal_symbol. Change return type.
7619 (lookup_minimal_symbol): Remove.
7620 (lookup_bound_minimal_symbol): Update.
7621 (lookup_minimal_symbol_text): Change return type.
7622 (lookup_minimal_symbol_solib_trampoline): Change return type.
7623 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7624 (lookup_minimal_symbol_solib_trampoline): Change return type.
7625 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7626 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7627 (value_nsstring, find_imps): Update.
7628 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7629 * p-lang.c (pascal_main_name): Update.
7630 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7631 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7632 * proc-service.c (ps_pglobal_lookup): Update.
7633 * ravenscar-thread.c (get_running_thread_msymbol): Change
7635 (has_ravenscar_runtime, get_running_thread_id): Update.
7636 * remote.c (remote_check_symbols): Update.
7637 * sol-thread.c (ps_pglobal_lookup): Update.
7638 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7639 * solib-dsbt.c (lm_base): Update.
7640 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7642 * solib-irix.c (locate_base): Update.
7643 * solib-som.c (som_solib_create_inferior_hook)
7644 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7646 * solib-spu.c (spu_enable_break): Update.
7647 * solib-svr4.c (elf_locate_base, enable_break): Update.
7648 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7649 (flush_ea_cache): Update.
7650 * stabsread.c (define_symbol): Update.
7651 * symfile.c (simple_read_overlay_table): Update.
7652 * symtab.c (find_pc_sect_line): Update.
7653 * tracepoint.c (scope_info): Update.
7654 * tui-disasm.c (tui_get_begin_asm_address): Update.
7655 * value.c (value_static_field): Update.
7657 2014-02-26 Tom Tromey <tromey@redhat.com>
7659 * minsyms.c (prim_record_minimal_symbol_full): Use
7660 SET_MSYMBOL_VALUE_ADDRESS.
7661 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7662 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7663 SET_MSYMBOL_VALUE_ADDRESS.
7664 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7665 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7667 2014-02-26 Tom Tromey <tromey@redhat.com>
7669 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7670 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7671 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7672 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7673 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7674 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7675 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7676 * ada-lang.c (ada_main_name): Update.
7677 (ada_lookup_simple_minsym): Update.
7678 (ada_make_symbol_completion_list): Update.
7679 (ada_add_standard_exceptions): Update.
7680 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7681 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7682 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7683 * arm-tdep.c (skip_prologue_function): Update.
7684 (arm_skip_stack_protector, arm_skip_stub): Update.
7685 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7686 (arm_wince_skip_main_prologue): Update.
7687 * auxv.c (ld_so_xfer_auxv): Update.
7688 * avr-tdep.c (avr_scan_prologue): Update.
7689 * ax-gdb.c (gen_var_ref): Update.
7690 * block.c (call_site_for_pc): Update.
7691 * blockframe.c (get_pc_function_start): Update.
7692 (find_pc_partial_function_gnu_ifunc): Update.
7693 * breakpoint.c (create_overlay_event_breakpoint): Update.
7694 (create_longjmp_master_breakpoint): Update.
7695 (create_std_terminate_master_breakpoint): Update.
7696 (create_exception_master_breakpoint): Update.
7697 (resolve_sal_pc): Update.
7698 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7699 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7701 * c-valprint.c (c_val_print): Update.
7702 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7703 * coffread.c (coff_symfile_read): Update.
7704 * common/agent.c (agent_look_up_symbols): Update.
7705 * dbxread.c (find_stab_function_addr): Update.
7706 (end_psymtab): Update.
7707 * dwarf2loc.c (call_site_to_target_addr): Update.
7708 (func_verify_no_selftailcall): Update.
7709 (tailcall_dump): Update.
7710 (call_site_find_chain_1): Update.
7711 (dwarf_expr_reg_to_entry_parameter): Update.
7712 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7713 (elf_gnu_ifunc_resolve_by_got): Update.
7714 * f-valprint.c (info_common_command): Update.
7715 * findvar.c (read_var_value): Update.
7716 * frame.c (get_prev_frame_1): Update.
7717 (inside_main_func): Update.
7718 * frv-tdep.c (frv_skip_main_prologue): Update.
7719 (frv_frame_this_id): Update.
7720 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7721 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7722 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7723 (gnuv3_skip_trampoline): Update.
7724 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7725 (hppa64_hpux_in_solib_call_trampoline): Update.
7726 (hppa_hpux_skip_trampoline_code): Update.
7727 (hppa64_hpux_search_dummy_call_sequence): Update.
7728 (hppa_hpux_find_import_stub_for_addr): Update.
7729 (hppa_hpux_find_dummy_bpaddr): Update.
7730 * hppa-tdep.c (hppa_symbol_address)
7731 (hppa_lookup_stub_minimal_symbol): Update.
7732 * i386-tdep.c (i386_skip_main_prologue): Update.
7733 (i386_pe_skip_trampoline_code): Update.
7734 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7735 * infcall.c (get_function_name): Update.
7736 * infcmd.c (until_next_command): Update.
7737 * jit.c (jit_breakpoint_re_set_internal): Update.
7738 (jit_inferior_init): Update.
7739 * linespec.c (minsym_found): Update.
7740 (add_minsym): Update.
7741 * linux-fork.c (info_checkpoints_command): Update.
7742 * linux-nat.c (get_signo): Update.
7743 * linux-thread-db.c (inferior_has_bug): Update.
7744 * m32c-tdep.c (m32c_return_value): Update.
7745 (m32c_m16c_address_to_pointer): Update.
7746 (m32c_m16c_pointer_to_address): Update.
7747 * m32r-tdep.c (m32r_frame_this_id): Update.
7748 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7749 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7750 * maint.c (maintenance_translate_address): Update.
7751 * minsyms.c (add_minsym_to_hash_table): Update.
7752 (add_minsym_to_demangled_hash_table): Update.
7753 (msymbol_objfile): Update.
7754 (lookup_minimal_symbol): Update.
7755 (iterate_over_minimal_symbols): Update.
7756 (lookup_minimal_symbol_text): Update.
7757 (lookup_minimal_symbol_by_pc_name): Update.
7758 (lookup_minimal_symbol_solib_trampoline): Update.
7759 (lookup_minimal_symbol_by_pc_section_1): Update.
7760 (lookup_minimal_symbol_and_objfile): Update.
7761 (prim_record_minimal_symbol_full): Update.
7762 (compare_minimal_symbols): Update.
7763 (compact_minimal_symbols): Update.
7764 (build_minimal_symbol_hash_tables): Update.
7765 (install_minimal_symbols): Update.
7766 (terminate_minimal_symbol_table): Update.
7767 (find_solib_trampoline_target): Update.
7768 (minimal_symbol_upper_bound): Update.
7769 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7770 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7771 (mips_skip_pic_trampoline_code): Update.
7772 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7773 * objc-lang.c (selectors_info): Update.
7774 (classes_info): Update.
7775 (find_methods): Update.
7776 (find_imps): Update.
7777 (find_objc_msgsend): Update.
7778 * objfiles.c (objfile_relocate1): Update.
7779 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7780 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7781 * p-valprint.c (pascal_val_print): Update.
7782 * parse.c (write_exp_msymbol): Update.
7783 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7784 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7785 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7786 * printcmd.c (build_address_symbolic): Update.
7788 (address_info): Update.
7789 * proc-service.c (ps_pglobal_lookup): Update.
7790 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7791 (find_pc_sect_psymtab): Update.
7792 * python/py-framefilter.c (py_print_frame): Update.
7793 * ravenscar-thread.c (get_running_thread_id): Update.
7794 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7796 * remote.c (remote_check_symbols): Update.
7797 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7798 (rs6000_skip_trampoline_code): Update.
7799 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7800 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7801 * solib-dsbt.c (lm_base): Update.
7802 * solib-frv.c (lm_base): Update.
7804 * solib-irix.c (locate_base): Update.
7805 * solib-som.c (som_solib_create_inferior_hook): Update.
7806 (som_solib_desire_dynamic_linker_symbols): Update.
7807 (link_map_start): Update.
7808 * solib-spu.c (spu_enable_break): Update.
7809 (ocl_enable_break): Update.
7810 * solib-svr4.c (elf_locate_base): Update.
7811 (enable_break): Update.
7812 * spu-tdep.c (spu_get_overlay_table): Update.
7813 (spu_catch_start): Update.
7814 (flush_ea_cache): Update.
7815 * stabsread.c (define_symbol): Update.
7816 (scan_file_globals): Update.
7817 * stack.c (find_frame_funname): Update.
7818 (frame_info): Update.
7819 * symfile.c (simple_read_overlay_table): Update.
7820 (simple_overlay_update): Update.
7821 * symmisc.c (dump_msymbols): Update.
7822 * symtab.c (fixup_section): Update.
7823 (find_pc_sect_line): Update.
7824 (skip_prologue_sal): Update.
7825 (search_symbols): Update.
7826 (print_msymbol_info): Update.
7827 (rbreak_command): Update.
7828 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7829 (completion_list_objc_symbol): Update.
7830 (default_make_symbol_completion_list_break_on): Update.
7831 * tracepoint.c (scope_info): Update.
7832 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7833 (tui_get_begin_asm_address): Update.
7834 * valops.c (find_function_in_inferior): Update.
7835 * value.c (value_static_field): Update.
7836 (value_fn_field): Update.
7838 2014-02-26 Tom Tromey <tromey@redhat.com>
7840 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7841 bound minimal symbols. Move code that knows about minsym
7843 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7845 * minsyms.h (minimal_symbol_upper_bound): Declare.
7846 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7847 minimal_symbol_upper_bound.
7849 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7851 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7852 Use the type's name if its basic type does not have a tag.
7854 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7856 * dwarf2read.c (read_subrange_type): Add comment.
7858 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7860 * dwarf2read.c (update_enumeration_type_from_children): New
7861 function, mostly extracted from process_structure_scope.
7862 (read_enumeration_type): Call update_enumeration_type_from_children.
7863 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7864 and flag_flag_enum fields.
7866 2014-02-26 Pedro Alves <palves@redhat.com>
7868 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7869 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7870 to_xfer_partial method.
7872 2014-02-26 Pedro Alves <palves@redhat.com>
7874 * target.c (complete_target_initialization): Don't install
7875 default_xfer_partial as to_xfer_partial hook.
7877 (update_current_target): Don't INHERIT nor de_fault
7878 deprecated_xfer_memory. Delete de_fault macro.
7879 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7880 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7881 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7884 2014-02-26 Pedro Alves <palves@redhat.com>
7886 * go32-nat.c (my_write_child): New function.
7887 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7888 (go32_xfer_partial): New function.
7889 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7890 Instead install a to_xfer_partial hook.
7892 2014-02-26 Pedro Alves <palves@redhat.com>
7894 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7895 to_xfer_partial helper. Rewrite.
7896 (procfs_xfer_partial): New function.
7897 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7898 Install a to_xfer_partial hook.
7900 2014-02-26 Pedro Alves <palves@redhat.com>
7902 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7903 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7904 (m32r_xfer_partial): New function.
7905 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7906 Install a to_xfer_partial hook.
7908 2014-02-26 Pedro Alves <palves@redhat.com>
7910 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7912 (mips_xfer_partial): New function.
7913 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7914 hook. Install a to_xfer_partial hook.
7916 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7918 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7919 * gdbtypes.c (create_array_type_with_stride): New function,
7920 renaming create_array_type, but with an added parameter
7921 called "bit_stride".
7922 (create_array_type): Re-implement using
7923 create_array_type_with_stride.
7924 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7925 and DW_AT_bit_stride attributes.
7927 2014-02-26 Pedro Alves <palves@redhat.com>
7929 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7930 task-specific breakpoints.
7932 2014-02-25 Pedro Alves <palves@redhat.com>
7934 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7935 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7937 2014-02-25 Stan Shebs <stan@codesourcery.com>
7939 * defs.h: Annotate comments for Doxygen.
7941 2014-02-25 Tom Tromey <tromey@redhat.com>
7943 * target.h (target_ignore): Don't declare.
7944 * target.c (target_ignore): Remove.
7946 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7949 * auto-load.c (auto_load_objfile_script_1): Change filename to
7952 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7954 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7955 documentation. Adjust prototype to match the target_ops
7956 to_xfer_partial method. Adjust implementation accordingly.
7958 2014-02-25 Hui Zhu <hui@codesourcery.com>
7960 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7963 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7965 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7966 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7967 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7968 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7969 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7970 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7971 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7972 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7974 (rl78_register_type): Use a data pointer type for SP and
7975 new pseudo registers mentioned above. Use a 16 bit integer
7976 type for all other register pairs.
7977 (rl78_register_name, rl78_g10_register_name): Update for
7978 new pseudo registers.
7979 (rl78_pseudo_register_read): Likewise.
7980 (rl78_pseudo_register_write): Likewise.
7981 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7982 to the newly added pseudo registers.
7984 2014-02-24 Doug Evans <dje@google.com>
7986 * value.c (record_latest_value): Fix comment.
7987 * printcmd.c (print_command_1): Remove code to handle -1 return from
7988 record_latest_value.
7990 2014-02-24 Pedro Alves <palves@redhat.com>
7992 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7993 deprecated_xfer_memory hook.
7994 (procfs_xfer_partial): Call procfs_xfer_memory instead
7995 of the deprecated_xfer_memory target hook.
7996 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7999 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8001 * windows-nat.c (windows_xfer_shared_libraries): Return
8002 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8003 requested object is TARGET_OBJECT_LIBRARIES.
8005 2014-02-24 Yao Qi <yao@codesourcery.com>
8007 * target.h (enum target_xfer_status)
8008 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8009 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8011 * corefile.c (memory_error_message): User updated.
8012 * exec.c (section_table_read_available_memory): Likewise.
8013 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8014 * target.c (target_xfer_status_to_string): Likewise.
8015 (raw_memory_xfer_partial): Likewise.
8016 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8017 * valops.c (read_value_memory): Likewise.
8018 * exec.h: Update comments.
8020 2014-02-24 Yao Qi <yao@codesourcery.com>
8022 * target.c (target_xfer_status_to_string): Rename argument err
8024 * target.h (target_xfer_status_to_string): Update declaration.
8025 Replace target_xfer_error_to_string with
8026 target_xfer_status_to_string in comment.
8028 2014-02-24 Yao Qi <yao@codesourcery.com>
8030 * mips-linux-nat.c (super_close): Update its type.
8031 (mips_linux_close): Pass 'self' to super_close.
8033 2014-02-24 Yao Qi <yao@codesourcery.com>
8035 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8036 * corefile.c (read_memory): Adjusted.
8037 * target.c (target_write_with_progress): Adjusted.
8039 2014-02-23 Yao Qi <yao@codesourcery.com>
8043 2013-10-25 Yao Qi <yao@codesourcery.com>
8045 * remote.c (remote_traceframe_info): Return early if
8046 traceframe is not selected.
8048 2013-07-19 Yao Qi <yao@codesourcery.com>
8050 * target.c (update_current_target): Change the default action
8051 of 'to_traceframe_info' from tcomplain to return_zero.
8052 * target.h (struct target_ops) <to_traceframe_info>: Add more
8055 2014-02-23 Yao Qi <yao@codesourcery.com>
8057 * valops.c (read_value_memory): Rewrite it. Call
8058 target_xfer_partial in a loop.
8059 * exec.h (section_table_available_memory): Remove declaration.
8060 Move comments to ...
8061 * exec.c (section_table_available_memory): ... here. Make it
8064 2014-02-23 Yao Qi <yao@codesourcery.com>
8066 * exec.c (section_table_read_available_memory): New function.
8067 * exec.h (section_table_read_available_memory): Declare.
8068 * ctf.c (ctf_xfer_partial): Call
8069 section_table_read_available_memory.
8070 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8072 2014-02-23 Yao Qi <yao@codesourcery.com>
8074 * ctf.c (ctf_xfer_partial): Move code to ...
8075 * exec.c (exec_read_partial_read_only): ... it. New function.
8076 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8077 * tracefile.c: Include "exec.h".
8078 * exec.h (exec_read_partial_read_only): Declare.
8080 2014-02-23 Yao Qi <yao@codesourcery.com>
8082 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8083 (tfile_has_memory): Remove.
8084 (init_tfile_ops): Don't set fields to_has_all_memory and
8085 to_has_memory of tfile_ops.
8086 * tracefile.c (tracefile_has_all_memory): New function.
8087 (tracefile_has_memory): New function.
8088 (init_tracefile_ops): Initialize fields to_has_all_memory and
8089 to_has_memory of 'ops'.
8091 2014-02-23 Yao Qi <yao@codesourcery.com>
8093 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8094 (ctf_thread_alive, ctf_get_trace_status): Remove.
8095 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8097 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8098 (tfile_has_stack, tfile_has_registers): Remove.
8099 (tfile_thread_alive): Remove.
8100 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8102 * tracefile.c (tracefile_has_stack): New function.
8103 (tracefile_has_registers): New function.
8104 (tracefile_thread_alive): New function.
8105 (tracefile_get_trace_status): New function.
8106 (init_tracefile_ops): New function.
8107 * tracefile.h (init_tracefile_ops): Declare.
8109 2014-02-23 Yao Qi <yao@codesourcery.com>
8111 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8112 (O_LARGEFILE): Likewise.
8113 (tfile_ops): Likewise.
8114 (TRACE_HEADER_SIZE): Likewise.
8115 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8116 (cur_data_size): Likewise.
8117 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8118 (tfile_close, tfile_files_info): Likewise.
8119 (tfile_get_trace_status): Likewise.
8120 (tfile_get_tracepoint_status): Likewise.
8121 (tfile_get_traceframe_address): Likewise.
8122 (tfile_trace_find, match_blocktype): Likewise.
8123 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8124 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8125 (tfile_get_trace_state_variable_value): Likewise.
8126 (tfile_has_all_memory, tfile_has_memory): Likewise.
8127 (tfile_has_stack, tfile_has_registers): Likewise.
8128 (tfile_thread_alive, build_traceframe_info): Likewise.
8129 (tfile_traceframe_info, init_tfile_ops): Likewise.
8130 (_initialize_tracepoint): Don't call init_tfile_ops
8131 and add_target_with_completer.
8132 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8133 exec.h, completer.h and filenames.h.
8134 (_initialize_tracefile_tfile): New function.
8136 2014-02-23 Yao Qi <yao@codesourcery.com>
8138 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8140 (HFILES_NO_SRCDIR): Add tracefile.h.
8141 * ctf.c: Include "tracefile.h".
8142 * tracefile.h: New file.
8143 * tracefile.c: New file
8144 * tracefile-tfile.c: New file.
8145 * tracepoint.c: Include "tracefile.h".
8146 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8147 (stop_reason_names): Add const.
8148 (trace_file_writer_xfree): Move it to tracefile.c.
8149 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8150 (trace_save_ctf): Likewise.
8151 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8152 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8153 (tfile_write_header, tfile_write_regblock_type): Likewise.
8154 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8155 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8156 (tfile_write_raw_data, tfile_end): Likewise.
8157 (tfile_trace_file_writer_new): Likewise.
8158 (free_uploaded_tp): Make it extern.
8159 (free_uploaded_tsv): Make it extern.
8160 (_initialize_tracepoint): Move code to register command 'tsave'
8162 * tracepoint.h (stop_reason_names): Declare.
8163 (struct trace_frame_write_ops): Move it to tracefile.h.
8164 (struct trace_file_write_ops): Likewise.
8165 (struct trace_file_writer): Likewise.
8166 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8168 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8171 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8173 (get_cores_used_by_process): New parameter num_cores, use it.
8174 (linux_xfer_osdata_processes): Pass num_cores to it.
8175 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8178 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8180 * target.c (memory_xfer_partial): Fix length arg in call to
8181 breakpoint_xfer_memory.
8183 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8186 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8187 number comes after the + or - signs. Adjust length of register
8188 name to be extracted.
8190 2014-02-20 Tom Tromey <tromey@redhat.com>
8192 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8193 (ada_varobj_ops): Mark "extern".
8195 2014-02-20 Tom Tromey <tromey@redhat.com>
8197 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8199 2014-02-20 Doug Evans <xdje42@gmail.com>
8201 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8202 All callers updated.
8203 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8204 All callers updated.
8205 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8206 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8208 2014-02-20 lin zuojian <manjian2006@gmail.com>
8209 Joel Brobecker <brobecker@adacore.com>
8210 Doug Evans <xdje42@gmail.com>
8213 * dwarf2read.c (struct die_info): New member in_process.
8214 (reset_die_in_process): New function.
8215 (process_die): Set it at the start, reset when returning.
8216 (inherit_abstract_dies): Only call process_die if origin_child_die
8217 not already being processed.
8219 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8221 * windows-nat.c (handle_unload_dll): Add function documentation.
8222 (do_initial_windows_stuff): Add comment explaining why we wait
8223 until after inferior initialization has finished before
8224 processing all DLLs.
8226 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8228 * windows-nat.c (get_module_name): Delete.
8229 (windows_get_exec_module_filename): New function, mostly
8230 inspired from get_module_name.
8231 (windows_pid_to_exec_file): Replace call to get_module_name
8232 by call to windows_get_exec_module_filename.
8234 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8236 * windows-nat.c (handle_load_dll): Rewrite this function's
8237 introductory comment. Remove code using get_module_name
8238 to get the DLL's name.
8240 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8242 * windows-nat.c (get_windows_debug_event): Ignore
8243 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8244 if windows_initialization_done == 0.
8245 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8246 Adjust implementation to always load all DLLs.
8247 (do_initial_windows_stuff): Replace call to
8248 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8250 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8252 * windows-nat.c (_initialize_windows_nat): Deprecate the
8253 "dll-symbols" command. Turn the "add-shared-symbol-files"
8254 and "assf" aliases into commands, and deprecate them as well.
8255 * NEWS: Add entry explaining that "dll-symbols" and its two
8256 aliases are now deprecated.
8258 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8260 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8261 new-line in debug string. Remove trailing spaces.
8263 2014-02-19 Stan Shebs <stan@codesourcery.com>
8265 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8267 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8269 * NEWS: Add entry for the new feature
8270 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8273 2014-02-19 Stan Shebs <stan@codesourcery.com>
8275 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8277 2014-02-19 Pedro Alves <palves@redhat.com>
8279 * common/ptid.h (struct ptid): Mention that process_stratum
8280 targets should prefer ptid.lwp.
8282 2014-02-19 Pedro Alves <palves@redhat.com>
8284 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8285 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8286 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8287 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8288 store remote thread ids rather than ptid.tid.
8289 (_initialize_remote): Adjust.
8291 2014-02-19 Tom Tromey <tromey@redhat.com>
8293 * target.c (target_get_unwinder): Rewrite.
8294 (target_get_tailcall_unwinder): Rewrite.
8295 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8296 (record_btrace_to_get_tailcall_unwinder): New function.
8297 (init_record_btrace_ops): Update.
8298 * target.h (struct target_ops) <to_get_unwinder,
8299 to_get_tailcall_unwinder>: Now function pointers. Use
8300 TARGET_DEFAULT_RETURN.
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8304 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8306 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8310 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8312 * target-delegates.c: Rebuild.
8313 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8314 TARGET_DEFAULT_FUNC.
8315 * target.c (default_target_decr_pc_after_break): Rename from
8316 forward_target_decr_pc_after_break. Simplify.
8317 (target_decr_pc_after_break): Rely on delegation.
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8321 * target.c (update_current_target): Do not INHERIT to_doc or
8322 to_magic. Do not de_fault to_open or to_close.
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8326 * gcore.h (objfile_find_memory_regions): Declare.
8327 * gcore.c (objfile_find_memory_regions): No longer static. Add
8329 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8330 * exec.c: Include gcore.h.
8331 (exec_set_find_memory_regions): Remove.
8332 (exec_find_memory_regions): Remove.
8333 (exec_do_find_memory_regions): Remove.
8334 (init_exec_ops): Update.
8335 * defs.h (exec_set_find_memory_regions): Remove.
8337 2014-02-19 Tom Tromey <tromey@redhat.com>
8339 * target-delegates.c: Rebuild.
8340 * target.h (struct target_ops) <to_extra_thread_info,
8341 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8342 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8343 not 0, in TARGET_DEFAULT_RETURN.
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8347 * target.c (complete_target_initialization): Remove casts. Use
8348 return_zero_has_execution.
8349 (return_zero): Add "ignore" argument.
8350 (return_zero_has_execution): New function.
8351 (init_dummy_target): Remove casts. Use
8352 return_zero_has_execution.
8354 2014-02-19 Tom Tromey <tromey@redhat.com>
8356 * target.c (update_current_target): Update comments. Do not
8359 2014-02-19 Tom Tromey <tromey@redhat.com>
8361 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8363 * corelow.c (core_read_description): Delegate when needed.
8364 * remote.c (remote_read_description): Delegate when needed.
8365 * target-delegates.c: Rebuild.
8366 * target.c (target_read_description): Rewrite.
8367 * target.h (struct target_ops) <to_read_description>: Update
8368 comment. Use TARGET_DEFAULT_RETURN.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8375 (find_default_run_target): Check against delegate_can_run.
8376 * target.h (struct target_ops) <to_can_run>: Use
8377 TARGET_DEFAULT_RETURN.
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8381 * target-delegates.c: Rebuild.
8382 * target.c (target_disconnect): Unconditionally delegate.
8383 * target.h (struct target_ops) <to_disconnect>: Use
8384 TARGET_DEFAULT_NORETURN.
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8388 * record.c (record_stop): Unconditionally delegate.
8389 * target-delegates.c: Rebuild.
8390 * target.c (target_stop_recording): Unconditionally delegate.
8391 * target.h (struct target_ops) <to_stop_recording>: Use
8392 TARGET_DEFAULT_IGNORE.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target-delegates.c: Rebuild.
8397 * target.c (target_enable_btrace): Unconditionally delegate.
8398 * target.h (struct target_ops) <to_enable_btrace>: Use
8399 TARGET_DEFAULT_NORETURN.
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * target-delegates.c: Rebuild.
8404 * target.c (target_read_btrace): Unconditionally delegate.
8405 * target.h (struct target_ops) <to_read_btrace>: Use
8406 TARGET_DEFAULT_NORETURN.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target-delegates.c: Rebuild.
8411 * target.c (target_teardown_btrace): Unconditionally delegate.
8412 * target.h (struct target_ops) <to_teardown_btrace>: Use
8413 TARGET_DEFAULT_NORETURN.
8415 2014-02-19 Tom Tromey <tromey@redhat.com>
8417 * target-delegates.c: Rebuild.
8418 * target.c (target_disable_btrace): Unconditionally delegate.
8419 * target.h (struct target_ops) <to_disable_btrace>: Use
8420 TARGET_DEFAULT_NORETURN.
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * target-delegates.c: Rebuild.
8425 * target.c (default_search_memory): New function.
8426 (simple_search_memory): Update comment.
8427 (target_search_memory): Unconditionally delegate.
8428 * target.h (struct target_ops) <to_search_memory>: Use
8429 TARGET_DEFAULT_FUNC.
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8433 * auxv.c (default_auxv_parse): No longer static.
8434 (target_auxv_parse): Unconditionally delegate.
8435 * auxv.h (default_auxv_parse): Declare.
8436 * target-delegates.c: Rebuild.
8437 * target.c: Include auxv.h.
8438 * target.h (struct target_ops) <to_auxv_parse>: Use
8439 TARGET_DEFAULT_FUNC.
8441 2014-02-19 Tom Tromey <tromey@redhat.com>
8443 * target-delegates.c: Rebuild.
8444 * target.c (target_memory_map): Unconditionally delegate.
8445 * target.h (struct target_ops) <to_memory_map>: Use
8446 TARGET_DEFAULT_RETURN.
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8450 * target-delegates.c: Rebuild.
8451 * target.c (target_thread_alive): Unconditionally delegate.
8452 * target.h (struct target_ops) <to_thread_alive>: Use
8453 TARGET_DEFAULT_RETURN.
8455 2014-02-19 Tom Tromey <tromey@redhat.com>
8457 * target-delegates.c: Rebuild.
8458 * target.c (target_save_record): Unconditionally delegate.
8459 * target.h (struct target_ops) <to_save_record>: Use
8460 TARGET_DEFAULT_NORETURN.
8462 2014-02-19 Tom Tromey <tromey@redhat.com>
8464 * target-delegates.c: Rebuild.
8465 * target.c (target_delete_record): Unconditionally delegate.
8466 * target.h (struct target_ops) <to_delete_record>: Use
8467 TARGET_DEFAULT_NORETURN.
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8471 * target-delegates.c: Rebuild.
8472 * target.c (target_record_is_replaying): Unconditionally
8474 * target.h (struct target_ops) <to_record_is_replaying>: Use
8475 TARGET_DEFAULT_RETURN.
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8479 * target-delegates.c: Rebuild.
8480 * target.c (target_goto_record_begin): Unconditionally delegate.
8481 * target.h (struct target_ops) <to_goto_record_begin>: Use
8482 TARGET_DEFAULT_NORETURN.
8484 2014-02-19 Tom Tromey <tromey@redhat.com>
8486 * target-delegates.c: Rebuild.
8487 * target.c (target_goto_record_end): Unconditionally delegate.
8488 * target.h (struct target_ops) <to_goto_record_end>: Use
8489 TARGET_DEFAULT_NORETURN.
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8493 * target-delegates.c: Rebuild.
8494 * target.c (target_goto_record): Unconditionally delegate.
8495 * target.h (struct target_ops) <to_goto_record>: Use
8496 TARGET_DEFAULT_NORETURN.
8498 2014-02-19 Tom Tromey <tromey@redhat.com>
8500 * target-delegates.c: Rebuild.
8501 * target.c (target_insn_history): Unconditionally delegate.
8502 * target.h (struct target_ops) <to_insn_history>: Use
8503 TARGET_DEFAULT_NORETURN.
8505 2014-02-19 Tom Tromey <tromey@redhat.com>
8507 * target-delegates.c: Rebuild.
8508 * target.c (target_insn_history_from): Unconditionally delegate.
8509 * target.h (struct target_ops) <to_insn_history_from>: Use
8510 TARGET_DEFAULT_NORETURN.
8512 2014-02-19 Tom Tromey <tromey@redhat.com>
8514 * target-delegates.c: Rebuild.
8515 * target.c (target_insn_history_range): Unconditionally delegate.
8516 * target.h (struct target_ops) <to_insn_history_range>: Use
8517 TARGET_DEFAULT_NORETURN.
8519 2014-02-19 Tom Tromey <tromey@redhat.com>
8521 * target-delegates.c: Rebuild.
8522 * target.c (target_call_history): Unconditionally delegate.
8523 * target.h (struct target_ops) <to_call_history>: Use
8524 TARGET_DEFAULT_NORETURN.
8526 2014-02-19 Tom Tromey <tromey@redhat.com>
8528 * target-delegates.c: Rebuild.
8529 * target.c (target_call_history_from): Unconditionally delegate.
8530 * target.h (struct target_ops) <to_call_history_from>: Use
8531 TARGET_DEFAULT_NORETURN.
8533 2014-02-19 Tom Tromey <tromey@redhat.com>
8535 * target-delegates.c: Rebuild.
8536 * target.c (target_call_history_range): Unconditionally delegate.
8537 * target.h (struct target_ops) <to_call_history_range>: Use
8538 TARGET_DEFAULT_NORETURN.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.c (target_verify_memory): Unconditionally delegate.
8544 * target.h (struct target_ops) <to_verify_memory>: Use
8545 TARGET_DEFAULT_NORETURN.
8547 2014-02-19 Tom Tromey <tromey@redhat.com>
8549 * target-delegates.c: Rebuild.
8550 * target.c (target_core_of_thread): Unconditionally delegate.
8551 * target.h (struct target_ops) <to_core_of_thread>: Use
8552 TARGET_DEFAULT_RETURN.
8554 2014-02-19 Tom Tromey <tromey@redhat.com>
8556 * target-delegates.c: Rebuild.
8557 * target.c (target_flash_done): Unconditionally delegate.
8558 * target.h (struct target_ops) <to_flash_done>: Use
8559 TARGET_DEFAULT_NORETURN.
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8563 * target-delegates.c: Rebuild.
8564 * target.c (target_flash_erase): Unconditionally delegate.
8565 * target.h (struct target_ops) <to_flash_erase>: Use
8566 TARGET_DEFAULT_NORETURN.
8568 2014-02-19 Tom Tromey <tromey@redhat.com>
8570 * target-delegates.c: Rebuild.
8571 * target.c (target_get_section_table): Unconditionally delegate.
8572 * target.h (struct target_ops) <to_get_section_table>: Use
8573 TARGET_DEFAULT_RETURN.
8575 2014-02-19 Tom Tromey <tromey@redhat.com>
8577 * target-delegates.c: Rebuild.
8578 * target.c (target_pid_to_str): Unconditionally delegate.
8579 (init_dummy_target): Don't initialize to_pid_to_str.
8580 (default_pid_to_str): Rename from dummy_pid_to_str.
8581 * target.h (struct target_ops) <to_pid_to_str>: Use
8582 TARGET_DEFAULT_FUNC.
8584 2014-02-19 Tom Tromey <tromey@redhat.com>
8586 * target-delegates.c: Rebuild.
8587 * target.c (target_find_new_threads): Unconditionally delegate.
8588 * target.h (struct target_ops) <to_find_new_threads>: Use
8589 TARGET_DEFAULT_RETURN.
8591 2014-02-19 Tom Tromey <tromey@redhat.com>
8593 * target-delegates.c: Rebuild.
8594 * target.c (target_program_signals): Unconditionally delegate.
8595 * target.h (struct target_ops) <to_program_signals>: Use
8596 TARGET_DEFAULT_IGNORE.
8598 2014-02-19 Tom Tromey <tromey@redhat.com>
8600 * target-delegates.c: Rebuild.
8601 * target.c (target_pass_signals): Unconditionally delegate.
8602 * target.h (struct target_ops) <to_pass_signals>: Use
8603 TARGET_DEFAULT_IGNORE.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (default_mourn_inferior): New function.
8609 (target_mourn_inferior): Unconditionally delegate.
8610 * target.h (struct target_ops) <to_mourn_inferior>: Use
8611 TARGET_DEFAULT_FUNC.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (default_follow_fork): New function.
8617 (target_follow_fork): Unconditionally delegate.
8618 * target.h (struct target_ops) <to_follow_fork>: Use
8619 TARGET_DEFAULT_FUNC.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target-delegates.c: Rebuild.
8624 * target.c (target_kill): Unconditionally delegate.
8625 * target.h (struct target_ops) <to_kill>: Use
8626 TARGET_DEFAULT_NORETURN.
8628 2014-02-19 Tom Tromey <tromey@redhat.com>
8630 * target-delegates.c: Rebuild.
8631 * target.c (target_masked_watch_num_registers): Unconditionally
8633 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8634 Use TARGET_DEFAULT_RETURN.
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target-delegates.c: Rebuild.
8639 * target.c (target_remove_mask_watchpoint): Unconditionally
8641 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8642 TARGET_DEFAULT_RETURN.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target-delegates.c: Rebuild.
8647 * target.c (target_insert_mask_watchpoint): Unconditionally
8649 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8650 TARGET_DEFAULT_RETURN.
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8654 * target-delegates.c: Rebuild.
8655 * target.c (target_ranged_break_num_registers): Unconditionally
8657 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8658 Use TARGET_DEFAULT_RETURN.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target-delegates.c: Rebuild.
8663 * target.c (target_fetch_registers): Unconditionally delegate.
8664 * target.h (struct target_ops) <to_fetch_registers>: Use
8665 TARGET_DEFAULT_NORETURN.
8667 2014-02-19 Tom Tromey <tromey@redhat.com>
8669 * target-delegates.c: Rebuild.
8670 * target.c (update_current_target): Don't inherit or default
8672 * target.h (struct target_ops) <to_stop>: Use
8673 TARGET_DEFAULT_IGNORE.
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8677 * target-delegates.c: Rebuild.
8678 * target.c (update_current_target): Don't inherit or default
8679 to_can_run_breakpoint_commands.
8680 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8681 Use TARGET_DEFAULT_RETURN.
8683 2014-02-19 Tom Tromey <tromey@redhat.com>
8685 * target-delegates.c: Rebuild.
8686 * target.c (update_current_target): Don't inherit or default
8687 to_supports_evaluation_of_breakpoint_conditions.
8688 * target.h (struct target_ops)
8689 <to_supports_evaluation_of_breakpoint_conditions>: Use
8690 TARGET_DEFAULT_RETURN.
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
8696 to_augmented_libraries_svr4_read.
8697 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8698 Use TARGET_DEFAULT_RETURN.
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
8705 * target.h (struct target_ops) <to_can_use_agent>: Use
8706 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
8713 * target.h (struct target_ops) <to_use_agent>: Use
8714 TARGET_DEFAULT_NORETURN.
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8718 * target-delegates.c: Rebuild.
8719 * target.c (update_current_target): Don't inherit or default
8721 (return_null): Remove.
8722 * target.h (struct target_ops) <to_traceframe_info>: Use
8723 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
8729 to_static_tracepoint_markers_by_strid.
8730 * target.h (struct target_ops)
8731 <to_static_tracepoint_markers_by_strid>: Use
8732 TARGET_DEFAULT_NORETURN.
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_static_tracepoint_marker_at.
8739 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8740 Use TARGET_DEFAULT_RETURN.
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8747 * target.h (struct target_ops) <to_set_permissions>: Use
8748 TARGET_DEFAULT_IGNORE.
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
8755 * target.h (struct target_ops) <to_get_tib_address>: Use
8756 TARGET_DEFAULT_NORETURN.
8758 2014-02-19 Tom Tromey <tromey@redhat.com>
8760 * target-delegates.c: Rebuild.
8761 * target.c (update_current_target): Don't inherit or default
8763 * target.h (struct target_ops) <to_set_trace_notes>: Use
8764 TARGET_DEFAULT_RETURN.
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8768 * target-delegates.c: Rebuild.
8769 * target.c (update_current_target): Don't initialize
8770 to_set_trace_buffer_size.
8771 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8772 TARGET_DEFAULT_IGNORE.
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8776 * target-delegates.c: Rebuild.
8777 * target.c (update_current_target): Don't inherit or default
8778 to_set_circular_trace_buffer.
8779 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8780 TARGET_DEFAULT_IGNORE.
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8784 * target-delegates.c: Rebuild.
8785 * target.c (update_current_target): Don't inherit or default
8786 to_set_disconnected_tracing.
8787 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8788 TARGET_DEFAULT_IGNORE.
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8792 * target-delegates.c: Rebuild.
8793 * target.c (update_current_target): Don't inherit or default
8794 to_get_min_fast_tracepoint_insn_len.
8795 (return_minus_one): Remove.
8796 * target.h (struct target_ops)
8797 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_get_raw_trace_data.
8804 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8805 TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
8812 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8813 Use TARGET_DEFAULT_RETURN.
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_upload_tracepoints.
8820 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8821 TARGET_DEFAULT_RETURN.
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8825 * target-delegates.c: Rebuild.
8826 * target.c (update_current_target): Don't inherit or default
8828 * target.h (struct target_ops) <to_save_trace_data>: Use
8829 TARGET_DEFAULT_NORETURN.
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8833 * target-delegates.c: Rebuild.
8834 * target.c (update_current_target): Don't inherit or default
8835 to_get_trace_state_variable_value.
8836 * target.h (struct target_ops)
8837 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8844 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8851 * target.h (struct target_ops) <to_trace_stop>: Use
8852 TARGET_DEFAULT_NORETURN.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_get_tracepoint_status.
8859 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8860 TARGET_DEFAULT_NORETURN.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8866 to_get_trace_status.
8867 * target.h (struct target_ops) <to_get_trace_status>: Use
8868 TARGET_DEFAULT_RETURN.
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8875 * target.h (struct target_ops) <to_trace_start>: Use
8876 TARGET_DEFAULT_NORETURN.
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8880 * target-delegates.c: Rebuild.
8881 * target.c (update_current_target): Don't inherit or default
8882 to_trace_set_readonly_regions.
8883 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8884 Use TARGET_DEFAULT_NORETURN.
8886 2014-02-19 Tom Tromey <tromey@redhat.com>
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8890 to_disable_tracepoint.
8891 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8892 TARGET_DEFAULT_NORETURN.
8894 2014-02-19 Tom Tromey <tromey@redhat.com>
8896 * target-delegates.c: Rebuild.
8897 * target.c (update_current_target): Don't inherit or default
8898 to_enable_tracepoint.
8899 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8900 TARGET_DEFAULT_NORETURN.
8902 2014-02-19 Tom Tromey <tromey@redhat.com>
8904 * target-delegates.c: Rebuild.
8905 * target.c (update_current_target): Don't inherit or default
8906 to_download_trace_state_variable.
8907 * target.h (struct target_ops) <to_download_trace_state_variable>:
8908 Use TARGET_DEFAULT_NORETURN.
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8912 * target-delegates.c: Rebuild.
8913 * target.c (update_current_target): Don't inherit or default
8914 to_can_download_tracepoint.
8915 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8916 TARGET_DEFAULT_RETURN.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target-delegates.c: Rebuild.
8921 * target.c (update_current_target): Don't inherit or default
8922 to_download_tracepoint.
8923 * target.h (struct target_ops) <to_download_tracepoint>: Use
8924 TARGET_DEFAULT_NORETURN.
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8928 * target-delegates.c: Rebuild.
8929 * target.c (update_current_target): Don't inherit or default
8931 * target.h (struct target_ops) <to_trace_init>: Use
8932 TARGET_DEFAULT_RETURN.
8934 2014-02-19 Tom Tromey <tromey@redhat.com>
8936 * target-delegates.c: Rebuild.
8937 * target.c (update_current_target): Don't inherit or default
8938 to_supports_string_tracing.
8939 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8940 TARGET_DEFAULT_RETURN.
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * target-delegates.c: Rebuild.
8945 * target.c (update_current_target): Don't inherit or default
8946 to_supports_enable_disable_tracepoint.
8947 * target.h (struct target_ops)
8948 <to_supports_enable_disable_tracepoint>: Use
8949 TARGET_DEFAULT_RETURN.
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
8955 to_supports_multi_process.
8956 * target.h (struct target_ops) <to_supports_multi_process>: 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_get_ada_task_ptid.
8964 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8965 TARGET_DEFAULT_FUNC.
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_thread_architecture.
8972 * target.h (struct target_ops) <to_thread_architecture>: Use
8973 TARGET_DEFAULT_FUNC.
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8977 * target-delegates.c: Rebuild.
8978 * target.c (update_current_target): Don't inherit or default
8979 to_execution_direction.
8980 * target.h (struct target_ops) <to_execution_direction>: Use
8981 TARGET_DEFAULT_FUNC.
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target-delegates.c: Rebuild.
8986 * target.c (update_current_target): Don't inherit or default
8987 to_can_execute_reverse.
8988 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8989 TARGET_DEFAULT_RETURN.
8990 (target_can_execute_reverse): Unconditionally delegate.
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
8997 (dummy_goto_bookmark): Remove.
8998 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8999 * target.h (struct target_ops) <to_goto_bookmark>: Use
9000 TARGET_DEFAULT_NORETURN.
9002 2014-02-19 Tom Tromey <tromey@redhat.com>
9004 * target-delegates.c: Rebuild.
9005 * target.c (update_current_target): Don't inherit or default
9007 (dummy_get_bookmark): Remove.
9008 (init_dummy_target): Don't inherit or default to_get_bookmark.
9009 * target.h (struct target_ops) <to_get_bookmark>: Use
9010 TARGET_DEFAULT_NORETURN
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9014 * target-delegates.c: Rebuild.
9015 * target.c (update_current_target): Don't inherit or default
9016 to_make_corefile_notes.
9017 (init_dummy_target): Don't initialize to_make_corefile_notes.
9018 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9019 TARGET_DEFAULT_FUNC.
9021 2014-02-19 Tom Tromey <tromey@redhat.com>
9023 * target-delegates.c: Rebuild.
9024 * target.c (update_current_target): Don't inherit or default
9025 to_find_memory_regions.
9026 (init_dummy_target): Don't initialize to_find_memory_regions.
9027 * target.h (struct target_ops) <to_find_memory_regions>: Use
9028 TARGET_DEFAULT_FUNC.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target-delegates.c: Rebuild.
9033 * target.c (update_current_target): Don't inherit or default
9035 * target.h (struct target_ops) <to_log_command>: Use
9036 TARGET_DEFAULT_IGNORE.
9037 (target_log_command): Unconditionally delegate.
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9041 * target-delegates.c: Rebuild.
9042 * target.c (update_current_target): Don't inherit or default
9043 to_pid_to_exec_file.
9044 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9045 TARGET_DEFAULT_RETURN.
9047 2014-02-19 Tom Tromey <tromey@redhat.com>
9049 * target-delegates.c: Rebuild.
9050 * target.c (update_current_target): Don't inherit or default
9052 (target_thread_name): Unconditionally delegate.
9053 * target.h (struct target_ops) <to_thread_name>: Use
9054 TARGET_DEFAULT_RETURN.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target-delegates.c: Rebuild.
9059 * target.c (update_current_target): Don't inherit or default
9060 to_extra_thread_info.
9061 * target.h (struct target_ops) <to_extra_thread_info>: Use
9062 TARGET_DEFAULT_RETURN.
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
9069 * target.h (struct target_ops) <to_has_exited>: 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
9076 to_set_syscall_catchpoint.
9077 (return_one): Remove.
9078 * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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_insert_exec_catchpoint.
9086 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9087 TARGET_DEFAULT_RETURN.
9089 2014-01-08 Tom Tromey <tromey@redhat.com>
9091 * target-delegates.c: Rebuild.
9092 * target.c (update_current_target): Don't inherit or default
9093 to_insert_exec_catchpoint.
9094 * target.h (struct target_ops) <to_insert_exec_catchpoint>: 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_remove_vfork_catchpoint.
9102 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9103 TARGET_DEFAULT_RETURN.
9105 2014-02-19 Tom Tromey <tromey@redhat.com>
9107 * target-delegates.c: Rebuild.
9108 * target.c (update_current_target): Don't inherit or default
9109 to_insert_vfork_catchpoint.
9110 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9111 TARGET_DEFAULT_RETURN.
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target-delegates.c: Rebuild.
9116 * target.c (update_current_target): Don't inherit or default
9117 to_remove_fork_catchpoint.
9118 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9119 TARGET_DEFAULT_RETURN.
9121 2014-02-19 Tom Tromey <tromey@redhat.com>
9123 * target-delegates.c: Rebuild.
9124 * target.c (update_current_target): Don't inherit or default
9125 to_insert_fork_catchpoint.
9126 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9127 TARGET_DEFAULT_RETURN.
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9131 * target-delegates.c: Rebuild.
9132 * target.c (update_current_target): Don't inherit or default
9133 to_post_startup_inferior.
9134 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9135 TARGET_DEFAULT_IGNORE.
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9139 * target-delegates.c: Rebuild.
9140 * target.c (update_current_target): Don't inherit or default
9142 * target.h (struct target_ops) <to_load>: Use
9143 TARGET_DEFAULT_NORETURN.
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9147 * target-delegates.c: Rebuild.
9148 * target.c (update_current_target): Don't inherit or default
9150 * target.h (struct target_ops) <to_terminal_info>: Use
9151 TARGET_DEFAULT_FUNC.
9153 2014-02-19 Tom Tromey <tromey@redhat.com>
9155 * target-delegates.c: Rebuild.
9156 * target.c (update_current_target): Don't inherit or default
9157 to_terminal_save_ours.
9158 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9159 TARGET_DEFAULT_IGNORE.
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9163 * target-delegates.c: Rebuild.
9164 * target.c (update_current_target): Don't inherit or default
9166 * target.h (struct target_ops) <to_terminal_ours>: Use
9167 TARGET_DEFAULT_IGNORE.
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9171 * target-delegates.c: Rebuild.
9172 * target.c (update_current_target): Don't inherit or default
9173 to_terminal_ours_for_output.
9174 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9175 TARGET_DEFAULT_IGNORE.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target-delegates.c: Rebuild.
9180 * target.c (update_current_target): Don't inherit or default
9181 to_terminal_inferior.
9182 * target.h (struct target_ops) <to_terminal_inferior>: Use
9183 TARGET_DEFAULT_IGNORE.
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * target-delegates.c: Rebuild.
9188 * target.c (update_current_target): Don't inherit or default
9190 * target.h (struct target_ops) <to_terminal_init>: Use
9191 TARGET_DEFAULT_IGNORE.
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9195 * target-delegates.c: Rebuild.
9196 * target.c (update_current_target): Don't inherit or default
9197 to_can_accel_watchpoint_condition.
9198 * target.h (struct target_ops)
9199 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * target-delegates.c: Rebuild.
9204 * target.c (update_current_target): Don't inherit or default
9205 to_region_ok_for_hw_watchpoint.
9206 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9207 Use TARGET_DEFAULT_FUNC.
9209 2014-02-19 Tom Tromey <tromey@redhat.com>
9211 * target-delegates.c: Rebuild.
9212 * target.c (update_current_target): Don't inherit or default
9213 to_watchpoint_addr_within_range.
9214 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9215 Use TARGET_DEFAULT_FUNC.
9217 2014-02-19 Tom Tromey <tromey@redhat.com>
9219 * target-delegates.c: Rebuild.
9220 * target.c (update_current_target): Don't inherit or default
9221 to_remove_watchpoint.
9222 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9223 TARGET_DEFAULT_NORETURN.
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9227 * target-delegates.c: Rebuild.
9228 * target.c (update_current_target): Don't inherit or default
9229 to_insert_watchpoint.
9230 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9231 TARGET_DEFAULT_RETURN.
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9235 * target-delegates.c: Rebuild.
9236 * target.c (update_current_target): Don't inherit or default
9237 to_remove_hw_breakpoint.
9238 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9239 TARGET_DEFAULT_RETURN.
9241 2014-02-19 Tom Tromey <tromey@redhat.com>
9243 * target-delegates.c: Rebuild.
9244 * target.c (update_current_target): Don't inherit or default
9245 to_insert_hw_breakpoint.
9246 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9247 TARGET_DEFAULT_RETURN.
9249 2014-02-19 Tom Tromey <tromey@redhat.com>
9251 * target-delegates.c: Rebuild.
9252 * target.c (update_current_target): Don't inherit or default
9253 to_can_use_hw_breakpoint.
9254 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9255 TARGET_DEFAULT_RETURN.
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9259 * target-delegates.c: Rebuild.
9260 * target.c (update_current_target): Don't inherit or default
9262 * target.h (struct target_ops) <to_files_info>: Use
9263 TARGET_DEFAULT_IGNORE.
9265 2014-02-19 Tom Tromey <tromey@redhat.com>
9267 * target-delegates.c: Rebuild.
9268 * target.c (update_current_target): Don't inherit or default
9270 * target.h (struct target_ops) <to_store>: Use
9271 TARGET_DEFAULT_NORETURN.
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9275 * target-delegates.c: Rebuild.
9276 * target.c (update_current_target): Don't inherit or default
9278 * target.h (struct target_ops) <to_post_attach>: Use
9279 TARGET_DEFAULT_IGNORE.
9281 2014-02-19 Tom Tromey <tromey@redhat.com>
9283 * target-delegates.c: Rebuild.
9284 * target.c (update_current_target): Don't inherit or default
9286 (default_rcmd): New function.
9287 (do_monitor_command): Unconditionally delegate.
9288 * target.h (struct target_ops) <to_rmcd>: Use
9289 TARGET_DEFAULT_FUNC.
9291 2014-02-19 Tom Tromey <tromey@redhat.com>
9293 * target-delegates.c: Rebuild.
9294 * target.c (init_dummy_target): Don't initialize to_attach.
9295 (target_attach): Unconditionally delegate.
9296 * target.h (struct target_ops) <to_attach>: Use
9297 TARGET_DEFAULT_FUNC.
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9301 * target-delegates.c: Rebuild.
9302 * target.c (target_detach): Unconditionally delegate.
9303 (init_dummy_target): Don't initialize to_detach.
9304 * target.h (struct target_ops) <to_detach>: Use
9305 TARGET_DEFAULT_IGNORE.
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9309 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9311 (target_augmented_libraries_svr4_read): Add argument.
9312 * target.c (update_current_target): Update.
9313 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target.h (struct target_ops) <to_call_history_range>: Add
9320 * target.c (target_call_history_range): Add argument.
9321 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9323 (record_btrace_call_history_from): Update.
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9327 * target.h (struct target_ops) <to_call_history_from>: Add
9329 * target.c (target_call_history_from): Add argument.
9330 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9335 * target.h (struct target_ops) <to_call_history>: Add argument.
9336 * target.c (target_call_history): Add argument.
9337 * record-btrace.c (record_btrace_call_history): Add 'self'
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9342 * target.h (struct target_ops) <to_insn_history_range>: Add
9344 * target.c (target_insn_history_range): Add argument.
9345 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9347 (record_btrace_insn_history_from): Update.
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9351 * target.h (struct target_ops) <to_insn_history_from>: Add
9353 * target.c (target_insn_history_from): Add argument.
9354 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * target.h (struct target_ops) <to_insn_history>: Add argument.
9360 * target.c (target_insn_history): Add argument.
9361 * record-btrace.c (record_btrace_insn_history): Add 'self'
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9366 * target.h (struct target_ops) <to_goto_record>: Add argument.
9367 * target.c (target_goto_record): Add argument.
9368 * record-full.c (record_full_goto): Add 'self' argument.
9369 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9371 2014-02-19 Tom Tromey <tromey@redhat.com>
9373 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9374 * target.c (target_goto_record_end): Add argument.
9375 * record-full.c (record_full_goto_end): Add 'self' argument.
9376 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target.h (struct target_ops) <to_goto_record_begin>: Add
9382 * target.c (target_goto_record_begin): Add argument.
9383 * record-full.c (record_full_goto_begin): Add 'self' argument.
9384 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target.h (struct target_ops) <to_record_is_replaying>: Add
9391 * target.c (target_record_is_replaying): Add argument.
9392 * record-full.c (record_full_is_replaying): Add 'self' argument.
9393 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9395 (record_btrace_xfer_partial, record_btrace_store_registers)
9396 (record_btrace_prepare_to_store, record_btrace_resume)
9397 (record_btrace_wait, record_btrace_decr_pc_after_break)
9398 (record_btrace_find_new_threads, record_btrace_thread_alive):
9401 2014-02-19 Tom Tromey <tromey@redhat.com>
9403 * target.h (struct target_ops) <to_delete_record>: Add argument.
9404 * target.c (target_delete_record): Add argument.
9405 * record-full.c (record_full_delete): Add 'self' argument.
9407 2014-02-19 Tom Tromey <tromey@redhat.com>
9409 * target.h (struct target_ops) <to_save_record>: Add argument.
9410 * target.c (target_save_record): Add argument.
9411 * record-full.c (record_full_save): Add 'self' argument.
9412 (record_full_save): Add 'self' argument.
9414 2014-02-19 Tom Tromey <tromey@redhat.com>
9416 * target.h (struct target_ops) <to_info_record>: Add argument.
9417 * target.c (target_info_record): Add argument.
9418 * record.c (info_record_command): Add argument.
9419 * record-full.c (record_full_info): Add 'self' argument.
9420 * record-btrace.c (record_btrace_info): Add 'self' argument.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9425 * target.c (target_stop_recording): Add argument.
9426 * record.c (record_stop): Add argument.
9427 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9430 2014-02-19 Tom Tromey <tromey@redhat.com>
9432 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9433 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9434 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9436 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9437 (_initialize_amd64_linux_nat): Use it.
9438 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9439 (_initialize_i386_linux_nat): Use it.
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9444 * target.c (target_teardown_btrace): Add argument.
9445 * remote.c (remote_teardown_btrace): Add 'self' argument.
9446 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9448 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9451 2014-02-19 Tom Tromey <tromey@redhat.com>
9453 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9454 * target.c (target_disable_btrace): Add argument.
9455 * remote.c (remote_disable_btrace): Add 'self' argument.
9456 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9458 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9463 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9464 * target.c (target_enable_btrace): Add argument.
9465 * remote.c (remote_enable_btrace): Add 'self' argument.
9466 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9468 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9474 (target_can_use_agent): Add argument.
9475 * target.c (update_current_target): Update.
9476 * remote.c (remote_can_use_agent): Add 'self' argument.
9477 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9479 2014-02-19 Tom Tromey <tromey@redhat.com>
9481 * target.h (struct target_ops) <to_use_agent>: Add argument.
9482 (target_use_agent): Add argument.
9483 * target.c (update_current_target): Update.
9484 * remote.c (remote_use_agent): Add 'self' argument.
9485 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9489 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9490 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9491 (target_traceframe_info): Add argument.
9492 * target.c (update_current_target): Update.
9493 * remote.c (remote_traceframe_info): Add 'self' argument.
9494 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9496 2014-02-19 Tom Tromey <tromey@redhat.com>
9498 * target.h (target_static_tracepoint_markers_by_strid): Add
9500 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9502 * target.c (update_current_target): Update.
9503 * remote.c (struct target_ops)
9504 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9505 * linux-nat.c (struct target_ops)
9506 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9512 (target_static_tracepoint_marker_at): Add argument.
9513 * target.c (update_current_target): Update.
9514 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9517 2014-02-19 Tom Tromey <tromey@redhat.com>
9519 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9520 (target_set_permissions): Add argument.
9521 * target.c (update_current_target): Update.
9522 * remote.c (remote_set_permissions): Add 'self' argument.
9523 (remote_start_remote): Update.
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9528 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9529 (target_get_tib_address): Add argument.
9530 * target.c (update_current_target): Update.
9531 * remote.c (remote_get_tib_address): Add 'self' argument.
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9535 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9536 (target_set_trace_notes): Add argument.
9537 * target.c (update_current_target): Update.
9538 * remote.c (remote_set_trace_notes): Add 'self' argument.
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9542 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9544 (target_set_trace_buffer_size): Add argument.
9545 * target.c (update_current_target): Update.
9546 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9552 (target_set_circular_trace_buffer): Add argument.
9553 * target.c (update_current_target): Update.
9554 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9557 2014-02-19 Tom Tromey <tromey@redhat.com>
9559 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9561 (target_set_disconnected_tracing): Add argument.
9562 * target.c (update_current_target): Update.
9563 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9567 * target.h (struct target_ops)
9568 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9569 (target_get_min_fast_tracepoint_insn_len): Add argument.
9570 * target.c (update_current_target): Update.
9571 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9578 (target_get_raw_trace_data): Add argument.
9579 * target.c (update_current_target): Update.
9580 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9584 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9586 (target_upload_trace_state_variables): Add argument.
9587 * target.c (update_current_target): Update.
9588 * remote.c (remote_upload_trace_state_variables): Add 'self'
9590 (remote_start_remote): Update.
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9596 (target_upload_tracepoints): Add argument.
9597 * target.c (update_current_target): Update.
9598 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9599 (remote_start_remote): Update.
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9603 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9604 (target_save_trace_data): Add argument.
9605 * target.c (update_current_target): Update.
9606 * remote.c (remote_save_trace_data): Add 'self' argument.
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9612 * target.h (struct target_ops)
9613 <to_get_trace_state_variable_value>: Add argument.
9614 (target_get_trace_state_variable_value): Add argument.
9615 * target.c (update_current_target): Update.
9616 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9618 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9620 2014-02-19 Tom Tromey <tromey@redhat.com>
9622 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9623 * target.h (struct target_ops) <to_trace_find>: Add argument.
9624 (target_trace_find): Add argument.
9625 * target.c (update_current_target): Update.
9626 * remote.c (remote_trace_find): Add 'self' argument.
9627 * ctf.c (ctf_trace_find): Add 'self' argument.
9629 2014-02-19 Tom Tromey <tromey@redhat.com>
9631 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9632 (target_trace_stop): Add argument.
9633 * target.c (update_current_target): Update.
9634 * remote.c (remote_trace_stop): Add 'self' argument.
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9638 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9639 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9641 (target_get_tracepoint_status): Add argument.
9642 * target.c (update_current_target): Update.
9643 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9647 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9648 * target.h (struct target_ops) <to_get_trace_status>: Add
9650 (target_get_trace_status): Add argument.
9651 * target.c (update_current_target): Update.
9652 * remote.c (remote_get_trace_status): Add 'self' argument.
9653 (remote_start_remote, remote_can_download_tracepoint): Update.
9654 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9656 2014-02-19 Tom Tromey <tromey@redhat.com>
9658 * target.h (struct target_ops) <to_trace_start>: Add argument.
9659 (target_trace_start): Add argument.
9660 * target.c (update_current_target): Update.
9661 * remote.c (remote_trace_start): Add 'self' argument.
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9667 (target_trace_set_readonly_regions): Add argument.
9668 * target.c (update_current_target): Update.
9669 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9674 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9676 (target_disable_tracepoint): Add argument.
9677 * target.c (update_current_target): Update.
9678 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9680 2014-02-19 Tom Tromey <tromey@redhat.com>
9682 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9684 (target_enable_tracepoint): Add argument.
9685 * target.c (update_current_target): Update.
9686 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_download_trace_state_variable>:
9692 (target_download_trace_state_variable): Add argument.
9693 * target.c (update_current_target): Update.
9694 * remote.c (remote_download_trace_state_variable): Add 'self'
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9701 (target_can_download_tracepoint): Add argument.
9702 * target.c (update_current_target): Update.
9703 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9705 2014-02-19 Tom Tromey <tromey@redhat.com>
9707 * target.h (struct target_ops) <to_download_tracepoint>: Add
9709 (target_download_tracepoint): Add argument.
9710 * target.c (update_current_target): Update.
9711 * remote.c (remote_download_tracepoint): Add 'self' argument.
9713 2014-02-19 Tom Tromey <tromey@redhat.com>
9715 * target.h (struct target_ops) <to_trace_init>: Add argument.
9716 (target_trace_init): Add argument.
9717 * target.c (update_current_target): Update.
9718 * remote.c (remote_trace_init): Add 'self' argument.
9720 2014-02-19 Tom Tromey <tromey@redhat.com>
9722 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9723 * target.c (target_fileio_readlink): Add argument.
9724 * remote.c (remote_hostio_readlink): Add 'self' argument.
9725 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9727 2014-02-19 Tom Tromey <tromey@redhat.com>
9729 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9730 * target.c (target_fileio_unlink): Add argument.
9731 * remote.c (remote_hostio_unlink): Add 'self' argument.
9732 (remote_file_delete): Update.
9733 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9737 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9738 * target.c (target_fileio_close): Add argument.
9739 * remote.c (remote_hostio_close): Add 'self' argument.
9740 (remote_hostio_close_cleanup): Update.
9741 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9743 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9747 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9748 * target.c (target_fileio_pread): Add argument.
9749 * remote.c (remote_hostio_pread): Add 'self' argument.
9750 (remote_bfd_iovec_pread, remote_file_get): Update.
9751 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9755 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9756 * target.c (target_fileio_pwrite): Add argument.
9757 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9758 (remote_file_put): Update.
9759 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9761 2014-02-19 Tom Tromey <tromey@redhat.com>
9763 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9764 * target.c (target_fileio_open): Add argument.
9765 * remote.c (remote_hostio_open): Add 'self' argument.
9766 (remote_bfd_iovec_open): Add 'self' argument.
9767 (remote_file_put): Add 'self' argument.
9768 (remote_file_get): Add 'self' argument.
9769 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9771 2014-02-19 Tom Tromey <tromey@redhat.com>
9773 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9775 (target_can_run_breakpoint_commands): Add argument.
9776 * target.c (update_current_target): Update.
9777 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9779 (remote_insert_breakpoint): Add 'self' argument.
9780 (remote_insert_hw_breakpoint): Add 'self' argument.
9781 (remote_can_run_breakpoint_commands): Add 'self' argument.
9783 2014-02-19 Tom Tromey <tromey@redhat.com>
9785 * target.h (struct target_ops)
9786 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9787 (target_supports_evaluation_of_breakpoint_conditions): Add
9789 * target.c (update_current_target): Update.
9790 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9792 (remote_insert_breakpoint): Add 'self' argument.
9793 (remote_insert_hw_breakpoint): Add 'self' argument.
9794 (remote_supports_cond_breakpoints): Add 'self' argument.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9800 (target_supports_string_tracing): Add argument.
9801 * target.c (update_current_target): Update.
9802 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9804 2014-02-19 Tom Tromey <tromey@redhat.com>
9806 * target.h (struct target_ops)
9807 <to_supports_disable_randomization>: Add argument.
9808 * target.c (find_default_supports_disable_randomization): Add
9810 (target_supports_disable_randomization): Add argument.
9811 (find_default_supports_disable_randomization): Add 'self'
9813 * remote.c (extended_remote_supports_disable_randomization): Add
9815 (remote_supports_disable_randomization): Add 'self' argument.
9816 (extended_remote_create_inferior): Update.
9817 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * target.h (struct target_ops)
9823 <to_supports_enable_disable_tracepoint>: Add argument.
9824 (target_supports_enable_disable_tracepoint): Add argument.
9825 * target.c (update_current_target): Update.
9826 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9829 2014-02-19 Tom Tromey <tromey@redhat.com>
9831 * target.h (struct target_ops) <to_supports_multi_process>: Add
9833 (target_supports_multi_process): Add argument.
9834 * target.c (update_current_target): Update.
9835 * remote.c (remote_supports_multi_process): Add 'self' argument.
9836 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9838 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9843 * target.h (struct target_ops) <to_execution_direction>: Add
9845 (target_execution_direction): Add argument.
9846 * target.c (default_execution_direction): Add 'self' argument.
9847 * record-full.c (record_full_execution_direction): Add 'self'
9850 2014-02-19 Tom Tromey <tromey@redhat.com>
9852 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9854 (target_can_execute_reverse): Add argument.
9855 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9856 * record-full.c (record_full_can_execute_reverse): Add 'self'
9858 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9863 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9864 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9866 (target_get_ada_task_ptid): Add argument.
9867 * target.c (update_current_target): Update.
9868 (default_get_ada_task_ptid): Add 'self' argument.
9869 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9870 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9871 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9873 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9875 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9877 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9879 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9880 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9885 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9886 (target_goto_bookmark): Add argument.
9887 * target.c (dummy_goto_bookmark): Add 'self' argument.
9888 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9892 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9893 (target_get_bookmark): Add argument.
9894 * target.c (dummy_get_bookmark): Add 'self' argument.
9895 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9899 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9901 (target_make_corefile_notes): Add argument.
9902 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9903 * procfs.c (procfs_make_note_section): Add 'self' argument.
9904 (procfs_make_note_section): Add 'self' argument.
9905 (procfs_make_note_section): Add 'self' argument.
9906 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9908 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9909 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9910 * exec.c (exec_make_note_section): Add 'self' argument.
9911 (exec_make_note_section): Add 'self' argument.
9913 2014-02-19 Tom Tromey <tromey@redhat.com>
9915 * target.h (struct target_ops) <to_find_memory_regions>: Add
9917 (target_find_memory_regions): Add argument.
9918 * target.c (dummy_find_memory_regions): Add 'self' argument.
9919 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9920 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9921 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9922 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9923 * exec. (exec_do_find_memory_regions): New global.
9924 (exec_set_find_memory_regions): Rewrite.
9925 (exec_find_memory_regions): New function.
9926 (init_exec_ops): Use exec_find_memory_regions.
9928 2014-02-19 Tom Tromey <tromey@redhat.com>
9930 * target.h (struct target_ops) <to_supports_non_stop>: Add
9932 * target.c (find_default_supports_non_stop): Add argument.
9933 (target_supports_non_stop): Add argument.
9934 (find_default_supports_non_stop): Add 'self' argument.
9935 * remote.c (remote_supports_non_stop): Add 'self' argument.
9936 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9938 2014-02-19 Tom Tromey <tromey@redhat.com>
9940 * target.h (struct target_ops) <to_log_command>: Add argument.
9941 (target_log_command): Add argument.
9942 * serial.h (serial_log_command): Add 'self' argument.
9943 * serial.c (serial_log_command): Add 'self' argument.
9945 2014-02-19 Tom Tromey <tromey@redhat.com>
9947 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9948 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9950 (target_pid_to_exec_file): Add argument.
9951 * target.c (debug_to_pid_to_exec_file): Add argument.
9952 (update_current_target): Update.
9953 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9954 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9955 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9956 (linux_handle_extended_wait): Update.
9957 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9958 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9959 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9960 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9964 * target.h (struct target_ops) <to_rcmd>: Add argument.
9965 (target_rcmd): Add argument.
9966 * target.c (debug_to_rcmd): Add argument.
9967 (update_current_target, do_monitor_command): Update.
9968 * remote.c (remote_rcmd): Add 'self' argument.
9969 * monitor.c (monitor_rcmd): Add 'self' argument.
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9973 * windows-nat.c (windows_stop): Add 'self' argument.
9974 * target.h (struct target_ops) <to_stop>: Add argument.
9975 * target.c (target_stop): Add argument.
9976 (debug_to_stop): Add argument.
9977 (update_current_target): Update.
9978 * remote.c (remote_stop): Add 'self' argument.
9979 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9980 (gdbsim_cntrl_c): Update.
9981 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9982 * procfs.c (procfs_stop): Add 'self' argument.
9983 * nto-procfs.c (procfs_stop): Add 'self' argument.
9984 * monitor.c (monitor_stop): Add 'self' argument.
9985 (monitor_open): Update.
9986 * linux-nat.c (linux_nat_stop): Add argument.
9987 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9988 * gnu-nat.c (gnu_stop): Add 'self' argument.
9989 * darwin-nat.c (darwin_stop): Add 'self' argument.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target.h (struct target_ops) <to_thread_name>: Add argument.
9994 * target.c (target_thread_name): Add argument.
9995 (update_current_target): Update.
9996 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9998 2014-02-19 Tom Tromey <tromey@redhat.com>
10000 * target.h (struct target_ops) <to_extra_thread_info>: Add
10002 (target_extra_thread_info): Add argument.
10003 * target.c (update_current_target): Update.
10004 * remote.c (remote_threads_extra_info): Add 'self' argument.
10005 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10007 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10008 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10009 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10011 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10013 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10015 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10020 * target.h (struct target_ops) <to_program_signals>: Add argument.
10021 * target.c (target_program_signals): Add argument.
10022 * remote.c (remote_program_signals): Add 'self' argument.
10024 2014-02-19 Tom Tromey <tromey@redhat.com>
10026 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10027 * target.c (target_pass_signals): Add argument.
10028 * remote.c (remote_pass_signals): Add 'self' argument.
10029 (remote_start_remote): Update.
10030 * procfs.c (procfs_pass_signals): Add 'self' argument.
10031 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10032 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10033 (linux_nat_create_inferior, linux_nat_attach): Update.
10035 2014-02-19 Tom Tromey <tromey@redhat.com>
10037 * windows-nat.c (windows_can_run): Add 'self' argument.
10038 * target.h (struct target_ops) <to_can_run>: Add argument.
10039 (target_can_run): Add argument.
10040 * target.c (debug_to_can_run): Add argument.
10041 (update_current_target): Update.
10042 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10043 * inf-child.c (inf_child_can_run): Add 'self' argument.
10044 * go32-nat.c (go32_can_run): Add 'self' argument.
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10048 * target.h (struct target_ops) <to_has_exited>: Add argument.
10049 (target_has_exited): Add argument.
10050 * target.c (debug_to_has_exited): Add argument.
10051 (update_current_target): Update.
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10057 (target_set_syscall_catchpoint): Add argument.
10058 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10060 * target.c (update_current_target): Update.
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10064 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10066 (target_remove_exec_catchpoint): Add argument.
10067 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10068 (update_current_target): Update.
10069 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10074 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10076 (target_insert_exec_catchpoint): Add argument.
10077 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10078 (update_current_target): Update.
10079 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10082 2014-02-19 Tom Tromey <tromey@redhat.com>
10084 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10086 (target_remove_vfork_catchpoint): Add argument.
10087 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10088 (update_current_target): Update.
10089 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10096 (target_insert_vfork_catchpoint): Add argument.
10097 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10098 (update_current_target): Update.
10099 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10102 2014-02-19 Tom Tromey <tromey@redhat.com>
10104 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10106 (target_remove_fork_catchpoint): Add argument.
10107 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10108 (update_current_target): Update.
10109 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10114 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10116 (target_insert_fork_catchpoint): Add argument.
10117 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10118 (update_current_target): Update.
10119 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10122 2014-02-19 Tom Tromey <tromey@redhat.com>
10124 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10126 (target_post_startup_inferior): Add argument.
10127 * target.c (debug_to_post_startup_inferior): Add argument.
10128 (update_current_target): Update.
10129 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10131 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10133 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10135 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10137 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10139 (super_post_startup_inferior): Likewise.
10140 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10142 (super_post_startup_inferior): Likewise.
10143 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10144 Add 'self' argument.
10145 (super_post_startup_inferior): Likewise.
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10149 * target.h (struct target_ops) <to_load>: Add argument.
10150 * target.c (target_load): Add argument.
10151 (debug_to_load): Add argument.
10152 (update_current_target): Update.
10153 * remote.c (remote_load): Add 'self' argument.
10154 * remote-sim.c (gdbsim_load): Add 'self' argument.
10155 * remote-mips.c (mips_load): Add 'self' argument.
10156 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10157 * monitor.c (monitor_load): Add 'self' argument.
10158 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10162 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10163 (target_terminal_info): Add argument.
10164 * target.c (debug_to_terminal_info): Add argument.
10165 (default_terminal_info): Likewise.
10166 * inflow.c (child_terminal_info): Add 'self' argument.
10167 * inferior.h (child_terminal_info): Add 'self' argument.
10168 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10170 2014-02-19 Tom Tromey <tromey@redhat.com>
10172 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10174 (target_terminal_save_ours): Add argument.
10175 * target.c (debug_to_terminal_save_ours): Add argument.
10176 (update_current_target): Update.
10177 * inflow.c (terminal_save_ours): Add 'self' argument.
10178 * inferior.h (terminal_save_ours): Add 'self' argument.
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10183 (target_terminal_ours): Add argument.
10184 * target.c (debug_to_terminal_ours): Add argument.
10185 (update_current_target): Update.
10186 * remote.c (remote_terminal_ours): Add 'self' argument.
10187 (remote_close): Update.
10188 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10189 * inflow.c (terminal_ours): Add 'self' argument.
10190 * inferior.h (terminal_ours): Add 'self' argument.
10191 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10193 2014-02-19 Pedro Alves <palves@redhat.com>
10194 Tom Tromey <tromey@redhat.com>
10196 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10198 (target_terminal_ours_for_output): Add argument.
10199 * target.c (debug_to_terminal_ours_for_output): Add argument.
10200 (update_current_target): Update.
10201 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10202 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10203 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10205 2014-02-19 Tom Tromey <tromey@redhat.com>
10207 * target.h (struct target_ops) <to_terminal_inferior>: Add
10209 * target.c (target_terminal_inferior): Add argument.
10210 (update_current_target): Update.
10211 * remote.c (remote_terminal_inferior): Add 'self' argument.
10212 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10213 * inflow.c (terminal_inferior): Add 'self' argument.
10214 * inferior.h (terminal_inferior): Add 'self' argument.
10215 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10216 (go32_terminal_inferior): Add 'self' argument.
10218 2014-02-19 Tom Tromey <tromey@redhat.com>
10220 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10221 (target_terminal_init): Add argument.
10222 * target.c (debug_to_terminal_init): Add argument.
10223 (update_current_target): Update.
10224 * inflow.c (terminal_init_inferior): Add 'self' argument.
10225 * inferior.h (terminal_init_inferior): Add 'self' argument.
10226 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10227 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10229 2014-02-19 Tom Tromey <tromey@redhat.com>
10231 * target.h (struct target_ops)
10232 <to_can_accel_watchpoint_condition>: Add argument.
10233 (target_can_accel_watchpoint_condition): Add argument.
10234 * target.c (debug_to_can_accel_watchpoint_condition): Add
10236 (update_current_target): Update.
10237 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10240 2014-02-19 Tom Tromey <tromey@redhat.com>
10242 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10244 (target_region_ok_for_hw_watchpoint): Add argument.
10245 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10246 (default_region_ok_for_hw_watchpoint): Add argument.
10247 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10248 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10250 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10252 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10254 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10256 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10258 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10260 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10261 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10263 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10264 Add 'self' argument.
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10268 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10270 (target_insert_watchpoint): Add argument.
10271 * target.c (debug_to_insert_watchpoint): Add argument.
10272 (update_current_target): Update.
10273 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10274 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10275 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10276 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10277 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10278 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10280 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10281 (procfs_insert_hw_watchpoint): Add 'self' argument.
10282 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10284 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10286 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10288 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10289 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10291 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10298 (target_remove_watchpoint): Add argument.
10299 * target.c (debug_to_remove_watchpoint): Add argument.
10300 (update_current_target): Update.
10301 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10302 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10303 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10304 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10305 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10306 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10308 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10309 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10311 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10313 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10315 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10316 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10318 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10323 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10325 (target_remove_hw_breakpoint): Add argument.
10326 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10327 (update_current_target): Update.
10328 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10329 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10331 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10332 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10334 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10337 2014-02-19 Tom Tromey <tromey@redhat.com>
10339 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10341 (target_insert_hw_breakpoint): Add argument.
10342 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10343 (update_current_target): Update.
10344 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10345 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10347 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10348 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10349 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10351 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10354 2014-02-19 Tom Tromey <tromey@redhat.com>
10356 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10358 (target_can_use_hardware_watchpoint): Add argument.
10359 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10360 (update_current_target): Update.
10361 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10363 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10365 * remote.c (remote_check_watch_resources): Add 'self' argument.
10366 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10367 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10369 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10370 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10372 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10374 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10376 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10378 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10380 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10382 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10383 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10385 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10388 2014-02-19 Tom Tromey <tromey@redhat.com>
10390 * target.h (struct target_ops) <to_post_attach>: Add argument.
10391 (target_post_attach): Add argument.
10392 * target.c (debug_to_post_attach): Add argument.
10393 (update_current_target): Update.
10394 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10395 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10396 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10397 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10398 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10400 2014-02-19 Tom Tromey <tromey@redhat.com>
10402 * windows-nat.c (windows_close): Add 'self' argument.
10403 * tracepoint.c (tfile_close): Add 'self' argument.
10404 * target.h (struct target_ops) <to_close>: Add argument.
10405 * target.c (target_close): Add argument.
10406 (update_current_target): Update.
10407 * remote.c (remote_close): Add 'self' argument.
10408 * remote-sim.c (gdbsim_close): Add 'self' argument.
10409 * remote-mips.c (mips_close): Add 'self' argument.
10410 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10411 * record-full.c (record_full_close): Add 'self' argument.
10412 * record-btrace.c (record_btrace_close): Add 'self' argument.
10413 * monitor.h (monitor_close): Add 'self' argument.
10414 * monitor.c (monitor_close): Add 'self' argument.
10415 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10416 * linux-nat.c (linux_nat_close): Add argument.
10417 * go32-nat.c (go32_close): Add 'self' argument.
10418 * exec.c (exec_close_1): Add 'self' argument.
10419 * ctf.c (ctf_close): Add 'self' argument.
10420 * corelow.c (core_close): Add 'self' argument.
10421 (core_close_cleanup): Update.
10422 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10423 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10425 2014-02-19 Tom Tromey <tromey@redhat.com>
10427 * remote.c (remote_load): New function.
10428 (init_remote_ops): Use it.
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10432 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10434 * common/linux-btrace.h (linux_supports_btrace): Update.
10435 * remote.c (remote_supports_btrace): Add "self" argument.
10436 * target-delegates.c: Rebuild.
10437 * target.c (target_supports_btrace): Remove.
10438 * target.h (struct target_ops) <to_supports_btrace>: Add
10439 target_ops argument.
10440 (target_supports_btrace): New define.
10442 2014-02-19 Tom Tromey <tromey@redhat.com>
10444 * record-full.c (record_full_beneath_to_resume_ops)
10445 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10446 (record_full_beneath_to_wait)
10447 (record_full_beneath_to_store_registers_ops)
10448 (record_full_beneath_to_store_registers)
10449 (record_full_beneath_to_xfer_partial_ops)
10450 (record_full_beneath_to_xfer_partial)
10451 (record_full_beneath_to_insert_breakpoint_ops)
10452 (record_full_beneath_to_insert_breakpoint)
10453 (record_full_beneath_to_remove_breakpoint_ops)
10454 (record_full_beneath_to_remove_breakpoint)
10455 (record_full_beneath_to_stopped_by_watchpoint)
10456 (record_full_beneath_to_stopped_data_address)
10457 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10458 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10459 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10460 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10461 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10462 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10463 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10464 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10465 (record_full_resume, record_full_wait_1)
10466 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10467 (record_full_store_registers, record_full_xfer_partial)
10468 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10469 (record_full_async, record_full_core_xfer_partial): Use target
10471 * target-delegates.c: Rebuild.
10472 * target.c (current_xfer_partial): Remove.
10473 (update_current_target): Do not INHERIT or de_fault
10474 to_insert_breakpoint, to_remove_breakpoint,
10475 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10476 to_is_async_p, to_async. Do not set to_xfer_partial field.
10477 (default_xfer_partial): Simplify.
10478 (current_xfer_partial): Remove.
10479 (target_wait, target_resume): Simplify.
10480 (find_default_can_async_p, find_default_is_async_p): Update.
10481 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10482 to_xfer_partial, to_stopped_by_watchpoint,
10483 to_stopped_data_address.
10484 (target_store_registers): Simplify.
10485 (forward_target_remove_breakpoint)
10486 (forward_target_insert_breakpoint): Remove.
10487 (target_remove_breakpoint, target_insert_breakpoint)
10488 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10489 * target.h (struct target_ops) <to_resume, to_wait,
10490 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10491 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10492 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10494 (forward_target_remove_breakpoint)
10495 (forward_target_insert_breakpoint): Remove.
10496 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10498 (record_btrace_insert_breakpoint): Delegate directly.
10500 2014-02-19 Tom Tromey <tromey@redhat.com>
10503 * target-delegates.c: New file.
10504 * target.c: Include target-delegates.c.
10505 (init_dummy_target): Call install_dummy_methods.
10506 (complete_target_initialization): Call install_delegators.
10507 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10508 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10509 * make-target-delegates: New file.
10511 2014-02-19 Tom Tromey <tromey@redhat.com>
10513 * record.c (find_record_target): Use find_target_at.
10514 * target.c (find_target_at): New function.
10515 * target.h (find_target_at): Declare.
10517 2014-02-19 Tom Tromey <tromey@redhat.com>
10519 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10520 Add 'ops' argument.
10521 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10523 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10524 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10526 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10528 * linux-nat.c (save_sigtrap): Update.
10529 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10530 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10531 (linux_nat_close): Update.
10532 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10534 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10536 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10537 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10538 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10539 (tmp_to_async): Add 'ops' argument.
10540 (record_full_stopped_by_watchpoint, record_full_async)
10541 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10543 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10544 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10545 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10546 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10547 (remote_is_async_p, remote_async): Add 'ops' argument.
10548 (remote_stopped_data_address): Update.
10549 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10550 * target.c (update_current_target)
10551 (find_default_can_async_p, find_default_is_async_p): Update.
10552 (init_dummy_target): Update.
10553 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10554 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10555 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10556 (target_can_async_p, target_is_async_p, target_async)
10557 (target_stopped_by_watchpoint): Update.
10559 2014-02-19 Yao Qi <yao@codesourcery.com>
10562 * gdbarch.sh: Remove startup_gdbarch.
10563 * gdbarch.c: Regenerated.
10564 * gdbarch.h: Likewise.
10566 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10568 * rl78-tdep.c (rl78_g10_register_name): New function.
10569 (rl78_return_value): Add g10 support.
10570 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10573 2014-02-17 Doug Evans <xdje42@gmail.com>
10575 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10576 (SUBDIR_GUILE_SRCS): Ditto.
10577 (scm-gsmob.o): Ditto.
10579 2014-02-17 Yao Qi <yao@codesourcery.com>
10581 * gnu-nat.c (ILL_RPC): Declare defined function.
10583 2014-02-17 Yao Qi <yao@codesourcery.com>
10585 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10586 mach_msg_type_number_t.
10587 (gnu_write_inferior): Likewise.
10589 2014-02-17 Yao Qi <yao@codesourcery.com>
10591 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10593 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10594 (inf_validate_procs, inf_signal): Likewise.
10595 (S_exception_raise_request): Likewise.
10596 (do_mach_notify_dead_name): Likewise.
10597 (steal_exc_port): Likewise.
10598 (gnu_read_inferior): Change 'copy_count''s type to
10599 mach_msg_type_number_t.
10600 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10603 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10605 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10606 flag. Adjust all users; in particular...
10607 (gnu_wait): ..., don't decrement its value in here...
10608 (gnu_create_inferior): ..., and instead set the flag in here,
10609 around the startup_inferior call, and call that one with
10610 START_INFERIOR_TRAPS_EXPECTED.
10612 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10613 (ILL_RPC): ... new macro.
10614 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10615 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10616 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10617 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10618 functions with ILL_RPC macro.
10619 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10620 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10621 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10622 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10623 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10624 (S_proc_getlogin_reply, S_proc_getsid_reply)
10625 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10626 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10627 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10628 (S_proc_getnports_reply, S_proc_is_important_reply)
10629 (S_proc_get_code_reply): New stub functions, generated with
10632 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10633 collected the type check structures.
10635 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10637 2014-02-14 Doug Evans <dje@google.com>
10639 * target.c (target_write_partial): Fix result type.
10641 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10643 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10644 the proper offsets to access fpregset_t.
10646 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10648 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10649 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10650 * h8300-tdep.c (setmachinelist): Remove global.
10651 * hppa-tdep.c (hppa_sigtramp): Remove global.
10652 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10653 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10654 * ravenscar-thread.c (update_target_observer): Remove global.
10655 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10657 2014-02-12 Tom Tromey <tromey@redhat.com>
10659 * common/rsp-low.c: Update comments.
10660 * common/rsp-low.h: Update comments.
10662 2014-02-12 Tom Tromey <tromey@redhat.com>
10664 * common/rsp-low.c (convert_ascii_to_int): Remove.
10665 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10667 2014-02-12 Tom Tromey <tromey@redhat.com>
10669 * common/rsp-low.h (unhexify): Don't declare.
10670 * common/rsp-low.c (unhexify): Remove.
10672 2014-02-12 Tom Tromey <tromey@redhat.com>
10674 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10675 * common/rsp-low.c (convert_int_to_ascii): Remove.
10677 2014-02-12 Tom Tromey <tromey@redhat.com>
10679 * common/rsp-low.h (hexify): Don't declare.
10680 * common/rsp-low.c (hexify): Remove.
10682 2014-02-12 Tom Tromey <tromey@redhat.com>
10684 * common/rsp-low.c (hexify): Never take strlen of argument.
10686 2014-02-12 Tom Tromey <tromey@redhat.com>
10688 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10689 * remote.c (extended_remote_run, remote_rcmd)
10690 (remote_download_trace_state_variable, remote_save_trace_data)
10691 (remote_set_trace_notes): Update.
10692 * tracepoint.c (encode_source_string, tfile_write_status)
10693 (tfile_write_uploaded_tsv): Update.
10695 2014-02-12 Tom Tromey <tromey@redhat.com>
10697 * tracepoint.c: Include rsp-low.h.
10698 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10699 * remote.c: Include rsp-low.h.
10700 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10701 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10702 (remote_unescape_input): Move to common/rsp-low.c.
10703 * common/rsp-low.h: New file.
10704 * common/rsp-low.c: New file.
10705 * Makefile.in (SFILES): Add common/rsp-low.c.
10706 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10707 (COMMON_OBS): Add rsp-low.o.
10708 (rsp-low.o): New target.
10710 2014-02-12 Tom Tromey <tromey@redhat.com>
10712 * utils.h: Include print-utils.h.
10713 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10714 (int_string, core_addr_to_string, core_addr_to_string_nz)
10715 (hex_string, hex_string_custom): Don't declare.
10716 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10717 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10718 (hex_string_custom, int_string, core_addr_to_string)
10719 (core_addr_to_string_nz, host_address_to_string): Move to
10720 common/print-utils.c.
10721 * common/print-utils.h: New file.
10722 * common/print-utils.c: New file
10723 * Makefile.in (SFILES): Add common/print-utils.c.
10724 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10725 (COMMON_OBS): Add print-utils.o.
10726 (print-utils.o): New target.
10728 2014-02-12 Tom Tromey <tromey@redhat.com>
10730 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10732 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10734 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10736 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10738 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10739 if a PT_IO ptrace request returns sucessfully but indicates that 0
10740 bytes were transferred.
10742 2014-02-12 Pedro Alves <palves@redhat.com>
10743 Kevin Buettner <kevinb@redhat.com>
10745 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10746 TYPE_INSTANCE_FLAG_CODE_SPACE.
10748 2014-02-12 Pedro Alves <palves@redhat.com>
10750 * h8300-tdep.c (pseudo_from_raw_register)
10751 (raw_from_pseudo_register): New functions.
10752 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10755 2014-02-12 Pedro Alves <palves@redhat.com>
10757 * h8300-tdep.c (h8300_register_sim_regno): New function.
10758 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10759 gdbarch_register_sim_regno hook.
10761 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10763 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10765 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10767 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10769 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10771 * obsd-tdep.h (obsd_init_abi): New prototype.
10772 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10773 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10774 (obsd_init_abi): New functions.
10775 * i386obsd-tdep.c: Include "obsd-tdep.h".
10776 (i386obsd_init_abi): Call obsd_init_abi.
10777 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10778 (amd64obsd_init_abi): Call obsd_init_abi.
10779 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10780 obsd-tdep.c to gdb_target_obs.
10782 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10784 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10785 double float arguments to 16-byte in the argument slots.
10787 2014-02-11 Doug Evans <xdje42@gmail.com>
10789 * configure.ac: Don't crash if pkg-config is not found and guile
10790 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10792 * configure: Regenerate.
10794 2014-02-11 Yao Qi <yao@codesourcery.com>
10796 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10797 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10798 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10799 * gnu-nat.c (gnu_xfer_memory): Likewise.
10800 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10801 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10802 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10803 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10805 2014-02-11 Yao Qi <yao@codesourcery.com>
10807 * target.h (enum target_xfer_error): Rename to ...
10808 (enum target_xfer_status): ... it. New. All users updated.
10809 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10811 (TARGET_XFER_STATUS_ERROR_P): New macro.
10812 (target_xfer_error_to_string): Remove declaration.
10813 (target_xfer_status_to_string): Declare.
10814 (target_xfer_partial_ftype): Adjust it.
10815 (struct target_ops) <to_xfer_partial>: Return
10816 target_xfer_status. Add argument xfered_len. Update
10818 * target.c (target_xfer_error_to_string): Rename to ...
10819 (target_xfer_status_to_string): ... it. New. All callers
10821 (target_read_live_memory): Likewise. Call target_xfer_partial
10822 instead of target_read.
10823 (memory_xfer_live_readonly_partial): Return
10824 target_xfer_status. Add argument xfered_len.
10825 (raw_memory_xfer_partial): Likewise.
10826 (memory_xfer_partial_1): Likewise.
10827 (memory_xfer_partial): Likewise.
10828 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10829 properly. Update debug message.
10830 (default_xfer_partial, current_xfer_partial): Likewise.
10831 (target_write_partial): Likewise.
10832 (target_read_partial): Likewise. All callers updated.
10833 (read_whatever_is_readable): Likewise.
10834 (target_write_with_progress): Likewise.
10835 (target_read_alloc_1): Likewise.
10837 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10838 * auxv.c (procfs_xfer_auxv): Likewise.
10839 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10840 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10841 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10842 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10843 * corefile.c (read_memory): Adjust.
10844 * corelow.c (core_xfer_partial): Likewise.
10845 * ctf.c (ctf_xfer_partial): Likewise.
10846 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10848 (darwin_xfer_partial): Likewise.
10849 * exec.c (section_table_xfer_memory_partial): Likewise. All
10851 (exec_xfer_partial): Likewise.
10852 * exec.h (section_table_xfer_memory_partial): Update
10854 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10856 (gnu_xfer_partial): Likewise.
10857 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10858 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10859 (ia64_hpux_xfer_solib_got): Likewise.
10860 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10861 type of 'partial_len' to ULONGEST.
10862 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10863 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10864 (linux_nat_xfer_partial): Likewise.
10865 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10866 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10867 * monitor.c (monitor_xfer_memory): Likewise.
10868 (monitor_xfer_partial): Likewise.
10869 * procfs.c (procfs_xfer_partial): Likewise.
10870 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10871 * record-full.c (record_full_xfer_partial): Likewise.
10872 (record_full_core_xfer_partial): Likewise.
10873 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10874 (gdbsim_xfer_partial): Likewise.
10875 * remote.c (remote_write_bytes_aux): Likewise. All callers
10877 (remote_write_bytes, remote_read_bytes): Likewise. All
10879 (remote_flash_erase): Likewise. All callers updated.
10880 (remote_write_qxfer): Likewise. All callers updated.
10881 (remote_read_qxfer): Likewise. All callers updated.
10882 (remote_xfer_partial): Likewise.
10883 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10884 (rs6000_xfer_shared_libraries): Likewise.
10885 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10886 (sol_thread_xfer_partial): Likewise.
10887 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10888 (sparc_xfer_partial): Likewise.
10889 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10891 (spu_xfer_partial): Likewise.
10892 * spu-multiarch.c (spu_xfer_partial): Likewise.
10893 * tracepoint.c (tfile_xfer_partial): Likewise.
10894 * windows-nat.c (windows_xfer_memory): Likewise.
10895 (windows_xfer_shared_libraries): Likewise.
10896 (windows_xfer_partial): Likewise.
10897 * valprint.c: Replace 'target_xfer_error' with
10898 'target_xfer_status' in comments.
10900 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10902 Checked in by Joel Brobecker <brobecker@adacore.com>.
10903 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10905 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10907 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10908 function parameters.
10910 2014-02-10 Will Newton <will.newton@linaro.org>
10912 * elfread.c (elf_rel_plt_read): Look for a .got section if
10913 looking up .got.plt fails.
10914 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10915 on address passed to elf_gnu_ifunc_record_cache.
10916 (elf_gnu_ifunc_resolve_addr): Likewise.
10917 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10919 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10921 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10922 (X_RETTURN): New macro.
10923 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10925 * sparc64-tdep.c (sparc64_init_abi): Hook
10926 sparc_in_function_epilogue_p.
10928 2014-02-10 Gary Benson <gbenson@redhat.com>
10930 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10931 Rename name_matcher to symbol_matcher.
10933 2014-02-10 Gary Benson <gbenson@redhat.com>
10935 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10936 Use expand_symtabs_file_matcher_ftype and
10937 expand_symtabs_symbol_matcher_ftype.
10939 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10941 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10942 (struct ada_symbol_cache): New.
10943 (ada_free_symbol_cache): Forward declare.
10944 (struct ada_pspace_data): New.
10945 (ada_pspace_data_handle): New static global.
10946 (get_ada_pspace_data, ada_pspace_data_cleanup)
10947 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10948 (cache_space, cache): Delete, now folded inside struct
10950 (ada_get_symbol_cache): New function.
10951 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10953 (_initialize_ada_language): Remove initialization of cache_space.
10954 Move call to observer_attach_inferior_exit up, grouping it
10955 with the other observer registrations inside this function.
10956 Rename command to be more general. Add call to
10957 register_program_space_data_with_cleanup.
10959 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10961 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10962 ada_new_objfile_observer.
10963 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10964 (_initialize_tasks): Update uses of ada_new_objfile_observer
10965 and ada_tasks_normal_stop_observer.
10967 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10969 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10970 returned by the 'Length attribute to integer.
10972 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10974 * ada-lang.c (_initialize_ada_language): Initialize
10975 cache_space obstack.
10977 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10979 * ada-lang.c (HASH_SIZE): New macro.
10980 (struct cache_entry): New type.
10981 (cache_space, cache): New static globals.
10982 (ada_clear_symbol_cache, find_entry): New functions.
10983 (lookup_cached_symbol, cache_symbol): Implement.
10984 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10985 (_initialize_ada_language): Attach ada_new_objfile_observer
10986 and ada_free_objfile_observer.
10988 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10990 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10991 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10992 struct block * parameter.
10993 (ada_lookup_symbol_list_worker): Constify local variable "block".
10994 Remove cast which is no longer necessary.
10996 2014-02-10 Doug Evans <xdje42@gmail.com>
10998 Add Guile as an extension language.
10999 * NEWS: Mention Guile scripting.
11000 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11001 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11002 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11003 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11004 (CLIBS): Add GUILE_LIBS.
11005 (install-guile): New rule.
11006 (guile.o): New rule.
11007 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11008 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11009 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11010 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11011 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11012 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11013 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11014 * configure.ac: New option --with-guile.
11015 * configure: Regenerate.
11016 * config.in: Regenerate.
11017 * auto-load.c: Remove #include "python/python.h". Add #include
11018 "gdb/section-scripts.h".
11019 (source_section_scripts): Handle Guile scripts.
11020 (_initialize_auto_load): Add name of Guile objfile script to
11021 scripts-directory help text.
11022 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11023 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11024 (struct breakpoint): New member scm_bp_object.
11025 * defs.h (enum command_control_type): New value guile_control.
11026 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11028 (show_user): Update comment.
11029 (_initialize_cli_cmds): Update help text for "show user". Update help
11030 text for max-user-call-depth.
11031 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11033 (multi_line_command_p): Add guile_control.
11034 (print_command_lines): Handle guile_control.
11035 (execute_control_command, recurse_read_control_structure): Ditto.
11036 (process_next_line): Recognize "guile" commands.
11037 * disasm.c (gdb_disassemble_info): Make non-static.
11038 * disasm.h: #include "dis-asm.h".
11039 (struct gdbarch): Add forward decl.
11040 (gdb_disassemble_info): Declare.
11041 * extension.c: #include "guile/guile.h".
11042 (extension_languages): Add guile.
11043 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11044 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11045 * gdbtypes.c (get_unsigned_type_max): New function.
11046 (get_signed_type_minmax): New function.
11047 * gdbtypes.h (get_unsigned_type_max): Declare.
11048 (get_signed_type_minmax): Declare.
11049 * guile/README: New file.
11050 * guile/guile-internal.h: New file.
11051 * guile/guile.c: New file.
11052 * guile/guile.h: New file.
11053 * guile/scm-arch.c: New file.
11054 * guile/scm-auto-load.c: New file.
11055 * guile/scm-block.c: New file.
11056 * guile/scm-breakpoint.c: New file.
11057 * guile/scm-disasm.c: New file.
11058 * guile/scm-exception.c: New file.
11059 * guile/scm-frame.c: New file.
11060 * guile/scm-gsmob.c: New file.
11061 * guile/scm-iterator.c: New file.
11062 * guile/scm-lazy-string.c: New file.
11063 * guile/scm-math.c: New file.
11064 * guile/scm-objfile.c: New file.
11065 * guile/scm-ports.c: New file.
11066 * guile/scm-pretty-print.c: New file.
11067 * guile/scm-safe-call.c: New file.
11068 * guile/scm-string.c: New file.
11069 * guile/scm-symbol.c: New file.
11070 * guile/scm-symtab.c: New file.
11071 * guile/scm-type.c: New file.
11072 * guile/scm-utils.c: New file.
11073 * guile/scm-value.c: New file.
11074 * guile/lib/gdb.scm: New file.
11075 * guile/lib/gdb/boot.scm: New file.
11076 * guile/lib/gdb/experimental.scm: New file.
11077 * guile/lib/gdb/init.scm: New file.
11078 * guile/lib/gdb/iterator.scm: New file.
11079 * guile/lib/gdb/printing.scm: New file.
11080 * guile/lib/gdb/types.scm: New file.
11081 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11082 (VPATH): Add $(GUILE_SRCDIR).
11083 (GUILE_DIR): New variable.
11084 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11085 (all): Add stamp-guile dependency.
11086 (stamp-guile): New rule.
11087 (clean-guile, install-guile, uninstall-guile): New rules.
11088 (install-only): Add install-guile dependency.
11089 (uninstall): Add uninstall-guile dependency.
11090 (clean): Add clean-guile dependency.
11092 2014-02-09 Doug Evans <xdje42@gmail.com>
11094 Revert this patch (which I approved, mea culpa).
11096 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11098 * Makefile.in (all-lib): Remove.
11099 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11101 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11103 Fix Python stack corruption.
11104 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11107 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11109 * Makefile.in (all-lib): Remove.
11110 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11112 2014-02-07 Doug Evans <dje@google.com>
11114 * extension-priv.h (extension_language_script_ops): Add comment.
11115 (extension_language_ops): Add comment.
11116 (active_ext_lang_state): Fix typo in comment.
11118 2014-02-07 Pedro Alves <palves@redhat.com>
11120 PR breakpoints/16292
11121 * infrun.c (handle_signal_stop) <signal arrives while stepping
11122 over a breakpoint>: Switch back to the stepping thread.
11124 2014-02-07 Yao Qi <yao@codesourcery.com>
11126 * target.c (target_xfer_partial): Return zero if LEN is zero.
11128 2014-02-07 Yao Qi <yao@codesourcery.com>
11130 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11131 (ld_so_xfer_auxv): Likewise.
11132 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11133 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11134 * corelow.c (core_xfer_partial): Likewise.
11135 * ctf.c (ctf_xfer_partial): Likewise.
11136 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11137 (darwin_xfer_partial): Likewise.
11138 * exec.c (exec_xfer_partial): Likewise.
11139 * gnu-nat.c (gnu_xfer_partial): Likewise.
11140 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11141 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11142 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11143 * linux-nat.c (linux_xfer_siginfo): Likewise.
11144 (linux_proc_xfer_spu): Likewise.
11145 * procfs.c (procfs_xfer_partial): Likewise.
11146 * record-full.c (record_full_xfer_partial): Likewise.
11147 (record_full_core_xfer_partial): Likewise.
11148 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11149 * remote.c (remote_write_qxfer): Likewise.
11150 (remote_write_qxfer, remote_read_qxfer): Likewise.
11151 (remote_xfer_partial): Likewise.
11152 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11153 (rs6000_xfer_shared_libraries): Likewise.
11154 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11155 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11156 (spu_xfer_partial): Likewise.
11157 * target.c (memory_xfer_partial_1): Likewise.
11158 * tracepoint.c (tfile_xfer_partial): Likewise.
11159 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11160 (windows_xfer_partial): Likewise.
11162 2014-02-07 Yao Qi <yao@codesourcery.com>
11164 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11166 (core_xfer_shared_libraries_aix): Likewise.
11167 * gdbarch.c, gdbarch.h: Regenerated.
11168 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11169 ULONGEST. Change 'len_avail' type to ULONGEST.
11170 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11171 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11173 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11175 2014-02-07 Yao Qi <yao@codesourcery.com>
11177 * corefile.c (memory_error): Get 'exception' from ERR and pass
11178 'exception' to throw_error.
11180 2014-02-06 Doug Evans <xdje42@gmail.com>
11182 * configure.ac (libpython checking): Remove all but python.o from
11183 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11184 * configure: Regenerate.
11186 * Makefile.in (SFILES): Add extension.c.
11187 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11188 (COMMON_OBS): Add extension.o.
11189 * extension.h: New file.
11190 * extension-priv.h: New file.
11191 * extension.c: New file.
11193 * python/python-internal.h: #include "extension.h".
11194 (gdbpy_auto_load_enabled): Declare.
11195 (gdbpy_apply_val_pretty_printer): Declare.
11196 (gdbpy_apply_frame_filter): Declare.
11197 (gdbpy_preserve_values): Declare.
11198 (gdbpy_breakpoint_cond_says_stop): Declare.
11199 (gdbpy_breakpoint_has_cond): Declare.
11200 (void source_python_script_for_objfile): Delete.
11201 * python/python.c: #include "extension-priv.h".
11202 Delete inclusion of "observer.h".
11203 (extension_language_python): Moved here and renamed from
11204 script_language_python in py-auto-load.c.
11205 Redefined to be of type extension_language_defn.
11206 (python_extension_script_ops): New global.
11207 (python_extension_ops): New global.
11208 (struct python_env): New member previous_active.
11209 (restore_python_env): Call restore_active_ext_lang.
11210 (ensure_python_env): Call set_active_ext_lang.
11211 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11213 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11215 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11217 (gdbpy_eval_from_control_command): Renamed from
11218 eval_python_from_control_command, made static. New arg extlang.
11219 (gdbpy_source_script) Renamed from source_python_script, made static.
11221 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11222 result to int. New arg extlang.
11223 (gdbpy_source_objfile_script): Renamed from
11224 source_python_script_for_objfile, made static. New arg extlang.
11225 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11226 static. New args extlang, extlang_printers. Change result type to
11228 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11229 static. New arg extlang. Rename arg printers to extlang_printers
11230 and change type to ext_lang_type_printers *.
11231 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11232 static. Replace argument arg with extlang, extlang_printers.
11233 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11234 (!HAVE_PYTHON, source_python_script): Delete.
11235 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11236 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11237 (!HAVE_PYTHON, start_type_printers): Delete.
11238 (!HAVE_PYTHON, apply_type_printers): Delete.
11239 (!HAVE_PYTHON, free_type_printers): Delete.
11240 (_initialize_python): Delete call to observer_attach_before_prompt.
11241 (finalize_python): Set/restore active extension language.
11242 (gdbpy_finish_initialization) Renamed from
11243 finish_python_initialization, made static. New arg extlang.
11244 (gdbpy_initialized): New function.
11245 * python/python.h: #include "extension.h". Delete #include
11246 "value.h", "mi/mi-cmds.h".
11247 (extension_language_python): Declare.
11248 (GDBPY_AUTO_FILE_NAME): Delete.
11249 (enum py_bt_status): Moved to extension.h and renamed to
11250 ext_lang_bt_status.
11251 (enum frame_filter_flags): Moved to extension.h.
11252 (enum py_frame_args): Moved to extension.h and renamed to
11253 ext_lang_frame_args.
11254 (finish_python_initialization): Delete.
11255 (eval_python_from_control_command): Delete.
11256 (source_python_script): Delete.
11257 (apply_val_pretty_printer): Delete.
11258 (apply_frame_filter): Delete.
11259 (preserve_python_values): Delete.
11260 (gdbpy_script_language_defn): Delete.
11261 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11262 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11264 * auto-load.c: #include "extension.h".
11265 (GDB_AUTO_FILE_NAME): Delete.
11266 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11267 (script_language_gdb): Delete, moved to extension.c and renamed to
11268 extension_language_gdb.
11269 (source_gdb_script_for_objfile): Delete.
11270 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11271 (loaded_script): Change type of language member to
11272 struct extension_language_defn *.
11273 (init_loaded_scripts_info): Initialize
11274 unsupported_script_warning_printed.
11275 (maybe_add_script): Make static. Change type of language arg to
11276 struct extension_language_defn *.
11277 (clear_section_scripts): Reset unsupported_script_warning_printed.
11278 (auto_load_objfile_script_1): Rewrite to use extension language API.
11279 (auto_load_objfile_script): Make public. Remove support-compiled-in
11280 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11281 (source_section_scripts): Rewrite to use extension language API.
11282 (load_auto_scripts_for_objfile): Rewrite to use
11283 auto_load_scripts_for_objfile.
11284 (collect_matching_scripts_data): Change type of language member to
11285 struct extension_language_defn *.
11286 (auto_load_info_scripts): Change type of language arg to
11287 struct extension_language_defn *.
11288 (unsupported_script_warning_print): New function.
11289 (script_not_found_warning_print): Make static.
11290 (_initialize_auto_load): Rewrite construction of scripts-directory
11292 * auto-load.h (struct objfile): Add forward decl.
11293 (struct script_language): Delete.
11294 (struct auto_load_pspace_info): Add forward decl.
11295 (struct extension_language_defn): Add forward decl.
11296 (maybe_add_script): Delete.
11297 (auto_load_objfile_script): Declare.
11298 (script_not_found_warning_print): Delete.
11299 (auto_load_info_scripts): Update prototype.
11300 (auto_load_gdb_scripts_enabled): Declare.
11301 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11302 auto_load_python_scripts_enabled and made public.
11303 (script_language_python): Delete, moved to python.c.
11304 (gdbpy_script_language_defn): Delete.
11305 (info_auto_load_python_scripts): Update to use
11306 extension_language_python.
11308 * breakpoint.c (condition_command): Replace call to
11309 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11310 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11311 with call to breakpoint_ext_lang_cond_says_stop.
11312 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11313 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11314 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11315 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11317 (local_setattro): Print name of extension language with existing
11320 * valprint.c (val_print, value_print): Update to call
11321 apply_ext_lang_val_pretty_printer.
11322 * cp-valprint.c (cp_print_value): Update call to
11323 apply_ext_lang_val_pretty_printer.
11324 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11325 (gdbpy_apply_val_pretty_printer): Renamed from
11326 apply_val_pretty_printer. New arg extlang.
11327 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11329 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11330 extension language API.
11331 * cli/cli-script.c (execute_control_command): Update to call
11332 eval_ext_lang_from_control_command.
11334 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11335 enum ext_lang_bt_status values. Update call to
11336 apply_ext_lang_frame_filter.
11337 (mi_cmd_stack_list_locals): Ditto.
11338 (mi_cmd_stack_list_args): Ditto.
11339 (mi_cmd_stack_list_variables): Ditto.
11340 * mi/mi-main.c: Delete #include "python/python-internal.h".
11341 Add #include "extension.h".
11342 (mi_cmd_list_features): Replace reference to python internal variable
11343 gdb_python_initialized with call to ext_lang_initialized_p.
11345 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11346 Update to use enum ext_lang_frame_args. Update to call
11347 apply_ext_lang_frame_filter.
11348 * python/py-framefilter.c (extract_sym): Update to use enum
11349 ext_lang_bt_status.
11350 (extract_value, py_print_type, py_print_value): Ditto.
11351 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11352 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11353 (py_print_frame): Ditto.
11354 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11355 New arg extlang. Update to use enum ext_lang_bt_status.
11357 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11358 finish_python_initialization. Replace with call to
11359 finish_ext_lang_initialization.
11361 * typeprint.c (do_free_global_table): Update to call
11362 free_ext_lang_type_printers.
11363 (create_global_typedef_table): Update to call
11364 start_ext_lang_type_printers.
11365 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11366 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11367 (type_print_options): Change type of global_printers from "void *"
11368 to "struct ext_lang_type_printers *".
11370 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11371 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11372 (gdbpy_preserve_values): Renamed from preserve_python_values.
11374 (!HAVE_PYTHON, preserve_python_values): Delete.
11376 * utils.c (quit_flag): Delete, moved to extension.c.
11377 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11380 * eval.c: Delete #include "python/python.h".
11381 * main.c: Delete #include "python/python.h".
11383 * defs.h: Update comment.
11385 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11389 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11391 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11394 2014-02-05 Yao Qi <yao@codesourcery.com>
11396 * remote.c (remote_pass_signals): Remove local 'buf' and use
11398 (remote_program_signals): Likewise.
11400 2014-02-05 Yao Qi <yao@codesourcery.com>
11402 * ctf.c: Include "inferior.h" and "gdbthread.h".
11403 (CTF_PID): A new macro.
11404 (ctf_open): Call inferior_appeared and add_thread_silent.
11405 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11406 (ctf_thread_alive): New function.
11407 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11409 2014-02-05 Yao Qi <yao@codesourcery.com>
11413 2013-05-24 Yao Qi <yao@codesourcery.com>
11415 * tracepoint.c (TFILE_PID): Remove.
11416 (tfile_open): Don't add thread and inferior.
11417 (tfile_close): Don't set 'inferior_ptid'. Don't call
11418 exit_inferior_silent.
11419 (tfile_thread_alive): Remove.
11420 (init_tfile_ops): Don't set field 'to_thread_alive' of
11423 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11425 * remote.c (remote_start_remote): Call remote_check_symbols even
11426 if only symbol-file (not file) has been given.
11428 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11430 * gdbarch.sh (skip_entrypoint): New callback.
11431 * gdbarch.c, gdbarch.h: Regenerate.
11432 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11433 * infrun.c (fill_in_stop_func): Likewise.
11434 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11435 (ppc_elfv2_elf_make_msymbol_special): New function.
11436 (ppc_elfv2_skip_entrypoint): Likewise.
11437 (ppc_linux_init_abi): Install them for ELFv2.
11439 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11441 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11442 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11443 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11444 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11445 structures returned in GPRs.
11447 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11449 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11450 offset to the stack parameter list for the ELFv2 ABI.
11452 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11454 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11455 set_gdbarch_convert_from_func_ptr_addr and
11456 set_gdbarch_elf_make_msymbol_special for ELFv1.
11457 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11458 function descriptors on ELFv1.
11459 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11460 set up r12 at function entry.
11462 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11464 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11465 (struct gdbarch_tdep): New member elf_abi.
11467 * rs6000-tdep.c: Include "elf/ppc64.h".
11468 (rs6000_gdbarch_init): Detect ELF ABI version.
11470 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11472 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11473 within a register pair holding a DFP 128-bit value on little-endian.
11474 (ppc64_sysv_abi_return_value_base): Likewise.
11475 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11476 (dfp_pseudo_register_write): Likewise.
11478 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11480 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11481 offset on little-endian when passing _Decimal32.
11482 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11484 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11486 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11487 of the overlapped FP register within the VSX register on little-
11489 (efpr_pseudo_register_write): Likewise.
11491 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11493 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11494 offset on little-endian when passing small structures.
11496 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11498 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11499 (struct ppc64_sysv_argpos): New data structure.
11500 (ppc64_sysv_abi_push_float): Remove.
11501 (ppc64_sysv_abi_push_val): New function.
11502 (ppc64_sysv_abi_push_integer): Likewise.
11503 (ppc64_sysv_abi_push_freg): Likewise.
11504 (ppc64_sysv_abi_push_vreg): Likewise.
11505 (ppc64_sysv_abi_push_param): Likewise.
11506 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11507 (ppc64_sysv_abi_return_value_base): New function.
11508 (ppc64_sysv_abi_return_value): Refactor to use it.
11510 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11512 * NEWS: Document new target powerpc64le-*-linux*.
11514 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11516 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11517 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11519 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11520 register set used in ELF core dumps. Add floating-point register set.
11522 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11524 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11525 dwarf2_to_gdb[] table using symbolic constants. Adjust
11526 penultimate entry from number representing the PC register
11527 to symbolic constant representing the MDR register. Add
11528 constant for the PC register to the end of the table.
11530 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11532 * bsd-kvm.c: Include <sys/param.h>
11534 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11536 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11538 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11540 * ada-lang.h (clear_ada_sym_cache): Delete.
11542 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11544 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11546 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11548 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11549 the sigreturn register save area only if the syscall is
11552 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11554 * valops.c (value_slice): Minor reformatting.
11556 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11558 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11560 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11562 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11563 New static globals.
11564 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11565 (ada_ignore_descriptive_types_p): New static global.
11566 (find_parallel_type_by_descriptive_type): Return immediately
11567 if ada_ignore_descriptive_types_p is set.
11568 (_initialize_ada_language): Register new commands "maintenance
11569 set ada", "maintenance show ada", "maintenance set ada
11570 ignore-descriptive-types" and "maintenance show ada
11571 ignore-descriptive-types".
11572 * NEWS: Add entry for new "maint ada set/show
11573 ignore-descriptive-types" commands.
11575 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11577 * record-btrace.c (record_btrace_close): Call btrace_teardown
11580 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11582 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11585 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11587 * ada-typeprint (type_is_full_subrange_of_target_type):
11589 (print_range): Add parameter bounds_prefered_p. If not set,
11590 try printing range types using the name of their base type.
11591 (print_range_type): Add parameter bounds_prefered_p.
11592 Use it in call to print_range.
11593 (print_array_type, ada_print_type): Update calls to print_range
11594 and print_range_type.
11596 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11598 * ada-typeprint.c (print_array_type, print_choices, print_range)
11599 (print_range_bound, print_dynamic_range_bound, print_range_type):
11600 Remove declaration.
11602 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11604 * ada-typeprint.c (print_range): Add missing empty line
11605 after local declaration.
11607 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11609 * ada-valprint.c (print_optional_low_bound): Get index_type's
11610 target type for as long as it is a TYPE_CODE_RANGE.
11612 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11614 * procfs.c (procfs_make_note_section): Remove assertion and
11615 associated comment.
11617 2014-01-24 Yao Qi <yao@codesourcery.com>
11619 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11620 * corelow.c (get_core_siginfo): Likewise.
11622 2014-01-24 Yao Qi <yao@codesourcery.com>
11624 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11625 ULONGEST. Don't check 'len' is negative.
11626 (remote_write_bytes): Change type of 'len' to ULONGEST.
11628 2014-01-23 Tom Tromey <tromey@redhat.com>
11631 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11632 Handle exception from frame.block.
11633 (FrameVars.fetch_frame_locals): Likewise.
11635 2014-01-23 Tom Tromey <tromey@redhat.com>
11638 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11639 on a NULL pointer. Move "goto error" to correct place.
11641 2014-01-23 Tom Tromey <tromey@redhat.com>
11644 * python/py-framefilter.c (apply_frame_filter): Call
11645 ensure_python_env after computing gdbarch.
11647 2014-01-23 Yao Qi <yao@codesourcery.com>
11649 * target.c (raw_memory_xfer_partial): Change argument type
11650 from void * to gdb_byte *.
11651 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11653 2014-01-22 Doug Evans <dje@google.com>
11655 New gdbserver option --debug-format=timestamp.
11656 * NEWS: Mention it.
11658 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11660 * syscalls/s390x-linux.xml: New file.
11661 * syscalls/s390-linux.xml: New file.
11662 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11663 (XML_SYSCALL_FILENAME_S390X): Likewise.
11664 (op_svc): New enum value for SVC opcode.
11665 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11666 (s390_linux_get_syscall_number): New function.
11667 (s390_gdbarch_init): Register '*get_syscall_number' and the
11668 syscall xml file name.
11669 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11670 "s390-linux.xml" and "s390x-linux.xml".
11671 * NEWS: Announce new feature.
11673 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11675 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11677 2014-01-22 Pedro Alves <palves@redhat.com>
11679 * xtensa-config.c: Include defs.h.
11681 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11683 * common/common-utils.h: Add "ARI:" comment beside __func__
11686 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11688 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11689 documentation a bit.
11691 2014-01-21 Roland McGrath <mcgrathr@google.com>
11693 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11694 * configure: Regenerate.
11695 * aclocal.m4: Regenerate.
11696 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11697 New substituted variables.
11698 (install-strip): New target.
11699 (INSTALL_SCRIPT): New substituted variable.
11700 (FLAGS_TO_PASS): Add it.
11701 (install-only): Use $(INSTALL_SCRIPT) rather than
11702 $(INSTALL_PROGRAM) for gcore.
11704 2014-01-20 Tom Tromey <tromey@redhat.com>
11706 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11709 2014-01-20 Tom Tromey <tromey@redhat.com>
11711 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11712 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11713 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11714 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11715 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11716 (struct cmd_list_element) <flags>: Remove.
11717 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11718 doc_allocated>: New fields.
11719 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11721 * maint.c (maintenance_do_deprecate): Update.
11722 * top.c (execute_command): Update.
11724 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11726 * xtensa-linux-nat.c: Include asm/ptrace.h.
11728 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11730 * Makefile.in (SFILES): Add d-support.c.
11731 (COMMON_OBS): Add d-support.o.
11732 * d-lang.h (d_parse_symbol): Add comment, now defined in
11734 * d-lang.c (parse_call_convention)
11735 (parse_attributes, parse_function_types)
11736 (parse_function_args, parse_type, parse_identifier)
11737 (call_convention_p, d_parse_symbol): Move functions to ...
11738 * d-support.c: ... New file.
11740 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11742 * d-lang.h (d_parse_symbol): Add declaration.
11743 * d-lang.c (extract_identifiers)
11744 (extract_type_info): Remove functions.
11745 (parse_call_convention, parse_attributes)
11746 (parse_function_types, parse_function_args)
11747 (parse_type, parse_identifier, call_convention_p)
11748 (d_parse_symbol): New functions.
11749 (d_demangle): Use d_parse_symbol to demangle D symbols.
11751 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11753 * d-lang.h (struct builtin_d_type): New data type.
11754 (builtin_d_type): Add declaration.
11755 * d-lang.c (d_language_arch_info, build_d_types)
11756 (builtin_d_type): New functions.
11757 (enum d_primitive_types): New data type.
11758 (d_language_defn): Change c_language_arch_info to
11759 d_language_arch_info.
11760 (d_type_data): New static variable.
11761 (_initialize_d_language): Initialize d_type_data.
11763 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11765 * d-lang.h (d_main_name): Add declaration.
11766 * d-lang.c (d_main_name): New function.
11767 * symtab.c (find_main_name): Add call to d_main_name.
11769 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11771 * d-lang.c (d_language_defn): Change macro_expansion_c to
11772 macro_expansion_no.
11774 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11776 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11778 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11780 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11781 gdb_exception" declaration.
11782 * remote.c (getpkt_or_notif_sane): Likewise.
11784 2014-01-17 Doug Evans <dje@google.com>
11786 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11787 function, contents of dirnames_to_char_ptr_vec_append moved here.
11788 (delim_string_to_char_ptr_vec): New function.
11789 (dirnames_to_char_ptr_vec_append): Rewrite.
11790 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11792 2014-01-17 Doug Evans <dje@google.com>
11794 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11796 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11797 #include "common-utils.h".
11798 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11799 * common/vec.h (VEC_ASSERT_PASS): Update.
11800 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11801 (MACH_CHECK_ERROR): Update.
11803 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11805 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11807 * gdbarch.h: Regenerate.
11809 2014-01-16 Tom Tromey <tromey@redhat.com>
11811 * value.c (struct value) <regnum>: Move earlier.
11813 2014-01-16 Tom Tromey <tromey@redhat.com>
11815 * remote.c (extended_remote_create_inferior): Rename from
11816 extended_remote_create_inferior_1. Add "ops" argument. Remove
11817 old implementation.
11819 2014-01-16 Pedro Alves <palves@redhat.com>
11821 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11822 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11825 2014-01-16 Doug Evans <dje@google.com>
11827 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11831 * btrace.h (btrace_thread_flag): New.
11832 (struct btrace_thread_info) <flags>: New.
11833 * record-btrace.c (record_btrace_resume_thread)
11834 (record_btrace_find_thread_to_move, btrace_step_no_history)
11835 (btrace_step_stopped, record_btrace_start_replaying)
11836 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11837 (record_btrace_find_resume_thread): New.
11838 (record_btrace_resume, record_btrace_wait): Extend.
11839 (record_btrace_can_execute_reverse): New.
11840 (record_btrace_open): Fail in non-stop mode.
11841 (record_btrace_set_replay): Split into this, ...
11842 (record_btrace_stop_replaying): ... this, ...
11843 (record_btrace_clear_histories): ... and this.
11844 (init_record_btrace_ops): Init to_can_execute_reverse.
11845 * NEWS: Announce it.
11847 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11849 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11850 (forward_target_decr_pc_after_break)
11851 (target_decr_pc_after_break): New.
11852 * target.c (forward_target_decr_pc_after_break)
11853 (target_decr_pc_after_break): New.
11854 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11855 instead of gdbarch_decr_pc_after_break.
11856 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11857 instead of gdbarch_decr_pc_after_break.
11858 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11859 instead of gdbarch_decr_pc_after_break.
11860 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11861 instead of gdbarch_decr_pc_after_break.
11862 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11863 instead of gdbarch_decr_pc_after_break.
11864 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11865 instead of gdbarch_decr_pc_after_break.
11867 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11869 * btrace.c: Include regcache.h.
11870 (btrace_add_pc): New.
11871 (btrace_enable): Call btrace_add_pc.
11872 (btrace_is_empty): New.
11873 * btrace.h (btrace_is_empty): New.
11874 * record-btrace.c (require_btrace, record_btrace_info): Call
11877 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11879 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11880 Support delta reads.
11881 (linux_disable_btrace): Change return type.
11882 * common/linux-btrace.h (linux_read_btrace): Change parameters
11883 and return type to allow error reporting. Update users.
11884 (linux_disable_btrace): Change return type. Update users.
11885 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11887 (btrace_error): New.
11888 (btrace_block) <begin>: Comment on BEGIN == 0.
11889 * btrace.c (btrace_compute_ftrace): Start from the end of
11891 (btrace_stitch_trace, btrace_clear_history): New.
11892 (btrace_fetch): Read delta trace, return if replaying.
11893 (btrace_clear): Move clear history code to btrace_clear_history.
11894 (parse_xml_btrace): Throw an error if parsing failed.
11895 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11896 and return type to allow error reporting.
11897 (target_read_btrace): Change parameters and return type to allow
11899 * target.c (target_read_btrace): Update.
11900 * remote.c (remote_read_btrace): Support delta reads. Pass
11902 * NEWS: Announce it.
11904 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11906 * record.h (record_btrace_frame_unwind)
11907 (record_btrace_tailcall_frame_unwind): New declarations.
11908 * dwarf2-frame: Include record.h
11909 (dwarf2_frame_cfa): Throw an error for btrace frames.
11910 * record-btrace.c: Include hashtab.h.
11911 (btrace_get_bfun_name): New.
11912 (btrace_call_history): Call btrace_get_bfun_name.
11913 (struct btrace_frame_cache): New.
11915 (bfcache_hash, bfcache_eq, bfcache_new): New.
11916 (btrace_get_frame_function): New.
11917 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11918 (record_btrace_frame_this_id): Compute own id.
11919 (record_btrace_frame_prev_register): Provide PC, throw_error
11920 for all other registers.
11921 (record_btrace_frame_sniffer): Detect btrace frames.
11922 (record_btrace_tailcall_frame_sniffer): New.
11923 (record_btrace_frame_dealloc_cache): New.
11924 (record_btrace_frame_unwind): Add new functions.
11925 (record_btrace_tailcall_frame_unwind): New.
11926 (_initialize_record_btrace): Allocate cache.
11927 * btrace.c (btrace_clear): Call reinit_frame_cache.
11928 * NEWS: Announce it.
11930 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11932 * record-btrace.c (record_btrace_set_replay)
11933 (record_btrace_goto_begin, record_btrace_goto_end)
11934 (record_btrace_goto): New.
11935 (init_record_btrace_ops): Initialize them.
11936 * NEWS: Announce it.
11938 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11940 * record-btrace.c (record_btrace_find_new_threads)
11941 (record_btrace_thread_alive): New.
11942 (init_record_btrace_ops): Initialize to_find_new_threads and
11945 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11947 * record-btrace.c (record_btrace_resume): New.
11948 (record_btrace_wait): New.
11949 (init_record_btrace_ops): Initialize to_wait and to_resume.
11951 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11953 * record-btrace.c (record_btrace_xfer_partial)
11954 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11955 (record_btrace_allow_memory_access): New.
11956 (init_record_btrace_ops): Initialize new methods.
11957 * target.c (raw_memory_xfer_partial): Bail out if target reports
11958 that this memory is not available.
11960 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11962 * target.h (target_ops) <to_insert_breakpoint>
11963 <to_remove_breakpoint>: Add target_ops parameter.
11964 (forward_target_insert_breakpoint): New.
11965 (forward_target_remove_breakpoint): New.
11966 (memory_remove_breakpoint, memory_insert_breakpoint):
11967 Add target_ops parameter.
11968 * target.c (target_insert_breakpoint): Split into this and ...
11969 (forward_target_insert_breakpoint): ... this.
11970 (target_remove_breakpoint): Split into this and ...
11971 (forward_target_remove_breakpoint): ... this.
11972 (debug_to_insert_breakpoint): Add target_ops parameter.
11973 Call forward_target_insert_breakpoint.
11974 (debug_to_remove_breakpoint): Add target_ops parameter.
11975 Call forward_target_remove_breakpoint.
11976 (update_current_target): Do not inherit or default to_insert_breakpoint
11977 and to_remove_breakpoint.
11978 * corelow.c (ignore): Add target_ops parameter.
11979 * exec.c (ignore): Add target_ops parameter.
11980 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11981 Add target_ops parameter.
11982 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11983 Add target_ops parameter.
11984 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11985 Add target_ops parameter.
11986 * record-full.c (record_full_beneath_to_insert_breakpoint)
11987 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11988 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11989 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11990 (record_full_core_remove_breakpoint): Add target_ops parameter.
11992 (record_full_beneath_to_insert_breakpoint_ops)
11993 (record_full_beneath_to_remove_breakpoint_ops)
11994 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11995 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11996 tmp_to_remove_breakpoint_ops,
11997 record_full_beneath_to_insert_breakpoint_ops, and
11998 record_full_beneath_to_remove_breakpoint_ops.
11999 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12000 (m32r_remove_breakpoint): Add target_ops parameter.
12001 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12002 Add target_ops parameter.
12003 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12004 Add target_ops parameter.
12006 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12007 Markus Metzger <markus.t.metzger@intel.com>
12009 * record-btrace.c: Include frame-unwind.h.
12010 (record_btrace_frame_unwind_stop_reason)
12011 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12012 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12014 (init_record_btrace_ops): Install it.
12016 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12018 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12021 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12023 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12026 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12028 * frame-unwind.c: Include target.h.
12029 (frame_unwind_try_unwinder): New function with code from ...
12030 (frame_unwind_find_by_frame): ... here. New variable
12031 unwinder_from_target, call also target_get_unwinder)
12032 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12033 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12034 * target.h (struct target_ops): New fields to_get_unwinder and
12035 to_get_tailcall_unwinder.
12036 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12038 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12040 * record-btrace.c (record_btrace_fetch_registers)
12041 (record_btrace_store_registers)
12042 (record_btrace_to_prepare_to_store): New.
12043 (init_record_btrace_ops): Add the above.
12045 2014-01-16 Tom Tromey <tromey@redhat.com>
12047 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12048 * target.h (struct target_ops) <to_prepare_to_store>: Add
12050 (target_prepare_to_store): Add argument.
12051 * target.c (debug_to_prepare_to_store): Add argument.
12052 (update_current_target): Update.
12053 * remote.c (remote_prepare_to_store): Add 'self' argument.
12054 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12055 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12056 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12057 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12059 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12060 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12061 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12062 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12063 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12065 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12067 * btrace.h (replay) <replay>: New.
12068 (btrace_is_replaying): New.
12069 * btrace.c (btrace_clear): Free replay iterator.
12070 (btrace_is_replaying): New.
12071 * record-btrace.c (record_btrace_is_replaying): New.
12072 (record_btrace_info): Print insn number if replaying.
12073 (record_btrace_insn_history): Start at replay position.
12074 (record_btrace_call_history): Start at replay position.
12075 (init_record_btrace_ops): Init to_record_is_replaying.
12077 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12079 * record-btrace.c (record_btrace_insn_history_range): Include
12081 (record_btrace_insn_history_from): Adjust range.
12082 (record_btrace_call_history_range): Include
12084 (record_btrace_call_history_from): Adjust range.
12085 * NEWS: Announce changes.
12087 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12089 * record.h (enum record_print_flag)
12090 <record_print_indent_calls>: New.
12091 * record.c (get_call_history_modifiers): Recognize /c modifier.
12092 (_initialize_record): Document /c modifier.
12093 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12094 Reorder fields. Optionally indent the function name. Update
12096 * NEWS: Announce changes.
12098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12100 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12102 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12104 * btrace.c (ftrace_new_function): Start counting at one.
12105 * record-btrace.c (record_btrace_info): Adjust number of calls
12107 * NEWS: Announce it.
12109 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12111 * record-btrace.c (btrace_call_history_insn_range): Print
12112 insn range as [begin, end].
12114 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12116 * btrace.h (struct btrace_func_link): New.
12117 (enum btrace_function_flag): New.
12118 (struct btrace_inst): Rename to ...
12119 (struct btrace_insn): ...this. Update all users.
12120 (struct btrace_func) <ibegin, iend>: Remove.
12121 (struct btrace_func_link): New.
12122 (struct btrace_func): Rename to ...
12123 (struct btrace_function): ...this. Update all users.
12124 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12125 (number, level, flags>: New.
12126 (struct btrace_insn_iterator): Rename to ...
12127 (struct btrace_insn_history): ...this.
12129 (struct btrace_insn_iterator, btrace_call_iterator): New.
12130 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12131 (struct btrace_target_info) <begin, end, level>
12132 <insn_history, call_history>: New.
12133 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12134 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12135 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12136 (btrace_call_number, btrace_call_begin, btrace_call_end)
12137 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12138 (btrace_find_function_by_number, btrace_set_insn_history)
12139 (btrace_set_call_history): New.
12140 * btrace.c (btrace_init_insn_iterator)
12141 (btrace_init_func_iterator, compute_itrace): Remove.
12142 (ftrace_print_function_name, ftrace_print_filename)
12143 (ftrace_skip_file): Change
12144 parameter to const.
12145 (ftrace_init_func): Remove.
12146 (ftrace_debug): Use new btrace_function fields.
12147 (ftrace_function_switched): Also consider gaining and
12148 losing symbol information).
12149 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12150 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12151 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12153 (ftrace_new_function): Move. Remove debug print.
12154 (ftrace_update_lines, ftrace_update_insns): New.
12155 (ftrace_update_function): Check for call, ret, and jump.
12156 (compute_ftrace): Renamed to ...
12157 (btrace_compute_ftrace): ...this. Rewritten to compute call
12159 (btrace_fetch, btrace_clear): Updated.
12160 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12161 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12162 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12163 (btrace_call_number, btrace_call_begin, btrace_call_end)
12164 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12165 (btrace_find_function_by_number, btrace_set_insn_history)
12166 (btrace_set_call_history): New.
12167 * record-btrace.c (require_btrace): Use new btrace thread
12169 (record_btrace_info, btrace_insn_history)
12170 (record_btrace_insn_history, record_btrace_insn_history_range):
12171 Use new btrace thread info fields and new iterator.
12172 (btrace_func_history_src_line): Rename to ...
12173 (btrace_call_history_src_line): ...this. Use new btrace
12174 thread info fields.
12175 (btrace_func_history): Rename to ...
12176 (btrace_call_history): ...this. Use new btrace thread info
12177 fields and new iterator.
12178 (record_btrace_call_history, record_btrace_call_history_range):
12179 Use new btrace thread info fields and new iterator.
12181 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12183 * frame.h (frame_id_build_unavailable_stack_special): New.
12184 * frame.c (frame_id_build_unavailable_stack_special): New.
12186 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12188 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12189 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12190 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12192 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12193 (i386_insn_is_jump, i386_jmp_p): New.
12194 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12195 insn_is_jump to gdbarch.
12196 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12197 * gdbarch.h: Regenerated.
12198 * gdbarch.c: Regenerated.
12199 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12200 (default_insn_is_jump): New.
12201 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12202 (default_insn_is_jump): New.
12204 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12206 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12208 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12209 (btrace_read_type) <btrace_read_new>: Change to ...
12210 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12212 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12214 * common/linux-btrace.c (linux_read_btrace): Free trace from
12215 previous iteration.
12217 2014-01-15 Doug Evans <dje@google.com>
12219 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12222 2014-01-15 Tom Tromey <tromey@redhat.com>
12224 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12225 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12226 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12227 (set_objfile_main_name): New function.
12228 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12229 language_of_main>: New fields.
12230 (set_objfile_main_name): Declare.
12231 * symtab.c (find_main_name): Loop over objfiles to find the main
12233 (set_main_name): Now static.
12234 (get_main_info): Add comment.
12235 * symtab.h (set_main_name): Don't declare.
12237 2014-01-15 Tom Tromey <tromey@redhat.com>
12239 * symtab.c (main_progspace_key): New global.
12240 (struct main_info): New.
12241 (name_of_main, language_of_main): Remove.
12242 (get_main_info, main_info_cleanup): New function.
12243 (set_main_name, main_name, main_language): Use get_main_info.
12244 (_initialize_symtab): Initialize main_progspace_key.
12246 2014-01-15 Tom Tromey <tromey@redhat.com>
12248 * dbxread.c (process_one_symbol): Update.
12249 * dwarf2read.c (read_partial_die): Update.
12250 * symfile.c (set_initial_language): Call main_language.
12251 * symtab.c (language_of_main): Now static.
12252 (set_main_name): Add 'lang' parameter.
12253 (find_main_name): Update.
12254 (main_language): New function.
12255 (symtab_observer_executable_changed): Update.
12256 * symtab.h (set_main_name): Update.
12257 (language_of_main): Remove.
12258 (main_language): Declare.
12260 2014-01-15 Tom Tromey <tromey@redhat.com>
12262 * symfile.c (init_entry_point_info): Use new "initialized" field.
12264 * objfiles.h (struct entry_point) <initialized>: New field.
12265 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12266 (struct objfile) <ei>: ...here. Remove.
12267 * objfiles.c (entry_point_address_query): Update.
12269 2014-01-15 Tom Tromey <tromey@redhat.com>
12271 * objfiles.c (entry_point_address_query): Relocate entry point
12273 (objfile_relocate1): Do not relocate entry point address.
12274 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12275 <the_bfd_section_index>: New field.
12276 * symfile.c (init_entry_point_info): Find the entry point's
12279 2014-01-15 Tom Tromey <tromey@redhat.com>
12281 * solib-frv.c (enable_break): Use entry_point_address_query.
12283 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12285 * NEWS: Add note on improved process record-replay on
12286 arm*-linux* targets.
12288 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12290 * arm-tdep.c (enum arm_record_result): New enum.
12291 (arm_record_unsupported_insn): New function.
12292 (arm_record_coproc_data_proc): Removed.
12293 (thumb2_record_ld_st_multiple): New function.
12294 (thumb2_record_ld_st_dual_ex_tbb): New function.
12295 (thumb2_record_data_proc_sreg_mimm): New function.
12296 (thumb2_record_ps_dest_generic): New function.
12297 (thumb2_record_branch_misc_cntrl): New function.
12298 (thumb2_record_str_single_data): New function.
12299 (thumb2_record_ld_mem_hints): New function.
12300 (thumb2_record_ld_word): New function.
12301 (thumb2_record_lmul_lmla_div): New function.
12302 (thumb2_record_decode_insn_handler): New function.
12303 (decode_insn): Add thumb32 instruction handlers.
12305 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12307 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12308 (struct arm_linux_record_tdep): Declare.
12309 (arm_canonicalize_syscall): New function.
12310 (arm_all_but_pc_registers_record): New function.
12311 (arm_linux_syscall_record): New function.
12312 (arm_linux_init_abi): Add syscall recording constructs.
12313 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12314 decoding. (arm_record_coproc_data_proc): Update arm syscall
12316 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12317 <arm_syscall_record>: New field.
12318 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12321 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12323 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12324 register for push instruction recording.
12326 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12328 * arm-tdep.c (thumb_record_misc): Update to correct logical
12329 error while recording ldm, ldmia and pop instructions.
12331 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12333 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12335 2014-01-15 Pedro Alves <palves@redhat.com>
12337 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12338 (go32_resume, go32_fetch_registers, store_register)
12339 (go32_store_registers, go32_prepare_to_store)
12340 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12341 (go32_create_inferior, go32_can_run, go32_terminal_init)
12342 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12345 2014-01-15 Tom Tromey <tromey@redhat.com>
12347 * target.h (async_callback_ftype): New typedef.
12348 (struct target_ops) <to_async>: Use it.
12350 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12352 * python/py-value.c (get_field_type): Remove unnecessary curly
12353 braces for single-statement if block.
12355 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12357 * python/py-type.c (convert_field): Add missing empty line
12358 after declarations.
12360 2014-01-14 Doug Evans <dje@google.com>
12362 * symfile.h (expand_symtabs_matching): Renamed from
12363 expand_partial_symbol_names. Update prototype.
12364 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12365 * symfile.c (expand_symtabs_matching): Renamed from
12366 expand_partial_symbol_names. New args file_matcher, kind.
12367 Rename arg fun to symbol_matcher.
12368 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12369 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12370 ada_expand_partial_symbol_name.
12371 (ada_make_symbol_completion_list): Update to call
12372 expand_symtabs_matching.
12373 (ada_add_global_exceptions): Call expand_symtabs_matching.
12374 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12375 call map_symbol_filenames.
12376 * symtab.c (sources_info): Update to call map_symbol_filenames.
12377 (search_symbols): Call expand_symtabs_matching.
12378 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12379 (default_make_symbol_completion_list_break_on): Update to call
12380 expand_symtabs_matching.
12381 (make_source_files_completion_list): Update to call
12382 map_symbol_filenames.
12384 2014-01-14 Doug Evans <dje@google.com>
12386 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12387 (expand_symtabs_symbol_matcher_ftype): New typedef.
12388 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12389 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12390 * symfile.c (expand_partial_symbol_names): Update to use
12391 expand_symtabs_symbol_matcher_ftype.
12392 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12393 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12394 Arg name_matcher renamed to symbol_matcher.
12395 * psymtab.c (recursively_search_psymtabs): Update to use
12396 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12398 (expand_symtabs_matching_via_partial): Update to use
12399 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12400 Arg name_matcher renamed to symbol_matcher.
12402 2014-01-14 Doug Evans <dje@google.com>
12404 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12405 (map_partial_symbol_filenames): Ditto.
12406 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12407 (map_partial_symbol_filenames): Ditto.
12408 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12409 (map_partial_symbol_filenames): Ditto.
12410 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12411 (map_partial_symbol_filenames): Ditto.
12412 * symtab.c: Delete #include "psymtab.h".
12414 2014-01-14 Pedro Alves <palves@redhat.com>
12415 Tom Tromey <tromey@redhat.com>
12417 * infrun.c (use_displaced_stepping): Use find_record_target
12418 instead of RECORD_IS_USED.
12419 (adjust_pc_after_break): Use record_full_is_used instead of
12421 * record-btrace.c (record_btrace_open): Call record_preopen
12422 instead of checking RECORD_IS_USED.
12423 * record-full.c (record_full_shortname)
12424 (record_full_core_shortname): New globals.
12425 (record_full_is_used): New function.
12426 (find_full_open): Call record_preopen instead of checking
12428 (init_record_full_ops): Set the target's shortname to
12429 record_full_shortname.
12430 (init_record_full_core_ops): Set the target's shortname to
12431 record_full_core_shortname.
12432 * record-full.h (record_full_is_used): Declare.
12433 * record.c (find_record_target): Make extern.
12434 (record_preopen): New function.
12435 * record.h (RECORD_IS_USED): Delete macro.
12436 (find_record_target, record_preopen): Declare functions.
12438 2014-01-14 Yao Qi <yao@codesourcery.com>
12440 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12441 'len''s type to ULONGEST.
12442 (core_xfer_shared_libraries_aix): Likewise.
12443 * gdbarch.c, gdbarch.h: Regenerated.
12444 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12445 Change type of 'len' to ULONGEST.
12446 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12447 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12449 2014-01-14 Yao Qi <yao@codesourcery.com>
12451 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12452 type of 'len' to ULONGEST.
12453 (linux_xfer_osdata_processgroups): Likewise.
12454 (linux_xfer_osdata_threads): Likewise.
12455 (linux_xfer_osdata_fds): Likewise.
12456 (linux_xfer_osdata_isockets): Likewise.
12457 (linux_xfer_osdata_shm): Likewise.
12458 (linux_xfer_osdata_sem): Likewise.
12459 (linux_xfer_osdata_msg): Likewise.
12460 (linux_common_xfer_osdata): Likewise.
12461 (struct osdata_type) <getter>: Likewise.
12462 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12465 2014-01-14 Yao Qi <yao@codesourcery.com>
12467 * target.h (target_xfer_partial_ftype): Update.
12468 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12470 * aix-thread.c (aix_thread_xfer_partial): Change type of
12471 argument 'len' to ULONGEST.
12472 * auxv.c (procfs_xfer_auxv): Likewise.
12473 (ld_so_xfer_auxv): Likewise.
12474 (memory_xfer_auxv): Likewise.
12475 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12476 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12477 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12478 * corelow.c (core_xfer_partial): Likewise.
12479 * ctf.c (ctf_xfer_partial): Likewise.
12480 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12482 (darwin_read_dyld_info): Likewise.
12483 (darwin_xfer_partial): Likewise.
12484 * exec.c (section_table_xfer_memory_partial): Likewise.
12485 (exec_xfer_partial): Likewise.
12486 * exec.h (section_table_xfer_memory_partial): Update
12488 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12489 instead of plongest.
12490 (gnu_xfer_partial): Likewise.
12491 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12492 (ia64_hpux_xfer_solib_got): Likewise.
12493 (ia64_hpux_xfer_partial): Likewise.
12494 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12495 * inf-ptrace.c (inf_ptrace_xfer_partial):
12496 * inf-ttrace.c (inf_ttrace_xfer_partial):
12497 * linux-nat.c (linux_xfer_siginfo): Likewise.
12498 (linux_nat_xfer_partial): Likewise.
12499 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12500 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12501 * monitor.c (monitor_xfer_memory): Likewise.
12502 (monitor_xfer_partial): Likewise.
12503 * procfs.c (procfs_xfer_partial): Likewise.
12504 * record-full.c (record_full_xfer_partial): Likewise.
12505 (record_full_core_xfer_partial): Likewise.
12506 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12507 instead of plongest.
12508 (gdbsim_xfer_partial): Likewise.
12509 * remote.c (remote_xfer_partial): Likewise.
12510 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12511 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12513 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12514 (rs6000_xfer_shared_libraries): Likewise.
12515 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12516 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12517 (sparc_xfer_partial): Likewise.
12518 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12519 (spu_xfer_partial): Likewise.
12520 * spu-multiarch.c (spu_xfer_partial): Likewise.
12521 * target.c (target_read_live_memory): Likewise.
12522 (memory_xfer_live_readonly_partial): Likewise.
12523 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12524 (target_xfer_partial, default_xfer_partial): Likewise.
12525 (current_xfer_partial): Likewise.
12526 * tracepoint.c (tfile_xfer_partial): Likewise.
12527 * windows-nat.c (windows_xfer_memory): Likewise. Call
12528 pulongest instead of plongest.
12529 (windows_xfer_partial): Likewise.
12530 (windows_xfer_shared_libraries): Likewise.
12532 2014-01-14 Yao Qi <yao@codesourcery.com>
12534 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12535 target_xfer_partial_ftype.
12537 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12541 * valops.c (value_struct_elt_bitpos): New function
12542 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12543 object to 'None' if the field name is an empty string ("").
12544 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12545 attribute to look for a field when 'name' is 'None'.
12546 (get_field_type): New function
12548 2014-01-13 Doug Evans <dje@google.com>
12551 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12552 (try_open_dwop_file): Ditto.
12553 * gdb_bfd.c: #include "vec.h".
12554 (bfdp): New typedef.
12555 (struct gdb_bfd_data): New member included_bfds.
12556 (gdb_bfd_unref): Unref all included bfds.
12557 (gdb_bfd_record_inclusion): New function.
12558 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12560 2014-01-13 Tom Tromey <tromey@redhat.com>
12562 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12564 2014-01-13 Tom Tromey <tromey@redhat.com>
12566 * defs.h (use_windows): Remove.
12567 * gdb.c (main): Update.
12568 * main.c (captured_main, gdb_main): Update.
12569 * main.h (struct captured_main_args) <use_windows>: Remove.
12570 * top.c (use_windows): Remove.
12572 2014-01-13 Tom Tromey <tromey@redhat.com>
12574 * defs.h (deprecated_flush_hook): Remove.
12576 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12579 * linux-thread-db.c (try_thread_db_load): Add parameter
12580 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12581 (try_thread_db_load_from_pdir_1): Move it there from here.
12582 (try_thread_db_load_from_sdir): Update caller.
12583 (try_thread_db_load_from_dir): Move it there from here.
12585 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12587 * regformats/regdat.sh: Always rewrite the register file.
12589 2014-01-13 Pedro Alves <palves@redhat.com>
12591 * Makefile.in (CHECK_HEADERS): New variable.
12592 (check-headers:): New rule.
12594 2014-01-13 Tom Tromey <tromey@redhat.com>
12596 * cli/cli-setshow.c (do_set_command): Update.
12597 * defs.h (deprecated_set_hook): Remove.
12598 * top.c (deprecated_set_hook): Remove.
12600 2014-01-13 Pedro Alves <palves@redhat.com>
12602 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12603 the tracepoint if the PC is a pseudo-register.
12605 2014-01-13 Tom Tromey <tromey@redhat.com>
12607 * defs.h (XCALLOC): Remove.
12608 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12609 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12610 * dwarf2loc.c (allocate_piece_closure): Likewise.
12611 * elfread.c (elf_symfile_segments): Likewise.
12612 (elf_symfile_segments): Likewise.
12613 * gdbtypes.c (copy_type_recursive): Likewise.
12614 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12615 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12616 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12618 * mt-tdep.c (mt_gdbarch_init): Likewise.
12619 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12621 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12622 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12623 * registry.c (registry_alloc_data): Likewise.
12624 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12625 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12626 * serial.c (serial_fdopen_ops): Likewise.
12627 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12629 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12630 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12633 2014-01-13 Tom Tromey <tromey@redhat.com>
12635 * defs.h (XMALLOC): Remove.
12636 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12637 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12638 * cli-out.c (struct ui_out *): Likewise.
12639 * cli/cli-dump.c (add_dump_command): Likewise.
12640 (add_dump_command): Likewise.
12641 * complaints.c (get_complaints): Likewise.
12642 (find_complaint): Likewise.
12643 * dwarf2-frame.c (execute_cfa_program): Likewise.
12644 * dwarf2read.c (abbrev_table_read_table): Likewise.
12645 * gdbarch.sh: Likewise.
12646 * gdbarch.c: Rebuild.
12647 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12648 * interps.c (interp_new): Likewise.
12649 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12650 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12651 * mi/mi-console.c (mi_console_file_new): Likewise.
12652 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12653 * mi/mi-out.c (mi_out_new): Likewise.
12654 * mi/mi-parse.c (mi_parse): Likewise.
12655 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12656 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12657 * observer.c (xalloc_observer_list_node): Likewise.
12658 * regcache.c (regcache_xmalloc_1): Likewise.
12659 * reggroups.c (reggroup_new): Likewise.
12660 (_initialize_reggroup): Likewise.
12661 * registry.c (register_data_with_cleanup): Likewise.
12662 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12663 * ser-base.c (serial_ttystate): Likewise.
12664 * ser-mingw.c (make_pipe_state): Likewise.
12665 * ser-pipe.c (pipe_open): Likewise.
12666 * serial.c (serial_open): Likewise.
12667 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12668 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12669 (tui_alloc_win_info): Likewise.
12670 (tui_add_content_elements): Likewise.
12671 * tui/tui-file.c (tui_file_new): Likewise.
12672 * tui/tui-out.c (tui_out_new): Likewise.
12673 * ui-file.c (mem_file_new): Likewise.
12674 * ui-out.c (push_level): Likewise.
12675 (make_cleanup_ui_out_end): Likewise.
12676 (append_header_to_list): Likewise.
12677 (ui_out_new): Likewise.
12678 * user-regs.c (user_reg_add_builtin): Likewise.
12680 2014-01-13 Tom Tromey <tromey@redhat.com>
12682 * defs.h (XZALLOC): Remove.
12683 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12684 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12685 (get_ada_tasks_inferior_data): Likewise.
12686 * auto-load.c (get_auto_load_pspace_data): Likewise.
12687 * auxv.c (get_auxv_inferior_data): Likewise.
12688 * bfd-target.c (target_bfd_reopen): Likewise.
12689 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12690 (deprecated_insert_raw_breakpoint): Likewise.
12691 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12692 * corelow.c (core_open): Likewise.
12693 * darwin-nat.c (darwin_check_new_threads): Likewise.
12694 (darwin_attach_pid): Likewise.
12695 * dummy-frame.c (dummy_frame_push): Likewise.
12696 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12697 * dwarf2loc.c (allocate_piece_closure): Likewise.
12698 * elfread.c (elf_symfile_segments): Likewise.
12699 * eval.c (ptrmath_type_p): Likewise.
12700 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12701 * gdbtypes.c (alloc_type_arch): Likewise.
12702 (alloc_type_instance): Likewise.
12703 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12704 * inf-child.c (inf_child_can_use_agent): Likewise.
12705 * inflow.c (get_inflow_inferior_data): Likewise.
12706 * infrun.c (save_infcall_suspend_state): Likewise.
12707 * jit.c (jit_reader_load): Likewise.
12708 (get_jit_objfile_data): Likewise.
12709 (get_jit_program_space_data): Likewise.
12710 (jit_object_open_impl): Likewise.
12711 (jit_symtab_open_impl): Likewise.
12712 (jit_block_open_impl): Likewise.
12713 (jit_frame_sniffer): Likewise.
12714 * linux-fork.c (add_fork): Likewise.
12715 * maint.c (make_command_stats_cleanup): Likewise.
12716 * objfiles.c (get_objfile_pspace_data): Likewise.
12717 * opencl-lang.c (struct lval_closure): Likewise.
12718 * osdata.c (osdata_start_osdata): Likewise.
12719 * progspace.c (new_address_space): Likewise.
12720 (add_program_space): Likewise.
12721 * remote-sim.c (get_sim_inferior_data): Likewise.
12722 * sh-tdep.c (sh_gdbarch_init): Likewise.
12723 * skip.c (Ignore): Likewise.
12724 (skip_delete_command): Likewise.
12725 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12726 (library_list_start_library): Likewise.
12727 (solib_aix_current_sos): Likewise.
12728 * solib-darwin.c (get_darwin_info): Likewise.
12729 (darwin_current_sos): Likewise.
12730 * solib-dsbt.c (get_dsbt_info): Likewise.
12731 * solib-ia64-hpux.c (new_so_list): Likewise.
12732 (ia64_hpux_get_solib_linkage_addr): Likewise.
12733 * solib-spu.c (append_ocl_sos): Likewise.
12734 (spu_current_sos): Likewise.
12735 * solib-svr4.c (get_svr4_info): Likewise.
12736 (svr4_keep_data_in_core): Likewise.
12737 (library_list_start_library): Likewise.
12738 (svr4_default_sos): Likewise.
12739 (svr4_read_so_list): Likewise.
12740 * solib-target.c (library_list_start_library): Likewise.
12741 (solib_target_current_sos): Likewise.
12742 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12743 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12744 * symfile.c (default_symfile_segments): Likewise.
12745 * target-descriptions.c (tdesc_data_init): Likewise.
12746 (tdesc_create_reg): Likewise.
12747 (struct tdesc_type *): Likewise.
12748 (tdesc_create_vector): Likewise.
12749 (tdesc_set_struct_size): Likewise.
12750 (struct tdesc_type *): Likewise.
12751 (tdesc_free_feature): Likewise.
12752 (tdesc_create_feature): Likewise.
12753 * windows-nat.c (windows_add_thread): Likewise.
12754 (windows_make_so): Likewise.
12755 * xml-support.c (gdb_xml_body_text): Likewise.
12756 (gdb_xml_create_parser_and_cleanup): Likewise.
12757 (xml_process_xincludes): Likewise.
12758 * xml-syscall.c (allocate_syscalls_info): Likewise.
12759 (syscall_create_syscall_desc): Likewise.
12761 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12763 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12764 function, with code from i386_stap_parse_special_token.
12765 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12766 (i386_stap_parse_special_token): Move code to the two functions
12767 above; simplify it.
12769 2014-01-09 Pedro Alves <palves@redhat.com>
12770 Hui Zhu <hui@codesourcery.com>
12773 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12774 bp_err_string. Don't mark the location shlib_disabled if the
12775 error thrown wasn't a generic or memory error. Catch errors
12776 thrown while inserting breakpoints in overlayed code. Output
12777 error message of software breakpoints.
12778 * remote.c (remote_insert_breakpoint): If this breakpoint has
12779 target-side commands but this stub doesn't support Z0 packets,
12780 throw NOT_SUPPORTED_ERROR error.
12781 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12782 * target.h (target_insert_breakpoint): Extend comment.
12783 (target_insert_hw_breakpoint): Add comment.
12785 2014-01-08 Pedro Alves <palves@redhat.com>
12787 * remote.c (remote_add_thread): Add threads silently if starting
12789 (remote_notice_new_inferior): If in all-stop, and starting up,
12790 don't call notice_new_inferior.
12791 (get_current_thread): New function, factored out from ...
12792 (add_current_inferior_and_thread): ... this. Adjust.
12793 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12794 found any thread, then select the remote's current thread as GDB's
12795 current thread too.
12797 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12799 * NEWS: Create a new section for the next release branch.
12800 Rename the section of the current branch, now that it has
12803 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12805 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12806 * version.in: Bump version to 7.7.50.DATE-cvs.
12808 2014-01-08 Yao Qi <yao@codesourcery.com>
12810 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12811 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12812 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12814 2014-01-08 Yao Qi <yao@codesourcery.com>
12816 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12817 return value of bfd_get_filename to symbol_file_add_from_bfd.
12819 2014-01-08 Pierre Muller <muller@sourceware.org>
12822 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12823 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12824 to prim_record_mininal_symbol_and_info.
12825 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12826 in call to prim_record_minimal_symbol_and_info.
12827 (read_pe_exported_syms): Set index field of section_data.
12829 2014-01-07 Andrew Pinski <apinski@cavium.com>
12831 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12832 * features/aarch64.c: Regenerate.
12834 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12836 * target.c (return_null): Define.
12837 (update_current_target): Use it instead of return_zero for
12838 functions that return a pointer.
12840 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12842 * source.c (add_path): Fix check for duplicated paths in the previously
12845 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12847 * ada-lang.c: Remove duplicated include statements.
12848 * alphabsd-nat.c: Ditto.
12849 * amd64-darwin-tdep.c: Ditto.
12850 * amd64fbsd-nat.c: Ditto.
12851 * auto-load.c: Ditto.
12853 * breakpoint.c: Ditto.
12854 * dbxread.c: Ditto.
12855 * fork-child.c: Ditto.
12856 * gdb_usleep.c: Ditto.
12857 * i386-darwin-tdep.c: Ditto.
12858 * i386fbsd-nat.c: Ditto.
12860 * inferior.c: Ditto.
12861 * jv-lang.c: Ditto.
12862 * linux-nat.c: Ditto.
12863 * linux-tdep.c: Ditto.
12864 * m68kbsd-nat.c: Ditto.
12865 * m68klinux-nat.c: Ditto.
12866 * microblaze-tdep.c: Ditto.
12867 * mips-linux-tdep.c: Ditto.
12868 * mn10300-tdep.c: Ditto.
12869 * nto-tdep.c: Ditto.
12870 * opencl-lang.c: Ditto.
12872 * printcmd.c: Ditto.
12873 * regcache.c: Ditto.
12874 * remote-m32r-sdi.c: Ditto.
12876 * symfile.c: Ditto.
12878 * tilegx-linux-nat.c: Ditto.
12879 * tilegx-tdep.c: Ditto.
12880 * tracepoint.c: Ditto.
12882 * vaxbsd-nat.c: Ditto.
12883 * windows-nat.c: Ditto.
12884 * xtensa-tdep.c: Ditto.
12886 2014-01-07 Yao Qi <yao@codesourcery.com>
12888 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12890 2014-01-07 Yao Qi <yao@codesourcery.com>
12891 Joel Brobecker <brobecker@adacore.com>
12893 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12894 (pdc_write_regs): Likewise.
12895 (fetch_regs_kernel_thread): Likewise.
12896 (store_regs_kernel_thread): Likewise.
12898 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12900 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12901 tagged type objects to their actual type.
12903 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12905 * ada-valprint.c (print_field_values): Add "language" parameter.
12906 Update calls to print_field_values and print_variant_part.
12907 Pass new parameter "language" in call to val_print instead
12908 of "current_language". Replace call to ada_val_print by call
12910 (print_variant_part): Add "language" parameter.
12911 (ada_val_print_struct_union): Update call to print_field_values.
12913 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12915 * ada-valprint.c (ui_memcpy): Delete.
12916 (ada_print_floating): Update documentation. Add empty line
12917 between between function documentation and implementation.
12918 Delete variable "buffer". Use ui_file_xstrdup in place of
12919 ui_file_put. Minor adjustments following this change.
12921 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12923 * ada-valprint.c (ada_val_print_string): New function,
12924 extracted from ada_val_print_array.
12925 (ada_val_print_array): Replace extracted code by call
12926 to ada_val_print_string followed by a return. Move
12927 "else" branch to the function's top block.
12929 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12931 * ada-valprint.c (ada_val_print_array): Move implementation
12932 down. Rename parameter "offset" and "val" into "offset_aligned"
12933 and "original_value" respectively. Add parameter "offset".
12935 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12937 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12938 re-organizing the code. Change the "???" message printed
12939 when target type is a TYPE_CODE_UNDEF into
12940 "<ref to undefined type>".
12942 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12944 * ada-valprint.c (print_record): Delete, implementation inlined...
12945 (ada_val_print_struct_union): ... here. Remove call to
12946 ada_check_typedef in inlined implementation.
12948 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12950 * ada-valprint.c (ada_val_print_gnat_array): New function,
12951 extracted from ada_val_print_1;
12952 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12953 (ada_val_print_flt, ada_val_print_struct_union)
12954 (ada_val_print_ref): Likewise.
12955 (ada_val_print_1): Delete variables i and elttype.
12956 Replace extracted-out code by call to corresponding
12959 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12961 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12963 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12965 * ada-valprint.c (ada_val_print_1): Replace calls to
12966 ada_val_print_1 by calls to val_print.
12968 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12970 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12971 Update calls to self accordingly. Replace calls to c_val_print
12972 by calls to val_print.
12974 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12976 * ada-valprint.c (print_record): Delete declaration.
12977 (adjust_type_signedness, ada_val_print_1): Likewise.
12978 (ada_val_print): Move function implementation down.
12979 (print_variant_part, print_field_values, print_record):
12980 Move function implementation up.
12982 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12984 * python/py-type.c (typy_get_name): New function.
12985 (type_object_getset): Add entry for attribute "name".
12986 * NEWS: Add entry mentioning this new attribute.
12988 2014-01-07 Yao Qi <yao@codesourcery.com>
12990 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12993 2014-01-07 Yao Qi <yao@codesourcery.com>
12995 * gnu-nat.c (info_port_rights): Add qualifier const to
12998 2014-01-07 Yao Qi <yao@codesourcery.com>
13000 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13002 2014-01-07 Yao Qi <yao@codesourcery.com>
13004 * gnu-nat.c (make_inf) Update declaration.
13005 (make_inf): Make it static.
13006 (inf_set_traced): Likewise.
13007 (inf_port_to_thread, inf_task_died_status): Likewise.
13009 2014-01-07 Yao Qi <yao@codesourcery.com>
13011 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13013 2014-01-07 Yao Qi <yao@codesourcery.com>
13015 * gnu-nat.c (_initialize_gnu_nat): Declare.
13017 2014-01-07 Yao Qi <yao@codesourcery.com>
13019 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13021 (struct gdbarch_info) <byte_order>: Change type to
13023 <byte_order_for_code>: Likewise.
13024 * gdbarch.c, gdbarch.h: Regenerated.
13026 2014-01-06 Sasha Smundak <asmundak@google.com>
13028 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13030 2014-01-06 Tom Tromey <tromey@redhat.com>
13032 * doublest.c (convert_doublest_to_floatformat): Use const, not
13034 * somread.c (som_symtab_read): Likewise.
13036 2014-01-07 Hui Zhu <hui@codesourcery.com>
13038 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13039 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13040 (gdb_bfd_fopen): Ditto.
13041 (gdb_bfd_openr): Ditto.
13042 (gdb_bfd_openw): Ditto.
13043 (gdb_bfd_openr_iovec): Ditto.
13044 (gdb_bfd_fdopenr): Ditto.
13045 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13046 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13048 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13050 * symfile-mem.c (symbol_file_add_from_memory): Removed
13051 gdb_bfd_stash_filename.
13053 2014-01-03 Doug Evans <dje@google.com>
13055 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13058 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13060 Update year range in copyright notice of all files.
13062 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13064 * top.c (print_gdb_version): Set copyright year to 2014.
13066 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13068 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13070 For older changes see ChangeLog-2013.
13076 version-control: never