1 2014-09-22 Pedro Alves <palves@redhat.com>
3 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
5 * breakpoint.c (enum ugll_insert_mode): New enum.
6 (always_inserted_mode): Now a plain boolean.
7 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
8 (breakpoints_always_inserted_mode): Delete.
9 (breakpoints_should_be_inserted_now): New function.
10 (insert_breakpoints): Pass UGLL_INSERT to
11 update_global_location_list instead of calling
12 insert_breakpoint_locations manually.
13 (create_solib_event_breakpoint_1): New, factored out from ...
14 (create_solib_event_breakpoint): ... this.
15 (create_and_insert_solib_event_breakpoint): Use
16 create_solib_event_breakpoint_1 instead of calling
17 insert_breakpoint_locations manually.
18 (update_global_location_list): Change parameter type from boolean
19 to enum ugll_insert_mode. All callers adjusted. Adjust to use
20 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
21 (update_global_location_list_nothrow): Change parameter type from
22 boolean to enum ugll_insert_mode.
23 (_initialize_breakpoint): "breakpoint always-inserted" option is
24 now a boolean command. Update help text.
25 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
26 (breakpoints_should_be_inserted_now): New declaration.
27 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
28 Remove breakpoints_always_inserted_mode check.
29 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
30 * remote.c (remote_start_remote): Likewise.
32 2014-09-22 Pedro Alves <palves@redhat.com>
34 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
35 (insert_breakpoints): Don't call insert_breakpoint_locations here.
36 Instead, pass UGLL_INSERT to update_global_location_list.
37 (update_global_location_list): Change parameter type from boolean
38 to enum ugll_insert_mode. All callers adjusted. Adjust to use
39 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
40 (create_solib_event_breakpoint_1): New, factored out from ...
41 (create_solib_event_breakpoint): ... this.
42 (create_and_insert_solib_event_breakpoint): Use
43 create_solib_event_breakpoint_1 instead of calling
44 insert_breakpoint_locations manually.
45 (update_global_location_list): Handle UGLL_INSERT.
47 2014-09-22 Pedro Alves <palves@redhat.com>
49 * breakpoint.c (enum ugll_insert_mode): New enum.
50 (update_global_location_list)
51 (update_global_location_list_nothrow): Change parameter type from
52 boolean to enum ugll_insert_mode. All callers adjusted.
54 2014-09-19 Joel Brobecker <brobecker@adacore.com>
56 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
57 SystemTap support in GDB.
59 2014-09-19 Don Breazeal <donb@codesourcery.com>
61 * linux-nat.c (linux_handle_extended_wait): Call
62 linux_ptrace_get_extended_event.
63 (wait_lwp): Call linux_is_extended_waitstatus.
64 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
65 and linux_is_extended_waitstatus.
66 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
67 linux_ptrace_get_extended_event.
68 (linux_ptrace_get_extended_event): New function.
69 (linux_is_extended_waitstatus): New function.
70 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
71 (linux_is_extended_waitstatus): New declarations.
73 2014-09-19 Yao Qi <yao@codesourcery.com>
75 * dwarf2read.c (dwarf_decode_lines): Update declaration.
76 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
77 comments. Callers update.
78 (dwarf_decode_lines): Likewise.
79 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
80 comments. Skip the line table if 'lowpc' is greater than
81 'address'. Don't check
82 dwarf2_per_objfile->has_section_at_zero.
84 2014-09-18 Doug Evans <dje@google.com>
86 * NEWS: Mention new "producer" attribute of gdb.Symtab.
87 * python/py-symtab.c (stpy_get_producer): New function.
88 (symtab_object_getset): Add "producer" attribute.
90 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
93 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
94 (do_captured_read_memory_integer): Remove.
95 (safe_read_memory_integer): Use target_read_memory directly instead
96 of catching errors in do_captured_read_memory_integer.
98 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
100 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
103 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
105 * objc-lang.c (find_implementation_from_class): Remove dead code.
107 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
110 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
111 "fprintf_unfiltered (gdb_stdlog...)".
113 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
116 * breakpoint.h (struct watchpoint): New fields val_bitpos and
118 * breakpoint.c (watch_command_1): Use these fields to retain
119 bitfield information.
120 (extract_bitfield_from_watchpoint_value): New function.
121 (watchpoint_check): Use it.
122 (update_watchpoint): Use it. Optimize the address and length of a
123 HW watchpoint pointing to a bitfield.
124 * value.h (unpack_value_bitfield): New prototype.
125 * value.c (unpack_value_bitfield): Make extern.
127 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
129 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
131 * gnu-nat.c (inf_threads): New function.
132 * gnu-nat.h (inf_threads_ftype): New typedef.
133 (inf_threads): New declaration.
134 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
135 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
136 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
137 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
138 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
139 (i386_gnu_dr_get_control): New functions.
140 (reg_addr): New structure.
141 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
142 i386 debugging register hooks.
143 * NEWS: Mention this.
145 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
147 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
148 vector data transfer instructions.
149 (arm_record_coproc_data_proc): Updated.
151 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
153 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
154 arm_record_exreg_ld_st_insn.
155 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
158 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
160 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
161 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
162 processing instructions.
164 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
166 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
167 for advance SIMD struct ld/st insn.
168 (thumb2_record_decode_insn_handler): Replace stub handler with
169 thumb2_record_asimd_struct_ld_st.
171 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
173 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
174 for asimd, vfp and coprocessor insns.
175 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
176 and coprocessor insns.
177 (thumb2_record_coproc_insn): New function.
178 (thumb2_record_decode_insn_handler): Update coprocessor insns record
180 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
183 2014-09-13 Doug Evans <xdje42@gmail.com>
185 * NEWS: Mention new "queue-signal" command.
186 * infcmd.c (queue_signal_command): New function.
187 (_initialize_infcmd): Add new queue-signal command.
189 2014-09-13 Doug Evans <xdje42@gmail.com>
191 * linux-nat.c (wait_lwp): Add debugging printf.
192 (linux_nat_wait_1): Ditto.
194 2014-09-12 Pedro Alves <palves@redhat.com>
196 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
197 (create_and_insert_solib_event_breakpoint): New functions.
198 * breakpoint.h (create_and_insert_solib_event_breakpoint)
199 (remove_solib_event_breakpoints_at_next_stop): New declarations.
200 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
201 (remove_dbx_link_breakpoint): Delete function.
202 (insert_dbx_link_bpt_in_file): Use
203 create_and_insert_solib_event_breakpoint instead of
204 deprecated_insert_raw_breakpoint.
205 (procfs_wait): Don't check whether we hit __dbx_link here.
206 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
208 * solib-irix.c (base_breakpoint): Delete global.
209 (disable_break): Delete function.
210 (enable_break): Use create_solib_event_breakpoint
211 instead of deprecated_insert_raw_breakpoint.
212 (irix_solib_handle_event): New function.
213 (irix_solib_create_inferior_hook): Don't run the target or disable
214 the mapping-complete breakpoint here.
215 (_initialize_irix_solib): Install irix_solib_handle_event as
216 so_ops->handle_event hook.
218 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
219 Ulrich Weigand <uweigand@de.ibm.com>
222 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
223 instead of read_memory_unsigned_integer.
225 2014-09-12 Gary Benson <gbenson@redhat.com>
227 * nat/linux-waitpid.c: Include common-defs.h.
228 [GDBSERVER]: Add FIXME comment.
229 [!GDBSERVER]: Don't include defs.h or signal.h.
230 (linux_debug) [!GDBSERVER]: Remove empty block.
232 2014-09-12 Gary Benson <gbenson@redhat.com>
234 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
235 Don't include defs.h or server.h.
237 2014-09-12 Gary Benson <gbenson@redhat.com>
239 * nat/linux-btrace.c: Include common-defs.h.
240 Don't include defs.h, server.h or gdbthread.h.
241 * nat/linux-btrace.h (struct target_ops): New forward declaration.
243 2014-09-12 Gary Benson <gbenson@redhat.com>
245 * common/agent.c: Include common-defs.h.
246 Don't include defs.h or server.h.
247 * common/buffer.c: Likewise.
248 * common/common-debug.c: Likewise.
249 * common/common-utils.c: Likewise.
250 * common/errors.c: Likewise.
251 * common/filestuff.c: Likewise.
252 * common/format.c: Likewise.
253 * common/gdb_vecs.c: Likewise.
254 * common/print-utils.c: Likewise.
255 * common/ptid.c: Likewise.
256 * common/rsp-low.c: Likewise.
257 * common/signals.c: Likewise.
258 * common/vec.c: Likewise.
259 * common/xml-utils.c: Likewise.
260 * nat/linux-osdata.c: Likewise.
261 * nat/linux-procfs.c: Likewise.
262 * nat/linux-ptrace.c: Likewise.
263 * nat/mips-linux-watch.c: Likewise.
264 * target/waitstatus.c: Likewise.
266 2014-09-12 Tom Tromey <tromey@redhat.com>
267 Gary Benson <gbenson@redhat.com>
269 * common/common-regcache.h: New file.
270 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
271 * regcache.h: Include common-regcache.h.
272 (regcache_read_pc): Don't declare.
273 * regcache.c (get_thread_regcache_for_ptid): New function.
274 * nat/linux-btrace.c: Don't include regcache.h.
275 Include common-regcache.h.
276 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
278 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
280 * regcache.h (struct regset): Declare.
282 2014-09-11 Pedro Alves <palves@redhat.com>
285 * main.c: Include "infrun.h".
286 (catch_command_errors, catch_command_errors_const): Wait for the
287 foreground command to complete.
288 * top.c (maybe_wait_sync_command_done): New function, factored out
290 (maybe_wait_sync_command_done): ... here.
291 * top.h (maybe_wait_sync_command_done): New declaration.
293 2014-09-11 Tom Tromey <tromey@redhat.com>
294 Gary Benson <gbenson@redhat.com>
296 * common/symbol.h: New file.
297 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
298 * minsyms.c (find_minimal_symbol_address): New function.
299 * common/agent.c: Include common/symbol.h.
300 [!GDBSERVER]: Don't include objfiles.h.
301 (agent_look_up_symbols): Use find_minimal_symbol_address.
303 2014-09-11 Gary Benson <gbenson@redhat.com>
305 * target/target.h (target_stop_ptid, target_continue_ptid):
307 * target.c (target_stop_ptid, target_continue_ptid): New
309 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
310 (agent_run_command): Always use target_stop_ptid and
311 target_continue_ptid.
313 2014-09-11 Tom Tromey <tromey@redhat.com>
314 Gary Benson <gbenson@redhat.com>
316 * target/target.h: New file.
317 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
318 * target.h: Include target/target.h.
319 (target_read_memory, target_write_memory): Don't declare.
320 * target.c (target_read_uint32): New function.
321 * common/agent.c: Include target/target.h.
322 [!GDBSERVER]: Don't include target.h.
323 (helper_thread_id): Type changed to uint32_t.
324 (agent_get_helper_thread_id): Use target_read_uint32.
325 (agent_run_command): Always use target_read_memory and
327 (agent_capability): Type changed to uint32_t.
328 (agent_capability_check): Use target_read_uint32.
330 2014-09-11 Gary Benson <gbenson@redhat.com>
332 * common/common-debug.h (show_debug_regs): Declare.
333 * common/common-debug.c (show_debug_regs): Define.
334 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
335 all uses with show_debug_regs. Replace all uses that considered
336 debug_hw_points as a multi-value integer with straight boolean
338 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
339 with show_debug_regs.
340 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
341 all uses with show_debug_regs.
342 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
343 uses with show_debug_regs.
345 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
347 * findvar.c (address_from_register): Handle targets requiring
348 a special conversion routine even for plain pointer types.
350 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
352 * rs6000-nat.c (exec_one_dummy_insn): Remove.
353 (store_register): Do not call exec_one_dummy_insn.
355 2014-09-10 Joel Brobecker <brobecker@adacore.com>
357 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
358 dereference it first. Use value_enclosing_type instead of
360 (ada_array_length): Likewise.
362 2014-09-10 Joel Brobecker <brobecker@adacore.com>
364 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
365 Adjust function implementation and documentation accordingly.
366 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
367 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
368 Update call to ada_value_ptr_subscript.
370 2014-09-10 Joel Brobecker <brobecker@adacore.com>
372 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
373 instead of VAL's type.
375 2014-09-10 Joel Brobecker <brobecker@adacore.com>
377 * amd64-linux-nat.c: Add <sys/uio.h> #include.
379 2014-09-09 Doug Evans <xdje42@gmail.com>
382 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
383 last parameter to pkg-config, not first.
384 * configure.ac: Pass --with-guile provided pkg-config path to
385 GDB_GUILE_PROGRAM_NAMES.
386 * configure: Regenerate.
388 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
390 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
393 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
395 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
396 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
397 the list of sections determining GDB_OSABI_IRIX.
399 2014-09-09 James Hogan <james.hogan@imgtec.com>
401 * MAINTAINERS (Write After Approval): Add "James Hogan".
403 2014-09-09 James Hogan <james.hogan@imgtec.com>
405 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
407 2014-09-09 Joel Brobecker <brobecker@adacore.com>
409 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
411 2014-09-08 Doug Evans <xdje42@gmail.com>
414 * guile.c: #include <signal.h>.
415 (_initialize_guile): Block SIGCHLD while initializing Guile.
417 Replaces the following, which is reverted.
419 2014-07-26 Doug Evans <xdje42@gmail.com>
422 * configure.ac: Add check for header gc/gc.h.
423 Add check for function setenv.
424 * configure: Regenerate.
425 * config.in: Regenerate.
426 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
428 2014-09-08 Doug Evans <xdje42@gmail.com>
430 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
431 with named constant. Fix style of pointer comparison.
432 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
434 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
437 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
438 decide whether we display the command on "show user".
439 * cli/cli-script.c (show_user_1): Only verify cmdlines after
440 printing command name.
441 * cli/cli-decode.h (cli_user_command_p): Declare new function.
442 * cli/cli-decode.c (cli_user_command_p): Create helper function
443 to verify whether cmd_list_element is a user-defined command.
445 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
448 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
449 Fix goto out of TRY_CATCH.
451 2014-09-06 Doug Evans <xdje42@gmail.com>
452 Tom Tromey <tromey@redhat.com>
455 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
456 $_any_caller_matches.
457 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
458 * python/lib/gdb/function/caller_is.py: New file.
460 2014-09-06 Doug Evans <xdje42@gmail.com>
462 * infcmd.c (program_info): Fix typo.
464 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
467 * stap-probe.c (stap_parse_single_operand): Delete unused variable
468 'number'. New variable 'has_digit'. Rewrite code to deal with
469 subexpressions on SDT probes.
471 2014-09-04 Pedro Alves <palves@redhat.com>
473 * c-exp.y (parse_number): Skip handling base-switching prefixes if
474 the input is only one character long.
476 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
479 * f-valprint.c (f_val_print): Specify the correct print option to
480 use when printing integer values.
482 2014-09-04 Gary Benson <gbenson@redhat.com>
484 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
485 Remove code to cope with LWPs wrapped as PIDs.
486 Add assertions to ensure no wrapped LWPs are passed.
488 2014-09-04 Pedro Alves <palves@redhat.com>
490 * value.c (value_ranges_copy_adjusted): New function, factored out
492 (value_contents_copy_raw): ... here.
493 (unpack_value_bits_as_long_1): Rename back to ...
494 (unpack_bits_as_long): ... this. Remove 'original_value' and
495 'result' parameters. Change return type to LONGEST.
496 (unpack_value_bits_as_long): Delete.
497 (unpack_value_field_as_long_1): Delete.
498 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
499 (unpack_value_bitfield): New function.
500 (value_field_bitfield): Reimplement using unpack_value_bitfield.
501 (value_fetch_lazy): Use unpack_value_bitfield.
502 * value.h (unpack_value_bits_as_long): Delete declaration.
504 2014-09-03 Sasha Smundak <asmundak@google.com>
506 * python/py-frame.c (frapy_read_register): New function.
508 2014-09-03 James Hogan <james.hogan@imgtec.com>
510 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
511 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
513 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
516 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
518 (add_cmd): Set "completer_handle_brkchars" to NULL.
519 * cli/cli-decode.h (struct cmd_list_element)
520 <completer_handle_brkchars>: New field.
521 * command.h (completer_ftype_void): New typedef.
522 (set_cmd_completer_handle_brkchars): New prototype.
523 * completer.c (set_gdb_completion_word_break_characters): New
525 (complete_line_internal): Call "completer_handle_brkchars"
526 callback from command.
527 * completer.h: Include "command.h".
528 (set_gdb_completion_word_break_characters): New prototype.
529 * python/py-cmd.c (cmdpy_completer_helper): New function.
530 (cmdpy_completer_handle_brkchars): New function.
531 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
532 (cmdpy_init): Set completer_handle_brkchars to
533 cmdpy_completer_handle_brkchars.
535 2014-09-03 Gary Benson <gbenson@redhat.com>
537 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
538 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
539 Loop conditions changed to equivalent form.
540 (struct x86_debug_reg_state): Updated dr_ref_count comment.
541 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
542 ALL_DEBUG_ADDRESS_REGISTERS.
544 2014-09-03 Joel Brobecker <brobecker@adacore.com>
546 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
549 2014-09-02 Doug Evans <dje@google.com>
551 * typeprint.c (find_global_typedef): Fix comment.
553 2014-09-02 Gary Benson <gbenson@redhat.com>
555 * i386-nat.h: Renamed as...
556 * x86-nat.h: New file. All type, function and variable name
557 prefixes changed from "i386_" to "x86_". All references updated.
558 * i386-nat.c: Renamed as...
559 * x86-nat.c: New file. All type, function and variable name
560 prefixes changed from "i386_" to "x86_". All references updated.
561 * common/i386-xstate.h: Renamed as...
562 * common/x86-xstate.h: New file. All type, function and variable
563 name prefixes changed from "i386_" to "x86_". All references
565 * nat/i386-cpuid.h: Renamed as...
566 * nat/x86-cpuid.h: New file. All type, function and variable name
567 prefixes changed from "i386_" to "x86_". All references updated.
568 * nat/i386-gcc-cpuid.h: Renamed as...
569 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
570 name prefixes changed from "i386_" to "x86_". All references
572 * nat/i386-dregs.h: Renamed as...
573 * nat/x86-dregs.h: New file. All type, function and variable name
574 prefixes changed from "i386_" to "x86_". All references updated.
575 * nat/i386-dregs.c: Renamed as...
576 * nat/x86-dregs.c: New file. All type, function and variable name
577 prefixes changed from "i386_" to "x86_". All references updated.
579 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
581 * varobj.c (_initialize_varobj): Move to the end of file.
583 2014-08-29 Gary Benson <gbenson@redhat.com>
585 * common/common-exceptions.h: New file.
586 * common/common-exceptions.c: Likewise.
587 * Makefile.in (SFILES): Add common/common-exceptions.c.
588 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
589 (COMMON_OBS): Add common-exceptions.o.
590 (common-exceptions.o): New rule.
591 * exceptions.h (common-exceptions.h): Include.
592 (gdb_setjmp.h): Do not include.
593 (return_reason): Moved to common-exceptions.h.
594 (enum return_reason): Likewise.
595 (RETURN_MASK): Likewise.
596 (typedef return_mask): Likewise.
597 (enum errors): Likewise.
598 (struct gdb_exception): Likewise.
599 (exceptions_state_mc_init): Likewise.
600 (exceptions_state_mc_action_iter): Likewise.
601 (exceptions_state_mc_action_iter_1): Likewise.
602 (TRY_CATCH): Likewise.
603 (throw_exception): Likewise.
604 (throw_verror): Likewise.
605 (throw_vquit): Likewise.
606 (throw_error): Likewise.
607 (throw_quit): Likewise.
608 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
609 (enum catcher_action): Likewise.
610 (struct catcher): Likewise.
611 (current_catcher): Likewise.
612 (catcher_list_size): Likewise.
613 (exceptions_state_mc_init): Likewise.
614 (catcher_pop): Likewise.
615 (exceptions_state_mc): Likewise.
616 (exceptions_state_mc_action_iter): Likewise.
617 (exceptions_state_mc_action_iter_1): Likewise.
618 (throw_exception): Likewise.
619 (exception_messages): Likewise.
620 (exception_messages_size): Likewise.
621 (throw_it): Likewise.
622 (throw_verror): Likewise.
623 (throw_vquit): Likewise.
624 (throw_error): Likewise.
625 (throw_quit): Likewise.
626 (prepare_to_throw_exception): New function.
628 2014-08-29 Gary Benson <gbenson@redhat.com>
630 * common/gdb_setjmp.h: New file.
631 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
632 * configure.ac: Move sigsetjmp check...
633 * common/common.m4: ...here.
634 * configure: Regenerate.
635 * cp-support.c (SIGJMP_BUF): Delete.
636 (SIGSETJMP): Likewise.
637 (SIGLONGJMP): Likewise.
638 * exceptions.h (gdb_setjmp.h): Include.
639 (setjmp.h): Do not include.
640 (EXCEPTIONS_SIGJMP_BUF): Delete.
641 (EXCEPTIONS_SIGSETJMP): Likewise.
642 (EXCEPTIONS_SIGLONGJMP): Likewise.
643 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
645 * exceptions.c: Likewise.
647 2014-08-29 Gary Benson <gbenson@redhat.com>
649 * cleanups.h: Moved to...
650 * common/cleanups.h: New file.
651 * cleanups.c: Moved to...
652 * common/cleanups.c: New file. Include common-defs.h and
653 cleanups.h. Do not include defs.h.
654 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
655 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
656 (cleanups.o): New rule.
658 2014-08-29 Gary Benson <gbenson@redhat.com>
660 * common/errors.h (internal_warning): New declaration.
661 (internal_vwarning): Likewise.
662 * common/errors.c (internal_warning): New function.
663 * utils.h (internal_warning): Don't declare.
664 (internal_vwarning): Likewise.
665 * utils.c (internal_warning): Removed.
667 2014-08-29 Gary Benson <gbenson@redhat.com>
669 * main.c (captured_main): Use warning during startup.
670 Prefix startup warning messages with command name.
672 2014-08-29 Gary Benson <gbenson@redhat.com>
674 * main.c (captured_main): Handle usage errors with error.
676 2014-08-29 Gary Benson <gbenson@redhat.com>
678 * go32-nat.c (go32_create_inferior): Replace a fprintf/
679 exit pair with a call to error. Wrap the message with _().
681 2014-08-29 Gary Benson <gbenson@redhat.com>
683 * main.c (captured_main): Replace a fprintf/exit
684 pair with a call to error. Wrap the message with _().
686 2014-08-29 Gary Benson <gbenson@redhat.com>
688 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
689 pairs with calls to error. Wrap the message with _().
691 2014-08-29 Gary Benson <gbenson@redhat.com>
693 * utils.c (vwarning): Protect calls to target_terminal_ours
696 2014-08-29 Gary Benson <gbenson@redhat.com>
698 * exceptions.c (print_flush): Protect calls to
699 target_terminal_ours and wrap_here.
701 2014-08-29 Gary Benson <gbenson@redhat.com>
703 * utils.h (filtered_printing_initialized): New declaration.
704 * utils.c (abort_with_message): New function.
705 (internal_vproblem): Use abort_with_message for first level
706 recursive internal problems, and if gdb_stderr is not set up.
707 Protect calls to target_terminal_ours, begin_line and query.
709 2014-08-28 Doug Evans <dje@google.com>
711 * symtab.c (in_prologue): Move definition to better spot.
712 (skip_prologue_using_sal): Ditto.
714 2014-08-28 Doug Evans <dje@google.com>
716 * symtab.c (find_function_start_sal): Move definition to better spot.
718 2014-08-28 Yao Qi <yao@codesourcery.com>
720 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
721 found_stack_adjust in forward scan. Remove condition check
722 on found_stack_adjust which is always true. Indent the code.
724 2014-08-28 Yao Qi <yao@codesourcery.com>
726 * dwarf2read.c (dwarf_decode_lines): Update declaration.
727 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
728 (dwarf_decode_lines): Remove argument
729 want_line_info. Remove condition check on want_line_info.
732 2014-08-27 Doug Evans <dje@google.com>
734 * dwarf2read.c (dwarf_record_line): Fix typo.
736 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
738 * target.h (struct target_ops::to_terminal_save_ours): Remove
740 (target_terminal_save_ours): Remove macro.
741 * target-delegates.c: Regenerate.
742 * inf-child.c (inf_child_target): Don't set the nonexistent
743 field to_terminal_save_ours.
744 * inferior.h (child_terminal_save_ours): Remove declaration.
745 * terminal.h (gdb_save_tty_state): New declaration.
746 * inflow.c (child_terminal_save_ours): Rename to ...
747 (gdb_save_tty_state): ... this.
748 * tui/tui.c: Include terminal.h.
749 (tui_enable): Use gdb_save_tty_state instead of
750 target_terminal_save_ours.
751 (tui_disable): Likewise.
753 2014-08-25 Doug Evans <dje@google.com>
755 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
756 Pass NULL instead of 0 for context pointer.
758 2014-08-25 Yao Qi <yao@codesourcery.com>
760 * dwarf2read.c: Fix grammatical error.
762 2014-08-24 Yao Qi <yao@codesourcery.com>
764 * dwarf2read.c (scan_partial_symbols): Update comments.
765 Rename argument 'need_pc' with 'set_addrmap'.
766 (add_partial_namespace): Rename argument 'need_pc' with
768 (add_partial_module): Likewise.
769 (add_partial_subprogram): Likewise. Update comments.
770 (dwarf2_name): Fix typo.
772 2014-08-22 Doug Evans <dje@google.com>
775 * dwarf2read.c (dwarf_record_line_p): New function.
776 (dwarf_decode_lines_1): Ignore subsequent line number entries
777 for the same line if any entry had a non-zero discriminator.
779 2014-08-22 Doug Evans <dje@google.com>
781 * buildsym.h (record_line_ftype): New typedef.
782 (record_line): Use it.
783 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
784 (dwarf_decode_lines_1): Call them.
786 2014-08-22 Yao Qi <yao@codesourcery.com>
788 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
789 (ctf_end): Remove code.
791 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
793 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
794 (linux_make_corefile_notes): call update_thread_list, protected against
797 2014-08-21 Pedro Alves <palves@redhat.com>
799 * infcmd.c (attach_command): Remove comment.
801 2014-08-21 Bin Cheng <bin.cheng@arm.com>
803 * aarch64-linux-nat.c (dr_changed_t): Change the type from
804 unsigned LONGEST to ULONGEST.
806 2014-08-20 Pedro Alves <palves@redhat.com>
808 * Makefile.in (check-read1): New rule.
810 2014-08-20 Joel Brobecker <brobecker@adacore.com>
812 * value.c (value_from_contents_and_address): Strip resolved_type's
813 typedef layers before checking its TYPE_DATA_LOCATION.
815 2014-08-20 Pedro Alves <palves@redhat.com>
817 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
819 2014-08-20 Yao Qi <yao@codesourcery.com>
821 * amd64-tdep.c (amd64_classify): Add a blank line after the
822 example. Move "*/" to a new line.
823 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
824 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
825 * dwarf2read.c (psymtab_include_file_name): Likewise.
827 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
828 Pedro Alves <palves@redhat.com>
832 * ada-lang.c (coerce_unspec_val_to_type): Use
833 value_contents_copy_raw.
834 * ada-valprint.c (val_print_packed_array_elements): Adjust.
835 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
836 * cp-valprint.c (cp_print_value_fields): Let the common printing
837 code handle optimized out values.
838 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
839 * d-valprint.c (dynamic_array_type): Use
840 value_bits_any_optimized_out.
841 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
842 check_any_valid fields.
843 (check_pieced_value_bits): Delete and inline ...
844 (check_pieced_synthetic_pointer): ... here.
845 (check_pieced_value_validity): Delete.
846 (check_pieced_value_invalid): Delete.
847 (pieced_value_funcs): Remove check_validity and check_any_valid
849 (read_pieced_value): Use mark_value_bits_optimized_out.
850 (write_pieced_value): Switch to use
851 mark_value_bytes_optimized_out.
852 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
853 of assuming the whole value is optimized out.
854 * findvar.c (read_frame_register_value): Remove special handling
855 of optimized out registers.
856 (value_from_register): Use mark_value_bytes_optimized_out.
857 * frame-unwind.c (frame_unwind_got_optimized): Use
858 mark_value_bytes_optimized_out.
859 * jv-valprint.c (java_value_print): Adjust.
860 (java_print_value_fields): Let the common printing code handle
861 optimized out values.
862 * mips-tdep.c (mips_print_register): Remove special handling of
863 optimized out registers.
864 * opencl-lang.c (lval_func_check_validity): Delete.
865 (lval_func_check_any_valid): Delete.
866 (opencl_value_funcs): Remove check_validity and check_any_valid
868 * p-valprint.c (pascal_object_print_value_fields): Let the common
869 printing code handle optimized out values.
870 * stack.c (read_frame_arg): Remove special handling of optimized
871 out values. Fetch both VAL and ENTRYVAL before comparing
872 contents. Adjust to value_available_contents_eq rename.
873 * valprint.c (valprint_check_validity)
874 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
875 (val_print_array_elements): Adjust.
876 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
877 (value_bits_any_optimized_out): New function.
878 (value_entirely_covered_by_range_vector): New function, factored
879 out from value_entirely_unavailable.
880 (value_entirely_unavailable): Reimplement.
881 (value_entirely_optimized_out): New function.
882 (insert_into_bit_range_vector): New function, factored out from
883 mark_value_bits_unavailable.
884 (mark_value_bits_unavailable): Reimplement.
885 (struct ranges_and_idx): New struct.
886 (find_first_range_overlap_and_match): New function, factored out
887 from value_available_contents_bits_eq.
888 (value_available_contents_bits_eq): Rename to ...
889 (value_contents_bits_eq): ... this. Check both unavailable
890 contents and optimized out contents.
891 (value_available_contents_eq): Rename to ...
892 (value_contents_eq): ... this.
893 (allocate_value_lazy): Remove reference to the old optimized_out
895 (allocate_optimized_out_value): Use
896 mark_value_bytes_optimized_out.
897 (require_not_optimized_out): Adjust to check whether the
898 optimized_out vec is empty.
899 (ranges_copy_adjusted): New function, factored out from
900 value_contents_copy_raw.
901 (value_contents_copy_raw): Also copy the optimized out ranges.
902 Assert the destination ranges aren't optimized out.
903 (value_contents_copy): Update comment, remove call to
904 require_not_optimized_out.
905 (value_contents_equal): Adjust to check whether the optimized_out
907 (set_value_optimized_out, value_optimized_out_const): Delete.
908 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
910 (value_entirely_optimized_out, value_bits_valid): Delete.
911 (value_copy): Take a VEC copy of the 'optimized_out' field.
912 (value_primitive_field): Remove special handling of optimized out.
913 (value_fetch_lazy): Assert that lazy values have no unavailable
914 regions. Use value_bits_any_optimized_out. Remove some special
915 handling for optimized out values.
916 * value.h: Add intro comment about <optimized out> and
918 (struct lval_funcs): Remove check_validity and check_any_valid
920 (set_value_optimized_out, value_optimized_out_const): Remove.
921 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
923 (value_bits_any_optimized_out): New declaration.
924 (value_bits_valid): Delete declaration.
925 (value_available_contents_eq): Rename to ...
926 (value_contents_eq): ... this, and extend comments.
928 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
930 Fix -fsanitize=address on unreadable inferior strings.
931 * valprint.c (val_print_string): Fix access before BUFFER.
933 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
935 * target.c (target_struct_size): Remove.
936 (target_struct_allocsize): Remove.
937 (DEFAULT_ALLOCSIZE): Remove.
938 (target_ops_p): New typedef.
939 (DEF_VEC_P (target_ops_p)): New vector type.
940 (target_structs): Change type to VEC (target_ops_p).
941 (add_target_with_completer): Replace "push" code by VEC_safe_push.
942 (find_default_run_target): Rewrite for loop following changes to
945 2014-08-19 Joel Brobecker <brobecker@adacore.com>
947 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
948 Adjust code accordingly. Adjust function description comment.
950 2014-08-19 Yao Qi <yao@codesourcery.com>
952 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
955 2014-08-19 Alan Modra <amodra@gmail.com>
957 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
958 * config.in: Regenerate.
959 * configure: Regenerate.
961 2014-08-19 Tom Tromey <tromey@redhat.com>
962 Gary Benson <gbenson@redhat.com>
964 * common/common-debug.h: New file.
965 * common/common-debug.c: Likewise.
967 * Makefile.in (SFILES): Add common/common-debug.c.
968 (HFILES_NO_SRCDIR): Add common/common-debug.h.
969 (COMMON_OBS): Add common-debug.o and debug.o.
970 (common-debug.o): New rule.
971 * common/common-defs.h: Include common-debug.h.
972 * common/agent.c (debug_agent_printf): New function.
973 (DEBUG_AGENT): Redefine.
974 * nat/i386-dregs.c (debug_printf): Undefine.
976 2014-08-19 Gary Benson <gbenson@redhat.com>
978 * common/common-defs.h: Include print-utils.h.
979 * utils.h: Do not include print-utils.h.
981 2014-08-19 Tom Tromey <tromey@redhat.com>
982 Gary Benson <gbenson@redhat.com>
984 * common/common-types.h: New file.
985 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
986 * common/common-defs.h: Include common-types.h.
987 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
990 2014-08-19 Tom Tromey <tromey@redhat.com>
991 Gary Benson <gbenson@redhat.com>
993 * common/errors.h: New file.
994 * common/errors.c: Likewise.
995 * Makefile.in (SFILES): Add common/errors.c.
996 (HFILES_NO_SRCDIR): Add common/errors.h.
997 (COMMON_OBS): Add errors.o.
998 (errors.o): New rule.
999 * common/common-defs.h: Include errors.h.
1000 * utils.h (perror_with_name, error, verror, warning, vwarning):
1002 * common/common-utils.h: (malloc_failure, internal_error):
1005 2014-08-19 Gary Benson <gbenson@redhat.com>
1007 * utils.c (internal_vproblem): Always print the message.
1009 2014-08-18 Doug Evans <dje@google.com>
1011 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1013 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1015 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1016 Return 0 if TYPE is dynamic.
1017 (print_range): Add handling of dynamic ranges.
1019 2014-08-18 Keven Boell <keven.boell@intel.com>
1020 Joel Brobecker <brobecker@adacore.com>
1022 * gdbtypes.h (struct main_type): Add field "data_location".
1023 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1024 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1025 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1026 a dynamic data location.
1027 (resolve_dynamic_type): Add DW_AT_data_location handling.
1028 (copy_recursive, copy_type): Copy the data_location information
1030 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1031 * value.c (value_from_contents_and_address): Add
1032 DW_AT_data_location handling.
1034 2014-08-18 Keven Boell <keven.boell@intel.com>
1035 Joel Brobecker <brobecker@adacore.com>
1037 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1038 field "get_object_address".
1039 * dwarf2expr.c (execute_stack_op): Add handling for
1040 DW_OP_push_object_address.
1041 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1042 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1043 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1044 (dwarf_expr_get_obj_addr): New function.
1045 (dwarf_expr_ctx_funcs): Add get_object_address field.
1046 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1047 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1048 (dwarf2_evaluate_property): Add parameter "address". Use it.
1049 (needs_get_obj_addr): New function.
1050 (needs_frame_ctx_funcs): Add get_object_address field.
1051 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1052 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1053 (resolve_dynamic_array): Likewise.
1055 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1057 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1058 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1059 fixed value for records and unions for which some GNAT encodings
1062 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1064 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1065 rewrite to avoid "else if" and "else" constructs. Should be
1066 a no-op in practice.
1068 2014-08-18 Joel Brobecker <brobecker@adacore.com>
1070 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1073 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1076 * eval.c: Update all calls to find_overload_match.
1077 * valarith.c: Likewise.
1078 (value_user_defined_cpp_op, value_user_defined_op): New
1079 argument NOSIDE. Update all callers.
1080 * valops.c (find_overload_match): New argument NOSIDE.
1081 * value.h (find_overload_match): Update signature.
1083 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1085 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1086 'items' methods instead of 'iteritems' method on dictionaries.
1088 2014-08-15 Doug Evans <dje@google.com>
1090 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1093 2014-08-15 Doug Evans <dje@google.com>
1095 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1097 2014-08-15 Doug Evans <dje@google.com>
1099 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1101 2014-08-15 Doug Evans <dje@google.com>
1103 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1106 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1108 * dcache.h: Include target.h, to avoid compile time warnings.
1110 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1112 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1113 frame_info" partial declaration.
1114 * gdbarch.h: Regenerate.
1116 2014-08-15 Yao Qi <yao@codesourcery.com>
1118 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1119 Add parameter 'decode_for_pst_p'. Callers update.
1121 2014-08-13 Yao Qi <yao@codesourcery.com>
1124 * configure.ac: Use local variable 'pos'.
1125 * configure: Regenerated.
1127 2014-08-11 Doug Evans <dje@google.com>
1129 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1130 message, it is redundant with "Reading symbols from ..." message.
1132 2014-08-10 Doug Evans <xdje42@gmail.com>
1134 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1136 2014-08-09 Yao Qi <yao@codesourcery.com>
1139 * remote.c (remote_xfer_partial): Remove dead code.
1141 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1143 * ia64-linux-tdep.c: Include "regset.h".
1144 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1145 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1146 (ia64_linux_supply_fpregset): New function.
1147 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1148 (ia64_linux_regset_from_core_section): New function.
1149 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1152 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1154 * m68klinux-tdep.c: Include "regset.h".
1155 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1156 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1157 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1158 (m68k_linux_regset_from_core_section): New function.
1159 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1162 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1164 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1165 function. Move logic to...
1166 (tilegx_linux_regmap): ... this new register map.
1167 (tilegx_linux_regset): Refer to register map, replace supply
1168 method by regcache_supply_regset, and add collect method.
1169 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1170 TILEGX_FIRST_EASY_REGNUM.
1172 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1174 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1175 that calls regcache_supply_regset and handles the EPC register
1176 separately. Move main logic to...
1177 (score7_linux_gregmap): ... this new register map.
1178 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1179 (score7_linux_gregset): Refer to register map. Add collect method.
1180 (score7_linux_regset_from_core_section): Replace
1181 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1182 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1183 (struct regset): Delete unused forward declaraction.
1184 (struct pt_regs): Delete structure definition.
1185 (elf_gregset_t): Delete typedef.
1187 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1189 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1190 (nios2_core_regset): Add collect method.
1192 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1194 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1195 platform-independent and don't write to read-only input buffer.
1196 (m32r_linux_collect_gregset): New function.
1197 (m32r_linux_gregset): Add collect method.
1199 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1201 * hppa-linux-tdep.c (greg_map): Rename to...
1202 (hppa_linux_gregmap): ... this. Also convert to
1203 regcache_map_entry format.
1204 (hppa_linux_supply_regset): Delete function.
1205 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1206 (hppa_linux_fpregmap): ... this new register map.
1207 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1208 register map, replace supply method by regcache_supply_regset, and
1209 add collect method regcache_collect_regset.
1211 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1213 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1214 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1215 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1216 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1217 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1218 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1219 (frv_linux_supply_gregset): Replace main logic by call to
1220 regcache_supply_regset, but keep clearing gr32-gr63.
1221 (frv_linux_supply_fpregset): Delete function.
1222 (frv_linux_gregset): Refer to appropriate register map and add
1223 regcache_collect_regset as the collect method.
1224 (frv_linux_fpregset): Likewise. Also exchange the supply method
1225 by regcache_supply_regset.
1227 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1229 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1230 by call to alpha_supply_int_regs.
1231 (alpha_linux_collect_gregset): New function.
1232 (alpha_linux_supply_fpregset): Replace logic by call to
1233 alpha_supply_fp_regs.
1234 (alpha_linux_collect_fpregset): New function.
1235 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1237 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1239 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1240 by call to regcache_collect_regset.
1241 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1242 instead of aarch64_linux_supply_gregset/_fpregset.
1243 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1244 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1245 header file instead.
1246 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1247 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1248 functions. Move logic to ...
1249 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1251 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1252 refer to new register maps, replace *_regset_from_core by
1253 regcache_supply_regset, and also use regcache_collect_regset.
1254 * aarch64-linux-tdep.h: Include "regset.h".
1255 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1257 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1258 macros, moved from C source file.
1259 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1260 variable declarations.
1262 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1264 * s390-linux-nat.c: Include "regset.h".
1265 (regmap_gregset): Delete macro.
1266 (s390_64_regmap_gregset): New register map for
1267 regcache_supply/_collect_regset.
1268 (s390_64_gregset): New regset.
1269 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1270 (regmap_fpregset): Delete macro.
1271 (s390_native_supply, s390_native_collect): Delete functions.
1272 (supply_gregset, fill_gregset): Replace s390-specific regmap
1273 handling by a call to regcache_supply/_collect_regset.
1274 (supply_fpregset, fill_fpregset): Call regcache_supply/
1275 _collect_regset instead of s390_native_supply/_collect.
1276 (fetch_regset, store_regset): Likewise. Also change the last
1277 parameter to a regset instead of a regmap.
1278 (s390_linux_fetch_inferior_registers)
1279 (390_linux_store_inferior_registers): Adjust last parameter in
1280 calls to fetch_regset and store_regset.
1281 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1282 (s390_gregmap): ... this. Also make static const and convert to
1283 regcache_map_entry format.
1284 (s390x_regmap_gregset): Delete.
1285 (s390_regmap_fpregset): Rename to...
1286 (s390_fpregmap): ... this. Make static const and convert to
1287 regcache_map_entry format.
1288 (s390_regmap_upper, s390_regmap_last_break)
1289 (s390x_regmap_last_break, s390_regmap_system_call)
1290 (s390_regmap_tdb): Likewise.
1291 (s390_supply_regset, s390_collect_regset): Remove functions.
1292 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1294 (s390_gregset, s390_fpregset, s390_upper_regset)
1295 (s390_last_break_regset, s390x_last_break_regset)
1296 (s390_system_call_regset, s390_tdb_regset): Make global and
1297 replace s390_supply/_collect_regset by regcache_supply/
1299 (s390x_gregset): Delete.
1300 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1301 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1302 (s390_regmap_fpregset, s390_regmap_last_break)
1303 (s390x_regmap_last_break, s390_regmap_system_call)
1304 (s390_regmap_tdb): Delete global variable declarations.
1305 (s390_gregset, s390_fpregset, s390_last_break_regset)
1306 (s390x_last_break_regset, s390_system_call_regset)
1307 (s390_tdb_regset): New global variable declarations.
1309 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1311 * regcache.c: Include "regset.h".
1312 (regcache_transfer_regset): New local function.
1313 (regcache_supply_regset, regcache_collect_regset): New functions.
1314 * regcache.h (struct regcache_map_entry): New structure.
1315 (REGCACHE_MAP_SKIP): New enum value.
1316 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1318 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1320 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1321 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1322 (ppc_linux_collect_gregset ): Likewise.
1323 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1324 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1325 (ppc_collect_vrregset): Likewise.
1326 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1329 2014-08-07 Yao Qi <yao@codesourcery.com>
1331 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1332 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1333 * remote.c (remote_read_bytes): Likewise.
1335 2014-08-07 Yao Qi <yao@codesourcery.com>
1337 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1339 2014-08-07 Yao Qi <yao@codesourcery.com>
1342 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1343 TARGET_XFER_OK instead of 0.
1345 2014-08-07 Gary Benson <gbenson@redhat.com>
1347 * common/common-defs.h: Include errno.h.
1348 * defs.h: Do not include errno.h.
1349 * ada-typeprint.c: Likewise.
1350 * c-typeprint.c: Likewise.
1351 * core-regset.c: Likewise.
1352 * corefile.c: Likewise.
1353 * corelow.c: Likewise.
1354 * event-loop.c: Likewise.
1355 * f-typeprint.c: Likewise.
1356 * gnu-nat.c: Likewise.
1357 * go32-nat.c: Likewise.
1358 * i386gnu-nat.c: Likewise.
1359 * m2-typeprint.c: Likewise.
1360 * nat/linux-btrace.c: Likewise.
1361 * p-typeprint.c: Likewise.
1362 * procfs.c: Likewise.
1363 * remote-sim.c: Likewise.
1364 * rs6000-nat.c: Likewise.
1365 * target.c: Likewise.
1366 * typeprint.c: Likewise.
1367 * ui-file.c: Likewise.
1368 * valops.c: Likewise.
1369 * valprint.c: Likewise.
1371 2014-08-07 Gary Benson <gbenson@redhat.com>
1373 * common/common-defs.h: Include string.h.
1374 * aarch64-tdep.c: Do not include string.h.
1375 * ada-exp.y: Likewise.
1376 * ada-lang.c: Likewise.
1377 * ada-lex.l: Likewise.
1378 * ada-typeprint.c: Likewise.
1379 * ada-valprint.c: Likewise.
1380 * aix-thread.c: Likewise.
1381 * alpha-linux-tdep.c: Likewise.
1382 * alpha-mdebug-tdep.c: Likewise.
1383 * alpha-nat.c: Likewise.
1384 * alpha-osf1-tdep.c: Likewise.
1385 * alpha-tdep.c: Likewise.
1386 * alphanbsd-tdep.c: Likewise.
1387 * amd64-dicos-tdep.c: Likewise.
1388 * amd64-linux-tdep.c: Likewise.
1389 * amd64-nat.c: Likewise.
1390 * amd64-sol2-tdep.c: Likewise.
1391 * amd64fbsd-tdep.c: Likewise.
1392 * amd64obsd-tdep.c: Likewise.
1393 * arch-utils.c: Likewise.
1394 * arm-linux-nat.c: Likewise.
1395 * arm-linux-tdep.c: Likewise.
1396 * arm-tdep.c: Likewise.
1397 * arm-wince-tdep.c: Likewise.
1398 * armbsd-tdep.c: Likewise.
1399 * armnbsd-nat.c: Likewise.
1400 * armnbsd-tdep.c: Likewise.
1401 * armobsd-tdep.c: Likewise.
1402 * avr-tdep.c: Likewise.
1403 * ax-gdb.c: Likewise.
1404 * ax-general.c: Likewise.
1405 * bcache.c: Likewise.
1406 * bfin-tdep.c: Likewise.
1407 * breakpoint.c: Likewise.
1408 * build-id.c: Likewise.
1409 * buildsym.c: Likewise.
1410 * c-exp.y: Likewise.
1411 * c-lang.c: Likewise.
1412 * c-typeprint.c: Likewise.
1413 * c-valprint.c: Likewise.
1414 * charset.c: Likewise.
1415 * cli-out.c: Likewise.
1416 * cli/cli-cmds.c: Likewise.
1417 * cli/cli-decode.c: Likewise.
1418 * cli/cli-dump.c: Likewise.
1419 * cli/cli-interp.c: Likewise.
1420 * cli/cli-logging.c: Likewise.
1421 * cli/cli-script.c: Likewise.
1422 * cli/cli-setshow.c: Likewise.
1423 * cli/cli-utils.c: Likewise.
1424 * coffread.c: Likewise.
1425 * common/agent.c: Likewise.
1426 * common/buffer.c: Likewise.
1427 * common/buffer.h: Likewise.
1428 * common/common-utils.c: Likewise.
1429 * common/filestuff.c: Likewise.
1430 * common/filestuff.c: Likewise.
1431 * common/format.c: Likewise.
1432 * common/print-utils.c: Likewise.
1433 * common/rsp-low.c: Likewise.
1434 * common/signals.c: Likewise.
1435 * common/vec.h: Likewise.
1436 * common/xml-utils.c: Likewise.
1437 * core-regset.c: Likewise.
1438 * corefile.c: Likewise.
1439 * corelow.c: Likewise.
1440 * cp-abi.c: Likewise.
1441 * cp-name-parser.y: Likewise.
1442 * cp-support.c: Likewise.
1443 * cp-valprint.c: Likewise.
1444 * cris-tdep.c: Likewise.
1445 * d-exp.y: Likewise.
1446 * darwin-nat.c: Likewise.
1447 * dbxread.c: Likewise.
1448 * dcache.c: Likewise.
1449 * demangle.c: Likewise.
1450 * dicos-tdep.c: Likewise.
1451 * disasm.c: Likewise.
1452 * doublest.c: Likewise.
1453 * dsrec.c: Likewise.
1454 * dummy-frame.c: Likewise.
1455 * dwarf2-frame.c: Likewise.
1456 * dwarf2loc.c: Likewise.
1457 * dwarf2read.c: Likewise.
1458 * elfread.c: Likewise.
1459 * environ.c: Likewise.
1461 * event-loop.c: Likewise.
1462 * exceptions.c: Likewise.
1464 * expprint.c: Likewise.
1465 * f-exp.y: Likewise.
1466 * f-lang.c: Likewise.
1467 * f-typeprint.c: Likewise.
1468 * f-valprint.c: Likewise.
1469 * fbsd-nat.c: Likewise.
1470 * findcmd.c: Likewise.
1471 * findvar.c: Likewise.
1472 * fork-child.c: Likewise.
1473 * frame.c: Likewise.
1474 * frv-linux-tdep.c: Likewise.
1475 * frv-tdep.c: Likewise.
1477 * gdb_bfd.c: Likewise.
1478 * gdbarch.c: Likewise.
1479 * gdbarch.sh: Likewise.
1480 * gdbtypes.c: Likewise.
1481 * gnu-nat.c: Likewise.
1482 * gnu-v2-abi.c: Likewise.
1483 * gnu-v3-abi.c: Likewise.
1484 * go-exp.y: Likewise.
1485 * go-lang.c: Likewise.
1486 * go32-nat.c: Likewise.
1487 * guile/guile.c: Likewise.
1488 * guile/scm-auto-load.c: Likewise.
1489 * hppa-hpux-tdep.c: Likewise.
1490 * hppa-linux-nat.c: Likewise.
1491 * hppanbsd-tdep.c: Likewise.
1492 * hppaobsd-tdep.c: Likewise.
1493 * i386-cygwin-tdep.c: Likewise.
1494 * i386-dicos-tdep.c: Likewise.
1495 * i386-linux-tdep.c: Likewise.
1496 * i386-nto-tdep.c: Likewise.
1497 * i386-sol2-tdep.c: Likewise.
1498 * i386-tdep.c: Likewise.
1499 * i386bsd-tdep.c: Likewise.
1500 * i386gnu-nat.c: Likewise.
1501 * i386nbsd-tdep.c: Likewise.
1502 * i386obsd-tdep.c: Likewise.
1503 * i387-tdep.c: Likewise.
1504 * ia64-libunwind-tdep.c: Likewise.
1505 * ia64-linux-nat.c: Likewise.
1506 * inf-child.c: Likewise.
1507 * inf-ptrace.c: Likewise.
1508 * inf-ttrace.c: Likewise.
1509 * infcall.c: Likewise.
1510 * infcmd.c: Likewise.
1511 * inflow.c: Likewise.
1512 * infrun.c: Likewise.
1513 * interps.c: Likewise.
1514 * iq2000-tdep.c: Likewise.
1515 * irix5-nat.c: Likewise.
1516 * jv-exp.y: Likewise.
1517 * jv-lang.c: Likewise.
1518 * jv-typeprint.c: Likewise.
1519 * jv-valprint.c: Likewise.
1520 * language.c: Likewise.
1521 * linux-fork.c: Likewise.
1522 * linux-nat.c: Likewise.
1523 * lm32-tdep.c: Likewise.
1524 * m2-exp.y: Likewise.
1525 * m2-typeprint.c: Likewise.
1526 * m32c-tdep.c: Likewise.
1527 * m32r-linux-nat.c: Likewise.
1528 * m32r-linux-tdep.c: Likewise.
1529 * m32r-rom.c: Likewise.
1530 * m32r-tdep.c: Likewise.
1531 * m68hc11-tdep.c: Likewise.
1532 * m68k-tdep.c: Likewise.
1533 * m68kbsd-tdep.c: Likewise.
1534 * m68klinux-nat.c: Likewise.
1535 * m68klinux-tdep.c: Likewise.
1536 * m88k-tdep.c: Likewise.
1537 * machoread.c: Likewise.
1538 * macrocmd.c: Likewise.
1540 * mdebugread.c: Likewise.
1541 * mem-break.c: Likewise.
1542 * memattr.c: Likewise.
1543 * memory-map.c: Likewise.
1544 * mep-tdep.c: Likewise.
1545 * mi/mi-cmd-break.c: Likewise.
1546 * mi/mi-cmd-disas.c: Likewise.
1547 * mi/mi-cmd-env.c: Likewise.
1548 * mi/mi-cmd-stack.c: Likewise.
1549 * mi/mi-cmd-var.c: Likewise.
1550 * mi/mi-cmds.c: Likewise.
1551 * mi/mi-console.c: Likewise.
1552 * mi/mi-getopt.c: Likewise.
1553 * mi/mi-interp.c: Likewise.
1554 * mi/mi-main.c: Likewise.
1555 * mi/mi-parse.c: Likewise.
1556 * microblaze-rom.c: Likewise.
1557 * microblaze-tdep.c: Likewise.
1558 * mingw-hdep.c: Likewise.
1559 * minidebug.c: Likewise.
1560 * minsyms.c: Likewise.
1561 * mips-irix-tdep.c: Likewise.
1562 * mips-linux-tdep.c: Likewise.
1563 * mips-tdep.c: Likewise.
1564 * mips64obsd-tdep.c: Likewise.
1565 * mipsnbsd-tdep.c: Likewise.
1566 * mipsread.c: Likewise.
1567 * mn10300-linux-tdep.c: Likewise.
1568 * mn10300-tdep.c: Likewise.
1569 * monitor.c: Likewise.
1570 * moxie-tdep.c: Likewise.
1571 * mt-tdep.c: Likewise.
1572 * nat/linux-btrace.c: Likewise.
1573 * nat/linux-osdata.c: Likewise.
1574 * nat/linux-procfs.c: Likewise.
1575 * nat/linux-ptrace.c: Likewise.
1576 * nat/linux-waitpid.c: Likewise.
1577 * nbsd-tdep.c: Likewise.
1578 * nios2-linux-tdep.c: Likewise.
1579 * nto-procfs.c: Likewise.
1580 * nto-tdep.c: Likewise.
1581 * objc-lang.c: Likewise.
1582 * objfiles.c: Likewise.
1583 * opencl-lang.c: Likewise.
1584 * osabi.c: Likewise.
1585 * osdata.c: Likewise.
1586 * p-exp.y: Likewise.
1587 * p-lang.c: Likewise.
1588 * p-typeprint.c: Likewise.
1589 * parse.c: Likewise.
1590 * posix-hdep.c: Likewise.
1591 * ppc-linux-nat.c: Likewise.
1592 * ppc-sysv-tdep.c: Likewise.
1593 * ppcfbsd-tdep.c: Likewise.
1594 * ppcnbsd-tdep.c: Likewise.
1595 * ppcobsd-tdep.c: Likewise.
1596 * printcmd.c: Likewise.
1597 * procfs.c: Likewise.
1598 * prologue-value.c: Likewise.
1599 * python/py-auto-load.c: Likewise.
1600 * python/py-gdb-readline.c: Likewise.
1601 * ravenscar-thread.c: Likewise.
1602 * regcache.c: Likewise.
1603 * registry.c: Likewise.
1604 * remote-fileio.c: Likewise.
1605 * remote-m32r-sdi.c: Likewise.
1606 * remote-mips.c: Likewise.
1607 * remote-notif.c: Likewise.
1608 * remote-sim.c: Likewise.
1609 * remote.c: Likewise.
1610 * reverse.c: Likewise.
1611 * rs6000-aix-tdep.c: Likewise.
1612 * ser-base.c: Likewise.
1613 * ser-go32.c: Likewise.
1614 * ser-mingw.c: Likewise.
1615 * ser-pipe.c: Likewise.
1616 * ser-tcp.c: Likewise.
1617 * ser-unix.c: Likewise.
1618 * serial.c: Likewise.
1619 * sh-tdep.c: Likewise.
1620 * sh64-tdep.c: Likewise.
1621 * shnbsd-tdep.c: Likewise.
1623 * sol-thread.c: Likewise.
1624 * solib-dsbt.c: Likewise.
1625 * solib-frv.c: Likewise.
1626 * solib-osf.c: Likewise.
1627 * solib-som.c: Likewise.
1628 * solib-spu.c: Likewise.
1629 * solib-target.c: Likewise.
1630 * solib.c: Likewise.
1631 * somread.c: Likewise.
1632 * source.c: Likewise.
1633 * sparc-nat.c: Likewise.
1634 * sparc-sol2-tdep.c: Likewise.
1635 * sparc-tdep.c: Likewise.
1636 * sparc64-tdep.c: Likewise.
1637 * sparc64fbsd-tdep.c: Likewise.
1638 * sparc64nbsd-tdep.c: Likewise.
1639 * sparcnbsd-tdep.c: Likewise.
1640 * spu-linux-nat.c: Likewise.
1641 * spu-multiarch.c: Likewise.
1642 * spu-tdep.c: Likewise.
1643 * stabsread.c: Likewise.
1644 * stack.c: Likewise.
1645 * std-regs.c: Likewise.
1646 * symfile.c: Likewise.
1647 * symmisc.c: Likewise.
1648 * symtab.c: Likewise.
1649 * target.c: Likewise.
1650 * thread.c: Likewise.
1651 * tilegx-linux-nat.c: Likewise.
1652 * tilegx-tdep.c: Likewise.
1654 * tracepoint.c: Likewise.
1655 * tui/tui-command.c: Likewise.
1656 * tui/tui-data.c: Likewise.
1657 * tui/tui-disasm.c: Likewise.
1658 * tui/tui-file.c: Likewise.
1659 * tui/tui-layout.c: Likewise.
1660 * tui/tui-out.c: Likewise.
1661 * tui/tui-regs.c: Likewise.
1662 * tui/tui-source.c: Likewise.
1663 * tui/tui-stack.c: Likewise.
1664 * tui/tui-win.c: Likewise.
1665 * tui/tui-windata.c: Likewise.
1666 * tui/tui-winsource.c: Likewise.
1667 * typeprint.c: Likewise.
1668 * ui-file.c: Likewise.
1669 * ui-out.c: Likewise.
1670 * user-regs.c: Likewise.
1671 * utils.c: Likewise.
1672 * v850-tdep.c: Likewise.
1673 * valarith.c: Likewise.
1674 * valops.c: Likewise.
1675 * valprint.c: Likewise.
1676 * value.c: Likewise.
1677 * varobj.c: Likewise.
1678 * vax-tdep.c: Likewise.
1679 * vaxnbsd-tdep.c: Likewise.
1680 * vaxobsd-tdep.c: Likewise.
1681 * windows-nat.c: Likewise.
1682 * xcoffread.c: Likewise.
1683 * xml-support.c: Likewise.
1684 * xstormy16-tdep.c: Likewise.
1685 * xtensa-linux-nat.c: Likewise.
1687 2014-08-07 Gary Benson <gbenson@redhat.com>
1689 * common/common-defs.h: Include gdb_assert.h.
1690 * aarch64-tdep.c: Do not include gdb_assert.h.
1691 * addrmap.c: Likewise.
1692 * aix-thread.c: Likewise.
1693 * alpha-linux-tdep.c: Likewise.
1694 * alpha-mdebug-tdep.c: Likewise.
1695 * alphanbsd-tdep.c: Likewise.
1696 * amd64-nat.c: Likewise.
1697 * amd64-tdep.c: Likewise.
1698 * amd64bsd-nat.c: Likewise.
1699 * amd64fbsd-nat.c: Likewise.
1700 * amd64fbsd-tdep.c: Likewise.
1701 * amd64nbsd-nat.c: Likewise.
1702 * amd64nbsd-tdep.c: Likewise.
1703 * amd64obsd-nat.c: Likewise.
1704 * amd64obsd-tdep.c: Likewise.
1705 * arch-utils.c: Likewise.
1706 * arm-tdep.c: Likewise.
1707 * armbsd-tdep.c: Likewise.
1709 * bcache.c: Likewise.
1710 * bfin-tdep.c: Likewise.
1711 * blockframe.c: Likewise.
1712 * breakpoint.c: Likewise.
1713 * bsd-kvm.c: Likewise.
1714 * bsd-uthread.c: Likewise.
1715 * buildsym.c: Likewise.
1716 * c-exp.y: Likewise.
1717 * c-lang.c: Likewise.
1718 * charset.c: Likewise.
1719 * cleanups.c: Likewise.
1720 * cli-out.c: Likewise.
1721 * cli/cli-decode.c: Likewise.
1722 * cli/cli-dump.c: Likewise.
1723 * cli/cli-logging.c: Likewise.
1724 * cli/cli-script.c: Likewise.
1725 * cli/cli-utils.c: Likewise.
1726 * coffread.c: Likewise.
1727 * common/common-utils.c: Likewise.
1728 * common/queue.h: Likewise.
1729 * common/signals.c: Likewise.
1730 * common/vec.h: Likewise.
1731 * complaints.c: Likewise.
1732 * completer.c: Likewise.
1733 * corelow.c: Likewise.
1734 * cp-abi.c: Likewise.
1735 * cp-name-parser.y: Likewise.
1736 * cp-namespace.c: Likewise.
1737 * cp-support.c: Likewise.
1738 * cris-tdep.c: Likewise.
1739 * dbxread.c: Likewise.
1740 * dictionary.c: Likewise.
1741 * doublest.c: Likewise.
1742 * dsrec.c: Likewise.
1743 * dummy-frame.c: Likewise.
1744 * dwarf2-frame-tailcall.c: Likewise.
1745 * dwarf2-frame.c: Likewise.
1746 * dwarf2expr.c: Likewise.
1747 * dwarf2loc.c: Likewise.
1748 * dwarf2read.c: Likewise.
1750 * event-loop.c: Likewise.
1751 * exceptions.c: Likewise.
1752 * expprint.c: Likewise.
1753 * f-valprint.c: Likewise.
1754 * fbsd-nat.c: Likewise.
1755 * findvar.c: Likewise.
1756 * frame-unwind.c: Likewise.
1757 * frame.c: Likewise.
1758 * frv-tdep.c: Likewise.
1759 * gcore.c: Likewise.
1760 * gdb-dlfcn.c: Likewise.
1761 * gdb_bfd.c: Likewise.
1762 * gdbarch.c: Likewise.
1763 * gdbarch.sh: Likewise.
1764 * gdbtypes.c: Likewise.
1765 * gnu-nat.c: Likewise.
1766 * gnu-v3-abi.c: Likewise.
1767 * go-lang.c: Likewise.
1768 * guile/scm-exception.c: Likewise.
1769 * guile/scm-gsmob.c: Likewise.
1770 * guile/scm-lazy-string.c: Likewise.
1771 * guile/scm-math.c: Likewise.
1772 * guile/scm-pretty-print.c: Likewise.
1773 * guile/scm-safe-call.c: Likewise.
1774 * guile/scm-utils.c: Likewise.
1775 * guile/scm-value.c: Likewise.
1776 * h8300-tdep.c: Likewise.
1777 * hppa-hpux-nat.c: Likewise.
1778 * hppa-tdep.c: Likewise.
1779 * hppanbsd-tdep.c: Likewise.
1780 * hppaobsd-tdep.c: Likewise.
1781 * i386-darwin-nat.c: Likewise.
1782 * i386-darwin-tdep.c: Likewise.
1783 * i386-nto-tdep.c: Likewise.
1784 * i386-tdep.c: Likewise.
1785 * i386bsd-nat.c: Likewise.
1786 * i386fbsd-tdep.c: Likewise.
1787 * i386gnu-nat.c: Likewise.
1788 * i386nbsd-tdep.c: Likewise.
1789 * i386obsd-tdep.c: Likewise.
1790 * i387-tdep.c: Likewise.
1791 * ia64-libunwind-tdep.c: Likewise.
1792 * ia64-tdep.c: Likewise.
1793 * inf-ptrace.c: Likewise.
1794 * inf-ttrace.c: Likewise.
1795 * infcall.c: Likewise.
1796 * infcmd.c: Likewise.
1797 * infrun.c: Likewise.
1798 * inline-frame.c: Likewise.
1799 * interps.c: Likewise.
1800 * jv-lang.c: Likewise.
1801 * jv-typeprint.c: Likewise.
1802 * linux-fork.c: Likewise.
1803 * linux-nat.c: Likewise.
1804 * linux-thread-db.c: Likewise.
1805 * m32c-tdep.c: Likewise.
1806 * m32r-linux-nat.c: Likewise.
1807 * m32r-tdep.c: Likewise.
1808 * m68k-tdep.c: Likewise.
1809 * m68kbsd-nat.c: Likewise.
1810 * m68kbsd-tdep.c: Likewise.
1811 * m88k-tdep.c: Likewise.
1812 * machoread.c: Likewise.
1813 * macroexp.c: Likewise.
1814 * macrotab.c: Likewise.
1815 * maint.c: Likewise.
1816 * mdebugread.c: Likewise.
1817 * memory-map.c: Likewise.
1818 * mep-tdep.c: Likewise.
1819 * mi/mi-common.c: Likewise.
1820 * microblaze-tdep.c: Likewise.
1821 * mingw-hdep.c: Likewise.
1822 * mips-linux-nat.c: Likewise.
1823 * mips-linux-tdep.c: Likewise.
1824 * mips-tdep.c: Likewise.
1825 * mips64obsd-tdep.c: Likewise.
1826 * mipsnbsd-tdep.c: Likewise.
1827 * mn10300-linux-tdep.c: Likewise.
1828 * mn10300-tdep.c: Likewise.
1829 * moxie-tdep.c: Likewise.
1830 * mt-tdep.c: Likewise.
1831 * nat/linux-btrace.c: Likewise.
1832 * nat/linux-osdata.c: Likewise.
1833 * nat/linux-ptrace.c: Likewise.
1834 * nat/mips-linux-watch.c: Likewise.
1835 * nios2-linux-tdep.c: Likewise.
1836 * nios2-tdep.c: Likewise.
1837 * objc-lang.c: Likewise.
1838 * objfiles.c: Likewise.
1839 * obsd-nat.c: Likewise.
1840 * opencl-lang.c: Likewise.
1841 * osabi.c: Likewise.
1842 * parse.c: Likewise.
1843 * ppc-linux-nat.c: Likewise.
1844 * ppc-sysv-tdep.c: Likewise.
1845 * ppcfbsd-nat.c: Likewise.
1846 * ppcfbsd-tdep.c: Likewise.
1847 * ppcnbsd-nat.c: Likewise.
1848 * ppcnbsd-tdep.c: Likewise.
1849 * ppcobsd-nat.c: Likewise.
1850 * ppcobsd-tdep.c: Likewise.
1851 * printcmd.c: Likewise.
1852 * procfs.c: Likewise.
1853 * prologue-value.c: Likewise.
1854 * psymtab.c: Likewise.
1855 * python/py-lazy-string.c: Likewise.
1856 * python/py-value.c: Likewise.
1857 * regcache.c: Likewise.
1858 * reggroups.c: Likewise.
1859 * registry.c: Likewise.
1860 * remote-sim.c: Likewise.
1861 * remote.c: Likewise.
1862 * rs6000-aix-tdep.c: Likewise.
1863 * rs6000-tdep.c: Likewise.
1864 * s390-linux-tdep.c: Likewise.
1865 * score-tdep.c: Likewise.
1866 * ser-base.c: Likewise.
1867 * ser-mingw.c: Likewise.
1868 * sh-tdep.c: Likewise.
1869 * sh64-tdep.c: Likewise.
1870 * solib-darwin.c: Likewise.
1871 * solib-spu.c: Likewise.
1872 * solib-svr4.c: Likewise.
1873 * source.c: Likewise.
1874 * sparc-nat.c: Likewise.
1875 * sparc-sol2-tdep.c: Likewise.
1876 * sparc-tdep.c: Likewise.
1877 * sparc64-sol2-tdep.c: Likewise.
1878 * sparc64-tdep.c: Likewise.
1879 * sparc64fbsd-tdep.c: Likewise.
1880 * sparc64nbsd-tdep.c: Likewise.
1881 * sparc64obsd-tdep.c: Likewise.
1882 * sparcnbsd-tdep.c: Likewise.
1883 * sparcobsd-tdep.c: Likewise.
1884 * spu-multiarch.c: Likewise.
1885 * spu-tdep.c: Likewise.
1886 * stabsread.c: Likewise.
1887 * stack.c: Likewise.
1888 * symfile.c: Likewise.
1889 * symtab.c: Likewise.
1890 * target-descriptions.c: Likewise.
1891 * target-memory.c: Likewise.
1892 * target.c: Likewise.
1893 * tic6x-linux-tdep.c: Likewise.
1894 * tic6x-tdep.c: Likewise.
1895 * tilegx-linux-nat.c: Likewise.
1896 * tilegx-tdep.c: Likewise.
1898 * tramp-frame.c: Likewise.
1899 * tui/tui-out.c: Likewise.
1900 * tui/tui-winsource.c: Likewise.
1901 * ui-out.c: Likewise.
1902 * user-regs.c: Likewise.
1903 * utils.c: Likewise.
1904 * v850-tdep.c: Likewise.
1905 * valops.c: Likewise.
1906 * value.c: Likewise.
1907 * varobj.c: Likewise.
1908 * vax-nat.c: Likewise.
1909 * xml-syscall.c: Likewise.
1910 * xml-tdesc.c: Likewise.
1911 * xstormy16-tdep.c: Likewise.
1912 * xtensa-linux-nat.c: Likewise.
1913 * xtensa-tdep.c: Likewise.
1915 2014-08-07 Gary Benson <gbenson@redhat.com>
1917 * common/common-defs.h: Include common-utils.h.
1918 * defs.h: Do not include common-utils.h.
1919 * common/gdb_assert.h: Likewise.
1920 * darwin-nat.h: Likewise.
1921 * nat/linux-btrace.c: Likewise.
1922 * target/waitstatus.h: Likewise.
1924 2014-08-07 Gary Benson <gbenson@redhat.com>
1926 * common/common-defs.h: Include ptid.h.
1927 * defs.h: Do not include ptid.h.
1928 * inferior.h: Likewise.
1929 * infrun.h: Likewise.
1930 * nat/linux-btrace.h: Likewise.
1931 * nat/linux-osdata.h: Likewise.
1932 * target/waitstatus.h: Likewise.
1934 2014-08-07 Gary Benson <gbenson@redhat.com>
1936 * common/common-defs.h: Include gdb_locale.h.
1937 * defs.h: Do not include gdb_locale.h.
1939 2014-08-07 Gary Benson <gbenson@redhat.com>
1941 * common/common-defs.h: Include gdb/signals.h.
1942 * defs.h: Do not include gdb/signals.h.
1944 2014-08-07 Gary Benson <gbenson@redhat.com>
1946 * common/common-defs.h: Include pathmax.h.
1947 * defs.h: Do not include pathmax.h.
1949 2014-08-07 Gary Benson <gbenson@redhat.com>
1951 * common/common-defs.h: Include libiberty.h.
1952 * defs.h: Do not include libiberty.h.
1953 * common/queue.h: Likewise.
1954 * cp-name-parser.y: Likewise.
1955 * mi/mi-cmd-catch.c: Likewise.
1956 * python/python.c: Likewise.
1958 2014-08-07 Gary Benson <gbenson@redhat.com>
1960 * common/common-defs.h: Include ansidecl.h.
1961 * defs.h: Do not include ansidecl.h.
1962 * common/buffer.h: Likewise.
1963 * common/common-utils.h: Likewise.
1965 2014-08-07 Gary Benson <gbenson@redhat.com>
1967 * common/common-defs.h: Include stddef.h.
1968 * defs.h: Do not include stddef.h.
1969 * common/common-utils.h: Likewise.
1970 * amd64fbsd-nat.c: Likewise.
1971 * bcache.c: Likewise.
1972 * charset.c: Likewise.
1973 * common/buffer.h: Likewise.
1974 * common/vec.h: Likewise.
1975 * i386bsd-nat.c: Likewise.
1976 * nat/linux-btrace.h: Likewise.
1977 * ppcfbsd-nat.c: Likewise.
1978 * ppcnbsd-tdep.h: Likewise.
1979 * ppcobsd-nat.c: Likewise.
1980 * ppcobsd-tdep.h: Likewise.
1981 * python/py-gdb-readline.c: Likewise.
1983 2014-08-07 Gary Benson <gbenson@redhat.com>
1985 * common/common-defs.h: Include stdarg.h.
1986 * defs.h: Do not include stdarg.h.
1987 * ada-lang.c: Likewise.
1988 * common/common-utils.h: Likewise.
1989 * guile/scm-string.c: Likewise.
1990 * guile/scm-utils.c: Likewise.
1991 * m32c-tdep.c: Likewise.
1993 2014-08-07 Gary Benson <gbenson@redhat.com>
1995 * common/common-defs.h: Include stdlib.h.
1996 * defs.h: Do not include stdlib.h.
1997 * addrmap.c: Likewise.
1998 * bcache.c: Likewise.
1999 * common/buffer.c: Likewise.
2000 * common/common-utils.c: Likewise.
2001 * cp-name-parser.y: Likewise.
2002 * go32-nat.c: Likewise.
2003 * mn10300-linux-tdep.c: Likewise.
2004 * nat/linux-osdata.c: Likewise.
2005 * tui/tui.c: Likewise.
2006 * windows-nat.c: Likewise.
2008 2014-08-07 Gary Benson <gbenson@redhat.com>
2010 * common/common-defs.h: Include stdio.h.
2011 * defs.h: Do not include stdio.h.
2012 * ada-lang.c: Likewise.
2013 * common/buffer.c: Likewise.
2014 * common/common-utils.c: Likewise.
2015 * cp-name-parser.y: Likewise.
2016 * gnu-nat.c: Likewise.
2017 * go32-nat.c: Likewise.
2018 * i386gnu-nat.c: Likewise.
2019 * proc-api.c: Likewise.
2020 * proc-events.c: Likewise.
2021 * proc-flags.c: Likewise.
2022 * proc-why.c: Likewise.
2023 * python/python-internal.h: Likewise.
2024 * target-memory.c: Likewise.
2025 * tui/tui-io.c: Likewise.
2026 * tui/tui.c: Likewise.
2028 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2030 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2031 (scan_dyntag_auxv): Same.
2033 2014-08-06 Yao Qi <yao@codesourcery.com>
2035 * amd64-linux-nat.c: Remove duplicated include
2037 * i386-linux-nat.c: Likewise.
2039 2014-08-06 Yao Qi <yao@codesourcery.com>
2041 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2042 operand" with "Special opcode" in comments.
2044 2014-08-05 Gary Benson <gbenson@redhat.com>
2046 * interps.c (initialize_interps): Remove prototype.
2047 (interpreter_initialized): Remove static global.
2048 (interp_add): Do not call initialize_interps.
2049 (initialize_interps): Remove function.
2051 2014-08-05 Gary Benson <gbenson@redhat.com>
2053 * utils.c (vwarning): Remove spurious va_end.
2055 2014-08-05 Alan Modra <amodra@gmail.com>
2057 * charset.c (convert_between_encodings): Cast result of obstack_base.
2058 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2059 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2060 (read_unwind_info): Use size_t for some locals.
2061 * jit.c (finalize_symtab): Likewise.
2062 * utils.c (hashtab_obstack_allocate): Likewise.
2063 * symmisc.c (print_objfile_statistics): Update format strings.
2065 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2067 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2068 (Changes in GDB 7.8): ... here.
2070 2014-08-04 Tom Tromey <tromey@redhat.com>
2072 * target.c (set_targetdebug): New function.
2073 (initialize_targets): Pass set_targetdebug when creating "set
2076 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2078 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2079 if detecting a variable-sized field that is not the last field.
2080 Fix struct type length computation.
2082 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2084 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2087 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2089 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2090 Remove "+ 8" offset in computation of CHAIN_VMA.
2092 2014-07-31 Doug Evans <dje@google.com>
2094 * inflow.c (child_terminal_inferior): Add comment.
2095 (child_terminal_ours_for_output): Add comment.
2096 (child_terminal_ours): Add comment.
2097 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2098 (linux_nat_terminal_ours): Add comment.
2100 2014-07-31 Gary Benson <gbenson@redhat.com>
2102 * common/btrace-common.h: Do not include defs.h or server.h.
2103 * nat/mips-linux-watch.h: Likewise.
2104 * gdb-dlfcn.h: Do not include defs.h.
2105 * tracefile.h: Likewise.
2107 2014-07-30 Roland McGrath <mcgrathr@google.com>
2109 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2111 2014-07-30 Tom Tromey <tromey@redhat.com>
2113 * bsd-kvm.c (bsd_kvm_open): Constify.
2114 * corelow.c (core_open): Constify.
2115 * ctf.c (ctf_open): Constify.
2116 * dbug-rom.c (dbug_open): Constify.
2117 * exec.c (exec_open): Constify.
2118 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2119 * microblaze-rom.c (picobug_open): Constify.
2120 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2122 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2123 * record-btrace.c (record_btrace_open): Constify.
2124 * record-full.c (record_full_core_open_1, record_full_open_1)
2125 (record_full_open): Constify.
2126 * remote-m32r-sdi.c (m32r_open): Constify.
2127 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2128 (rockhopper_open, lsi_open): Constify.
2129 * remote-sim.c (gdbsim_open): Constify.
2130 * remote.c (remote_open, extended_remote_open, remote_open_1):
2132 * target.h (struct target_ops) <to_open>: Make "arg" const.
2133 * tracefile-tfile.c (tfile_open): Constify.
2135 2014-07-30 Tom Tromey <tromey@redhat.com>
2137 * breakpoint.c (map_breakpoint_numbers): Update.
2138 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2139 (get_number_const): New function.
2140 (get_number): Rewrite using get_number_const.
2141 (init_number_or_range): Make "string" const.
2142 (number_is_in_list): Make "list" const.
2143 * cli/cli-utils.h (get_number_const): Declare.
2144 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2145 (init_number_or_range, number_is_in_list): Update.
2146 * printcmd.c (map_display_numbers): Update.
2147 * value.c (value_from_history_ref): Constify.
2148 * value.h (value_from_history_ref): Update.
2150 2014-07-30 Tom Tromey <tromey@redhat.com>
2152 * corefile.c (hook_type, call_extra_exec_file_hooks)
2153 (specify_exec_file_hook): Constify.
2154 * exec.c (exec_file_attach): Make "filename" const.
2155 * gdbcore.h (deprecated_exec_file_display_hook)
2156 (specify_exec_file_hook, exec_file_attach): Constify.
2157 * main.c (captured_main): Use catch_command_errors_const.
2159 2014-07-30 Tom Tromey <tromey@redhat.com>
2161 * target.c (open_target): New function.
2162 (add_target_with_completer, add_deprecated_target_alias): Use
2163 set_cmd_sfunc, set_cmd_context.
2164 (debug_to_open): Remove.
2165 (setup_target_debug): Update.
2167 2014-07-30 Yao Qi <yao@codesourcery.com>
2169 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2171 * parse.c (exp_iterate): Update comments.
2173 2014-07-30 Gary Benson <gbenson@redhat.com>
2175 * common/common-defs.h: New file.
2176 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2177 * defs.h: Include common-defs.h.
2178 Do not include config.h or build-gnulib/config.h.
2180 2014-07-30 Gary Benson <gbenson@redhat.com>
2182 * common/common-utils.h: Do not include config.h.
2183 * nat/linux-btrace.h: Likewise.
2185 2014-07-30 Gary Benson <gbenson@redhat.com>
2187 * btrace.c: Include defs.h.
2188 * common/ptid.c: Include defs.h or server.h as appropriate.
2189 * nat/mips-linux-watch.c: Likewise.
2191 2014-07-29 Tom Tromey <tromey@redhat.com>
2193 * target.c (target_is_pushed): Simplify.
2195 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2199 2014-07-29 Yao Qi <yao@codesourcery.com>
2202 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2204 2014-07-28 Doug Evans <xdje42@gmail.com>
2207 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2208 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2211 2014-07-28 Will Newton <will.newton@linaro.org>
2213 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2214 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2215 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2216 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2217 (THUMB2_EABI_SYSCALL): Likewise.
2218 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2220 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2221 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2223 2014-07-27 Doug Evans <xdje42@gmail.com>
2225 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2227 2014-07-27 Doug Evans <xdje42@gmail.com>
2229 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2231 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2232 Doug Evans <xdje42@gmail.com>
2235 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2236 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2237 * configure.ac: Try to use guild to compile an scm file, if it fails
2238 then disable guile support.
2239 * configure: Regenerate.
2240 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2242 (GUILE_COMPILED_FILES): New variable.
2243 (GUILE_FILES) Update.
2244 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2245 (stamp-guile): Compile scm files.
2246 * guile/guile.c (boot_guile_support): New function.
2247 (standard_throw_args_p): New function.
2248 (print_standard_throw_error, print_throw_error): New functions.
2249 (handle_boot_error): New function.
2250 (initialize_scheme_side): Rewrite to call boot_guile_support.
2251 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2252 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2254 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2255 Doug Evans <xdje42@gmail.com>
2258 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2259 * guile/lib/gdb/support.scm: New file.
2260 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2261 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2263 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2265 (%assert-type): Ditto, and renamed to assert-type.
2266 (%exception-print-style): Delete.
2268 2014-07-26 Doug Evans <xdje42@gmail.com>
2271 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2272 * configure: Regenerate.
2273 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2275 (PYTHON_FILES): New variable.
2276 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2277 (GUILE_FILES): New variable.
2278 (stamp-python, install-python, uninstall-python): Handle empty
2280 (stamp-guile, install-guile, uninstall-guile): Ditto.
2282 2014-07-26 Doug Evans <xdje42@gmail.com>
2285 * guile/lib/gdb.scm (pretty-printers): Export.
2286 (set-pretty-printers!): Export.
2287 * guile/lib/gdb/printing.scm (gdb module): Update.
2288 (prepend-pretty-printer!, append-pretty-printer!): Update.
2289 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2290 (pretty_printer_list_var): Delete.
2291 (pretty_printer_list): New static global.
2292 (gdbscm_pretty_printers): New function.
2293 (gdbscm_set_pretty_printers_x): New function.
2294 (ppscm_find_pretty_printer_from_gdb): Update.
2295 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2296 (gdbscm_initialize_pretty_printers): Update.
2298 2014-07-26 Doug Evans <xdje42@gmail.com>
2301 * configure.ac: Add check for header gc/gc.h.
2302 Add check for function setenv.
2303 * configure: Regenerate.
2304 * config.in: Regenerate.
2305 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2307 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2309 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2310 variation in gdbarch matching.
2312 2014-07-25 Tom Tromey <tromey@redhat.com>
2314 * exec.c (using_exec_ops): Remove.
2315 (exec_close_1): Update. Remove extraneous block, reindent.
2316 (add_target_sections): Use target_is_pushed.
2318 2014-07-25 Pedro Alves <palves@redhat.com>
2320 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2321 * monitor.c (monitor_create_inferior): Likewise.
2322 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2323 * remote-sim.c (gdbsim_create_inferior): Likewise.
2324 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2325 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2326 * windows-nat.c (do_initial_windows_stuff): Likewise.
2328 2014-07-25 Pedro Alves <palves@redhat.com>
2330 * NEWS: Mention signal passing and "signal" command changes.
2331 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2333 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2335 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2336 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2337 (jump_command): Adjust clear_proceed_status call.
2338 (signal_command): Warn if other thread that are resumed have
2339 signals that will be delivered. Adjust clear_proceed_status call.
2340 (until_next_command, finish_command)
2341 (proceed_after_attach_callback, attach_command_post_wait)
2342 (attach_command): Adjust clear_proceed_status call.
2343 * infrun.c (proceed_after_vfork_done): Likewise.
2344 (proceed_after_attach_callback): Adjust comment.
2345 (clear_proceed_status_thread): Clear stop_signal if not in pass
2347 (clear_proceed_status_callback): Delete.
2348 (clear_proceed_status): New 'step' parameter. Only clear the
2349 proceed status of threads the command being prepared is about to
2351 (proceed): If passed in an explicit signal, override stop_signal
2352 with it. Don't pass the last stop signal to the thread we're
2354 (init_wait_for_inferior): Adjust clear_proceed_status call.
2355 (switch_back_to_stepped_thread): Clear the signal if it should not
2357 * infrun.h (clear_proceed_status): New 'step' parameter.
2358 (user_visible_resume_ptid): Add comment.
2359 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2360 signal is in pass state.
2361 * remote.c (append_pending_thread_resumptions): Likewise.
2362 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2364 2014-07-25 Tom Tromey <tromey@redhat.com>
2366 * target.h (target_stopped_data_address)
2367 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2370 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2372 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2374 (avr_pointer_to_address): Likewise.
2376 2014-07-24 Tom Tromey <tromey@redhat.com>
2378 * monitor.c (compile_pattern): Update.
2379 * target.h (struct target_ops) <to_shortname, to_longname,
2382 2014-07-24 Tom Tromey <tromey@redhat.com>
2384 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2385 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2386 (add_info_alias, add_com): Make "doc" const.
2387 (print_doc_line): Make "str" const.
2388 (delete_cmd): Update.
2389 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2390 (print_doc_line): Update.
2391 * cli/cli-script.c (document_command): Update.
2392 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2393 (add_com, add_info, add_info_alias): Update.
2394 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2395 * python/py-cmd.c (cmdpy_destroyer): Update.
2397 2014-07-24 Tom Tromey <tromey@redhat.com>
2399 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2400 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2401 (help_cmd_list): Constify.
2402 (lookup_cmd): Update.
2403 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2405 (help_cmd_list, apropos_cmd): Update.
2406 * cli/cli-script.c (show_user): Update.
2407 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2408 * cli/cli-setshow.h (cmd_show_list): Update.
2409 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2410 (cmd_show_list): Update.
2411 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2412 * python/py-cmd.c (cmdpy_destroyer): Update.
2414 2014-07-24 Tom Tromey <tromey@redhat.com>
2416 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2417 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2419 * command.h (deprecate_cmd): Update.
2420 * maint.c (maintenance_do_deprecate): Add casts.
2422 2014-07-24 Tom Tromey <tromey@redhat.com>
2424 * cli/cli-decode.c (help_cmd): Make parameter "const".
2425 * cli/cli-decode.h (help_cmd): Update.
2427 2014-07-24 Tom Tromey <tromey@redhat.com>
2429 * stack.c (up_silently_base, down_silently_base): Make argument
2432 2014-07-24 Tom Tromey <tromey@redhat.com>
2434 * solib.c (solib_add): Make "pattern" const.
2435 * solib.h (solib_add): Update.
2437 2014-07-24 Tom Tromey <tromey@redhat.com>
2439 * remote.c (remote_serial_open, print_packet, putpkt)
2440 (putpkt_binary): Constify.
2441 * remote.h (putpkt): Update.
2443 2014-07-24 Tom Tromey <tromey@redhat.com>
2445 * monitor.c (monitor_open): Make "args" const.
2446 * monitor.h (monitor_open): Update.
2448 2014-07-24 Tom Tromey <tromey@redhat.com>
2450 * maint.c (match_bfd_flags): Make "string" const.
2451 (print_bfd_section_info): Remove casts.
2452 (print_objfile_section_info): Make "string" const.
2454 2014-07-24 Tom Tromey <tromey@redhat.com>
2456 * inf-child.c (inf_child_open_target): Make "arg" const.
2457 * inf-child.h (inf_child_open_target): Update.
2459 2014-07-24 Tom Tromey <tromey@redhat.com>
2461 * environ.c (unset_in_environ): Make "var" const.
2462 * environ.h (unset_in_environ): Update.
2464 2014-07-24 Tom Tromey <tromey@redhat.com>
2466 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2468 (scan_filename_with_cleanup): Likewise.
2469 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2470 Make arguments const.
2471 (restore_command): Update.
2473 2014-07-24 Pedro Alves <palves@redhat.com>
2475 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2477 2014-07-24 Tom Tromey <tromey@redhat.com>
2478 Gary Benson <gbenson@redhat.com>
2480 * nat/linux-ptrace.c (additional_flags): New global.
2481 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2482 additional_flags; don't check GDBSERVER.
2483 (linux_ptrace_set_additional_flags): New function.
2484 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2486 * linux-nat.c (_initialize_linux_nat): Call
2487 linux_ptrace_set_additional_flags.
2489 2014-07-24 Tom Tromey <tromey@redhat.com>
2491 * make-target-delegates (munge_type, write_debugmethod): New
2493 (debug_names): New global.
2494 ($TARGET_DEBUG_PRINTER): New global.
2495 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2497 Write debug methods. Generate init_debug_target.
2498 * target-debug.h: New file.
2499 * target-delegates.c: Rebuild.
2500 * target.c: Include target-debug.h.
2501 (debug_target): Hoist definition.
2502 (target_kill, target_get_section_table, target_memory_map)
2503 (target_flash_erase, target_flash_done, target_detach)
2504 (target_disconnect, target_wait, target_resume)
2505 (target_pass_signals, target_program_signals, target_follow_fork)
2506 (target_mourn_inferior, target_search_memory)
2507 (target_thread_address_space, target_close)
2508 (target_find_new_threads, target_core_of_thread)
2509 (target_verify_memory, target_insert_mask_watchpoint)
2510 (target_remove_mask_watchpoint): Remove targetdebug code.
2511 (debug_to_post_attach, debug_to_prepare_to_store)
2512 (debug_to_files_info, debug_to_insert_breakpoint)
2513 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2514 (debug_to_region_ok_for_hw_watchpoint)
2515 (debug_to_can_accel_watchpoint_condition)
2516 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2517 (debug_to_watchpoint_addr_within_range)
2518 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2519 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2520 (debug_to_terminal_init, debug_to_terminal_inferior)
2521 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2522 (debug_to_terminal_save_ours, debug_to_terminal_info)
2523 (debug_to_load, debug_to_post_startup_inferior)
2524 (debug_to_insert_fork_catchpoint)
2525 (debug_to_remove_fork_catchpoint)
2526 (debug_to_insert_vfork_catchpoint)
2527 (debug_to_remove_vfork_catchpoint)
2528 (debug_to_insert_exec_catchpoint)
2529 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2530 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2531 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2532 (setup_target_debug): Call init_debug_target.
2533 * target.h (TARGET_DEBUG_PRINTER): New macro.
2534 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2535 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2537 2014-07-24 Gary Benson <gbenson@redhat.com>
2539 * exceptions.h (throw_vfatal): Renamed to...
2540 (throw_vquit): New declaration.
2541 (throw_quit): Likewise.
2542 * exceptions.c (throw_vfatal): Renamed to...
2543 (throw_vquit): New function.
2544 (throw_quit): Likewise.
2545 (throw_error): Call throw_verror rather than throw_it.
2546 * utils.h (vfatal): Removed.
2548 * utils.c (vfatal): Removed.
2550 (internal_verror): Replaced call to fatal with call to throw_quit.
2551 (quit): Replaced calls to fatal with calls to throw_quit.
2553 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2555 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2558 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2560 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2561 less than zero in conditional expression.
2563 2014-07-23 Tom Tromey <tromey@redhat.com>
2565 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2566 ($INTRO_PART): Don't match whitespace.
2567 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2569 ($METHOD): Add $METHOD_TRAILER.
2571 (scan_target_h): New sub.
2572 Change main loop not to collect state.
2573 * target-delegates.c: Rebuild.
2575 2014-07-23 Gary Benson <gbenson@redhat.com>
2577 * cp-support.c (gdb_demangle): Fix build on systems without
2580 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2582 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2583 for reference entry value target data value.
2585 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2587 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2588 value_available_contents_eq.
2590 2014-07-22 Pedro Alves <palves@redhat.com>
2592 * value.c (allocate_optimized_out_value): Don't mark value as
2595 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2597 * MAINTAINERS (Write After Approval): Update my email address.
2599 2014-07-20 Doug Evans <dje@google.com>
2602 * remote.c (putpkt_binary): Add text to error message.
2604 2014-07-20 Yao Qi <yao@codesourcery.com>
2606 * eval.c: Remove "Chill" from comments.
2607 * gdbtypes.h: Likewise.
2608 * symtab.h: Likewise.
2610 2014-07-20 Yao Qi <yao@codesourcery.com>
2612 * std-operator.def: Update comments to TERNOP_SLICE.
2614 2014-07-20 Yao Qi <yao@codesourcery.com>
2616 * std-operator.def: Remove BINOP_RANGE.
2617 * breakpoint.c (watchpoint_exp_is_const): Update.
2618 * expprint.c (dump_subexp_body_standard): Likewise.
2619 * eval.c (init_array_element): Remove dead code.
2620 (evaluate_subexp_standard): Likewise.
2622 2014-07-20 Yao Qi <yao@codesourcery.com>
2624 * std-operator.def: Remove BINOP_IN.
2625 * breakpoint.c (watchpoint_exp_is_const): Update.
2626 * eval.c (evaluate_subexp_standard): Likewise.
2627 * expprint.c (dump_subexp_body_standard): Likewise.
2629 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2631 * microblaze-tdep.c (microblaze_register_names): Add
2632 the rshr and rslr register names.
2633 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2634 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2635 Use of tdesc_numbered_register. Use of
2636 microblaze_register_g_packet_guesses. Use of
2637 tdesc_use_registers. Use of set_gdbarch_register_type.
2638 (microblaze_register_g_packet_guesses): New.
2639 * microblaze-tdep.h (microblaze_reg_num): Add
2640 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2641 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2642 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2643 * features/microblaze-core.xml: New file.
2644 * features/microblaze-stack-protect.xml: New file.
2645 * features/microblaze-with-stack-protect.c: New file.
2646 * features/microblaze-with-stack-protect.xml: New file.
2647 * features/microblaze.xml: New file.
2648 * features/microblaze.c: New file.
2649 * features/Makefile (microblaze-with-stack-protect): Add
2650 microblaze-with-stack-protect microblaze and microblaze-expedite.
2651 * regformats/microblaze-with-stack-protect.dat: New file.
2652 * regformats/microblaze.dat: New file.
2653 * doc/gdb.texinfo (MicroBlaze Features): Added.
2655 2014-07-18 Tom Tromey <tromey@redhat.com>
2657 * exec.c (exec_ops): Now static.
2658 * exec.h (exec_ops): Don't declare.
2660 2014-07-18 Tom Tromey <tromey@redhat.com>
2662 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2663 to find_target_beneath.
2664 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2665 find_target_beneath.
2666 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2668 2014-07-18 Tom Tromey <tromey@redhat.com>
2671 * utils.c (quit): Use target_supports_terminal_ours.
2672 * target.h (target_supports_terminal_ours): Declare.
2673 * target.c (target_supports_delete_record): Don't check
2674 to_delete_record against NULL.
2675 (target_supports_terminal_ours): New function.
2677 2014-07-18 Tom Tromey <tromey@redhat.com>
2680 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2681 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2682 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2683 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2684 * windows-nat.c (windows_xfer_partial): Always delegate.
2685 * record-btrace.c (record_btrace_xfer_partial): Simplify
2687 (record_btrace_fetch_registers, record_btrace_store_registers)
2688 (record_btrace_prepare_to_store, record_btrace_resume)
2689 (record_btrace_wait, record_btrace_find_new_threads)
2690 (record_btrace_thread_alive): Likewise.
2691 * procfs.c (procfs_xfer_partial): Always delegate.
2692 * corelow.c (core_xfer_partial): Always delegate.
2693 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2695 2014-07-18 Tom Tromey <tromey@redhat.com>
2697 * exec.c (exec_make_note_section): Move earlier.
2699 2014-07-17 Doug Evans <dje@google.com>
2702 * maint.c (count_symtabs_and_blocks): Handle NULL
2703 current_program_space.
2704 (report_command_stats): Check global enabled flag in addition to
2705 recorded enabled flag.
2706 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2708 2014-07-16 Pedro Alves <palves@redhat.com>
2710 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2712 2014-07-16 Tom Tromey <tromey@redhat.com>
2714 * target.h (struct target_ops) <to_delete_record>: Reformat
2717 2014-07-16 Tom Tromey <tromey@redhat.com>
2719 * target-delegates.c: Rebuild.
2721 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2723 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2724 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2725 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2726 (avr_pointer_to_address): Likewise.
2727 (avr_address_class_type_flags): New function.
2728 (avr_address_class_type_flags_to_name): Likewise.
2729 (avr_address_class_name_to_type_flags): Likewise.
2730 (avr_gdbarch_init): Set address_class_type_flags,
2731 address_class_type_flags_to_name and
2732 address_class_name_to_type_flags.
2734 2014-07-15 Pedro Alves <palves@redhat.com>
2736 * linux-nat.c (kill_callback): Save errno and work with saved
2739 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2741 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2743 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2745 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2746 breakpoint support correctly.
2748 2014-07-14 Pedro Alves <palves@redhat.com>
2750 * utils.c (prompt_for_continue): Call target_terminal_ours.
2752 2014-07-14 Pedro Alves <palves@redhat.com>
2754 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2755 catch_errors. Don't re-enable stdin or notify observers where,
2757 (fetch_inferior_event_wrapper): Delete.
2759 2014-07-14 Pedro Alves <palves@redhat.com>
2762 * top.c: Include "inf-loop.h".
2763 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2765 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2767 (gdb_readline_wrapper): Store whether the target is async, and
2770 2014-07-14 Pedro Alves <palves@redhat.com>
2773 * top.c (gdb_readline_wrapper_line): Tweak comment.
2774 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2775 the input handler callback.
2777 2014-07-14 Pedro Alves <palves@redhat.com>
2780 * main.c: Include event-top.h.
2781 (handle_command_errors): New function.
2782 (catch_command_errors, catch_command_errors_const): Use it.
2784 2014-07-14 Pedro Alves <palves@redhat.com>
2786 * exceptions.c (catch_command_errors, catch_command_errors_const):
2788 * exceptions.h (catch_command_errors_ftype)
2789 (catch_command_errors_const_ftype): Moved to main.c.
2790 (catch_command_errors, catch_command_errors_const): Delete
2792 * main.c (catch_command_errors_ftype)
2793 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2794 (catch_command_errors, catch_command_errors_const)): Moved here
2795 from exceptions.c and make static.
2797 2014-07-14 Pedro Alves <palves@redhat.com>
2799 * exceptions.c (print_any_exception): Delete.
2800 (catch_exceptions_with_msg): Use exception_print instead of
2801 print_any_exception.
2802 (catch_errors): Use exception_fprintf instead of
2803 print_any_exception.
2804 (catch_command_errors, catch_command_errors_const): Use
2805 exception_print instead of print_any_exception.
2807 2014-07-14 Pedro Alves <palves@redhat.com>
2809 * infcall.c (run_inferior_call): Set 'sync_execution' while
2810 running the inferior call.
2812 2014-07-14 Pedro Alves <palves@redhat.com>
2814 * value.c (value_contents_equal): Delete function.
2815 * value.h (value_contents_equal): Delete declaration.
2817 2014-07-14 Tom Tromey <tromey@redhat.com>
2820 * gdbtypes.c (is_dynamic_type_internal): New function, from
2822 (is_dynamic_type): Rewrite.
2823 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2824 (resolve_dynamic_struct): Likewise.
2825 (resolve_dynamic_type_internal): New function, from
2826 resolve_dynamic_type.
2827 (resolve_dynamic_type): Rewrite.
2829 2014-07-14 Tom Tromey <tromey@redhat.com>
2831 * target.c (target_require_runnable): Also check record_stratum.
2834 2014-07-11 Yao Qi <yao@codesourcery.com>
2836 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2837 thumb_instruction_restores_sp return true.
2839 2014-07-11 Yao Qi <yao@codesourcery.com>
2841 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2842 (thumb_in_function_epilogue_p): Call
2843 thumb_instruction_restores_sp.
2845 2014-07-11 Yao Qi <yao@codesourcery.com>
2847 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2849 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2851 2014-07-11 Gary Benson <gbenson@redhat.com>
2853 * amd64-linux-nat.c (gdbcore.h): Remove include.
2854 (regset.h): Likewise.
2855 (nat/linux-btrace.h): Likewise.
2856 (btrace.h): Likewise.
2857 (gdb_assert.h): Likewise.
2858 (string.h): Likewise.
2859 (sys/uio.h): Likewise.
2860 (sys/debugreg.h): Likewise.
2861 (sys/syscall.h): Likewise.
2862 (sys/procfs.h): Likewise.
2863 (sys/user.h): Likewise.
2864 (asm/ptrace.h): Likewise.
2865 (i386-nat.h): Likewise.
2866 * i386-linux-nat.c (i386-nat.h): Likewise.
2867 (regset.h): Likewise.
2868 (target.h): Likewise.
2869 (linux-nat.h): Likewise.
2870 (nat/linux-btrace.h): Likewise.
2871 (btrace.h): Likewise.
2872 (gdb_assert.h): Likewise.
2873 (string.h): Likewise.
2874 (sys/uio.h): Likewise.
2875 (sys/user.h): Likewise.
2876 (sys/procfs.h): Likewise.
2877 (sys/reg.h): Likewise.
2878 (sys/debugreg.h): Likewise.
2879 (ORIG_EAX): Remove definition.
2881 2014-07-11 Gary Benson <gbenson@redhat.com>
2883 * i386-linux-nat.h: New file.
2884 * x86-linux-nat.h: Likewise.
2885 * x86-linux-nat.c: Likewise.
2886 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2887 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2888 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2889 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2890 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2891 (PTRACE_SETREGSET): Likewise.
2892 (arch_lwp_info): Now in x86-linux-nat.c.
2893 (have_ptrace_getregset): Now in x86-linux-nat.h.
2894 (x86_linux_dr_get): Now in x86-linux-nat.c.
2895 (x86_linux_dr_set): Likewise.
2896 (x86_linux_dr_get_addr): Likewise.
2897 (x86_linux_dr_get_control): Likewise.
2898 (x86_linux_dr_get_status): Likewise.
2899 (update_debug_registers_callback): Likewise.
2900 (x86_linux_dr_set_control): Likewise.
2901 (x86_linux_dr_set_addr): Likewise.
2902 (x86_linux_prepare_to_resume): Likewise.
2903 (x86_linux_new_thread): Likewise.
2904 (x86_linux_new_fork): Likewise.
2905 (x86_linux_get_thread_area): Likewise.
2906 (super_post_startup_inferior): Likewise.
2907 (x86_linux_child_post_startup_inferior): Likewise.
2908 (AMD64_LINUX_USER64_CS): Likewise.
2909 (AMD64_LINUX_X32_DS): Likewise.
2910 (x86_linux_read_description): Likewise.
2911 (x86_linux_enable_btrace): Likewise.
2912 (x86_linux_disable_btrace): Likewise.
2913 (x86_linux_teardown_btrace): Likewise.
2914 (x86_linux_read_btrace): Likewise.
2915 (x86_linux_create_target): Likewise.
2916 (x86_linux_add_target): Likewise.
2917 * i386-linux-nat.c (x86-linux-nat.h): New include.
2918 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2919 (PTRACE_SETREGSET): Likewise.
2920 (arch_lwp_info): Now in x86-linux-nat.c.
2921 (have_ptrace_getregset): Now in x86-linux-nat.h.
2922 (x86_linux_dr_get): Now in x86-linux-nat.c.
2923 (x86_linux_dr_set): Likewise.
2924 (x86_linux_dr_get_addr): Likewise.
2925 (x86_linux_dr_get_control): Likewise.
2926 (x86_linux_dr_get_status): Likewise.
2927 (update_debug_registers_callback): Likewise.
2928 (x86_linux_dr_set_control): Likewise.
2929 (x86_linux_dr_set_addr): Likewise.
2930 (x86_linux_prepare_to_resume): Likewise.
2931 (x86_linux_new_thread): Likewise.
2932 (x86_linux_new_fork): Likewise.
2933 (x86_linux_get_thread_area): Likewise.
2934 (super_post_startup_inferior): Likewise.
2935 (x86_linux_child_post_startup_inferior): Likewise.
2936 (AMD64_LINUX_USER64_CS): Likewise.
2937 (AMD64_LINUX_X32_DS): Likewise.
2938 (x86_linux_read_description): Likewise.
2939 (x86_linux_enable_btrace): Likewise.
2940 (x86_linux_disable_btrace): Likewise.
2941 (x86_linux_teardown_btrace): Likewise.
2942 (x86_linux_read_btrace): Likewise.
2943 (x86_linux_create_target): Likewise.
2944 (x86_linux_add_target): Likewise.
2946 2014-07-11 Gary Benson <gbenson@redhat.com>
2948 * amd64-linux-nat.c: Comment and whitespace changes.
2949 * i386-linux-nat.c: Comment and whitespace changes.
2951 2014-07-11 Gary Benson <gbenson@redhat.com>
2953 * amd64-linux-nat.c (x86_linux_create_target): New function.
2954 (x86_linux_add_target): Likewise.
2955 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2956 * i386-linux-nat.c (x86_linux_create_target): New function.
2957 (x86_linux_add_target): Likewise.
2958 (_initialize_i386_linux_nat): Delegate to the above new functions.
2960 2014-07-11 Gary Benson <gbenson@redhat.com>
2962 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2963 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2964 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2965 (ps_get_thread_area): Delegate to the above.
2967 2014-07-11 Gary Benson <gbenson@redhat.com>
2969 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2970 x86_linux_read_description. All uses updated. amd64-specific
2971 code conditionalized. Conditionalized i386-specific code added.
2972 Redundant cast removed.
2973 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2974 x86_linux_read_description. All uses updated. i386-specific
2975 code conditionalized. Conditionalized amd64-specific code added.
2976 One sizeof replaced with the actual type it is describing.
2978 2014-07-11 Gary Benson <gbenson@redhat.com>
2980 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2981 x86_linux_dr_get. All uses updated.
2982 (amd64_linux_dr_set): Renamed to
2983 x86_linux_dr_set. All uses updated.
2984 (amd64_linux_dr_get_addr): Renamed to
2985 x86_linux_dr_get_addr. All uses updated.
2986 (amd64_linux_dr_get_control): Renamed to
2987 x86_linux_dr_get_control. All uses updated.
2988 (amd64_linux_dr_get_status): Renamed to
2989 x86_linux_dr_get_status. All uses updated.
2990 (amd64_linux_dr_set_control): Renamed to
2991 x86_linux_dr_set_control. All uses updated.
2992 (amd64_linux_dr_set_addr): Renamed to
2993 x86_linux_dr_set_addr. All uses updated.
2994 (amd64_linux_prepare_to_resume): Renamed to
2995 x86_linux_prepare_to_resume. All uses updated.
2996 (amd64_linux_new_thread): Renamed to
2997 x86_linux_new_thread. All uses updated.
2998 (amd64_linux_new_fork): Renamed to
2999 x86_linux_new_fork. All uses updated.
3000 (amd64_linux_child_post_startup_inferior): Renamed to
3001 x86_linux_child_post_startup_inferior. All uses updated.
3002 (amd64_linux_enable_btrace): Renamed to
3003 x86_linux_enable_btrace. All uses updated.
3004 (amd64_linux_disable_btrace): Renamed to
3005 x86_linux_disable_btrace. All uses updated.
3006 (amd64_linux_teardown_btrace): Renamed to
3007 x86_linux_teardown_btrace. All uses updated.
3008 (amd64_linux_read_btrace): Renamed to
3009 x86_linux_read_btrace. All uses updated.
3010 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3011 x86_linux_dr_get. All uses updated.
3012 (i386_linux_dr_set): Renamed to
3013 x86_linux_dr_set. All uses updated.
3014 (i386_linux_dr_get_addr): Renamed to
3015 x86_linux_dr_get_addr. All uses updated.
3016 (i386_linux_dr_get_control): Renamed to
3017 x86_linux_dr_get_control. All uses updated.
3018 (i386_linux_dr_get_status): Renamed to
3019 x86_linux_dr_get_status. All uses updated.
3020 (i386_linux_dr_set_control): Renamed to
3021 x86_linux_dr_set_control. All uses updated.
3022 (i386_linux_dr_set_addr): Renamed to
3023 x86_linux_dr_set_addr. All uses updated.
3024 (i386_linux_prepare_to_resume): Renamed to
3025 x86_linux_prepare_to_resume. All uses updated.
3026 (i386_linux_new_thread): Renamed to
3027 x86_linux_new_thread. All uses updated.
3028 (i386_linux_new_fork): Renamed to
3029 x86_linux_new_fork. All uses updated.
3030 (i386_linux_child_post_startup_inferior): Renamed to
3031 x86_linux_child_post_startup_inferior. All uses updated.
3032 (i386_linux_enable_btrace): Renamed to
3033 x86_linux_enable_btrace. All uses updated.
3034 (i386_linux_disable_btrace): Renamed to
3035 x86_linux_disable_btrace. All uses updated.
3036 (i386_linux_teardown_btrace): Renamed to
3037 x86_linux_teardown_btrace. All uses updated.
3038 (i386_linux_read_btrace): Renamed to
3039 x86_linux_read_btrace. All uses updated.
3041 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3043 * remote.c (extended_remote_post_attach): New function.
3044 (init_extended_remote_ops): Install it as to_post_attach method.
3046 2014-07-09 Pedro Alves <palves@redhat.com>
3048 * infcmd.c (attach_command_post_wait): Don't call
3049 target_terminal_inferior here.
3050 (attach_command): Call it here instead.
3052 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3054 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3056 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3057 from varobj.c, with additional checks.
3058 (c_varobj_ops): Fill in is_path_expr_parent field.
3059 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3060 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3062 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3064 (varobj_default_is_path_expr_parent): New function.
3065 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3066 (varobj_default_is_path_expr_parent): Declare new function.
3068 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3070 * infcmd.c (finish_backward): Turn internal error into normal error.
3072 2014-07-07 Pedro Alves <palves@redhat.com>
3075 * remote.c (async_handle_remote_sigint)
3076 (async_handle_remote_sigint_twice): Call
3077 gdb_call_async_signal_handler instead of
3078 mark_async_signal_handler.
3080 2014-07-07 Tom Tromey <tromey@redhat.com>
3082 * target-delegates.c: Rebuild.
3083 * target.c (target_info_record): Remove.
3084 * record.c (info_record_command): Unconditionally call
3086 * target.h (struct target_ops) <to_info_record>: Use
3087 TARGET_DEFAULT_IGNORE.
3088 (target_info_record): Remove.
3090 2014-07-07 Tom Tromey <tromey@redhat.com>
3092 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3093 TARGET_DEFAULT_NORETURN.
3094 * target.c (generic_tls_error): New function.
3095 (target_translate_tls_address): Don't search target stack.
3096 * target-delegates.c: Rebuild.
3097 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3099 * linux-thread-db.c (thread_db_get_thread_local_address):
3100 Unconditionally call beneath target.
3102 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3104 * cli/cli-logging.c (pop_output_files): Assign targerr to
3107 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3109 * MAINTAINERS (Write After Approval): Update my email address.
3111 2014-07-02 Gary Benson <gbenson@redhat.com>
3113 * proc-service.c (ps_xfer_memory): Update comment.
3114 (ps_pstop): Remove unused function.
3115 (ps_pcontinue): Likewise.
3116 (ps_lstop): Likewise.
3117 (ps_lcontinue): Likewise.
3118 (ps_lgetxregsize): Likewise.
3119 (ps_lgetxregs): Likewise.
3120 (ps_lsetxregs): Likewise.
3121 (ps_plog): Likewise.
3122 (ps_ptread): Likewise.
3123 (ps_ptwrite): Likewise.
3125 2014-07-01 Mark Wielaard <mjw@redhat.com>
3127 * dwarf2read.c (add_array_cv_type): New function.
3128 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3129 (read_tag_volatile_type): Likewise.
3131 2014-07-01 Tom Tromey <tromey@redhat.com>
3133 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3134 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3135 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3136 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3137 * command.h (cmd_cfunc_ftype): Move earlier.
3138 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3139 (add_com, add_info): Use cmd_cfunc_ftype.
3141 2014-06-30 Tom Tromey <tromey@redhat.com>
3143 * symtab.c (operator_chars): Make parameters and return type
3145 (file_matches): Make "files" const.
3146 (struct search_symbols_data) <files>: Now const.
3147 (search_symbols): Make "regexp" and "files" parameters const.
3149 (symtab_symbol_info): Remove cast.
3150 (rbreak_command): Update.
3151 * symtab.h (search_symbols): Update.
3153 2014-06-27 Yao Qi <yao@codesourcery.com>
3155 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3156 Change parameter type to 'struct thread_info *'. Caller
3158 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3160 * dummy-frame.c (struct dummy_frame_id): New.
3161 (dummy_frame_id_eq): New function.
3162 (struct dummy_frame) <id>: Change its type to 'struct
3164 (dummy_frame_push): Add parameter ptid and save it in
3166 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3168 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3170 (lookup_dummy_frame): Change parameter type to 'struct
3171 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3172 instead of frame_id_eq.
3173 (dummy_frame_pop): Add parameter ptid. Callers updated.
3174 Update comments. Compose dummy_frame_id and pass it to
3176 (dummy_frame_discard): Add parameter ptid.
3177 (dummy_frame_sniffer): Compose dummy_frame_id and call
3178 dummy_frame_id_eq instead of frame_id_eq.
3179 (fprint_dummy_frames): Print ptid.
3180 * dummy-frame.h: Remove comments.
3181 (dummy_frame_push): Add ptid in declaration.
3182 (dummy_frame_pop, dummy_frame_discard): Likewise.
3184 2014-06-26 Tom Tromey <tromey@redhat.com>
3186 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3187 * command.h (error_no_arg): Update.
3189 2014-06-26 Tom Tromey <tromey@redhat.com>
3191 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3192 (do_show_command): Make "arg" const.
3193 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3195 2014-06-26 Tom Tromey <tromey@redhat.com>
3197 * record-full.c (record_full_get_bookmark): Make "args" const.
3198 (record_full_goto_bookmark): Make "raw_bookmark" const.
3199 * record.c (record_goto): New function.
3200 (cmd_record_goto): Use it. Now static.
3201 * record.h (record_goto): Declare.
3202 (cmd_record_goto): Remove declaration.
3203 * target-delegates.c: Rebuild.
3204 * target.h (struct target_ops) <to_get_bookmark,
3205 to_goto_bookmark>: Make parameter const.
3207 2014-06-26 Tom Tromey <tromey@redhat.com>
3209 * defs.h (generic_load): Update.
3210 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3211 * monitor.c (monitor_load): Make "args" const.
3212 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3213 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3215 (mips_load): Make "file" const.
3216 * remote-sim.c (gdbsim_load): Make "args" const.
3217 * remote.c (remote_load): Make "name" const.
3218 * symfile.c (generic_load): Make "args" const.
3219 * target-delegates.c: Rebuild.
3220 * target.c (target_load): Make "arg" const.
3221 (debug_to_load): Make "args" const.
3222 * target.h (struct target_ops) <to_load>: Make parameter const.
3223 (target_load): Update.
3225 2014-06-26 Tom Tromey <tromey@redhat.com>
3228 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3229 (dwarf2_physname, read_partial_die)
3230 (guess_partial_die_structure_name, fixup_partial_die)
3231 (guess_full_die_structure_name, anonymous_struct_prefix)
3232 (dwarf2_name): Use per-BFD obstack.
3234 2014-06-26 Yao Qi <yao@codesourcery.com>
3236 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3237 dummyframe and this_id into inner block below.
3239 2014-06-26 Yao Qi <yao@codesourcery.com>
3241 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3242 with "signal_pass[0]" in the initialization of signal_pass.
3244 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3246 * record-btrace.c (record_btrace_generating_corefile)
3247 (record_btrace_prepare_to_generate_core)
3248 (record_btrace_done_generating_core): New.
3249 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3250 (record_btrace_store_registers, record_btrace_prepare_to_store):
3251 Forward request when generating a core file.
3252 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3253 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3254 to_done_generating_core.
3256 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3258 * target.h (target_ops) <to_prepare_to_generate_core>
3259 <to_done_generating_core>: New.
3260 (target_prepare_to_generate_core, target_done_generating_core): New.
3261 * target.c (target_prepare_to_generate_core)
3262 (target_done_generating_core): New.
3263 * target-delegates.c: Regenerate.
3264 * gcore.c: (write_gcore_file): Rename to ...
3265 (write_gcore_file_1): ...this.
3266 (write_gcore_file): Call target_prepare_to_generate_core
3267 and target_done_generating_core.
3269 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3271 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3272 * gcore.c (write_gcore_file): Free memory returned from
3273 make_corefile_notes.
3274 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3275 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3277 2014-06-24 Yao Qi <yao@codesourcery.com>
3279 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3280 (arm_linux_init_abi): Set skip_trampoline_code with
3281 gdbarch_skip_trampoline_code instead of
3282 find_solib_trampoline_target.
3284 2014-06-24 Yao Qi <yao@codesourcery.com>
3286 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3287 arm_skip_bx_reg returns non-zero.
3289 2014-06-24 Yao Qi <yao@codesourcery.com>
3291 * arm-tdep.c (arm_skip_bx_reg): New function.
3292 (arm_skip_stub): Call arm_skip_bx_reg.
3294 2014-06-23 Don Breazeal <donb@codesourcery.com>
3296 * MAINTAINERS: Add myself as write-after-approval maintainer.
3298 2014-06-23 Pedro Alves <palves@redhat.com>
3300 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3301 DR_CONTROL before setting DR0..DR3.
3302 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3303 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3304 bits of DR_CONTROL related to the debug register slot being
3305 disabled. If all slots are vacant, clear local slowdown as well,
3306 and assert DR_CONTROL is 0.
3308 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3310 * python/lib/gdb/command/xmethods.py
3311 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3312 current progspace only if the string "progspace" matches LOCUS_RE.
3314 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3316 Fix --with-system-readline with readline-6.3 patch 5.
3317 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3318 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3321 2014-06-20 Tom Tromey <tromey@redhat.com>
3323 * dwarf2read.c (dw2_get_real_path): Use correct type in
3325 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3327 2014-06-20 Gary Benson <gbenson@redhat.com>
3329 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3330 * common/glibc_thread_db.h: Likewise.
3331 * common/i386-cpuid.h: Likewise.
3332 * common/i386-gcc-cpuid.h: Likewise.
3333 * common/linux-btrace.h: Likewise.
3334 * common/linux-osdata.h: Likewise.
3335 * common/linux-procfs.h: Likewise.
3336 * common/linux-ptrace.h: Likewise.
3337 * common/mips-linux-watch.h: Likewise.
3338 * common/linux-btrace.c: Moved to nat.
3339 * common/linux-osdata.c: Likewise.
3340 * common/linux-procfs.c: Likewise.
3341 * common/linux-ptrace.c: Likewise.
3342 * common/mips-linux-watch.c: Likewise.
3343 * nat/gdb_thread_db.h: Moved from common.
3344 * nat/glibc_thread_db.h: Likewise.
3345 * nat/i386-cpuid.h: Likewise.
3346 * nat/i386-gcc-cpuid.h: Likewise.
3347 * nat/linux-btrace.c: Likewise.
3348 * nat/linux-btrace.h: Likewise.
3349 * nat/linux-osdata.c: Likewise.
3350 * nat/linux-osdata.h: Likewise.
3351 * nat/linux-procfs.c: Likewise.
3352 * nat/linux-procfs.h: Likewise.
3353 * nat/linux-ptrace.c: Likewise.
3354 * nat/linux-ptrace.h: Likewise.
3355 * nat/mips-linux-watch.c: Likewise.
3356 * nat/mips-linux-watch.h: Likewise.
3357 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3358 (object file files): Reordered.
3359 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3360 of glibc_thread_db.h.
3362 2014-06-20 Gary Benson <gbenson@redhat.com>
3364 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3365 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3366 (i386_dr_low): Likewise.
3367 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3368 (i386_dr_low_set_addr): Likewise.
3369 (i386_dr_low_get_addr): Likewise.
3370 (i386_dr_low_can_set_control): Likewise.
3371 (i386_dr_low_set_control): Likewise.
3372 (i386_dr_low_get_control): Likewise.
3373 (i386_dr_low_get_status): Likewise.
3374 (i386_get_debug_register_length): Likewise.
3375 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3376 (i386_dr_low): Likewise.
3377 * nat/i386-dregs.c (i386-low.h): Remove include.
3378 (i386-nat.h): Likewise.
3379 (nat/i386-dregs.h): New include.
3380 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3381 (i386_dr_low_set_addr): Likewise.
3382 (i386_dr_low_get_addr): Likewise.
3383 (i386_dr_low_can_set_control): Likewise.
3384 (i386_dr_low_set_control): Likewise.
3385 (i386_dr_low_get_control): Likewise.
3386 (i386_dr_low_get_status): Likewise.
3387 (i386_get_debug_register_length): Likewise.
3388 (debug_hw_points): Likewise.
3390 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3392 * Makefile.in (SFILES): Add d-exp.y.
3393 (YYFILES): Add d-exp.c.
3394 (YYOBJ): Add d-exp.o.
3395 (local-maintainer-clean): Delete d-exp.c.
3396 * d-exp.y: New file.
3397 * d-lang.h (d_parse): New declaration.
3398 (d_error): New declaration.
3399 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3400 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3401 PREC_ORDER operators.
3402 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3404 2014-06-19 Yao Qi <yao@codesourcery.com>
3406 * gdbthread.h (any_running): Remove the declaration.
3407 * thread.c (any_running): Remove.
3409 2014-06-19 Yao Qi <yao@codesourcery.com>
3411 * gdbthread.h (struct thread_info) <state>: Change its type to
3412 'enum thread_state'. Update comments.
3414 2014-06-19 Pedro Alves <palves@redhat.com>
3416 * gdbthread.h (ALL_THREADS): Delete.
3417 (ALL_NON_EXITED_THREADS): New macro.
3418 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3419 instead of ALL_THREADS.
3420 * infrun.c (find_thread_needs_step_over)
3421 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3422 instead of ALL_THREADS.
3423 * record-btrace.c (record_btrace_open)
3424 (record_btrace_stop_recording, record_btrace_close)
3425 (record_btrace_is_replaying, record_btrace_resume)
3426 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3427 * remote.c (append_pending_thread_resumptions): Likewise.
3428 * thread.c (thread_apply_all_command): Likewise.
3430 2014-06-19 Gary Benson <gbenson@redhat.com>
3432 * i386-nat.c (i386_stopped_by_watchpoint):
3433 Use i386_dr_stopped_by_watchpoint.
3434 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3435 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3437 2014-06-19 Gary Benson <gbenson@redhat.com>
3439 * nat/i386-dregs.c: New file.
3440 * Makefile.in (i386-dregs.o): New rule.
3441 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3442 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3443 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3444 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3445 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3446 * config/i386/go32.mh (NATDEPFILES): Likewise.
3447 * config/i386/linux.mh (NATDEPFILES): Likewise.
3448 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3449 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3450 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3451 * i386-nat.h (debug_hw_points): New declaration.
3452 * i386-nat.c (breakpoint.h): Remove include.
3453 (command.h): Likewise.
3454 (target.h): Likewise.
3455 (gdb_assert.h): Likewise.
3456 (debug_hw_points): Made nonstatic.
3457 (debug_printf): Now in i386-dregs.c.
3458 (TARGET_HAS_DR_LEN_8): Likewise.
3459 (DR_CONTROL_SHIFT): Likewise.
3460 (DR_CONTROL_SIZE): Likewise.
3461 (DR_RW_EXECUTE): Likewise.
3462 (DR_RW_WRITE): Likewise.
3463 (DR_RW_READ): Likewise.
3464 (DR_RW_IORW): Likewise.
3465 (DR_LEN_1): Likewise.
3466 (DR_LEN_2): Likewise.
3467 (DR_LEN_4): Likewise.
3468 (DR_LEN_8): Likewise.
3469 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3470 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3471 (DR_ENABLE_SIZE): Likewise.
3472 (DR_LOCAL_SLOWDOWN): Likewise.
3473 (DR_GLOBAL_SLOWDOWN): Likewise.
3474 (DR_CONTROL_RESERVED): Likewise.
3475 (I386_DR_CONTROL_MASK): Likewise.
3476 (I386_DR_VACANT): Likewise.
3477 (I386_DR_LOCAL_ENABLE): Likewise.
3478 (I386_DR_GLOBAL_ENABLE): Likewise.
3479 (I386_DR_DISABLE): Likewise.
3480 (I386_DR_SET_RW_LEN): Likewise.
3481 (I386_DR_GET_RW_LEN): Likewise.
3482 (I386_DR_WATCH_HIT): Likewise.
3483 (i386_wp_op_t): Likewise.
3484 (i386_show_dr): Likewise.
3485 (i386_length_and_rw_bits): Likewise.
3486 (i386_insert_aligned_watchpoint): Likewise.
3487 (i386_remove_aligned_watchpoint): Likewise.
3488 (i386_handle_nonaligned_watchpoint): Likewise.
3489 (i386_update_inferior_debug_regs): Likewise.
3490 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3491 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3492 (i386_region_ok_for_watchpoint):
3493 Use i386_dr_region_ok_for_watchpoint.
3494 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3496 2014-06-19 Gary Benson <gbenson@redhat.com>
3498 * i386-nat.c (i386_insert_hw_breakpoint): Use
3499 i386_insert_watchpoint.
3500 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3502 2014-06-19 Gary Benson <gbenson@redhat.com>
3504 * i386-nat.c (i386_dr_show): Renamed to
3505 i386_show_dr and made static. All uses updated.
3506 (i386_dr_length_and_rw_bits): Renamed to
3507 i386_length_and_rw_bits and made static.
3509 (i386_dr_insert_aligned_watchpoint): Renamed to
3510 i386_insert_aligned_watchpoint and made static.
3512 (i386_dr_remove_aligned_watchpoint): Renamed to
3513 i386_remove_aligned_watchpoint and made static.
3515 (i386_dr_update_inferior_debug_regs): Renamed to
3516 i386_update_inferior_debug_regs and made static.
3518 * nat/i386-dregs.h (i386_dr_show): Removed.
3519 (i386_dr_length_and_rw_bits): Likewise.
3520 (i386_dr_insert_aligned_watchpoint): Likewise.
3521 (i386_dr_remove_aligned_watchpoint): Likewise.
3522 (i386_dr_update_inferior_debug_regs): Likewise.
3524 2014-06-19 Gary Benson <gbenson@redhat.com>
3526 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3527 * configure: Regenerate.
3528 * config.in: Likewise.
3529 * main.c (signal.h): New include.
3530 (setup_alternate_signal_stack): New function.
3531 (captured_main): Call the above.
3532 * cp-support.c (signal.h): New include.
3533 (catch_demangler_crashes): New flag.
3534 (SIGJMP_BUF): New define.
3535 (SIGSETJMP): Likewise.
3536 (SIGLONGJMP): Likewise.
3537 (gdb_demangle_jmp_buf): New static global.
3538 (gdb_demangle_attempt_core_dump): Likewise.
3539 (gdb_demangle_signal_handler): New function.
3540 (gdb_demangle): If catch_demangler_crashes is set, install the
3541 above signal handler before calling bfd_demangle, and restore
3542 the original signal handler afterwards. Display the offending
3543 symbol and call demangler_warning the first time a segmentation
3545 (_initialize_cp_support): New maint set/show command.
3547 2014-06-19 Gary Benson <gbenson@redhat.com>
3549 * utils.h (resource_limit_kind): New enum.
3550 (can_dump_core): New declaration.
3551 (warn_cant_dump_core): Likewise.
3552 (dump_core): Likewise.
3553 * utils.c (dump_core): Made nonstatic. Added new
3554 parameter "limit_kind".
3555 (can_dump_core): Made nonstatic. Moved printing code to...
3556 (warn_cant_dump_core): New function.
3557 (can_dump_core_warn): Likewise.
3558 (internal_vproblem): Replace calls to can_dump_core with
3559 calls to can_dump_core_warn. Supply new argument to each.
3561 2014-06-19 Gary Benson <gbenson@redhat.com>
3563 * utils.h (demangler_vwarning): New declaration.
3564 (demangler_warning): Likewise.
3565 * utils.c (struct internal_problem)
3566 <user_settable_should_quit>: New field.
3567 <user_settable_should_dump_core>: Likewise
3568 (internal_error_problem): Add values for above new fields.
3569 (internal_warning_problem): Likewise.
3570 (demangler_warning_problem): New static global.
3571 (demangler_vwarning): New function.
3572 (demangler_warning): Likewise.
3573 (add_internal_problem_command): Selectively add commands.
3574 (_initialize_utils): New internal problem command.
3575 * maint.c (maintenance_demangler_warning): New function.
3576 (_initialize_maint_cmds): New command.
3578 2014-06-18 Tom Tromey <tromey@redhat.com>
3580 * f-valprint.c (info_common_command_for_block): Update.
3581 * symtab.h (struct general_symbol_info) <common_block>: Now
3584 2014-06-18 Tom Tromey <tromey@redhat.com>
3586 * symtab.h (struct symtab) <blockvector>: Now const.
3587 * ada-lang.c (ada_add_global_exceptions): Update.
3588 * buildsym.c (augment_type_symtab): Update.
3589 * dwarf2read.c (dw2_lookup_symbol): Update.
3590 * jit.c (finalize_symtab): Update.
3591 * jv-lang.c (add_class_symtab_symbol): Update.
3592 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3594 * objfiles.c (objfile_relocate1): Update.
3595 * psymtab.c (lookup_symbol_aux_psymtabs)
3596 (maintenance_check_psymtabs): Update.
3597 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3599 * spu-tdep.c (spu_catch_start): Update.
3600 * symmisc.c (dump_symtab_1): Update.
3601 * symtab.c (lookup_global_symbol_from_objfile)
3602 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3603 (basic_lookup_transparent_type_quick)
3604 (basic_lookup_transparent_type, find_pc_sect_symtab)
3605 (find_pc_sect_line, search_symbols): Update.
3606 * block.c (find_block_in_blockvector): Make "bl" const.
3607 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3609 (blockvector_contains_pc): Make "bv" const.
3610 (block_for_pc_sect): Update.
3611 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3612 (blockvector_contains_pc): Update.
3613 * breakpoint.c (resolve_sal_pc): Update.
3614 * inline-frame.c (block_starting_point_at): Update.
3616 2014-06-18 Tom Tromey <tromey@redhat.com>
3618 * completer.c (complete_line): Make "line_buffer" const.
3619 * completer.h (complete_line): Update.
3621 2014-06-18 Tom Tromey <tromey@redhat.com>
3623 * symtab.c (add_macro_name): Remove unneeded cast.
3625 2014-06-18 Tom Tromey <tromey@redhat.com>
3627 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3628 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3630 2014-06-18 Tom Tromey <tromey@redhat.com>
3632 * probe.c (info_probes_for_ops): Make "arg" const.
3633 * probe.h (info_probes_for_ops): Update.
3635 2014-06-18 Tom Tromey <tromey@redhat.com>
3637 * varobj.c (varobj_create): Update.
3638 * valops.c (value_of_this): Update.
3639 * tracepoint.c (add_local_symbols, scope_info): Update.
3640 * symtab.h (struct general_symbol_info) <block>: Now const.
3641 * symtab.c (skip_prologue_sal)
3642 (default_make_symbol_completion_list_break_on)
3643 (skip_prologue_using_sal): Update.
3644 * stack.h (iterate_over_block_locals)
3645 (iterate_over_block_local_vars): Update.
3646 * stack.c (print_frame_args): Update.
3647 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3649 (get_selected_block): Make return type const.
3650 * python/py-frame.c (frapy_block): Update.
3651 * python/py-block.c (gdbpy_block_for_pc): Update.
3652 * p-exp.y (%union) <bval>: Now const.
3653 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3654 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3655 * m2-exp.y (%union) <bval>: Now const.
3656 * linespec.c (get_current_search_block): Make return type const.
3657 (create_sals_line_offset, find_label_symbols): Update.
3658 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3660 (block_starting_point_at): Make "block" const.
3661 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3662 (check_exception_resume): Update.
3663 * guile/scm-frame.c (gdbscm_frame_block): Update.
3664 * guile/scm-block.c (gdbscm_lookup_block): Update.
3665 * frame.h (get_frame_block): Update.
3666 (get_selected_block): Make return type const.
3667 * frame.c (frame_id_inner): Update.
3668 * f-valprint.c (info_common_command_for_block)
3669 (info_common_command): Update.
3670 * dwarf2loc.c (dwarf2_find_location_expression)
3671 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3672 (locexpr_describe_location_piece): Update.
3673 * c-exp.y (%union) <bval>: Now const.
3674 * breakpoint.c (resolve_sal_pc): Update.
3675 * blockframe.c (get_frame_block):Make return type const.
3676 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3677 (block_innermost_frame): Update.
3678 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3679 (block_for_pc, block_for_pc_sect): Update.
3680 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3682 (block_for_pc_sect, block_for_pc): Make return type const.
3683 * ax-gdb.c (gen_expr): Update.
3684 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3685 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3686 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3687 (ada_read_var_value): Update.
3688 * ada-exp.y (struct name_info) <block>: Now const.
3690 (block_lookup): Constify.
3692 2014-06-18 Gary Benson <gbenson@redhat.com>
3694 * nat/i386-dregs.h: New file.
3695 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3696 * i386-nat.h (i386-dregs.h): New include.
3697 (DR_FIRSTADDR): Now in i386-dregs.h.
3698 (DR_LASTADDR): Likewise.
3699 (DR_NADDR): Likewise.
3700 (DR_STATUS): Likewise.
3701 (DR_CONTROL): Likewise.
3702 (i386_debug_reg_state): Likewise.
3703 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3705 2014-06-18 Don Breazeal <donb@codesourcery.com>
3707 * breakpoint.c (set_longjmp_breakpoint): Call
3708 momentary_breakpoint_from_master with additional argument.
3709 (set_longjmp_breakpoint_for_call_dummy): Call
3710 momentary_breakpoint_from_master with additional argument.
3711 (set_std_terminate_breakpoint): Call
3712 momentary_breakpoint_from_master with additional argument.
3713 (momentary_breakpoint_from_master): Add argument to function
3714 definition and use it to initialize structure member flag.
3715 (clone_momentary_breakpoint): Call
3716 momentary_breakpoint_from_master with additional argument.
3717 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3718 member flags set in momentary_breakpoint_from_master.
3720 2014-06-18 Gary Benson <gbenson@redhat.com>
3722 * i386-nat.c (i386_show_dr): Renamed to
3723 i386_dr_show and made nonstatic. All uses updated.
3724 (i386_length_and_rw_bits): Renamed to
3725 i386_dr_length_and_rw_bits and made nonstatic.
3727 (i386_insert_aligned_watchpoint): Renamed to
3728 i386_dr_insert_aligned_watchpoint and made nonstatic.
3730 (i386_remove_aligned_watchpoint): Renamed to
3731 i386_dr_remove_aligned_watchpoint and made nonstatic.
3733 (i386_update_inferior_debug_regs): Renamed to
3734 i386_dr_update_inferior_debug_regs and made nonstatic.
3737 2014-06-18 Gary Benson <gbenson@redhat.com>
3739 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3740 (i386_dr_low_can_set_control): Likewise.
3741 (i386_dr_low_set_addr): Likewise.
3742 (i386_dr_low_set_control): Likewise.
3743 (i386_dr_low_get_addr): Likewise.
3744 (i386_dr_low_get_status): Likewise.
3745 (i386_dr_low_get_control): Likewise.
3746 (i386_insert_aligned_watchpoint): Use new macros.
3747 (i386_update_inferior_debug_regs): Likewise.
3748 (i386_stopped_data_address): Likewise.
3750 2014-06-18 Gary Benson <gbenson@redhat.com>
3752 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3753 New parameter. All uses updated.
3755 2014-06-18 Gary Benson <gbenson@redhat.com>
3757 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3760 2014-06-18 Gary Benson <gbenson@redhat.com>
3762 * i386-nat.c (debug_printf): New macro.
3763 (i386_get_debug_register_length): Likewise.
3764 (TARGET_HAS_DR_LEN_8): Use above macro.
3765 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3766 and printf_unfiltered. Use phex to format values.
3768 2014-06-18 Gary Benson <gbenson@redhat.com>
3770 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3773 2014-06-18 Gary Benson <gbenson@redhat.com>
3775 * i386-nat.c: Comment changes.
3777 2014-06-18 Gary Benson <gbenson@redhat.com>
3779 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3781 2014-06-18 Gary Benson <gbenson@redhat.com>
3783 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3784 (i386_insert_aligned_watchpoint): Likewise.
3785 (i386_remove_aligned_watchpoint): Likewise.
3786 (i386_handle_nonaligned_watchpoint): Likewise.
3788 2014-06-18 Gary Benson <gbenson@redhat.com>
3790 * i386-nat.c: Whitespace changes.
3792 2014-06-17 Samuel Bronson <naesten@gmail.com>
3794 * MAINTAINERS: Update Roland McGrath's email address.
3795 Thanks to Sergio Durigan Junior for pointing out that he left
3796 Red Hat a while ago, and giving me a current address.
3798 2014-06-17 Tom Tromey <tromey@redhat.com>
3800 * utils.h (savestring): Remove declaration.
3802 2014-06-17 Tom Tromey <tromey@redhat.com>
3804 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3806 2014-06-16 Keith Seitz <keiths@redhat.com>
3809 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3810 to update the varobj if inferior_ptid is null_ptid.
3812 2014-06-16 Tom Tromey <tromey@redhat.com>
3814 * target.h (struct target_ops) <to_info_proc>: Make parameter
3816 (target_info_proc): Update.
3817 * target.c (target_info_proc): Make "args" const.
3818 * procfs.c (procfs_info_proc): Update.
3819 * linux-tdep.c (linux_info_proc): Update.
3820 (linux_core_info_proc_mappings): Make "args" const.
3821 (linux_core_info_proc): Update.
3822 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3823 * gdbarch.c: Rebuild.
3824 * gdbarch.h: Rebuild.
3825 * corelow.c (core_info_proc): Update.
3827 2014-06-16 Tom Tromey <tromey@redhat.com>
3829 * target.h (struct target_ops) <to_disconnect>: Make parameter
3831 (target_disconnect): Update.
3832 * target.c (target_disconnect): Make "args" const.
3833 * target-delegates.c: Rebuild.
3834 * remote.c (remote_disconnect): Update.
3835 * record.h (record_disconnect): Update.
3836 * record.c (record_disconnect): Update.
3837 * inf-child.c (inf_child_disconnect): Update.
3839 2014-06-16 Tom Tromey <tromey@redhat.com>
3841 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3842 * target.c (debug_to_rcmd, default_rcmd): Update.
3843 * target-delegates.c: Rebuild.
3844 * remote.c (remote_rcmd): Update.
3845 * monitor.c (monitor_rcmd): Update.
3847 2014-06-16 Pedro Alves <palves@redhat.com>
3849 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3850 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3851 have OBJF_SHARED set.
3852 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3853 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3854 instead of OBJF_USERLOADED.
3855 * objfiles.h (OBJF_SHARED): Update comment.
3856 (userloaded_objfile_contains_address_p): Rename to ...
3857 (shared_objfile_contains_address_p): ... this, and update
3859 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3861 (remove_symbol_file_command): Skip objfiles that don't have
3864 2014-06-16 Tom Tromey <tromey@redhat.com>
3866 * minsyms.h (prim_record_minimal_symbol)
3867 (prim_record_minimal_symbol_and_info): Update comments.
3869 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3871 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3872 or --without-guile, according to how GDB was built.
3874 2014-06-13 Tom Tromey <tromey@redhat.com>
3876 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3878 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3880 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3882 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3883 help_list.Pass all_commands, not -1, to help_list.
3884 * cli/cli-dump.c (dump_command, append_command)
3885 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3886 (binary_dump_command, binary_append_command): Pass all_commands,
3887 not -1, to help_list.
3888 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3890 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3892 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3894 * top.c (set_history): Pass all_commands, not -1, to help_list.
3895 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3896 all_commands, not -1, to help_list.
3897 * symfile.c (overlay_command): Pass all_commands, not -1, to
3899 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3901 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3903 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3905 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3906 not -1, to help_list.
3907 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3908 not -1, to help_list.
3909 * maint.c (maintenance_command, maintenance_info_command)
3910 (maintenance_print_command, maintenance_set_cmd): Pass
3911 all_commands, not -1, to help_list.
3912 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3914 * language.c (set_check): Pass all_commands, not -1, to help_list.
3915 * infcmd.c (unset_command): Pass all_commands, not -1, to
3917 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3919 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3921 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3923 * breakpoint.c (save_command): Pass all_commands, not -1, to
3925 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3926 all_commands, not -1, to help_list.
3928 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3930 * regcache.c (struct register_to_invalidate): New structure.
3931 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3933 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3935 2014-06-12 Yao Qi <yao@codesourcery.com>
3937 * varobj.c (varobj_get_num_children): Call
3938 varobj_is_dynamic_p.
3939 (varobj_list_children): Likewise.
3940 (varobj_update): Likewise. Update comments.
3942 2014-06-12 Yao Qi <yao@codesourcery.com>
3944 * varobj.c (varobj_pretty_printed_p): Rename to ...
3945 (varobj_is_dynamic_p): ... this. New function.
3946 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3947 (varobj_is_dynamic_p): Declare.
3948 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3949 (mi_print_value_p, varobj_update_one): Likewise.
3951 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3952 Yao Qi <yao@codesourcery.com>
3954 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3955 (varobj_get_iterator): Wrap up code for pretty-printer by
3956 "#if HAVE_PYTHON" and "#endif".
3957 (update_dynamic_varobj_children): Likewise.
3959 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3960 Yao Qi <yao@codesourcery.com>
3962 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3963 gdb_python_initialized is false. Move some code from varobj.c.
3964 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3965 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3966 (struct varobj_item): Moved to varobj-iter.h".
3967 (varobj_clear_saved_item): New function.
3968 (update_dynamic_varobj_children): Move python-related code to
3970 (free_variable): Call varobj_clear_saved_item and
3973 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3974 Yao Qi <yao@codesourcery.com>
3976 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3977 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3978 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3979 (py-varobj.o): New rule.
3980 * python/py-varobj.c: New file.
3981 * python/python-internal.h (py_varobj_get_iterator): Declare.
3982 * varobj-iter.h: New file.
3983 * varobj.c: Include "varobj-iter.h"
3984 (struct varobj) <child_iter>: Change its type from "PyObject *"
3985 to "struct varobj_iter *".
3986 <saved_item>: Likewise.
3987 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3988 [HAVE_PYTHON] (varobj_get_iterator): New function.
3989 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3990 python-specific code to python/py-varobj.c.
3991 (install_visualizer): Call varobj_iter_delete instead of
3993 * varobj.h (varobj_ensure_python_env): Declare.
3995 2014-06-12 Yao Qi <yao@codesourcery.com>
3997 * varobj.c (struct varobj_item): New structure.
3998 (create_child_with_value): Update declaration.
3999 (varobj_add_child): Replace arguments 'name' and 'value' with
4000 'item'. All callers updated.
4001 (install_dynamic_child): Likewise.
4002 (update_dynamic_varobj_children): Likewise.
4003 (varobj_add_child): Likewise.
4004 (create_child_with_value): Likewise.
4006 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4008 * NEWS: Create a new section for the next release branch.
4009 Rename the section of the current branch, now that it has
4012 2014-06-11 Joel Brobecker <brobecker@adacore.com>
4014 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4015 * version.in: Bump version to 7.8.50.DATE-cvs.
4017 2014-06-11 Pedro Alves <palves@redhat.com>
4020 * ser-mingw.c (net_windows_socket_check_pending): New function.
4021 (net_windows_select_thread): Ignore spurious wakeups. Use
4022 net_windows_socket_check_pending.
4023 (net_windows_wait_handle): Check for pending events with
4024 ioctlsocket, through net_windows_socket_check_pending, instead of
4025 checking the socket's event.
4027 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4029 * python/python-internal.h (gdb_PyObject_GetAttrString)
4030 (gdb_PyObject_HasAttrString): New inline function definitions.
4031 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4032 char * of the second argument to PyObject_GetAttrString.
4034 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4036 * serial.c (serial_write): Fix index of character to be printed
4037 in call to serial_logchar when serial debug traces are enabled.
4039 2014-06-10 Joel Brobecker <brobecker@adacore.com>
4041 * gdbtypes (resolve_dynamic_range): Add function description.
4043 2014-06-09 Pedro Alves <palves@redhat.com>
4045 * linux-nat.c (linux_child_follow_fork): Initialize status with
4046 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4047 inner block. Only pass the signal to PTRACE_DETACH if in pass
4050 2014-06-09 Gary Benson <gbenson@redhat.com>
4052 * common/signals.c (gdb_signal_from_host): Reorder to separate
4053 the always-available ANSI-standard signals from the signals that
4055 (do_gdb_signal_to_host): Likewise.
4056 * proc-events.c (signal_table): Likewise.
4058 2014-06-08 Hui Zhu <hui@codesourcery.com>
4060 * common/linux-ptrace.c (linux_disable_event_reporting): New
4062 * common/linux-ptrace.h (linux_disable_event_reporting): New
4064 * linux-nat.c (linux_child_follow_fork): Do a single step before
4067 2014-06-07 Keith Seitz <keiths@redhat.com>
4071 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4072 from symbol_matches_domain in symtab.c. All local callers
4073 of symbol_matches_domain updated.
4074 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4075 search STRUCT_DOMAIN.
4076 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4077 independently. standard_lookup will do that automatically.
4078 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4079 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4080 (cp_lookup_symbol_in_namespace): Likewise.
4081 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4082 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4083 may return a STRUCT_DOMAIN match.
4084 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4085 * cp-support.c: Include language.h.
4086 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4088 * psymtab.c (match_partial_symbol): Compare the requested
4089 domain with the symbol's domain directly.
4090 (lookup_partial_symbol): Likewise.
4091 * symtab.c (lookup_symbol_in_language): Explain when/why
4092 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4093 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4094 appropriate languages.
4095 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4096 and moved to ada-lang.c
4097 (lookup_block_symbol): Explain that this function only returns
4098 symbol matching the requested DOMAIN.
4099 Compare the requested domain with the symbol's domain directly.
4100 (iterate_over_symbols): Compare the requested domain with the
4101 symbol's domain directly.
4102 * symtab.h (symbol_matches_domain): Remove.
4104 2014-06-06 Doug Evans <xdje42@gmail.com>
4106 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4107 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4108 (gdbscm_guile_version_is_at_least): Declare.
4109 (gdbscm_scm_string_to_int): Declare.
4110 * guile/guile.c (gdbscm_guile_major_version): New global.
4111 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4112 (guile_datadir): New static global.
4113 (gdbscm_guile_data_directory): New function.
4114 (initialize_scheme_side): Update.
4115 (misc_guile_functions): Add guile-data-directory.
4116 (initialize_gdb_module): Fetch guile version number.
4117 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4118 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4119 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4120 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4122 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4123 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4124 * guile/scm-value.c (gdbscm_value_to_string): Only call
4125 scm_port_conversion_strategy if Guile version >= 2.0.6.
4127 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4129 * main.c (print_gdb_help): Add -q and --silent.
4131 2014-06-06 Gary Benson <gbenson@redhat.com>
4133 * common/signals.c: Remove preprocessor conditionals for
4134 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4135 SIGSEGV and SIGTERM.
4136 * proc-events.c: Likewise.
4138 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4140 * symfile.c (symfile_free_objfile): Remove restriction to
4142 * symfile-mem.c (symbol_file_add_from_memory): Call
4143 add_target_sections_of_objfile.
4145 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4147 * guile/scm-value.c (gdbscm_history_append_x): Use
4148 'vlscm_get_value_smob_arg_unsafe' instead of
4149 'vlscm_scm_to_value'.
4151 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4154 * utils.c (printchar): Don't escape at all if quoter is NUL.
4155 Update function documentation to clarify effect of parameter
4157 * remote.c (escape_buffer): Pass '\\' as the quoter to
4158 fputstrn_unfiltered.
4159 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4160 generate the output.
4161 (mi_solib_unloaded): Same.
4163 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4165 * development.sh: Delete.
4166 * Makefile.in (config.status): Adjust dependency on development.sh.
4167 * configure.ac: Adjust development.sh source call.
4168 * configure: Regenerate.
4170 2014-06-04 Doug Evans <xdje42@gmail.com>
4172 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4173 is_scheme_bkpt, spec.
4174 (bpscm_make_breakpoint_smob): Initialize new members.
4175 (gdbscm_create_breakpoint_x): Split into two ...
4176 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4177 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4178 (scheme_function breakpoint_functions): Update.
4179 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4180 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4181 register-breakpoint!.
4183 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4186 * mem-break.c (z_type_supported): Return zero if
4187 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4189 2014-06-04 Tom Tromey <tromey@redhat.com>
4191 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4192 value_from_contents_and_address_unresolved.
4193 (ada_template_to_fixed_record_type_1): Likewise.
4194 (ada_which_variant_applies): Likewise.
4195 * value.h (value_from_contents_and_address_unresolved): Declare.
4196 * value.c (value_from_contents_and_address_unresolved): New
4198 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4199 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4200 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4202 2014-06-04 Tom Tromey <tromey@redhat.com>
4204 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4206 2014-06-04 Tom Tromey <tromey@redhat.com>
4208 * procfs.c (procfs_attach): Make "args" const.
4209 * windows-nat.c (windows_attach): Make "args" const.
4210 * nto-procfs.c (procfs_attach): Make "args" const.
4211 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4212 * go32-nat.c (go32_attach): Make "args" const.
4213 * gnu-nat.c (gnu_attach): Make "args" const.
4214 * darwin-nat.c (darwin_attach): Make "args" const.
4215 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4216 * linux-nat.c (linux_nat_attach): Make "args" const.
4217 * remote.c (extended_remote_attach_1, extended_remote_attach):
4219 * target.h (struct target_ops) <to_attach>: Make "args" const.
4220 (find_default_attach): Likewise.
4221 * utils.c (parse_pid_to_attach): Make "args" const.
4222 * utils.h (parse_pid_to_attach): Update.
4224 2014-06-04 Tom Tromey <tromey@redhat.com>
4226 * target-delegates.c: Rebuild.
4227 * target.c (default_thread_address_space): New function.
4228 (target_thread_address_space): Simplify.
4229 * target.h (struct target_ops) <to_thread_address_space>: Add
4230 TARGET_DEFAULT_FUNC.
4232 2014-06-04 Doug Evans <xdje42@gmail.com>
4234 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4236 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4238 * record-btrace.c: Include event-loop.h and inf-loop.h.
4239 (record_btrace_resume_exec_dir)
4240 (record_btrace_async_inferior_event_handler)
4241 (record_btrace_handle_async_inferior_event): New.
4242 (record_btrace_open): Create async event handler.
4243 (record_btrace_close): Delete async event handler.
4244 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4245 Mark async event handler.
4246 (record_btrace_execution_direction): New.
4247 (init_record_btrace_ops): Initialize to_execution_direction.
4249 2014-06-03 Doug Evans <xdje42@gmail.com>
4251 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4252 (gdbscm_make_parameter): Ditto.
4254 2014-06-03 Doug Evans <dje@google.com>
4256 * exec.c (exec_close_1): Call clear_section_table instead of
4257 resize_section_table.
4258 (clear_section_table): New function.
4259 (resize_section_table): Make static. Rename arg num_added to
4261 * exec.h (clear_section_table): Declare.
4262 (resize_section_table): Delete.
4263 * progspace.c (release_program_space): Call clear_section_table
4264 instead of resize_section_table.
4266 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4268 * NEWS (Python Scripting): Add entry about the new xmethods
4271 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4273 * python/py-xmethods.c: New file.
4274 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4275 (objfpy_dealloc): XDECREF on the new xmethods field.
4276 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4278 (objfpy_get_xmethods): New function.
4279 (objfile_getset): New entry 'xmethods'.
4280 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4281 (pspy_dealloc): XDECREF on the new xmethods field.
4282 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4284 (pspy_get_xmethods): New function.
4285 (pspace_getset): New entry 'xmethods'.
4286 * python/python-internal.h: Add declarations for new functions.
4287 * python/python.c (_initialize_python): Invoke
4288 gdbpy_initialize_xmethods.
4289 * python/lib/gdb/__init__.py (xmethods): New
4291 * python/lib/gdb/xmethod.py: New file.
4292 * python/lib/gdb/command/xmethods.py: New file.
4294 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4296 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4297 best match method returned by find_overload_match is an xmethod.
4298 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4299 the best matching operator returned by find_overload_match is an
4301 * valops.c: #include "extension.h".
4302 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4303 Return void. The list of matching source methods is returned in
4304 "fn_list" and a vector of matching debug method workers is
4305 returned in "xm_worker_vec". Update all callers.
4306 (value_find_oload_method_list): Likewise.
4307 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4308 non-NULL, then the index of the best matching method in this
4309 vector is returned. Update all callers.
4310 (find_overload_match): Include xmethods while performing overload
4313 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4315 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4316 * extension-priv.h (struct extension_language_ops): Add the
4318 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4319 get_matching_xmethod_workers, get_xmethod_argtypes,
4320 invoke_xmethod, free_xmethod_worker,
4321 free_xmethod_worker_vec): New functions.
4322 * extension.h: #include "common/vec.h".
4323 New function declarations.
4324 (struct xmethod_worker): New struct.
4325 (VEC (xmethod_worker_ptr)): New vector type.
4326 (xmethod_worker_ptr): New typedef.
4327 (xmethod_worker_vec): Likewise.
4328 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4330 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4331 (struct builtin_type): New field "xmethod".
4332 * valarith.c (value_ptradd): Assert that the value argument is not
4334 * valops.c (value_must_coerce_to_target): Return 0 for
4335 lval_xcallable values.
4336 * value.c (struct value): New field XM_WORKER in the field
4338 (value_address, value_raw_address): Return 0 for lval_xcallable
4340 (set_value_address): Assert that the value is not an
4342 (value_free): Free the associated xmethod worker when freeing
4343 lval_xcallable values.
4344 (set_value_component_location): Assert that the WHOLE value is not
4346 (value_of_xmethod, call_xmethod): New functions.
4347 * value.h: Declare "struct xmethod_worker".
4348 Declare new functions value_of_xmethod, call_xmethod.
4350 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4351 Pedro Alves <palves@redhat.com>
4353 PR breakpoints/17000
4354 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4355 New function, extracted from software_breakpoint_inserted_here_p.
4356 (software_breakpoint_inserted_here_p): Replace factored out code
4357 by call to find_non_raw_software_breakpoint_inserted_here.
4358 (bp_target_info_copy_insertion_state): New function.
4359 (bkpt_insert_location): Handle the case of a single-step
4360 breakpoint already inserted at the same address.
4361 (bkpt_remove_location): Handle the case of a single-step
4362 breakpoint still inserted at the same address.
4363 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4364 breakpoint already inserted at the same address.
4365 (deprecated_remove_raw_breakpoint): Handle the case of a
4366 non-raw breakpoint still inserted at the same address.
4367 (find_single_step_breakpoint): New function, extracted from
4368 single_step_breakpoint_inserted_here_p.
4369 (find_single_step_breakpoint): New function,
4370 factored out from single_step_breakpoint_inserted_here_p.
4371 (single_step_breakpoint_inserted_here_p): Reimplement.
4373 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4375 Pushed by Joel Brobecker <brobecker@adacore.com>
4376 * source.c (show_substitute_path_command): Fix display of matching
4379 2014-06-03 Gary Benson <gbenson@redhat.com>
4381 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4383 2014-06-02 Doug Evans <xdje42@gmail.com>
4385 Add parameter support for Guile.
4386 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4387 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4388 (scm-param.o): New rule.
4389 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4390 (gdbscm_misc_error): Declare.
4391 (gdbscm_canonicalize_command_name): Declare.
4392 (gdbscm_scm_to_host_string): Declare.
4393 (gdbscm_scm_from_host_string): Declare.
4394 (gdbscm_initialize_parameters): Declare.
4395 * guile/guile.c (initialize_gdb_module): Call
4396 gdbscm_initialize_parameters.
4397 * guile/lib/gdb.scm: Export parameter symbols.
4398 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4399 cmdscm_canonicalize_name and made public. All callers updated.
4400 * guile/scm-exception.c (gdbscm_misc_error): New function.
4401 * guile/scm-param.c: New file.
4402 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4403 (gdbscm_scm_to_host_string): New function.
4404 (gdbscm_scm_from_host_string): New function.
4405 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4407 2014-06-02 Doug Evans <xdje42@gmail.com>
4409 Add command support for Guile.
4410 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4411 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4412 (scm-cmd.o): New rule.
4413 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4414 (gdbscm_user_error_p): Declare.
4415 (gdbscm_parse_command_name): Declare.
4416 (gdbscm_valid_command_class_p): Declare.
4417 (gdbscm_initialize_commands): Declare.
4418 * guile/guile.c (initialize_gdb_module): Call
4419 gdbscm_initialize_commands.
4420 * guile/lib/gdb.scm: Export command symbols.
4421 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4422 (throw-user-error): New function.
4423 * guile/scm-cmd.c: New file.
4424 * guile/scm-exception.c (user_error_symbol): New static global.
4425 (gdbscm_user_error_p): New function.
4426 (gdbscm_initialize_exceptions): Set user_error_symbol.
4427 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4429 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4431 * top.c (command_loop): Handle comments here...
4432 (command_line_input): ... not here.
4434 2014-06-02 Doug Evans <xdje42@gmail.com>
4436 Add progspace support for Guile.
4437 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4438 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4439 (scm-progspace.o): New rule.
4440 * guile/guile-internal.h (pspace_smob): New typedef.
4441 (psscm_pspace_smob_pretty_printers): Declare.
4442 (psscm_pspace_smob_from_pspace): Declare.
4443 (psscm_scm_from_pspace): Declare.
4444 * guile/guile.c (initialize_gdb_module): Call
4445 gdbscm_initialize_pspaces.
4446 * guile/lib/gdb.scm: Export progspace symbols.
4447 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4449 (append-pretty-printer!): Ditto.
4450 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4452 * guile/scm-progspace.c: New file.
4454 2014-06-03 Alan Modra <amodra@gmail.com>
4456 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4457 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4459 2014-06-02 Doug Evans <dje@google.com>
4461 Add support for skeletonless type units.
4462 * dwarf2read.c (struct dwarf2_per_objfile): New member
4463 n_allocated_type_units.
4464 (struct dwarf2_per_objfile) <tu_stats>: New member
4465 nr_all_type_units_reallocs.
4466 (create_signatured_type_table_from_index): Initialize
4467 n_allocated_type_units
4468 (create_all_type_units): Ditto.
4469 (add_type_unit): Move up in file. New arg slot.
4470 All callers updated. Increase space for all_type_units more
4472 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4473 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4474 (lookup_dwp_signatured_type): Ditto.
4475 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4476 All callers updated.
4477 (build_type_psymtabs_1): Leave type_unit_groups as
4478 NULL if no TUs present.
4479 (print_tu_stats): New function.
4480 (process_skeletonless_type_unit): New function.
4481 (process_dwo_file_for_skeletonless_type_units): New
4483 (process_skeletonless_type_units): New function.
4484 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4485 Call print tu_stats if debugging enabled.
4487 2014-06-02 Pedro Alves <palves@redhat.com>
4489 * breakpoint.c (build_target_command_list): Don't build a command
4490 list if we have any duplicate location that isn't a dprintf.
4492 2014-06-02 Pedro Alves <palves@redhat.com>
4494 * breakpoint.c (dprintf_breakpoint_hit): New function.
4495 (initialize_breakpoint_ops): Install it as dprintf's
4496 breakpoint_hit method.
4498 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4500 * source.c (substitute_path_rule_matches): Simplify using
4501 filename_ncmp instead of FILENAME_CMP.
4503 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4505 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4507 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4509 * configure.ac: When Guile is available, check for the
4510 availability of 'scm_new_smob'.
4511 * configure, config.h.in: Regenerate.
4512 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4515 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4517 * frame.c (struct frame_info): Add stop_string field.
4518 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4519 (get_prev_frame_always): Old content moved into
4520 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4521 TRY_CATCH, handle MEMORY_ERROR exceptions.
4522 (frame_stop_reason_string): New function definition.
4523 * frame.h (unwind_stop_reason_to_string): Extend comment to
4524 mention frame_stop_reason_string.
4525 (frame_stop_reason_string): New function declaration.
4526 * stack.c (frame_info): Switch to frame_stop_reason_string.
4527 (backtrace_command_1): Switch to frame_stop_reason_string.
4528 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4529 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4530 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4532 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4534 * frame.c (frame_stop_reason_string): Rename to ...
4535 (unwind_stop_reason_to_string): this.
4536 * frame.h (frame_stop_reason_string): Rename to ...
4537 (unwind_stop_reason_to_string): this.
4538 * stack.c (frame_info): Update call to frame_stop_reason_string.
4539 (backtrace_command_1): Likewise.
4540 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4541 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4543 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4545 * frame.c (remove_prev_frame): New function.
4546 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4549 2014-05-29 Pedro Alves <palves@redhat.com>
4551 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4552 and make it const. When a single-step decays to a continue,
4553 clear 'step', not 'hw_step'. Pass whether the caller wanted
4554 to step to user_visible_resume_ptid, not what we ask the
4557 2014-05-29 Pedro Alves <palves@redhat.com>
4559 * infrun.c (process_event_stop_test, handle_step_into_function)
4560 (handle_step_into_function_backward): Adjust.
4561 Don't set the even thread's stop_step and call stop_waiting before
4562 calling end_stepping_range. Instead do that ...
4563 (end_stepping_range): ... here. Take an ecs pointer parameter.
4565 2014-05-29 Pedro Alves <palves@redhat.com>
4567 * infrun.c (stop_stepping): Rename to ...
4568 (stop_waiting): ... this.
4569 (proceed): Update comment.
4570 (process_event_stop_test, handle_inferior_event)
4571 (handle_signal_stop, handle_step_into_function)
4572 (handle_step_into_function_backward): Update.
4574 2014-05-29 Pedro Alves <palves@redhat.com>
4576 * infcall.c (run_inferior_call): Don't check whether the current
4577 thread is running after the proceed call.
4579 2014-05-29 Pedro Alves <palves@redhat.com>
4580 Tom Tromey <tromey@redhat.com>
4582 * NEWS: Mention "maint set target-async", "set mi-async", and that
4583 background execution commands are now always available.
4584 * target.h (target_async_permitted): Update comment.
4585 * target.c (target_async_permitted, target_async_permitted_1):
4587 (set_target_async_command): Rename to ...
4588 (maint_set_target_async_command): ... this.
4589 (show_target_async_command): Rename to ...
4590 (maint_show_target_async_command): ... this.
4591 (_initialize_target): Adjust.
4592 * infcmd.c (prepare_execution_command): Make extern.
4593 * inferior.h (prepare_execution_command): Declare.
4594 * infrun.c (set_observer_mode): Leave target async alone.
4595 * mi/mi-interp.c (mi_interpreter_init): Install
4596 mi_on_sync_execution_done as sync_execution_done observer.
4597 (mi_on_sync_execution_done): New function.
4598 (mi_execute_command_input_handler): Don't print the prompt if we
4599 just started a synchronous command with an async target.
4600 (mi_on_resume): Check sync_execution before printing prompt.
4601 * mi/mi-main.h (mi_async_p): Declare.
4602 * mi/mi-main.c: Include gdbcmd.h.
4603 (mi_async_p): New function.
4604 (mi_async, mi_async_1): New globals.
4605 (set_mi_async_command, show_mi_async_command, mi_async): New
4607 (exec_continue): Call prepare_execution_command.
4608 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4609 (mi_execute_async_cli_command): Use mi_async_p.
4610 (_initialize_mi_main): Install "set mi-async". Make
4611 "target-async" a deprecated alias.
4613 2014-05-29 Pedro Alves <palves@redhat.com>
4615 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4616 (_initialize_cli_interp): Adjust.
4617 * event-loop.c: Include "observer.h".
4618 (start_event_loop): Notify 'command_error' observers instead of
4619 calling display_gdb_prompt. Remove FIXME comment.
4620 * event-top.c (display_gdb_prompt): Remove call into the
4622 * inf-loop.c: Include "observer.h".
4623 (inferior_event_handler): Notify 'command_error' observers instead
4624 of calling display_gdb_prompt.
4625 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4626 observers instead of calling display_gdb_prompt.
4627 * interps.c (interp_set): Don't call display_gdb_prompt.
4628 (current_interp_display_prompt_p): Delete.
4629 * interps.h (interp_prompt_p): Delete declaration.
4630 (interp_prompt_p_ftype): Delete.
4631 (struct interp_procs) <prompt_proc_p>: Delete field.
4632 (current_interp_display_prompt_p): Delete declaration.
4633 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4634 (_initialize_mi_interp): Adjust.
4635 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4636 'command_error' observers.
4637 (tui_on_sync_execution_done, tui_on_command_error): New
4639 (tui_display_prompt_p): Delete.
4640 (_initialize_tui_interp): Adjust.
4642 2014-05-29 Pedro Alves <palves@redhat.com>
4645 * cli/cli-interp.c: Include infrun.h and observer.h.
4646 (cli_uiout, cli_interp): New globals.
4647 (cli_on_signal_received, cli_on_end_stepping_range)
4648 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4650 (cli_interpreter_init): Install them as 'end_stepping_range',
4651 'signal_received' 'signal_exited', 'exited' and 'no_history'
4653 (_initialize_cli_interp): Remove cli_interp local.
4654 * infrun.c (handle_inferior_event): Call the several stop reason
4655 observers instead of printing the stop reason directly.
4656 (end_stepping_range): New function.
4657 (print_end_stepping_range_reason, print_signal_exited_reason)
4658 (print_exited_reason, print_signal_received_reason)
4659 (print_no_history_reason): Make static, and add an uiout
4660 parameter. Print to that instead of to CURRENT_UIOUT.
4661 * infrun.h (print_end_stepping_range_reason)
4662 (print_signal_exited_reason, print_exited_reason)
4663 (print_signal_received_reason print_no_history_reason): New
4665 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4667 <cli_uiout>: New field.
4668 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4669 uiout for CLI output. Install 'signal_received',
4670 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4672 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4673 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4674 (mi_on_no_history): New functions.
4675 (ui_out_free_cleanup): Delete function.
4676 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4677 instead use the one already stored in the MI interpreter data.
4678 (mi_ui_out): Adjust.
4679 * tui/tui-interp.c: Include infrun.h and observer.h.
4680 (tui_interp): New global.
4681 (tui_on_signal_received, tui_on_end_stepping_range)
4682 (tui_on_signal_exited, tui_on_exited)
4683 (tui_on_no_history): New functions.
4684 (tui_init): Install them as 'end_stepping_range',
4685 'signal_received' 'signal_exited', 'exited' and 'no_history'
4687 (_initialize_tui_interp): Delete tui_interp local.
4689 2014-05-29 Pedro Alves <palves@redhat.com>
4692 * linux-nat.c (linux_nat_resume_callback): Rename the second
4693 parameter to 'except'. Skip LP if it points to EXCEPT.
4694 (linux_nat_resume): Don't mark the event lwp as not stopped
4695 before resuming sibling lwps. Instead ask
4696 linux_nat_resume_callback to skip the event lwp. Mark it as not
4697 stopped after actually resuming it.
4698 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4700 (wait_lwp): Mark the lwp as stopped here.
4701 (stop_wait_callback): Mark the lwp as not stopped right after
4702 resuming it. Don't mark lwps as stopped here.
4703 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4704 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4706 2014-05-29 Pedro Alves <palves@redhat.com>
4709 * infrun.c (resume): Determine how much to resume depending on
4710 whether the caller wanted a step, not whether we can hardware step
4711 the target. Mark all threads that we intend to run as running,
4712 unless we're calling an inferior function.
4713 (normal_stop): If the thread is running an infcall, don't finish
4715 * target.c (target_resume): Don't mark threads as running here.
4717 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4719 * serial.c (_initialize_serial): Remove support for
4720 the "set remotebaud" and "show remotebaud" commands.
4721 * NEWS: Add entry documenting the removal of that command.
4723 2014-05-28 Yao Qi <yao@codesourcery.com>
4725 * charset.c: Fix typo in comments.
4727 2014-05-27 Gary Benson <gbenson@redhat.com>
4729 * utils.c (internal_vproblem): Prompt for a bug report.
4731 2014-05-26 Andy Wingo <wingo@igalia.com>
4733 * guile/scm-arch.c (arscm_mark_arch_smob):
4734 * guile/scm-block.c (bkscm_mark_block_smob)
4735 (bkscm_mark_block_syms_progress_smob):
4736 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4737 * guile/scm-exception.c (exscm_mark_exception_smob):
4738 * guile/scm-frame.c (frscm_mark_frame_smob):
4739 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4740 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4741 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4742 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4743 (ppscm_mark_pretty_printer_worker_smob):
4744 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4745 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4746 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4747 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4749 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4752 2014-05-26 Andy Wingo <wingo@igalia.com>
4753 Doug Evans <xdje42@gmail.com>
4755 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4756 empty_base_class. All uses updated.
4757 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4758 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4760 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4761 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4762 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4763 (gdbscm_gsmob_has_property_p, add_property_name)
4764 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4765 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4766 (gdb-object-has-property?, gdb-object-properties): Remove.
4767 (gdb-object-kind): Renamed from gsmob-kind.
4769 2014-05-26 Andy Wingo <wingo@igalia.com>
4771 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4772 * configure: Regenerate.
4774 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4776 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4778 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4780 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4781 (replay_memory_access_read_only, replay_memory_access_read_write)
4782 (replay_memory_access_types, replay_memory_access)
4783 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4784 (cmd_set_record_btrace, cmd_show_record_btrace)
4785 (cmd_show_replay_memory_access): New.
4786 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4787 (record_btrace_remove_breakpoint): Replace
4788 record_btrace_allow_memory_access with replay_memory_access.
4789 (_initialize_record_btrace): Add commands.
4790 * NEWS: Announce it.
4792 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4794 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4796 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4798 * MAINTAINERS (Write After Approval): Move self back from
4801 2014-05-22 Pedro Alves <palves@redhat.com>
4803 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4804 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4805 (disable_randomization, enum exec_direction_kind)
4806 (execution_direction, stop_registers, start_remote)
4807 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4808 (wait_for_inferior, normal_stop, get_last_target_status)
4809 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4810 (insert_step_resume_breakpoint_at_sal)
4811 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4812 (set_step_info, print_stop_event, signal_stop_state)
4813 (signal_print_state, signal_pass_state, signal_stop_update)
4814 (signal_print_update, signal_pass_update)
4815 (update_signals_program_target, clear_exit_convenience_vars)
4816 (displaced_step_dump_bytes, update_observer_mode)
4817 (signal_catch_update, gdb_signal_from_command): Move
4819 * infrun.h: ... to this new file.
4820 * amd64-tdep.c: Include infrun.h.
4821 * annotate.c: Include infrun.h.
4822 * arch-utils.c: Include infrun.h.
4823 * arm-linux-tdep.c: Include infrun.h.
4824 * arm-tdep.c: Include infrun.h.
4825 * break-catch-sig.c: Include infrun.h.
4826 * breakpoint.c: Include infrun.h.
4827 * common/agent.c: Include infrun.h instead of inferior.h.
4828 * corelow.c: Include infrun.h.
4829 * event-top.c: Include infrun.h.
4830 * go32-nat.c: Include infrun.h.
4831 * i386-tdep.c: Include infrun.h.
4832 * inf-loop.c: Include infrun.h.
4833 * infcall.c: Include infrun.h.
4834 * infcmd.c: Include infrun.h.
4835 * infrun.c: Include infrun.h.
4836 * linux-fork.c: Include infrun.h.
4837 * linux-nat.c: Include infrun.h.
4838 * linux-thread-db.c: Include infrun.h.
4839 * monitor.c: Include infrun.h.
4840 * nto-tdep.c: Include infrun.h.
4841 * procfs.c: Include infrun.h.
4842 * record-btrace.c: Include infrun.h.
4843 * record-full.c: Include infrun.h.
4844 * remote-m32r-sdi.c: Include infrun.h.
4845 * remote-mips.c: Include infrun.h.
4846 * remote-notif.c: Include infrun.h.
4847 * remote-sim.c: Include infrun.h.
4848 * remote.c: Include infrun.h.
4849 * reverse.c: Include infrun.h.
4850 * rs6000-tdep.c: Include infrun.h.
4851 * s390-linux-tdep.c: Include infrun.h.
4852 * solib-irix.c: Include infrun.h.
4853 * solib-osf.c: Include infrun.h.
4854 * solib-svr4.c: Include infrun.h.
4855 * target.c: Include infrun.h.
4856 * top.c: Include infrun.h.
4857 * windows-nat.c: Include infrun.h.
4858 * mi/mi-interp.c: Include infrun.h.
4859 * mi/mi-main.c: Include infrun.h.
4860 * python/py-threadevent.c: Include infrun.h.
4862 2014-05-22 Pedro Alves <palves@redhat.com>
4864 * infrun.c (handle_inferior_event): Store the exit code for
4865 --return-child-result here, instead of ...
4866 (print_exited_reason): ... here.
4868 2014-05-21 Pedro Alves <palves@redhat.com>
4871 * gdbthread.h (struct thread_control_state): New field
4873 * infrun.c (follow_fork): Copy the new thread control field to the
4875 (clear_proceed_status_thread): Clear the new thread control field.
4876 (proceed): Set the new thread control field.
4877 * interps.h (command_interp): Declare.
4878 * interps.c (command_interpreter): New global.
4879 (command_interp): New function.
4880 (interp_exec): Set `command_interpreter' while here.
4881 * cli-out.c (cli_uiout_dtor): New function.
4882 (cli_ui_out_impl): Install it.
4883 * mi/mi-interp.c: Include cli-out.h.
4884 (mi_cmd_interpreter_exec): Add comment.
4885 (restore_current_uiout_cleanup): New function.
4886 (ui_out_free_cleanup): New function.
4887 (mi_on_normal_stop): If finishing an execution command started by
4888 a CLI command, or any kind of breakpoint-like event triggered,
4889 print the stop event to the output (CLI) stream.
4890 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4892 2014-05-21 Pedro Alves <palves@redhat.com>
4894 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4895 current source line having changed.
4896 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4897 * infrun.c (normal_stop): Adjust call to
4898 set_current_sal_from_frame.
4899 * source.c (clear_lines_listed_range): New function.
4900 (set_current_source_symtab_and_line, identify_source_line): Clear
4901 the lines listed range.
4902 (line_info): Handle the first "info line" after the current source
4903 line having changed.
4904 * stack.c (print_stack_frame): Remove center handling.
4905 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4908 2014-05-21 Pedro Alves <palves@redhat.com>
4910 * inf-child.c (inf_child_mourn_inferior): New function.
4911 * inf-child.h (inf_child_mourn_inferior): New declaration.
4912 * darwin-nat.c (darwin_mourn_inferior): Use
4913 inf_child_mourn_inferior.
4914 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4915 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4916 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4917 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4918 * windows-nat.c (windows_mourn_inferior): Likewise.
4920 2014-05-21 Doug Evans <xdje42@gmail.com>
4922 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4924 2014-05-21 Doug Evans <xdje42@gmail.com>
4926 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4927 (gdbscm_out_of_range_error): Ditto.
4928 (gdbscm_memory_error): Ditto.
4929 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4930 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4931 (gdbscm_out_of_range_error): Update.
4932 (gdbscm_memory_error): Update.
4933 (gdbscm_scm_to_target_string_unsafe): Delete.
4935 2014-05-21 Pedro Alves <palves@redhat.com>
4937 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4939 (inf_child_open_target): New function.
4940 (inf_child_open): Use inf_child_open_target to push the target
4941 instead of erroring out.
4942 (inf_child_disconnect, inf_child_close)
4943 (inf_child_maybe_unpush_target): New functions.
4944 (inf_child_target): Install inf_child_disconnect and
4945 inf_child_close. Store a pointer to the returned object.
4946 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4948 * target.c (auto_connect_native_target): New global.
4949 (show_default_run_target): New function.
4950 (find_default_run_target): Return NULL if automatically connecting
4951 to the native target is disabled.
4952 (_initialize_target): Install set/show auto-connect-native-target.
4953 * NEWS: Mention "set auto-connect-native-target", and "target
4955 * linux-nat.c (super_close): New global.
4956 (linux_nat_close): Call super_close.
4957 (linux_nat_add_target): Store a pointer to the base class's
4959 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4960 inf_child_maybe_unpush.
4961 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4963 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4964 the inferior. Use inf_child_maybe_unpush_target.
4965 (inf_ttrace_attach): Don't push the target if it is already
4967 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4968 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4969 after mourning the inferior. Use inf_child_maybe_unpush_target.
4970 (darwin_attach_pid): Don't push the target if it is already
4972 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4973 mourning the inferior. Use inf_child_maybe_unpush_target.
4974 (gnu_detach): Use inf_child_maybe_unpush_target.
4975 * go32-nat.c (go32_create_inferior): Don't push the target if it
4977 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4978 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4979 (procfs_open): Rename to ...
4980 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4981 comments. Can target_preopen before changing node. Call
4982 inf_child_open_target to push the target explicitly.
4983 (procfs_attach): Don't push the target if it is already pushed.
4984 (procfs_detach): Use inf_child_maybe_unpush_target.
4985 (procfs_create_inferior): Don't push the target if it is already
4987 (nto_native_ops): New global.
4988 (procfs_open): Reimplement.
4989 (procfs_native_open): New function.
4990 (init_procfs_targets): Install procfs_native_open as to_open of
4991 "target native". Store a pointer to the "native" target in
4993 * procfs.c (procfs_attach): Don't push the target if it is already
4995 (procfs_detach): Use inf_child_maybe_unpush_target.
4996 (procfs_mourn_inferior): Only unpush the target after mourning the
4997 inferior. Use inf_child_maybe_unpush_target.
4998 (procfs_init_inferior): Don't push the target if it is already
5000 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5001 if it is already pushed.
5003 2014-05-21 Pedro Alves <palves@redhat.com>
5005 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5006 and "procfs" targets are now called "native" instead.
5008 2014-05-21 Pedro Alves <palves@redhat.com>
5010 * go32-nat.c (go32_open): Delete.
5011 (go32_target): Don't override the to_open method.
5013 2014-05-21 Pedro Alves <palves@redhat.com>
5015 * nto-procfs.c (procfs_can_run): New function.
5016 (nto_procfs_ops): New global.
5017 (init_procfs_targets): New, based on procfs_target. Install
5018 "target native" in addition to "target procfs".
5019 (_initialize_procfs): Call init_procfs_targets instead of adding
5022 2014-05-21 Pedro Alves <palves@redhat.com>
5024 * windows-nat.c (windows_target): Don't override to_shortname,
5025 to_longname or to_doc.
5027 2014-05-21 Pedro Alves <palves@redhat.com>
5029 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5032 2014-05-21 Pedro Alves <palves@redhat.com>
5034 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5035 to_shortname, to_longname or to_doc.
5037 2014-05-21 Pedro Alves <palves@redhat.com>
5039 * go32-nat.c (go32_target): Don't override to_shortname,
5040 to_longname or to_doc.
5042 2014-05-21 Pedro Alves <palves@redhat.com>
5044 * inf-child.c (inf_child_open): Remove mention of "child".
5045 (inf_child_target): Rename target to "native" instead of "child".
5047 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5049 * Makefile.in (SFILES): Delete "regset.c".
5050 (COMMON_OBS): Delete "regset.o".
5052 * regset.h (regset_alloc): Delete prototype.
5054 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5056 * sparc-linux-tdep.c (sparc32_linux_gregset)
5057 (sparc32_linux_fpregset): New static regset structures.
5058 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5059 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5061 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5062 (sparc64_linux_fpregset): New static regset structures.
5063 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5064 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5065 New static regset structures.
5066 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5067 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5068 New static regset structures.
5069 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5070 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5071 New static regset structures.
5072 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5073 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5074 New static regset structures.
5075 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5077 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5079 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5080 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5081 register maps ("regmaps") from "*regset" to "*regmap". Do this
5082 for all regmap types and variables.
5083 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5084 (sparc32_linux_supply_core_gregset)
5085 (sparc32_linux_collect_core_gregset)
5086 (sparc32_linux_supply_core_fpregset)
5087 (sparc32_linux_collect_core_fpregset): Likewise.
5088 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5089 (sparc_gregmap, sparc_fpregmap): ... these.
5090 (sparc_supply_gregset, sparc_collect_gregset)
5091 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5092 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5093 (_initialize_sparc_nat): Rename regmaps.
5094 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5095 (sparc_gregmap, sparc_fpregmap): ... these.
5096 (sparc_supply_gregset, sparc_collect_gregset)
5097 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5098 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5100 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5101 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5103 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5105 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5106 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5107 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5109 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5110 (sparc32_bsd_fpregset): Rename to...
5111 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5112 (sparc32_bsd_fpregmap): ... these.
5113 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5114 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5115 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5116 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5117 (struct sparc_gregmap, struct sparc_fpregmap)
5118 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5119 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5120 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5121 (sparc32_supply_regset, sparc32_collect_gregset)
5122 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5124 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5125 (sparc64_linux_ptrace_gregmap): ... this.
5126 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5127 (_initialize_sparc64_linux_nat): Rename regmaps.
5128 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5129 (sparc64_linux_core_gregmap): ... this.
5130 (sparc64_linux_supply_core_gregset)
5131 (sparc64_linux_collect_core_gregset)
5132 (sparc64_linux_supply_core_fpregset)
5133 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5134 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5135 (sparc64_sol2_fpregset): Rename to...
5136 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5137 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5138 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5140 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5141 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5142 (sparc64_bsd_fpregset): Rename to...
5143 (struct sparc_gregmap, sparc64_sol2_gregmap)
5144 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5145 (sparc64_bsd_fpregmap): ... these.
5146 (sparc64_supply_gregset, sparc64_collect_gregset)
5147 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5149 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5150 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5151 (sparc64fbsd_gregmap): ... this.
5152 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5153 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5155 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5156 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5157 (sparc64nbsd_collect_fpregset): Likewise.
5158 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5159 (sparc64nbsd_gregmap): ... this.
5160 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5162 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5163 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5164 (sparc64obsd_gregmap): ... this.
5165 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5167 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5168 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5169 (sparc32nbsd_gregmap): ... this.
5170 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5173 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5175 * score-tdep.c (score7_linux_gregset): New static regset
5177 (score7_linux_regset_from_core_section): Remove dynamic regset
5179 (score_gdbarch_init): Drop allocation of tdep structure.
5180 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5182 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5184 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5186 (am33_regset_from_core_section): Remove dynamic regset
5189 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5191 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5192 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5194 (mips_linux_regset_from_core_section): Remove dynamic regset
5196 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5197 'gregset64', 'fpregset', and 'fpregset64'.
5198 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5199 deleted tdep fields.
5201 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5203 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5205 (amd64_regset_from_core_section): Remove dynamic regset
5207 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5209 (amd64obsd_regset_from_core_section): Remove dynamic regset
5211 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5213 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5214 x86-common regset supply function.
5215 * i386-tdep.c (i386_collect_gregset): Make static.
5216 (i386_gregset): New global regset structure.
5217 (i386_fpregset, i386_xstateregset): New static regset structures.
5218 (i386_regset_from_core_section): Remove dynamic regset
5220 (i386_gdbarch_init): Remove initialization of tdep fields
5221 'gregset', 'fpregset', and 'xstateregset'.
5222 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5223 'fpregset', and 'xstateregset'.
5224 (i386_collect_gregset): Remove prototype.
5225 (i386_gregset): New declaration.
5226 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5228 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5231 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5233 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5234 (arm_linux_vfpregset): New static regset structures.
5235 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5237 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5238 and 'vfpregset' fields.
5240 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5242 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5243 (aarch64_linux_fpregset): New static regset structures.
5244 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5245 of regset structures.
5246 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5249 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5251 * regset.h (struct regset): Remove gdbarch field.
5252 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5253 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5254 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5256 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5257 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5258 (ppc32_linux_vsxregset): Likewise.
5259 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5260 via the regcache instead of the regset.
5261 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5262 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5263 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5264 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5267 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5269 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5270 Constify structures.
5271 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5272 (alphanbsd_aout_gregset): Likewise.
5273 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5274 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5276 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5277 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5279 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5280 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5281 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5282 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5283 * m88k-tdep.c (m88k_gregset): Likewise.
5284 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5285 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5286 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5287 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5288 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5289 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5290 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5291 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5292 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5294 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5295 * sh-tdep.h (sh_corefile_gregset): Likewise.
5296 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5297 * vax-tdep.c (vax_gregset): Likewise.
5299 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5301 Fix TLS access for -static -pthread.
5302 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5303 (try_thread_db_load_1): Initialize it.
5304 (thread_db_get_thread_local_address): Call it if LM is zero.
5305 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5306 * target.h (struct target_ops) (to_get_thread_local_address): Add
5307 load_module_addr comment.
5309 2014-05-21 Pedro Alves <palves@redhat.com>
5311 * dcache.c (dcache_read_memory_partial): If reading the cache line
5312 fails, fallback to reading just the memory the caller wanted.
5314 2014-05-20 Doug Evans <dje@google.com>
5316 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5317 instead of get_current_arch.
5319 2014-05-20 Pedro Alves <palves@redhat.com>
5321 * NEWS: Mention that compare-sections now works with all targets.
5323 * remote.c (PACKET_qCRC): New enum value.
5324 (remote_verify_memory): Don't send qCRC if the target has no
5325 execution. Use packet_support/packet_ok. If the target doesn't
5326 support the qCRC packet, fallback to a deep memory copy.
5327 (compare_sections_command): Say "target image" instead of "remote
5329 (_initialize_remote): Add PACKET_qCRC to the list of config
5330 packets that have no associated command. Extend comment.
5331 * target.c (simple_verify_memory, default_verify_memory): New
5333 * target.h (struct target_ops) <to_verify_memory>: Default to
5334 default_verify_memory.
5335 (simple_verify_memory): New declaration.
5336 * target-delegates.c: Regenerate.
5338 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5340 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5342 2014-05-20 Hui Zhu <hui@codesourcery.com>
5343 Yao Qi <yao@codesourcery.com>
5346 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5347 and change address of sp and pc.
5349 2014-05-19 Tom Tromey <tromey@redhat.com>
5351 * gdbtypes.c (rank_function): Use XNEWVEC.
5352 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5354 2014-05-19 Doug Evans <dje@google.com>
5356 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5357 build_type_unit_groups and moved closer to only caller. Remove
5358 arguments. All references updated. Remove outdated .gdb_index
5360 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5361 build_type_psymtabs_1.
5363 2014-05-19 Doug Evans <dje@google.com>
5365 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5366 n_type_unit_groups, all_type_unit_groups. All uses removed.
5367 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5368 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5369 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5370 (add_type_unit_group_to_table): Delete.
5372 2014-05-19 Doug Evans <dje@google.com>
5374 * eval.c (evaluate_subexp_standard): Add some comments.
5376 2014-05-17 Doug Evans <xdje42@gmail.com>
5378 * progspace.c (remove_program_space): Delete, unused.
5379 * progspace.h (remove_program_space): Ditto.
5381 2014-05-17 Doug Evans <xdje42@gmail.com>
5383 * inferior.c (prune_inferiors): Fix comment.
5384 (remove_inferior_command): Call prune_program_spaces.
5386 2014-05-16 Doug Evans <dje@google.com>
5388 New command line option -D.
5390 * main.c (set_gdb_data_directory): New function.
5391 (captured_main): Recognize -D. Flag error for --data-directory "".
5392 Call set_gdb_data_directory.
5393 (print_gdb_help): Print --data-directory, -D.
5394 * main.h (set_gdb_data_directory): Declare.
5395 * top.c (staged_gdb_datadir): New static global.
5396 (set_gdb_datadir): Call set_gdb_data_directory
5397 (show_gdb_datadir): New function.
5398 (init_main): Update init of data-directory parameter.
5400 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5402 Import the "dirfd" gnulib module.
5403 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5404 * gnulib/aclocal.m4: Update.
5405 * gnulib/config.in: Update.
5406 * gnulib/configure: Update.
5407 * gnulib/import/Makefile.am: Update.
5408 * gnulib/import/Makefile.in: Update.
5409 * gnulib/import/dirfd.c: New.
5410 * gnulib/import/m4/dirfd.m4: New.
5411 * gnulib/import/m4/gnulib-cache.m4: Update.
5412 * gnulib/import/m4/gnulib-comp.m4: Update.
5414 2014-05-16 Pierre Muller <muller@sourceware.org>
5415 Yao Qi <yao@codesourcery.com>
5417 * valprint.c (print_wchar): Move the code on checking whether
5418 W is a printable wide char to the default branch of switch
5419 statement below. Call wchar_printable instead of gdb_iswprint.
5421 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5423 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5424 ldr.w and ldrd instructions.
5426 2014-05-15 Doug Evans <dje@google.com>
5428 * dwarf2read.c (read_structure_type): Delete outdated comments.
5430 2014-05-14 Tom Tromey <tromey@redhat.com>
5432 * macrocmd.c (print_macro_definition): Reindent.
5434 2014-05-13 Doug Evans <xdje42@gmail.com>
5436 * python/py-cmd.c (cmdpy_completer): Add comment.
5437 (completers): Make const.
5439 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5441 * infrun.c (resume): Remove should_resume (unused). Move up
5442 declaration of resume_ptid.
5444 2014-05-13 Tom Tromey <tromey@redhat.com>
5446 * language.h (unop_type_check): Remove.
5447 (binop_type_check): Don't declare.
5449 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5451 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5452 call to regcache_raw_collect.
5454 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5456 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5457 mi_console->quote as the quoting character.
5459 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5461 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5463 2014-04-29 Tom Tromey <tromey@redhat.com>
5465 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5466 "show debug varobj".
5468 2014-05-07 Kyle McMartin <kyle@redhat.com>
5470 Pushed by Joel Brobecker <brobecker@adacore.com>.
5471 * aarch64-tdep.c (aarch64_software_single_step): New function.
5472 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5473 with aarch64_software_single_step.
5475 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5479 2014-05-05 Keith Seitz <keiths@redhat.com>
5481 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5482 variable or history value is successfully parsed.
5484 2014-05-05 Yao Qi <yao@codesourcery.com>
5485 Pedro Alves <palves@redhat.com>
5487 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5488 address of blocks that intersects the requested range. Trim
5489 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5491 * ctf.c (ctf_xfer_partial): Likewise.
5493 2014-05-05 Yao Qi <yao@codesourcery.com>
5495 * printcmd.c (display_command): Remove the check to
5496 target_has_execution.
5498 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5500 * ppcobsd-nat.c: Include "obsd-nat.h".
5501 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5503 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5505 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5507 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5508 and 16-bit signed and unsigned arguments. Update comment.
5509 (stap_parse_probe_arguments): Extend code to handle such
5510 arguments. Use warning instead of complaint to notify about
5511 unrecognized bitness.
5513 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5515 PR breakpoints/16889
5516 * stap-probe.c (stap_parse_probe_arguments): Simplify
5517 check for non-prefixed probes (i.e., probes whose
5518 arguments do not start with "N@"). Always set the
5519 argument type to a sane value.
5521 2014-05-01 David Taylor <dtaylor@emc.com>
5523 * remote.c (compare_sections_command): Add -r option to compare
5524 all loadable read-only sections.
5526 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5528 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5529 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5531 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5532 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5533 Remove unused CORE_ADDR argument. Update all callers.
5535 2014-04-29 Pedro Alves <palves@redhat.com>
5537 * remote.c (struct packet_config) <detect>: Extend comment.
5538 (add_packet_config_cmd): Don't set the config's detect or support
5540 (init_all_packet_configs): Also initialize the config's 'detect'
5542 (reset_all_packet_configs_support): New function.
5543 (remote_open_1): Call reset_all_packet_configs_support instead of
5544 init_all_packet_configs.
5545 (_initialize_remote): Initialize all packet configs. Assert that
5546 all packets have an associated command, except a few known
5549 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5551 * dwarf2read.c (read_subrange_type): Handle dynamic
5552 DW_AT_lower_bound attributes.
5554 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5556 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5557 dynamic bounds before computing its upper bound.
5558 (ada_discrete_type_low_bound): Same as above with the lower bound.
5560 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5562 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5563 range types. Adjust the array handling implementation to
5564 take advantage of this change.
5565 (resolve_dynamic_range): New function, mostly extracted from
5566 resolve_dynamic_bounds.
5567 (resolve_dynamic_array): New function, mostly extracted from
5568 resolve_dynamic_bounds.
5569 (resolve_dynamic_bounds): Delete.
5570 (resolve_dynamic_type): Reimplement. Add handling of
5571 TYPE_CODE_RANGE types.
5573 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5575 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5576 handling of parallel ___XA types.
5578 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5580 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5581 unnecessary second call to static_unwrap_type.
5583 2014-04-27 Hui Zhu <hui@codesourcery.com>
5585 * stack.c (print_frame_info): Call do_gdb_disassembly with
5586 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5588 2014-04-26 Doug Evans <xdje42@gmail.com>
5590 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5592 2014-04-25 Pedro Alves <palves@redhat.com>
5595 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5596 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5597 and newline from built string.
5598 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5599 (linux_ptrace_attach_fail_reason): ... this.
5600 * linux-nat.c (linux_nat_attach): Adjust to use
5601 linux_ptrace_attach_fail_reason.
5603 2014-04-25 Pedro Alves <palves@redhat.com>
5605 * remote.c (struct remote_state): Remove multi_process_aware,
5606 non_stop_aware, cond_tracepoints, cond_breakpoints,
5607 breakpoint_commands, fast_tracepoints, static_tracepoints,
5608 install_in_trace, disconnected_tracing,
5609 enable_disable_tracepoints, string_tracing, and
5610 augmented_libraries_svr4_read fields.
5611 (remote_multi_process_p): Move further below in the file.
5612 (struct packet_config): Add comments.
5613 (update_packet_config): Delete function.
5614 (show_packet_config_cmd): Use packet_config_support.
5615 (add_packet_config_cmd): Use NULL as set callback.
5616 (packet_ok): "set remote foo-packet"-style commands no longer
5617 change config->supported -- adjust.
5618 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5619 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5620 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5621 (PACKET_QNonStop, PACKET_multiprocess_feature)
5622 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5623 (PACKET_DisconnectedTracing_feature)
5624 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5625 (set_remote_protocol_packet_cmd): Delete function.
5626 (packet_config_support, packet_support): New functions.
5627 (set_remote_protocol_Z_packet_cmd): Don't call
5628 update_packet_config.
5629 (remote_query_attached, remote_pass_signals)
5630 (remote_program_signals, remote_threads_info)
5631 (remote_threads_extra_info, remote_start_remote): Use
5633 (remote_start_remote): Use packet_config_support and
5635 (init_all_packet_configs): Set all packets to unknown support,
5636 instead of calling update_packet_config.
5637 (remote_check_symbols): Use packet_support.
5638 (remote_supported_packet): Unconditionally set the packet config's
5640 (remote_multi_process_feature, remote_non_stop_feature)
5641 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5642 (remote_breakpoint_commands_feature)
5643 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5644 (remote_install_in_trace_feature)
5645 (remote_disconnected_tracing_feature)
5646 (remote_enable_disable_tracepoint_feature)
5647 (remote_string_tracing_feature)
5648 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5649 (remote_protocol_features): Adjust to use remote_supported_packet
5650 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5651 "ConditionalTracepoints", "ConditionalBreakpoints",
5652 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5653 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5654 "EnableDisableTracepoints", and "tracenz".
5655 (remote_query_supported): Use packet_support.
5656 (remote_open_1): Adjust.
5657 (extended_remote_attach_1): Use packet_support. Switch on the
5658 result of packet_ok instead of checking whether the packet ended
5660 (remote_vcont_resume): Use packet_support.
5661 (remote_resume, remote_stop_ns, fetch_register_using_p)
5662 (remote_prepare_to_store, store_register_using_P)
5663 (check_binary_download, remote_write_bytes): Use packet_support.
5664 (remote_vkill): Use packet_support. Switch on the result of
5665 packet_ok instead of checking whether the packet ended up
5667 (extended_remote_supports_disable_randomization): Use
5669 (extended_remote_run): Switch on the result of packet_ok instead
5670 of checking whether the packet ended up disabled.
5671 (remote_insert_breakpoint, remote_remove_breakpoint)
5672 (remote_insert_watchpoint, remote_remove_watchpoint)
5673 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5675 (remote_search_memory): Use packet_config_support.
5676 (remote_get_thread_local_address, remote_get_tib_address)
5677 (remote_hostio_send_command, remote_can_execute_reverse): Use
5679 (remote_supports_cond_tracepoints)
5680 (remote_supports_cond_breakpoints)
5681 (remote_supports_fast_tracepoints)
5682 (remote_supports_static_tracepoints)
5683 (remote_supports_install_in_trace)
5684 (remote_supports_enable_disable_tracepoint)
5685 (remote_supports_string_tracing)
5686 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5687 the packet config says the feature is enabled or disabled.
5688 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5689 (remote_get_trace_status): Use packet_support.
5690 (remote_set_disconnected_tracing): Adjust to check whether the
5691 feature is enabled with packet_support.
5692 (remote_set_trace_buffer_size, remote_use_agent)
5693 (remote_can_use_agent, remote_supports_btrace): Use
5695 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5696 Use packet_config_support.
5697 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5698 the packet config says the feature is enabled or disabled.
5699 (set_range_stepping): Use packet_support.
5701 2014-04-25 Tom Tromey <tromey@redhat.com>
5703 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5706 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5708 * NEWS: Mention support for C99 variable length arrays.
5710 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5712 * ada-lang.c (standard_exc): Expand introductory comment.
5714 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5715 Walfred Tedeschi <walfred.tedeschi@intel.com>
5717 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5719 (amd64_linux_read_description): Add code to handle AVX512 xstate
5720 mask and return respective tdesc.
5721 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5722 and features/i386/x32-avx512-linux.c.
5723 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5724 (amd64_linux_core_read_description): Add code to handle AVX512
5725 xstate mask and return respective tdesc.
5726 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5727 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5729 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5730 (tdesc_amd64_avx512_linux): New prototype.
5731 (tdesc_x32_avx512_linux): Likewise.
5732 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5733 features/i386/x32-avx512.c.
5734 (amd64_ymm_avx512_names): New register names for pseudo
5736 (amd64_ymmh_avx512_names): New register names for raw registers
5738 (amd64_k_names): New register names for K registers.
5739 (amd64_zmmh_names): New register names for ZMM raw registers.
5740 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5741 (amd64_xmm_avx512_names): New register names for XMM16-31
5743 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5745 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5746 if feature is present.
5747 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5748 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5749 (AMD64_NUM_REGS): Adjust to new number of registers.
5750 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5751 registers supplied via XSTATE by AVX512 registers.
5752 (i386_linux_read_description): Add case for AVX512.
5753 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5754 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5755 (i386_linux_core_read_description): Add case for AVX512.
5756 (i386_linux_init_abi): Install supported register note section
5758 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5760 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5761 registers to be number of zmm7h + 1.
5762 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5763 * i386-tdep.c: Include features/i386/i386-avx512.c.
5764 (i386_zmm_names): Add ZMM pseudo register names array.
5765 (i386_zmmh_names): Add ZMM raw register names array.
5766 (i386_k_names): Add K raw register names array.
5767 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5768 registers. AVX512 has 16 more ZMM registers than there are YMM
5770 (i386_zmmh_regnum_p): Add function to look up register number of
5772 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5773 (i386_k_regnum_p): Likewise for K raw registers.
5774 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5775 registers added by AVX512.
5776 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5777 registers added by AVX512.
5778 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5780 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5781 (i386_pseudo_register_name): Add ZMM pseudo registers.
5782 (i386_zmm_type): Construct and return vector registers type for ZMM
5784 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5785 ZMM0-31 pseudo registers and K registers.
5786 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5787 and YMM16-31 registers from register cache.
5788 (i386_pseudo_register_write): Add code to write K, ZMM and
5790 (i386_register_reggroup_p): Add code to include/exclude AVX512
5791 registers in/from respective register groups.
5792 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5793 registers if feature is present in xcr0.
5794 (i386_gdbarch_init): Add code to initialize AVX512 feature
5795 variables in tdep structure, wire in pseudo registers and call
5796 initialize_tdesc_i386_avx512.
5797 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5799 (i386_regnum): Add AVX512 registers.
5800 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5801 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5802 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5803 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5805 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5806 (i386_ymm_avx512_regnum_p): Likewise.
5807 (i386_k_regnum_p): Likewise.
5808 (i386_zmm_regnum_p): Likewise.
5809 (i386_zmmh_regnum_p): Likewise.
5810 * i387-tdep.c : Update year in copyright notice.
5811 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5813 (XSAVE_YMM_AVX512_ADDR): New macro.
5814 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5816 (XSAVE_XMM_AVX512_ADDR): New macro.
5817 (xsave_avx512_k_offset): New table for K register offsets in
5819 (XSAVE_AVX512_K_ADDR): New macro.
5820 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5822 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5823 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5825 (i387_collect_xsave): Add code to collect AVX512 registers from
5827 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5828 of XMM16-31 registers.
5829 (I387_NUM_K_REGS): New define for number of K registers.
5830 (I387_K0_REGNUM): New define for K0 register number.
5831 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5832 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5833 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5835 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5836 (I387_XMM16_REGNUM): New define for XMM16 register number.
5837 (I387_YMM0_REGNUM): New define for YMM0 register number.
5838 (I387_KEND_REGNUM): New define for last K register number.
5839 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5840 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5842 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5844 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5846 * features/Makefile: Add AVX512 related files.
5847 * features/i386/32bit-avx512.xml: New file.
5848 * features/i386/64bit-avx512.xml: Likewise.
5849 * features/i386/amd64-avx512-linux.c: Likewise.
5850 * features/i386/amd64-avx512-linux.xml: Likewise.
5851 * features/i386/amd64-avx512.c: Likewise.
5852 * features/i386/amd64-avx512.xml: Likewise.
5853 * features/i386/i386-avx512-linux.c: Likewise.
5854 * features/i386/i386-avx512-linux.xml: Likewise.
5855 * features/i386/i386-avx512.c: Likewise.
5856 * features/i386/i386-avx512.xml: Likewise.
5857 * features/i386/x32-avx512-linux.c: Likewise.
5858 * features/i386/x32-avx512-linux.xml: Likewise.
5859 * features/i386/x32-avx512.c: Likewise.
5860 * features/i386/x32-avx512.xml: Likewise.
5861 * regformats/i386/amd64-avx512-linux.dat: New file.
5862 * regformats/i386/amd64-avx512.dat: Likewise.
5863 * regformats/i386/i386-avx512-linux.dat: Likewise.
5864 * regformats/i386/i386-avx512.dat: Likewise.
5865 * regformats/i386/x32-avx512-linux.dat: Likewise.
5866 * regformats/i386/x32-avx512.dat: Likewise.
5867 * NEWS: Add note about new support for AVX512.
5870 2014-04-23 Pedro Alves <palves@redhat.com>
5872 * breakpoint.c (insert_bp_location): Tolerate errors if the
5873 breakpoint is set in a user-loaded objfile.
5874 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5875 location is marked shlib_disabled. If the breakpoint is set in a
5876 user-loaded objfile is a GDB-side memory breakpoint, validate it
5877 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5878 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5880 * mem-break.c (memory_validate_breakpoint): New function.
5881 * objfiles.c (userloaded_objfile_contains_address_p): New
5883 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5884 * target.h (memory_validate_breakpoint): New declaration.
5886 2014-04-23 Pedro Alves <palves@redhat.com>
5888 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5889 the breakpoint is set in a shared library, only suppress
5890 errors for software breakpoints, not hardware breakpoints.
5892 2014-04-22 Pedro Alves <palves@redhat.com>
5894 * infrun.c (schedlock_applies): New function, factored out from
5895 find_thread_needs_step_over.
5896 (find_thread_needs_step_over): Use it.
5897 (switch_back_to_stepped_thread): Always clear trap_expected if the
5898 step over is finished. Return early if scheduler locking applies.
5899 Look for the stepping thread and a potential step-over thread with
5901 (currently_stepping_or_nexting_callback): Delete.
5903 2014-04-22 Nick Clifton <nickc@redhat.com>
5905 * NEWS: Mention that ARM sim now supports tracing.
5907 2014-04-22 Yao Qi <yao@codesourcery.com>
5909 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5911 * tracefile.c (tracefile_fetch_registers): ... it. New
5913 * tracefile.h (tracefile_fetch_registers): Declare.
5914 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5915 tracefile_fetch_registers.
5917 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5920 * windows-nat.c (thread_rec): Don't display a warning when
5921 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5922 fails for any reason, set th->suspended to -1, so that we don't
5923 try to resume such a thread. Also, don't return NULL in these
5924 cases, to avoid completely ruin the session due to "PC register is
5925 not available" error.
5926 (do_windows_fetch_inferior_registers): Check errors in
5927 GetThreadContext call.
5928 (windows_continue): Accept an additional argument KILLED; if not
5929 zero, ignore errors in the SetThreadContext call, since the
5930 inferior was killed and is shutting down.
5931 (windows_resume, get_windows_debug_event)
5932 (windows_create_inferior, windows_mourn_inferior)
5933 (windows_kill_inferior): All callers of windows_continue changed
5934 to adjust to its new calling sequence.
5936 2014-04-19 Yao Qi <yao@codesourcery.com>
5938 * ctf.c (ctf_open): Call post_create_inferior.
5940 2014-04-19 Yao Qi <yao@codesourcery.com>
5942 * ctf.c (handle_id): New static variable.
5943 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5944 value. Get the declaration of event "register" and get length
5945 of field "contents".
5947 2014-04-19 Yao Qi <yao@codesourcery.com>
5949 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5951 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5953 * valops.c (oload_method_static): Remove unnecessary argument
5954 METHOD. Update all callers.
5956 2014-04-18 Pedro alves <palves@redhat.com>
5957 Tom Tromey <tromey@redhat.com>
5960 * frame.c (get_prev_frame_1): Rename to ...
5961 (get_prev_frame_always): ... this, and make extern. Adjust.
5962 (skip_artificial_frames): Use get_prev_frame_always.
5963 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5964 (get_frame_unwind_stop_reason): Adjust to rename.
5965 * frame.h (get_prev_frame_always): Declare.
5966 * inline-frame.c: Include frame.h.
5967 (inline_frame_this_id): Use get_prev_frame_always.
5969 2014-04-18 Tristan Gingold <gingold@adacore.com>
5971 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5972 code by using bfd_mach_o_get_base_address.
5974 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5976 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5977 (spu_ax_pseudo_register_collect): New function.
5978 (spu_ax_pseudo_register_push_stack): Likewise.
5979 (spu_dwarf_reg_to_regnum): Likewise.
5980 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5982 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5984 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5985 Replace FRAME argument with FRAME_ID.
5986 * gdbarch.c, gdbarch.h: Regenerate.
5987 * findvar.c (default_value_from_register): Add GDBARCH argument;
5988 replace FRAME by FRAME_ID. No longer call get_frame_id.
5989 (value_from_register): Update call to gdbarch_value_from_register.
5990 * value.h (default_value_from_register): Update prototype.
5991 * s390-linux-tdep.c (s390_value_from_register): Update interface
5992 and call to default_value_from_register.
5993 * spu-tdep.c (spu_value_from_register): Likewise.
5995 * findvar.c (address_from_register): Remove TYPE argument.
5996 Do not call value_from_register; use gdbarch_value_from_register
5997 with null_frame_id instead.
5998 * value.h (address_from_register): Update prototype.
5999 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6000 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6001 address_from_register interface change.
6003 2014-04-17 Yao Qi <yao@codesourcery.com>
6005 * gdbtypes.h: Update comments to link to types and macros'
6008 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6010 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6012 2014-04-16 Keith Seitz <keiths@redhat.com>
6015 * dwarf2read.c (skip_one_die): Check that all relative-offset
6016 sibling DIEs fall within range of the current reader's buffer.
6017 (read_partial_die): Likewise.
6019 2014-04-16 Keith Seitz <keiths@redhat.com>
6022 * cp-namespace.c (lookup_symbol_file): If the type name of
6023 `this' is NULL, return immediately.
6025 2014-04-14 Keith Seitz <keiths@redhat.com>
6028 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6029 from symbol_matches_domain in symtab.c. All local callers
6030 of symbol_matches_domain updated.
6031 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6032 search STRUCT_DOMAIN.
6033 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6034 independently. standard_lookup will do that automatically.
6035 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6036 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6037 (cp_lookup_symbol_in_namespace): Likewise.
6038 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6039 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6040 may return a STRUCT_DOMAIN match.
6041 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6042 * cp-support.c: Include language.h.
6043 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6045 * psymtab.c (match_partial_symbol): Compare the requested
6046 domain with the symbol's domain directly.
6047 (lookup_partial_symbol): Likewise.
6048 * symtab.c (lookup_symbol_in_language): Explain when/why
6049 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6050 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6051 appropriate languages.
6052 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6053 and moved to ada-lang.c
6054 (lookup_block_symbol): Explain that this function only returns
6055 symbol matching the requested DOMAIN.
6056 Compare the requested domain with the symbol's domain directly.
6057 (iterate_over_symbols): Compare the requested domain with the
6058 symbol's domain directly.
6059 * symtab.h (symbol_matches_domain): Remove.
6061 2014-04-14 Tom Tromey <tromey@redhat.com>
6064 * c-exp.y (type_aggregate_p): New function.
6065 (qualified_name, classify_inner_name): Use it.
6066 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6067 and TYPE_TARGET_TYPE of an enum type.
6068 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6070 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6071 handle TYPE_DECLARED_CLASS.
6072 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6074 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6075 * valops.c (enum_constant_from_type): New function.
6076 (value_aggregate_elt): Use it.
6077 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6080 2014-04-14 Tom Tromey <tromey@redhat.com>
6082 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6083 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6085 * value.h (value_aggregate_elt): Update.
6087 2014-04-14 Tom Tromey <tromey@redhat.com>
6089 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6091 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6093 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6094 (evaluate_subexp_standard): Pass noside argument.
6095 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6096 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6097 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6098 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6099 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6101 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6103 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6104 points to a constant blob.
6106 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6108 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6109 property and store it as the high bound and flag the range accordingly.
6110 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6111 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6112 * gdbtypes.h (enum range_flags): New enum.
6113 (struct range_bounds): Add flags member.
6115 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6117 * c-typeprint.c (c_type_print_varspec_suffix): Added
6118 check for not yet resolved high bound. If unresolved, print
6119 "variable length" string to the console instead of random
6122 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6124 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6126 (ada_template_to_fixed_record_type_1): Likewise.
6127 (ada_to_fixed_type_1): Likewise.
6128 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6129 (cp_print_value): Likewise.
6130 * d-valprint.c (dynamic_array_type): Likewise.
6131 * findvar.c (address_of_variable): Likewise.
6132 * jv-valprint.c (java_value_print): Likewise.
6133 * valops.c (value_ind): Likewise.
6134 * value.c (coerce_ref): Likewise.
6136 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6138 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6139 value and retrieve the dynamic type size.
6141 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6143 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6144 passed to sizeof is dynamic evaluate the argument to compute the length.
6146 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6147 Joel Brobecker <brobecker@adacore.com>
6149 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6150 (dwarf2_evaluate_property): New function.
6151 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6152 * dwarf2read.c (attr_to_dynamic_prop): New function.
6153 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6155 * gdbtypes.c: Include dwarf2loc.h.
6156 (is_dynamic_type): New function.
6157 (resolve_dynamic_type): New function.
6158 (resolve_dynamic_bounds): New function.
6159 (get_type_length): New function.
6160 (check_typedef): Use get_type_length to compute type length.
6161 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6162 (TYPE_LOW_BOUND_KIND): New macro.
6163 (is_dynamic_type): New function prototype.
6164 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6165 to resolve dynamic properties of the type. Update comment.
6166 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6168 2014-04-14 Richard Henderson <rth@redhat.com>
6170 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6172 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6173 Doug Evans <xdje42@gmail.com>
6175 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6176 dereference TYPE_CODE_REF values.
6178 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6180 Revert the following changes due to regressions:
6182 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6183 (dwarf2_evaluate_property): New function.
6184 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6185 * dwarf2read.c (attr_to_dynamic_prop): New function.
6186 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6188 * gdbtypes.c: Include dwarf2loc.h.
6189 (is_dynamic_type): New function.
6190 (resolve_dynamic_type): New function.
6191 (resolve_dynamic_bounds): New function.
6192 (get_type_length): New function.
6193 (check_typedef): Use get_type_length to compute type length.
6194 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6195 (TYPE_LOW_BOUND_KIND): New macro.
6196 (is_dynamic_type): New function prototype.
6197 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6198 to resolve dynamic properties of the type. Update comment.
6199 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6201 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6202 passed to sizeof is dynamic evaluate the argument to compute the length.
6204 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6205 value and retrieve the dynamic type size.
6207 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6208 (ada_template_to_fixed_record_type_1): Likewise.
6209 (ada_to_fixed_type_1): Likewise.
6210 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6211 (cp_print_value): Likewise.
6212 * d-valprint.c (dynamic_array_type): Likewise.
6213 * eval.c (evaluate_subexp_with_coercion): Likewise.
6214 * findvar.c (address_of_variable): Likewise.
6215 * jv-valprint.c (java_value_print): Likewise.
6216 * valops.c (value_ind): Likewise.
6217 * value.c (coerce_ref): Likewise.
6219 * c-typeprint.c (c_type_print_varspec_suffix): Added
6220 check for not yet resolved high bound. If unresolved, print
6221 "variable length" string to the console instead of random
6224 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6225 property and store it as the high bound and flag the range accordingly.
6226 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6227 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6228 * gdbtypes.h (enum range_flags): New enum.
6229 (struct range_bounds): Add flags member.
6231 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6232 points to a constant blob.
6234 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6235 (evaluate_subexp_standard): Pass noside argument.
6236 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6237 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6238 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6239 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6240 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6242 2014-04-11 Keith Seitz <keiths@redhat.com>
6245 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6246 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6249 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6251 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6252 (evaluate_subexp_standard): Pass noside argument.
6253 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6254 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6255 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6256 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6257 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6259 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6261 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6262 points to a constant blob.
6264 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6266 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6267 property and store it as the high bound and flag the range accordingly.
6268 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6269 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6270 * gdbtypes.h (enum range_flags): New enum.
6271 (struct range_bounds): Add flags member.
6273 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6275 * c-typeprint.c (c_type_print_varspec_suffix): Added
6276 check for not yet resolved high bound. If unresolved, print
6277 "variable length" string to the console instead of random
6280 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6282 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6283 (ada_template_to_fixed_record_type_1): Likewise.
6284 (ada_to_fixed_type_1): Likewise.
6285 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6286 (cp_print_value): Likewise.
6287 * d-valprint.c (dynamic_array_type): Likewise.
6288 * eval.c (evaluate_subexp_with_coercion): Likewise.
6289 * findvar.c (address_of_variable): Likewise.
6290 * jv-valprint.c (java_value_print): Likewise.
6291 * valops.c (value_ind): Likewise.
6292 * value.c (coerce_ref): Likewise.
6294 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6296 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6297 value and retrieve the dynamic type size.
6299 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6301 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6302 passed to sizeof is dynamic evaluate the argument to compute the length.
6304 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6306 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6307 (dwarf2_evaluate_property): New function.
6308 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6309 * dwarf2read.c (attr_to_dynamic_prop): New function.
6310 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6312 * gdbtypes.c: Include dwarf2loc.h.
6313 (is_dynamic_type): New function.
6314 (resolve_dynamic_type): New function.
6315 (resolve_dynamic_bounds): New function.
6316 (get_type_length): New function.
6317 (check_typedef): Use get_type_length to compute type length.
6318 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6319 (TYPE_LOW_BOUND_KIND): New macro.
6320 (is_dynamic_type): New function prototype.
6321 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6322 to resolve dynamic properties of the type. Update comment.
6323 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6325 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6327 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6328 declaring high/low bounds and change uses accordingly. Call
6329 create_range_type instead of create_static_range_type.
6330 * gdbtypes.c (create_range_type): New function.
6331 (create_range_type): Convert bounds into struct bound_prop and pass
6332 them to create_range_type.
6333 * gdbtypes.h (struct bound_prop): New struct.
6334 (create_range_type): New function prototype.
6335 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6336 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6337 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6339 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6341 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6343 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6344 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6345 * ada-lang.c: All uses of create_range_type updated.
6346 * coffread.c: All uses of create_range_type updated.
6347 * dwarf2read.c: All uses of create_range_type updated.
6348 * f-exp.y: All uses of create_range_type updated.
6349 * m2-valprint.c: All uses of create_range_type updated.
6350 * mdebugread.c: All uses of create_range_type updated.
6351 * stabsread.c: All uses of create_range_type updated.
6352 * valops.c: All uses of create_range_type updated.
6353 * valprint.c: All uses of create_range_type updated.
6355 2014-04-10 Pedro Alves <palves@redhat.com>
6357 * breakpoint.c (single_step_breakpoints)
6358 (single_step_gdbarch): Move up in the file.
6359 (one_breakpoint_xfer_memory): New function, factored out from ...
6360 (breakpoint_xfer_memory): ... here. Also process single-step
6363 2014-04-09 Tristan Gingold <gingold@adacore.com>
6365 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6367 (darwin_decode_exception_message): Free port only after use.
6369 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6371 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6372 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6373 when setting the size of call_length.
6375 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6377 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6378 dereference TYPE_CODE_REF values.
6380 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6382 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6383 end of warning message.
6385 2014-04-03 Doug Evans <dje@google.com>
6387 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6388 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6390 2014-04-02 Alan Modra <amodra@gmail.com>
6392 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6393 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6394 (struct symbol_file_add_from_memory_args): Add size field.
6395 (find_vdso_size): New function.
6396 (add_vsyscall_page): Attempt to find vdso size.
6398 2014-04-01 Doug Evans <dje@google.com>
6400 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6402 2014-04-01 Tristan Gingold <gingold@adacore.com>
6404 * darwin-nat.c (darwin_encode_reply): Add prototype.
6405 (darwin_decode_exception_message): Reply to unknown inferiors.
6406 (darwin_decode_message): Handle message by id. Ignore message
6407 to unknown inferior.
6408 (darwin_wait): Discard unknown messages, add debug trace.
6410 2014-03-31 Doug Evans <dje@google.com>
6412 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6415 2014-03-31 Doug Evans <dje@google.com>
6417 New option "set print symbol-loading".
6419 * solib.c (solib_read_symbols): Only print symbol loading messages
6421 (solib_add): If symbol loading is in "brief" mode, notify user
6422 symbols are being loaded.
6423 (reload_shared_libraries_1): Ditto.
6424 * symfile.c (print_symbol_loading_off): New static global.
6425 (print_symbol_loading_brief): New static global.
6426 (print_symbol_loading_full): New static global.
6427 (print_symbol_loading_enums): New static global.
6428 (print_symbol_loading): New static global.
6429 (print_symbol_loading_p): New function.
6430 (symbol_file_add_with_addrs): Only print symbol loading messages
6432 (_initialize_symfile): Register "print symbol-loading" set/show
6434 * symfile.h (print_symbol_loading_p): Declare.
6436 2014-03-30 Doug Evans <xdje42@gmail.com>
6438 * infrun.c (set_last_target_status): New function.
6439 (handle_inferior_event): Call it.
6441 2014-03-30 Doug Evans <xdje42@gmail.com>
6443 * inferior.h (enum stop_kind): Improve comment.
6445 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6447 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6448 a reference, strip the reference layer before calling
6449 the lang_ops value_has_mutated callback.
6451 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6453 Remove some globals from our parser.
6454 * language.c (unk_lang_parser): Add "struct parser_state"
6456 * language.h (struct language_defn) <la_parser>: Likewise.
6457 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6458 (initialize_expout): Add "struct parser_state" argument.
6459 Rewrite function to use the parser state.
6460 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6461 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6462 write_exp_elt_longcst, write_exp_elt_dblcst,
6463 write_exp_elt_decfloatcst, write_exp_elt_type,
6464 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6465 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6466 write_dollar_variable): Likewise.
6467 (parse_exp_in_context_1): Use parser state.
6468 (insert_type_address_space): Add "struct parser_state" argument.
6470 (increase_expout_size): New function.
6471 * parser-defs.h: Forward declare "struct language_defn" and
6472 "struct parser_state".
6473 (expout, expout_size, expout_ptr): Remove extern declarations.
6474 (parse_gdbarch, parse_language): Rewrite macro declarations to
6475 accept the parser state.
6476 (struct parser_state): New struct.
6477 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6478 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6479 write_exp_elt_decfloatcst, write_exp_elt_type,
6480 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6481 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6482 write_exp_msymbol, write_dollar_variable,
6483 mark_struct_expression, insert_type_address_space): Add "struct
6484 parser_state" argument.
6485 (increase_expout_size): New function.
6486 * utils.c (do_clear_parser_state): New function.
6487 (make_cleanup_clear_parser_state): Likewise.
6488 * utils.h (make_cleanup_clear_parser_state): New function
6490 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6491 Update calls to write_exp* in order to pass the parser state.
6492 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6493 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6494 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6495 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6496 * stap-probe.c (stap_parse_register_operand): Likewise.
6497 (stap_parse_single_operand): Likewise.
6498 (stap_parse_argument_1): Likewise.
6499 (stap_parse_argument): Use parser state.
6500 * stap-probe.h: Include "parser-defs.h".
6501 (struct stap_parse_info) <pstate>: New field.
6502 * c-exp.y (parse_type): Rewrite to use parser state.
6503 (yyparse): Redefine to c_parse_internal.
6504 (pstate): New global variable.
6505 (parse_number): Add "struct parser_state" argument.
6506 (write_destructor_name): Likewise.
6507 (type_exp): Update calls to write_exp* and similars in order to
6509 (exp1, exp, variable, qualified_name, space_identifier,
6510 typename, typebase): Likewise.
6511 (write_destructor_name, parse_number, lex_one_token,
6512 classify_name, classify_inner_name, c_parse): Add "struct
6513 parser_state" argument. Update function to use parser state.
6514 * c-lang.h: Forward declare "struct parser_state".
6515 (c_parse): Add "struct parser_state" argument.
6516 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6517 (yyparse): Redefine macro to ada_parse_internal.
6518 (pstate): New variable.
6519 (write_int, write_object_renaming, write_var_or_type,
6520 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6521 type_int, type_long, type_long_long, type_float, type_double,
6522 type_long_double, type_char, type_boolean, type_system_address):
6523 Add "struct parser_state" argument.
6524 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6525 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6526 var_or_type, aggregate, aggregate_component_list,
6527 positional_list, others, component_group,
6528 component_associations): Update calls to write_exp* and similar
6529 functions in order to use parser state.
6530 (ada_parse, write_var_from_sym, write_int,
6531 write_exp_op_with_string, write_object_renaming,
6532 find_primitive_type, write_selectors, write_ambiguous_var,
6533 write_var_or_type, write_name_assoc, type_int, type_long,
6534 type_long_long, type_float, type_double, type_long_double,
6535 type_char, type_boolean, type_system_address): Add "struct
6536 parser_state" argument. Adjust function to use parser state.
6537 * ada-lang.c (parse): Likewise.
6538 * ada-lang.h: Forward declare "struct parser_state".
6539 (ada_parse): Add "struct parser_state" argument.
6540 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6541 calls to both functions.
6542 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6544 (yyparse): Redefine macro to f_parse_internal.
6545 (pstate): New variable.
6546 (parse_number): Add "struct parser_state" argument.
6547 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6548 and similars in order to use parser state.
6549 (parse_number): Adjust code to use parser state.
6551 (f_parse): New function.
6552 * f-lang.h: Forward declare "struct parser_state".
6553 (f_parse): Add "struct parser_state" argument.
6554 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6556 (yyparse): Redefine macro for java_parse_internal.
6557 (pstate): New variable.
6558 (push_expression_name, push_expression_name, insert_exp): Add
6559 "struct parser_state" argument.
6560 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6561 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6562 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6563 PostIncrementExpression, PostDecrementExpression,
6564 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6565 UnaryExpressionNotPlusMinus, CastExpression,
6566 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6567 RelationalExpression, EqualityExpression, AndExpression,
6568 ExclusiveOrExpression, InclusiveOrExpression,
6569 ConditionalAndExpression, ConditionalOrExpression,
6570 ConditionalExpression, Assignment, LeftHandSide): Update
6571 calls to write_exp* and similars in order to use parser state.
6572 (parse_number): Ajust code to use parser state.
6574 (java_parse): New function.
6575 (push_variable): Add "struct parser_state" argument. Adjust
6576 code to user parser state.
6577 (push_fieldnames, push_qualified_expression_name,
6578 push_expression_name, insert_exp): Likewise.
6579 * jv-lang.h: Forward declare "struct parser_state".
6580 (java_parse): Add "struct parser_state" argument.
6581 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6583 (yyparse): Redefine macro to m2_parse_internal.
6584 (pstate): New variable.
6585 (type_exp, exp, fblock, variable, type): Update calls to
6586 write_exp* and similars to use parser state.
6588 (m2_parse): New function.
6589 * m2-lang.h: Forward declare "struct parser_state".
6590 (m2_parse): Add "struct parser_state" argument.
6591 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6592 * objc-lang.h: Forward declare "struct parser_state".
6593 (end_msglist): Add "struct parser_state" argument.
6594 * p-exp.y (parse_type): Rewrite macro to use parser state.
6595 (yyparse): Redefine macro to pascal_parse_internal.
6596 (pstate): New variable.
6597 (parse_number): Add "struct parser_state" argument.
6598 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6599 write_exp* and similars in order to use parser state.
6600 (parse_number, yylex): Adjust code to use parser state.
6601 (pascal_parse): New function.
6602 * p-lang.h: Forward declare "struct parser_state".
6603 (pascal_parse): Add "struct parser_state" argument.
6604 * go-exp.y (parse_type): Rewrite macro to use parser state.
6605 (yyparse): Redefine macro to go_parse_internal.
6606 (pstate): New variable.
6607 (parse_number): Add "struct parser_state" argument.
6608 (type_exp, exp1, exp, variable, type): Update calls to
6609 write_exp* and similars in order to use parser state.
6610 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6611 to use parser state.
6612 (go_parse): Likewise.
6613 * go-lang.h: Forward declare "struct parser_state".
6614 (go_parse): Add "struct parser_state" argument.
6616 2014-03-27 Doug Evans <dje@google.com>
6618 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6620 2014-03-27 Doug Evans <dje@google.com>
6622 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6623 Remove argument abbrev_section. All callers updated.
6625 2014-03-27 Doug Evans <dje@google.com>
6627 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6628 addr_base, ranges_base.
6630 2014-03-26 Keith Seitz <keiths@redhat.com>
6632 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6633 types, not VAR_DOMAIN.
6635 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6637 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6639 * features/nios2-linux.c: Regenerated.
6640 * features/nios2.c: Regenerated.
6642 2014-03-25 Pedro Alves <palves@redhat.com>
6644 * cli/cli-script.c (script_from_file): Force the interpreter to
6647 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6649 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6650 small stack allocation.
6652 2014-03-24 Tristan Gingold <gingold@adacore.com>
6654 * darwin-nat.c (exc_server): Remove unused prototype.
6655 (darwin_dump_message): Correctly display data on x86_64.
6656 (darwin_encode_reply): Fix style.
6657 Add comments and fix indentation.
6659 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6661 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6663 2014-03-22 Doug Evans <xdje42@gmail.com>
6665 * infcmd.c: Whitespace fixes.
6666 (interrupt_command): Merge two function comments into one.
6668 2014-03-22 Doug Evans <xdje42@gmail.com>
6670 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6673 2014-03-22 Yao Qi <yao@codesourcery.com>
6675 * remote.c (target_read_live_memory): Remove.
6676 (memory_xfer_live_readonly_partial): Rename it to
6677 remote_xfer_live_readonly_partial. Remove argument 'object'.
6678 All callers updated. Call remote_read_bytes_1
6679 instead of target_read_live_memory.
6680 * tracepoint.c (set_traceframe_number): Remove.
6681 (make_cleanup_restore_traceframe_number): Likewise .
6682 * tracepoint.h (set_traceframe_number): Remove declaration.
6683 (make_cleanup_restore_traceframe_number): Likewise.
6685 2014-03-22 Yao Qi <yao@codesourcery.com>
6687 * remote.c (remote_read_bytes): Move code on reading from the
6689 (remote_read_bytes_1): ... here. New function.
6691 2014-03-22 Yao Qi <yao@codesourcery.com>
6693 * ctf.c (ctf_xfer_partial): Check the return value of
6694 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6695 return TARGET_XFER_UNAVAILABLE.
6696 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6697 * target.c (target_read_live_memory): Move it to remote.c.
6698 (memory_xfer_live_readonly_partial): Likewise.
6699 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6700 * remote.c (target_read_live_memory): Moved from target.c.
6701 (memory_xfer_live_readonly_partial): Likewise.
6702 (remote_read_bytes): Factored out from
6703 memory_xfer_partial_1.
6705 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6707 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6710 2014-03-21 Pedro Alves <palves@redhat.com>
6712 * infrun.c (normal_stop): Extend comment.
6714 2014-03-21 Hui Zhu <hui@codesourcery.com>
6715 Pedro Alves <palves@redhat.com>
6717 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6719 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6720 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6721 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6723 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6725 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6726 `z' formatted output modifier.
6728 2014-03-20 Tom Tromey <tromey@redhat.com>
6729 Sergio Durigan Junior <sergiodj@redhat.com>
6731 * probe.c (parse_probes): Turn assert into an ordinary error.
6732 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6733 exceptions when parsing probes. Rearrange the code for clarity.
6735 2014-03-20 Tom Tromey <tromey@redhat.com>
6738 * top.c (execute_command): Only dispatch events if the command
6741 2014-03-20 Tom Tromey <tromey@redhat.com>
6744 * infcall.c: Include event-top.h.
6745 (run_inferior_call): Call async_disable_stdin if needed.
6747 2014-03-20 Pedro Alves <palves@redhat.com>
6749 * infrun.c (prepare_to_proceed): Delete.
6750 (thread_still_needs_step_over): New function.
6751 (find_thread_needs_step_over): New function.
6752 (proceed): If the current thread needs a step-over, set its
6753 steping_over_breakpoint flag. Adjust to use
6754 find_thread_needs_step_over instead of prepare_to_proceed.
6755 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6756 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6758 (switch_back_to_stepped_thread): Step over breakpoints of all
6759 threads not the stepping thread, before switching back to the
6762 2014-03-20 Pedro Alves <palves@redhat.com>
6764 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6766 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6767 * infrun.c (saved_singlestep_ptid)
6768 (stepping_past_singlestep_breakpoint): Delete.
6769 (resume): Remove stepping_past_singlestep_breakpoint handling.
6770 (proceed): Store the prev_pc of the stepping thread too.
6771 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6773 (enum infwait_states): Delete infwait_thread_hop_state.
6774 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6776 (handle_inferior_event): Adjust.
6777 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6778 handling and the thread-hop code. Before removing single-step
6779 breakpoints, check whether the thread hit a single-step breakpoint
6780 of another thread. If it did, the trap is not a random signal.
6781 (switch_back_to_stepped_thread): If the event thread hit a
6782 single-step breakpoint, unblock it before switching to the
6783 stepping thread. Handle the case of the stepped thread having
6785 (keep_going): Handle the case of the current thread moving past a
6786 single-step breakpoint.
6788 2014-03-20 Pedro Alves <palves@redhat.com>
6791 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6792 are being stepped over.
6793 (breakpoint_address_match): Make extern.
6794 * breakpoint.h (breakpoint_address_match): New declaration.
6795 * inferior.h (stepping_past_instruction_at): New declaration.
6796 * infrun.c (struct step_over_info): New type.
6797 (step_over_info): New global.
6798 (set_step_over_info, clear_step_over_info)
6799 (stepping_past_instruction_at): New functions.
6800 (handle_inferior_event): Clear the step-over info when
6801 trap_expected is cleared.
6802 (resume): Remove now stale comment.
6803 (clear_proceed_status): Clear step-over info.
6804 (proceed): Adjust step-over handling to set or clear the step-over
6805 info instead of removing all breakpoints.
6806 (handle_signal_stop): When setting up a thread-hop, don't remove
6808 (stop_stepping): Clear step-over info.
6809 (keep_going): Adjust step-over handling to set or clear step-over
6810 info and then always inserting breakpoints, instead of removing
6811 all breakpoints when stepping over one.
6813 2014-03-20 Pedro Alves <palves@redhat.com>
6815 * infrun.c (previous_inferior_ptid): Adjust comment.
6816 (deferred_step_ptid): Delete.
6817 (infrun_thread_ptid_changed, prepare_to_proceed)
6818 (init_wait_for_inferior): Adjust.
6819 (handle_signal_stop): Delete deferred_step_ptid handling.
6821 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6824 * defs.h (sync_quit_force_run): New declaration.
6825 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6826 * event-top.c (async_sigterm_handler): New declaration.
6827 (async_sigterm_token): New variable.
6828 (async_init_signals): Create also async_sigterm_token.
6829 (async_sigterm_handler): New function.
6830 (sync_quit_force_run): New variable.
6831 (handle_sigterm): Replace quit_force call by other calls.
6832 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6834 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6836 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6837 offset into SPE pseudo registers.
6839 2014-03-18 Pedro Alves <palves@redhat.com>
6842 * inferior.h (print_stop_event): Declare.
6843 * infrun.c (print_stop_event): New, factored out from ...
6844 (normal_stop): ... this.
6845 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6846 of bpstat_print/print_stack_frame.
6848 2014-03-17 Tom Tromey <tromey@redhat.com>
6850 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6852 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6854 * ada-lang.c (decode_constrained_packed_array): Perform a
6855 minimal coercion for reference with coerce_ref instead of
6858 2014-03-17 Tristan Gingold <gingold@adacore.com>
6860 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6861 (darwin_solib_create_inferior_hook): Emit a warning if version
6864 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6866 * python/py-value.c (get_field_flag): Cast flag_name argument to
6867 PyObject_GetAttrString to support Python 2.4.
6869 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6871 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6872 (Global Maintainers): Remove Jan Kratochvil.
6874 2014-03-14 Pedro Alves <palves@redhat.com>
6876 * inferior.h (terminal_ours_for_output): Rename to ...
6877 (child_terminal_ours_for_output): ... this.
6878 (terminal_save_ours): Rename to ...
6879 (child_terminal_save_ours): ... this.
6880 (terminal_ours): Rename to ...
6881 (child_terminal_ours): ... this.
6882 (terminal_inferior): Rename to ...
6883 (child_terminal_inferior): ... this.
6884 (terminal_init_inferior): Rename to ...
6885 (child_terminal_init_inferior): ... this.
6886 (terminal_init_inferior_with_pgrp): Rename to ...
6887 (child_terminal_init_inferior_with_pgrp): ... this.
6888 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6889 (child_terminal_init_with_pgrp): ... this.
6890 (terminal_save_ours): Rename to ...
6891 (child_terminal_save_ours): ... this.
6892 (terminal_init_inferior): Rename to ...
6893 (child_terminal_init): ... this. Adjust.
6894 (terminal_inferior): Rename to ...
6895 (child_terminal_inferior): ... this.
6896 (terminal_ours_for_output): Rename to ...
6897 (child_terminal_ours_for_output): ... this. Adjust.
6898 (terminal_ours): Rename to ...
6899 (child_terminal_ours): ... this.
6900 (terminal_ours_1): Rename to ...
6901 (child_terminal_ours_1): ... this. Adjust.
6902 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6903 * windows-nat.c (do_initial_windows_stuff): Adjust.
6904 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6905 (gnu_terminal_init): ... this. Adjust.
6906 (gnu_target): Adjust.
6907 * inf-child.c (inf_child_target): Adjust.
6909 2014-03-13 Doug Evans <xdje42@gmail.com>
6912 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6915 2014-03-13 Doug Evans <xdje42@gmail.com>
6917 * value.c (record_latest_value): Call release_value_or_incref
6918 instead of release_value.
6920 2014-03-13 Pedro Alves <palves@redhat.com>
6922 * procfs.c (procfs_target): Don't override to_shortname,
6923 to_longname or to_doc.
6925 2014-03-13 Pedro Alves <palves@redhat.com>
6927 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6928 Unix in user visible strings.
6930 2014-03-12 Stan Shebs <stan@codesourcery.com>
6932 * gdbtypes.h: Annotate comments for Doxygen, add a page
6933 block comment with some general info.
6935 2014-03-12 Pedro Alves <palves@redhat.com>
6937 * infcmd.c (prepare_execution_command): New function, factored out
6938 from several execution commands.
6939 (run_command_1, continue_command, step_1, jump_command)
6940 (signal_command, until_command, advance_command, finish_command)
6941 (attach_command): Use prepare_execution_command.
6943 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6945 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6948 (struct arm_linux_thread_points): Removed.
6949 (struct arm_linux_process_info): New.
6950 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6951 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6952 (arm_linux_find_breakpoints_by_tid): Removed.
6953 (struct arch_lwp_info): New.
6954 (arm_linux_find_process_pid): New functions.
6955 (arm_linux_add_process): New functions.
6956 (arm_linux_process_info_get): New functions.
6957 (arm_linux_forget_process): New function.
6958 (arm_linux_get_debug_reg_state): New function.
6959 (struct update_registers_data): New.
6960 (update_registers_callback): New function.
6961 (arm_linux_insert_hw_breakpoint1): Updated.
6962 (arm_linux_remove_hw_breakpoint1): Updated.
6963 (arm_linux_insert_hw_breakpoint): Updated.
6964 (arm_linux_remove_hw_breakpoint): Updated.
6965 (arm_linux_insert_watchpoint): Updated.
6966 (arm_linux_remove_watchpoint): Updated.
6967 (arm_linux_new_thread): Updated.
6968 (arm_linux_prepare_to_resume): New function.
6969 (arm_linux_new_fork): New function.
6970 (_initialize_arm_linux_nat): Updated.
6972 2014-03-12 Pedro Alves <palves@redhat.com>
6974 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6976 2014-03-12 Tom Tromey <tromey@redhat.com>
6978 * inf-child.c (return_zero): New function.
6979 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6980 * aix-thread.c (aix_thread_inferior_created): New function.
6981 (aix_thread_attach): Remove.
6982 (init_aix_thread_ops): Don't set to_attach.
6983 (_initialize_aix_thread): Register inferior_created observer.
6984 * corelow.c (init_core_ops): Don't set to_attach or
6986 * exec.c (init_exec_ops): Don't set to_attach or
6988 * infcmd.c (run_command_1): Use find_run_target. Make direct
6990 (attach_command): Use find_attach_target. Make direct target
6992 * record-btrace.c (init_record_btrace_ops): Don't set
6994 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6996 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6997 set to_create_inferior.
6998 * target.c (complete_target_initialization): Add assertion.
6999 (target_create_inferior): Remove.
7000 (find_default_attach, find_default_create_inferior): Remove.
7001 (find_attach_target, find_run_target): New functions.
7002 (find_default_is_async_p, find_default_can_async_p)
7003 (target_supports_non_stop, target_attach): Remove.
7004 (init_dummy_target): Don't set to_create_inferior or
7005 to_supports_non_stop.
7006 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7007 TARGET_DEFAULT_FUNC.
7008 <to_create_inferior>: Add comment.
7009 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7010 TARGET_DEFAULT_RETURN.
7011 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7012 (find_attach_target, find_run_target): Declare.
7013 (target_create_inferior): Remove.
7014 (target_has_execution_1): Update comment.
7015 (target_supports_non_stop): Remove.
7016 * target-delegates.c: Rebuild.
7018 2014-03-12 Pedro Alves <palves@redhat.com>
7020 * inf-child.h: Update comment to not mention Unix.
7022 2014-03-12 Pedro Alves <palves@redhat.com>
7024 * inf-child.c: Update top comment to not mention Unix. Add
7025 generic comment describing how this target is meant to be used.
7026 (inf_child_post_attach, inf_child_post_startup_inferior)
7027 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7030 2014-03-12 Pedro Alves <palves@redhat.com>
7032 * nto-procfs.c: Include inf-child.h.
7033 (procfs_ops): Delete global.
7034 (procfs_can_run): Delete method.
7035 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7036 target pointer instead of referencing procfs_ops.
7037 (procfs_prepare_to_store): Delete.
7038 (init_procfs_ops): Delete function.
7039 (procfs_target): New function, based on init_procfs_ops, but
7040 inherit inf_child_target.
7041 (_initialize_procfs): Use procfs_target.
7043 2014-03-12 Pedro Alves <palves@redhat.com>
7045 * windows-nat.c: Include inf-child.h.
7046 (windows_ops): Delete global.
7047 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7049 (init_windows_ops): Delete function.
7050 (windows_target): New function, based on init_windows_ops, but
7051 inherit inf_child_target.
7052 (_initialize_windows_nat): Use windows_target. Install x86
7053 specific target methods here.
7055 2014-03-10 Doug Evans <xdje42@gmail.com>
7057 * guile/guile.c (call_initialize_gdb_module): New function.
7058 (initialize_guile): Replace call to scm_init_guile with call to
7061 2014-03-10 Joel Brobecker <brobecker@adacore.com>
7063 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7064 in call to TYPE_CODE macro.
7066 2014-03-10 Jerome Guitton <guitton@adacore.com>
7068 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7069 Resolve tagged types to full view.
7071 2014-03-10 Hui Zhu <hui@codesourcery.com>
7073 * target.h (target_insert_breakpoint): Remove "hardware" from its
7076 2014-03-07 Doug Evans <dje@google.com>
7078 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7080 2014-03-07 Doug Evans <dje@google.com>
7082 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7083 Remove unused local comp_dir_attr. Assert exactly one of
7084 stub_comp_unit_die, stub_comp_dir is non-NULL.
7086 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7088 * target.h (complete_target_initialization, add_target):
7091 2014-03-07 Pedro Alves <palves@redhat.com>
7093 * go32-nat.c: Include inf-child.h.
7094 (go32_ops): Delete global.
7095 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7097 (go32_create_inferior): Push the passed in target pointer instead
7098 of referencing go32_ops.
7099 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7100 (go32_target): New function, based on init_go32_ops, but inherit
7102 (_initialize_go32_nat): Use go32_target. Move parts of
7105 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7107 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7108 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7109 SYMBOL_VALUE_ADDRESS.
7110 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7112 2014-03-06 Yao Qi <yao@codesourcery.com>
7114 * breakpoint.c (get_tracepoint_by_number): Remove argument
7115 optional_p. All callers updated. Adjust comments. Update
7117 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7119 2014-03-06 Yao Qi <yao@codesourcery.com>
7121 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7122 early if get_number returns zero. Use 'p' instead of 'args'.
7124 2014-03-06 Yao Qi <yao@codesourcery.com>
7126 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7129 2014-03-06 Yao Qi <yao@codesourcery.com>
7131 PR breakpoints/16508
7132 * tracepoint.c (check_trace_running): New function.
7133 (trace_find_command): Move code to check_trace_running and
7134 call check_trace_running.
7135 (trace_find_pc_command): Likewise.
7136 (trace_find_tracepoint_command): Likewise.
7137 (trace_find_line_command): Likewise.
7138 (trace_find_range_command): Likewise.
7139 * tracepoint.h (check_trace_running): Likewise.
7140 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7142 2014-03-06 Yao Qi <yao@codesourcery.com>
7144 * target.h (struct target_ops) <to_traceframe_info>: Use
7145 TARGET_DEFAULT_NORETURN (tcomplain ()).
7146 * target-delegates.c: Regenerated.
7148 2014-03-05 Pedro Alves <palves@redhat.com>
7151 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7152 void. Update comment.
7153 (dcache_xfer_memory): Delete.
7154 (dcache_read_memory_partial): New, based on the read bits of
7156 (dcache_update): Add status parameter. Use ULONGEST for len, and
7157 adjust. Discard cache lines if the reason for the update was
7159 * dcache.h (dcache_xfer_memory): Delete declaration.
7160 (dcache_read_memory_partial): New declaration.
7161 (dcache_update): Update prototype.
7162 * target.c (raw_memory_xfer_partial): Update the dcache here.
7163 (memory_xfer_partial_1): Don't handle dcache writes here.
7165 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7167 * remote-sim.c (gdbsim_load): Add const to prog.
7169 2014-03-03 Tom Tromey <tromey@redhat.com>
7171 * elfread.c (probe_key): Change to bfd_data.
7172 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7173 now per-BFD, not per-objfile.
7174 * stap-probe.c (stap_probe_destroy): Update comment.
7175 (handle_stap_probe): Allocate on the per-BFD obstack.
7177 2014-03-03 Tom Tromey <tromey@redhat.com>
7179 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7180 * breakpoint.c (create_longjmp_master_breakpoint): Use
7182 (add_location_to_breakpoint, bkpt_probe_insert_location)
7183 (bkpt_probe_remove_location): Update.
7184 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7185 * elfread.c (elf_symfile_relocate_probe): Remove.
7186 (elf_probe_fns): Update.
7187 (insert_exception_resume_breakpoint): Change type of "probe"
7188 parameter to bound_probe.
7189 (check_exception_resume): Update.
7190 * objfiles.c (objfile_relocate1): Don't relocate probes.
7191 * probe.c (bound_probe_s): New typedef.
7192 (parse_probes): Use get_probe_address. Set sal's objfile.
7193 (find_probe_by_pc): Return a bound_probe.
7194 (collect_probes): Return a VEC(bound_probe_s).
7195 (compare_probes): Update.
7196 (gen_ui_out_table_header_info): Change type of "probes"
7198 (info_probes_for_ops): Update.
7199 (get_probe_address): New function.
7200 (probe_safe_evaluate_at_pc): Update.
7201 * probe.h (struct probe_ops) <get_probe_address>: New field.
7202 <set_semaphore, clear_semaphore>: Add objfile parameter.
7203 (struct probe) <objfile>: Remove field.
7205 <address>: Update comment.
7206 (struct bound_probe): New.
7207 (find_probe_by_pc): Return a bound_probe.
7208 (get_probe_address): Declare.
7209 * solib-svr4.c (struct probe_and_action) <address>: New field.
7210 (hash_probe_and_action, equal_probe_and_action): Update.
7211 (register_solib_event_probe): Add address parameter.
7212 (solib_event_probe_at): Update.
7213 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7215 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7216 (stap_get_probe_address): New function.
7217 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7218 (compile_probe_arg): Update.
7219 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7221 (handle_stap_probe): Don't relocate the probe.
7222 (stap_relocate): Remove.
7223 (stap_gen_info_probes_table_values): Update.
7224 (stap_probe_ops): Remove stap_relocate.
7225 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7226 (debug_sym_probe_fns): Update.
7227 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7228 * symtab.c (init_sal): Use memset.
7229 * symtab.h (struct symtab_and_line) <objfile>: New field.
7230 * tracepoint.c (start_tracing, stop_tracing): Update.
7232 2014-03-03 Tom Tromey <tromey@redhat.com>
7234 * probe.h (parse_probes, find_probe_by_pc)
7235 (find_probes_in_objfile): Fix comments.
7237 2014-03-02 Doug Evans <xdje42@gmail.com>
7239 * infrun.c (handle_signal_stop): Replace test for
7240 TARGET_WAITKIND_STOPPED with an assert.
7242 2014-03-02 Doug Evans <xdje42@gmail.com>
7244 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7246 2014-03-02 Doug Evans <xdje42@gmail.com>
7248 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7250 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7252 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7254 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7256 * i386obsd-nat.c: Include "obsd-nat.h".
7257 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7259 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7261 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7263 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7265 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7267 * mips64obsd-nat.c: Include "obsd-nath".
7268 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7270 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7272 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7274 * amd64obsd-nat.c: Include "obsd-nat,h.
7275 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7277 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7279 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7281 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7282 (find_overload_match): Update call to find_oload_champ.
7283 (find_oload_champ_namespace_loop): Likewise
7285 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7287 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7289 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7290 * config/sparc/obsd64.mh: New file.
7291 * sparc64obsd-nat.c: New file.
7293 * obsd-nat.h: New file.
7294 * obsd-nat.c: New file.
7295 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7296 (ALLDEPFILES): Add obsd-nat.c.
7298 2014-02-28 Tom Tromey <tromey@redhat.com>
7300 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7301 * cli-out.h (cli_ui_out_impl): Now const.
7302 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7303 * ui-out.c (struct ui_out) <impl>: Now const.
7304 (default_ui_out_impl): Now const.
7305 (ui_out_new): Make 'impl' parameter const.
7306 * ui-out.h (ui_out_new): Update.
7308 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7310 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7312 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7314 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7316 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7318 Additional PR 8882 fix.
7319 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7321 2014-02-27 Pedro Alves <palves@redhat.com>
7323 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7326 2014-02-27 Pedro Alves <palves@redhat.com>
7329 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7330 * nat/linux-waitpid.c: Include string.h.
7331 (status_to_str): Moved here and made extern.
7332 * nat/linux-waitpid.h (status_to_str): New declaration.
7334 2014-02-27 Hui Zhu <hui@codesourcery.com>
7337 * infrun.c (ptid_match): Move ...
7338 * common/ptid.c (ptid_match): ... here.
7339 * inferior.h (ptid_match): Move ...
7340 * common/ptid.h (ptid_match): ... here.
7342 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7344 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7345 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7348 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7350 * obsd-tdep.c (obsd_auxv_parse): New function.
7351 (obsd_init_abi): Set auxv_parse.
7353 * gdbarch.sh (auxv_parse): New.
7354 * gdbarch.h: Regenerated.
7355 * gdbarch.c: Regenerated.
7356 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7358 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7360 * guile/scm-value.c (gdbscm_history_append_x): New function.
7361 (value_functions): Add it.
7363 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7365 * dwarf2read.c (attr_value_as_address): New function.
7366 (dwarf2_find_base_address, read_call_site_scope): Use
7367 attr_value_as_address in place of DW_ADDR.
7368 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7369 the low and high addresses. Slight rework of the handling
7370 of the high pc being a constant form, and limit it to
7371 DWARF verson 4 or higher.
7372 (dwarf2_record_block_ranges): Likewise.
7373 (read_partial_die): Likewise.
7374 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7376 2014-02-26 Tom Tromey <tromey@redhat.com>
7378 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7380 2014-02-26 Tom Tromey <tromey@redhat.com>
7382 * elfread.c (elf_read_minimal_symbols): Return early if
7383 minimal symbols have already been read. Add "ei" parameter.
7384 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7385 * minsyms.c (prim_record_minimal_symbol_full): Update.
7386 * objfiles.h (struct objstats) <n_minsyms>: Move...
7387 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7388 * symmisc.c (print_objfile_statistics): Update.
7390 2014-02-26 Tom Tromey <tromey@redhat.com>
7392 * elfread.c (elf_read_minimal_symbols): New function, from
7394 (elf_symfile_read): Call it.
7396 2014-02-26 Tom Tromey <tromey@redhat.com>
7398 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7399 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7400 (lookup_minimal_symbol_solib_trampoline)
7401 (lookup_minimal_symbol_by_pc_section_1)
7402 (lookup_minimal_symbol_and_objfile): Update.
7403 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7404 Don't allocate a minimal symbol if minsyms have already been read.
7405 (build_minimal_symbol_hash_tables): Update.
7406 (install_minimal_symbols): Do nothing if minsyms already read.
7407 Use the per-BFD obstack.
7408 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7409 * objfiles.c (allocate_objfile): Call
7410 terminate_minimal_symbol_table later.
7411 (have_minimal_symbols): Update.
7412 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7413 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7414 Move from struct objfile.
7415 <minsyms_read>: New field.
7416 (struct objfile) <msymbols, minimal_symbol_count,
7417 msymbol_hash, msymbol_demangled_hash>: Move.
7418 (ALL_OBJFILE_MSYMBOLS): Update.
7419 * symfile.c (read_symbols): Set minsyms_read.
7420 (reread_symbols): Update.
7421 * symmisc.c (dump_objfile, dump_msymbols): Update.
7423 2014-02-26 Tom Tromey <tromey@redhat.com>
7425 * minsyms.c (msymbols_sort): Remove.
7426 * minsyms.h (msymbols_sort): Remove.
7427 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7428 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7429 * elfread.c (elf_symtab_read): Don't add section offsets.
7430 * xcoffread.c (record_minimal_symbol): Don't add section offset
7431 to minimal symbol address.
7432 * somread.c (text_offset, data_offset): Remove.
7433 (som_symtab_read): Don't add section offsets to minimal symbol
7435 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7436 Don't add section offsets to minimal symbols.
7437 * coffread.c (coff_symtab_read): Don't add section offsets
7438 to minimal symbol addresses.
7439 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7440 to minimal symbol addresses.
7441 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7442 section offset to minimal symbol addresses.
7443 * mdebugread.c (parse_partial_symbols): Don't add section
7444 offset to minimal symbol addresses.
7445 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7446 offset to minimal symbol addresses.
7448 2014-02-26 Tom Tromey <tromey@redhat.com>
7450 * ada-lang.c (ada_main_name): Update.
7451 (ada_add_standard_exceptions): Update.
7452 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7453 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7454 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7455 * auxv.c (ld_so_xfer_auxv): Update.
7456 * avr-tdep.c (avr_scan_prologue): Update.
7457 * ax-gdb.c (gen_var_ref): Update.
7458 * blockframe.c (get_pc_function_start)
7459 (find_pc_partial_function_gnu_ifunc): Update.
7460 * breakpoint.c (create_overlay_event_breakpoint)
7461 (create_longjmp_master_breakpoint)
7462 (create_std_terminate_master_breakpoint)
7463 (create_exception_master_breakpoint): Update.
7464 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7465 * c-valprint.c (c_val_print): Update.
7466 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7467 * common/agent.c (agent_look_up_symbols): Update.
7468 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7469 * dwarf2loc.c (call_site_to_target_addr): Update.
7470 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7471 * elfread.c (elf_gnu_ifunc_record_cache)
7472 (elf_gnu_ifunc_resolve_by_got): Update.
7473 * findvar.c (default_read_var_value): Update.
7474 * frame.c (inside_main_func): Update.
7475 * frv-tdep.c (frv_frame_this_id): Update.
7476 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7477 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7479 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7480 (hppa_hpux_find_dummy_bpaddr): Update.
7481 * hppa-tdep.c (hppa_symbol_address): Update.
7482 * infcmd.c (until_next_command): Update.
7483 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7485 * linespec.c (minsym_found, add_minsym): Update.
7486 * linux-nat.c (get_signo): Update.
7487 * linux-thread-db.c (inferior_has_bug): Update.
7488 * m32c-tdep.c (m32c_return_value)
7489 (m32c_m16c_address_to_pointer): Update.
7490 * m32r-tdep.c (m32r_frame_this_id): Update.
7491 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7492 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7493 * maint.c (maintenance_translate_address): Update.
7494 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7495 (frob_address): New function.
7496 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7497 frob_address. Rename parameter to "pc_in".
7498 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7500 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7502 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7503 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7504 * objc-lang.c (find_objc_msgsend): Update.
7505 * objfiles.c (objfile_relocate1): Update.
7506 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7507 * p-valprint.c (pascal_val_print): Update.
7508 * parse.c (write_exp_msymbol): Update.
7509 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7510 (ppc_elfv2_skip_entrypoint): Update.
7511 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7512 * printcmd.c (build_address_symbolic, msym_info)
7513 (address_info): Update.
7514 * proc-service.c (ps_pglobal_lookup): Update.
7515 * psymtab.c (find_pc_sect_psymtab_closer)
7516 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7517 Change msymbol parameter to bound_minimal_symbol.
7518 * ravenscar-thread.c (get_running_thread_id): Update.
7519 * remote.c (remote_check_symbols): Update.
7520 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7522 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7523 * solib-dsbt.c (lm_base): Update.
7524 * solib-frv.c (lm_base, main_got): Update.
7525 * solib-irix.c (locate_base): Update.
7526 * solib-som.c (som_solib_create_inferior_hook)
7527 (link_map_start): Update.
7528 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7529 * solib-svr4.c (elf_locate_base, enable_break): Update.
7530 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7531 (flush_ea_cache): Update.
7532 * stabsread.c (define_symbol, scan_file_globals): Update.
7533 * stack.c (find_frame_funname): Update.
7534 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7535 (debug_qf_find_pc_sect_symtab): Update.
7536 * symfile.c (simple_read_overlay_table)
7537 (simple_overlay_update): Update.
7538 * symfile.h (struct quick_symbol_functions)
7539 <find_pc_sect_symtab>: Change type of msymbol to
7540 bound_minimal_symbol.
7541 * symmisc.c (dump_msymbols): Update.
7542 * symtab.c (find_pc_sect_symtab_via_partial)
7543 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7544 (search_symbols, print_msymbol_info): Update.
7545 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7546 (MSYMBOL_VALUE_ADDRESS): Redefine.
7547 (BMSYMBOL_VALUE_ADDRESS): New macro.
7548 * tracepoint.c (scope_info): Update.
7549 * tui/tui-disasm.c (tui_find_disassembly_address)
7550 (tui_get_begin_asm_address): Update.
7551 * valops.c (find_function_in_inferior): Update.
7552 * value.c (value_static_field, value_fn_field): Update.
7554 2014-02-26 Tom Tromey <tromey@redhat.com>
7556 * ada-lang.c (ada_update_initial_language): Update.
7557 (ada_main_name, ada_has_this_exception_support): Update.
7558 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7559 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7560 * arm-tdep.c (arm_skip_stub): Update.
7561 * auxv.c (ld_so_xfer_auxv): Update.
7562 * avr-tdep.c (avr_scan_prologue): Update.
7563 * ax-gdb.c (gen_var_ref): Update.
7564 * breakpoint.c (struct breakpoint_objfile_data)
7565 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7566 type to bound_minimal_symbol.
7567 (create_overlay_event_breakpoint)
7568 (create_longjmp_master_breakpoint)
7569 (create_std_terminate_master_breakpoint)
7570 (create_exception_master_breakpoint): Update.
7571 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7572 * c-exp.y (classify_name): Update.
7573 * coffread.c (coff_symfile_read): Update.
7574 * common/agent.c (agent_look_up_symbols): Update.
7575 * d-lang.c (d_main_name): Update.
7576 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7577 * dec-thread.c (enable_dec_thread): Update.
7578 * dwarf2loc.c (call_site_to_target_addr): Update.
7579 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7580 * eval.c (evaluate_subexp_standard): Update.
7581 * findvar.c (struct minsym_lookup_data) <result>: Change type
7582 to bound_minimal_symbol.
7584 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7585 * frame.c (inside_main_func): Update.
7586 * frv-tdep.c (frv_frame_this_id): Update.
7587 * gcore.c (call_target_sbrk): Update.
7588 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7589 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7591 * go-lang.c (go_main_name): Update.
7592 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7593 (hppa_hpux_find_import_stub_for_addr): Update.
7594 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7595 Update. Change return type.
7596 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7598 * jit.c (jit_breakpoint_re_set_internal): Update.
7599 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7601 * linux-nat.c (get_signo): Update.
7602 * linux-thread-db.c (inferior_has_bug): Update
7603 * m32c-tdep.c (m32c_return_value)
7604 (m32c_m16c_address_to_pointer): Update.
7605 * m32r-tdep.c (m32r_frame_this_id): Update.
7606 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7607 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7608 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7609 lookup_minimal_symbol. Change return type.
7610 (lookup_minimal_symbol): Remove.
7611 (lookup_bound_minimal_symbol): Update.
7612 (lookup_minimal_symbol_text): Change return type.
7613 (lookup_minimal_symbol_solib_trampoline): Change return type.
7614 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7615 (lookup_minimal_symbol_solib_trampoline): Change return type.
7616 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7617 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7618 (value_nsstring, find_imps): Update.
7619 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7620 * p-lang.c (pascal_main_name): Update.
7621 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7622 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7623 * proc-service.c (ps_pglobal_lookup): Update.
7624 * ravenscar-thread.c (get_running_thread_msymbol): Change
7626 (has_ravenscar_runtime, get_running_thread_id): Update.
7627 * remote.c (remote_check_symbols): Update.
7628 * sol-thread.c (ps_pglobal_lookup): Update.
7629 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7630 * solib-dsbt.c (lm_base): Update.
7631 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7633 * solib-irix.c (locate_base): Update.
7634 * solib-som.c (som_solib_create_inferior_hook)
7635 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7637 * solib-spu.c (spu_enable_break): Update.
7638 * solib-svr4.c (elf_locate_base, enable_break): Update.
7639 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7640 (flush_ea_cache): Update.
7641 * stabsread.c (define_symbol): Update.
7642 * symfile.c (simple_read_overlay_table): Update.
7643 * symtab.c (find_pc_sect_line): Update.
7644 * tracepoint.c (scope_info): Update.
7645 * tui-disasm.c (tui_get_begin_asm_address): Update.
7646 * value.c (value_static_field): Update.
7648 2014-02-26 Tom Tromey <tromey@redhat.com>
7650 * minsyms.c (prim_record_minimal_symbol_full): Use
7651 SET_MSYMBOL_VALUE_ADDRESS.
7652 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7653 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7654 SET_MSYMBOL_VALUE_ADDRESS.
7655 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7656 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7658 2014-02-26 Tom Tromey <tromey@redhat.com>
7660 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7661 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7662 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7663 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7664 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7665 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7666 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7667 * ada-lang.c (ada_main_name): Update.
7668 (ada_lookup_simple_minsym): Update.
7669 (ada_make_symbol_completion_list): Update.
7670 (ada_add_standard_exceptions): Update.
7671 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7672 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7673 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7674 * arm-tdep.c (skip_prologue_function): Update.
7675 (arm_skip_stack_protector, arm_skip_stub): Update.
7676 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7677 (arm_wince_skip_main_prologue): Update.
7678 * auxv.c (ld_so_xfer_auxv): Update.
7679 * avr-tdep.c (avr_scan_prologue): Update.
7680 * ax-gdb.c (gen_var_ref): Update.
7681 * block.c (call_site_for_pc): Update.
7682 * blockframe.c (get_pc_function_start): Update.
7683 (find_pc_partial_function_gnu_ifunc): Update.
7684 * breakpoint.c (create_overlay_event_breakpoint): Update.
7685 (create_longjmp_master_breakpoint): Update.
7686 (create_std_terminate_master_breakpoint): Update.
7687 (create_exception_master_breakpoint): Update.
7688 (resolve_sal_pc): Update.
7689 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7690 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7692 * c-valprint.c (c_val_print): Update.
7693 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7694 * coffread.c (coff_symfile_read): Update.
7695 * common/agent.c (agent_look_up_symbols): Update.
7696 * dbxread.c (find_stab_function_addr): Update.
7697 (end_psymtab): Update.
7698 * dwarf2loc.c (call_site_to_target_addr): Update.
7699 (func_verify_no_selftailcall): Update.
7700 (tailcall_dump): Update.
7701 (call_site_find_chain_1): Update.
7702 (dwarf_expr_reg_to_entry_parameter): Update.
7703 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7704 (elf_gnu_ifunc_resolve_by_got): Update.
7705 * f-valprint.c (info_common_command): Update.
7706 * findvar.c (read_var_value): Update.
7707 * frame.c (get_prev_frame_1): Update.
7708 (inside_main_func): Update.
7709 * frv-tdep.c (frv_skip_main_prologue): Update.
7710 (frv_frame_this_id): Update.
7711 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7712 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7713 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7714 (gnuv3_skip_trampoline): Update.
7715 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7716 (hppa64_hpux_in_solib_call_trampoline): Update.
7717 (hppa_hpux_skip_trampoline_code): Update.
7718 (hppa64_hpux_search_dummy_call_sequence): Update.
7719 (hppa_hpux_find_import_stub_for_addr): Update.
7720 (hppa_hpux_find_dummy_bpaddr): Update.
7721 * hppa-tdep.c (hppa_symbol_address)
7722 (hppa_lookup_stub_minimal_symbol): Update.
7723 * i386-tdep.c (i386_skip_main_prologue): Update.
7724 (i386_pe_skip_trampoline_code): Update.
7725 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7726 * infcall.c (get_function_name): Update.
7727 * infcmd.c (until_next_command): Update.
7728 * jit.c (jit_breakpoint_re_set_internal): Update.
7729 (jit_inferior_init): Update.
7730 * linespec.c (minsym_found): Update.
7731 (add_minsym): Update.
7732 * linux-fork.c (info_checkpoints_command): Update.
7733 * linux-nat.c (get_signo): Update.
7734 * linux-thread-db.c (inferior_has_bug): Update.
7735 * m32c-tdep.c (m32c_return_value): Update.
7736 (m32c_m16c_address_to_pointer): Update.
7737 (m32c_m16c_pointer_to_address): Update.
7738 * m32r-tdep.c (m32r_frame_this_id): Update.
7739 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7740 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7741 * maint.c (maintenance_translate_address): Update.
7742 * minsyms.c (add_minsym_to_hash_table): Update.
7743 (add_minsym_to_demangled_hash_table): Update.
7744 (msymbol_objfile): Update.
7745 (lookup_minimal_symbol): Update.
7746 (iterate_over_minimal_symbols): Update.
7747 (lookup_minimal_symbol_text): Update.
7748 (lookup_minimal_symbol_by_pc_name): Update.
7749 (lookup_minimal_symbol_solib_trampoline): Update.
7750 (lookup_minimal_symbol_by_pc_section_1): Update.
7751 (lookup_minimal_symbol_and_objfile): Update.
7752 (prim_record_minimal_symbol_full): Update.
7753 (compare_minimal_symbols): Update.
7754 (compact_minimal_symbols): Update.
7755 (build_minimal_symbol_hash_tables): Update.
7756 (install_minimal_symbols): Update.
7757 (terminate_minimal_symbol_table): Update.
7758 (find_solib_trampoline_target): Update.
7759 (minimal_symbol_upper_bound): Update.
7760 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7761 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7762 (mips_skip_pic_trampoline_code): Update.
7763 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7764 * objc-lang.c (selectors_info): Update.
7765 (classes_info): Update.
7766 (find_methods): Update.
7767 (find_imps): Update.
7768 (find_objc_msgsend): Update.
7769 * objfiles.c (objfile_relocate1): Update.
7770 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7771 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7772 * p-valprint.c (pascal_val_print): Update.
7773 * parse.c (write_exp_msymbol): Update.
7774 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7775 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7776 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7777 * printcmd.c (build_address_symbolic): Update.
7779 (address_info): Update.
7780 * proc-service.c (ps_pglobal_lookup): Update.
7781 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7782 (find_pc_sect_psymtab): Update.
7783 * python/py-framefilter.c (py_print_frame): Update.
7784 * ravenscar-thread.c (get_running_thread_id): Update.
7785 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7787 * remote.c (remote_check_symbols): Update.
7788 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7789 (rs6000_skip_trampoline_code): Update.
7790 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7791 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7792 * solib-dsbt.c (lm_base): Update.
7793 * solib-frv.c (lm_base): Update.
7795 * solib-irix.c (locate_base): Update.
7796 * solib-som.c (som_solib_create_inferior_hook): Update.
7797 (som_solib_desire_dynamic_linker_symbols): Update.
7798 (link_map_start): Update.
7799 * solib-spu.c (spu_enable_break): Update.
7800 (ocl_enable_break): Update.
7801 * solib-svr4.c (elf_locate_base): Update.
7802 (enable_break): Update.
7803 * spu-tdep.c (spu_get_overlay_table): Update.
7804 (spu_catch_start): Update.
7805 (flush_ea_cache): Update.
7806 * stabsread.c (define_symbol): Update.
7807 (scan_file_globals): Update.
7808 * stack.c (find_frame_funname): Update.
7809 (frame_info): Update.
7810 * symfile.c (simple_read_overlay_table): Update.
7811 (simple_overlay_update): Update.
7812 * symmisc.c (dump_msymbols): Update.
7813 * symtab.c (fixup_section): Update.
7814 (find_pc_sect_line): Update.
7815 (skip_prologue_sal): Update.
7816 (search_symbols): Update.
7817 (print_msymbol_info): Update.
7818 (rbreak_command): Update.
7819 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7820 (completion_list_objc_symbol): Update.
7821 (default_make_symbol_completion_list_break_on): Update.
7822 * tracepoint.c (scope_info): Update.
7823 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7824 (tui_get_begin_asm_address): Update.
7825 * valops.c (find_function_in_inferior): Update.
7826 * value.c (value_static_field): Update.
7827 (value_fn_field): Update.
7829 2014-02-26 Tom Tromey <tromey@redhat.com>
7831 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7832 bound minimal symbols. Move code that knows about minsym
7834 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7836 * minsyms.h (minimal_symbol_upper_bound): Declare.
7837 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7838 minimal_symbol_upper_bound.
7840 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7842 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7843 Use the type's name if its basic type does not have a tag.
7845 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7847 * dwarf2read.c (read_subrange_type): Add comment.
7849 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7851 * dwarf2read.c (update_enumeration_type_from_children): New
7852 function, mostly extracted from process_structure_scope.
7853 (read_enumeration_type): Call update_enumeration_type_from_children.
7854 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7855 and flag_flag_enum fields.
7857 2014-02-26 Pedro Alves <palves@redhat.com>
7859 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7860 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7861 to_xfer_partial method.
7863 2014-02-26 Pedro Alves <palves@redhat.com>
7865 * target.c (complete_target_initialization): Don't install
7866 default_xfer_partial as to_xfer_partial hook.
7868 (update_current_target): Don't INHERIT nor de_fault
7869 deprecated_xfer_memory. Delete de_fault macro.
7870 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7871 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7872 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7875 2014-02-26 Pedro Alves <palves@redhat.com>
7877 * go32-nat.c (my_write_child): New function.
7878 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7879 (go32_xfer_partial): New function.
7880 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7881 Instead install a to_xfer_partial hook.
7883 2014-02-26 Pedro Alves <palves@redhat.com>
7885 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7886 to_xfer_partial helper. Rewrite.
7887 (procfs_xfer_partial): New function.
7888 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7889 Install a to_xfer_partial hook.
7891 2014-02-26 Pedro Alves <palves@redhat.com>
7893 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7894 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7895 (m32r_xfer_partial): New function.
7896 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7897 Install a to_xfer_partial hook.
7899 2014-02-26 Pedro Alves <palves@redhat.com>
7901 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7903 (mips_xfer_partial): New function.
7904 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7905 hook. Install a to_xfer_partial hook.
7907 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7909 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7910 * gdbtypes.c (create_array_type_with_stride): New function,
7911 renaming create_array_type, but with an added parameter
7912 called "bit_stride".
7913 (create_array_type): Re-implement using
7914 create_array_type_with_stride.
7915 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7916 and DW_AT_bit_stride attributes.
7918 2014-02-26 Pedro Alves <palves@redhat.com>
7920 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7921 task-specific breakpoints.
7923 2014-02-25 Pedro Alves <palves@redhat.com>
7925 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7926 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7928 2014-02-25 Stan Shebs <stan@codesourcery.com>
7930 * defs.h: Annotate comments for Doxygen.
7932 2014-02-25 Tom Tromey <tromey@redhat.com>
7934 * target.h (target_ignore): Don't declare.
7935 * target.c (target_ignore): Remove.
7937 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7940 * auto-load.c (auto_load_objfile_script_1): Change filename to
7943 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7945 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7946 documentation. Adjust prototype to match the target_ops
7947 to_xfer_partial method. Adjust implementation accordingly.
7949 2014-02-25 Hui Zhu <hui@codesourcery.com>
7951 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7954 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7956 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7957 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7958 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7959 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7960 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7961 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7962 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7963 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7965 (rl78_register_type): Use a data pointer type for SP and
7966 new pseudo registers mentioned above. Use a 16 bit integer
7967 type for all other register pairs.
7968 (rl78_register_name, rl78_g10_register_name): Update for
7969 new pseudo registers.
7970 (rl78_pseudo_register_read): Likewise.
7971 (rl78_pseudo_register_write): Likewise.
7972 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7973 to the newly added pseudo registers.
7975 2014-02-24 Doug Evans <dje@google.com>
7977 * value.c (record_latest_value): Fix comment.
7978 * printcmd.c (print_command_1): Remove code to handle -1 return from
7979 record_latest_value.
7981 2014-02-24 Pedro Alves <palves@redhat.com>
7983 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7984 deprecated_xfer_memory hook.
7985 (procfs_xfer_partial): Call procfs_xfer_memory instead
7986 of the deprecated_xfer_memory target hook.
7987 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7990 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7992 * windows-nat.c (windows_xfer_shared_libraries): Return
7993 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7994 requested object is TARGET_OBJECT_LIBRARIES.
7996 2014-02-24 Yao Qi <yao@codesourcery.com>
7998 * target.h (enum target_xfer_status)
7999 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8000 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8002 * corefile.c (memory_error_message): User updated.
8003 * exec.c (section_table_read_available_memory): Likewise.
8004 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8005 * target.c (target_xfer_status_to_string): Likewise.
8006 (raw_memory_xfer_partial): Likewise.
8007 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8008 * valops.c (read_value_memory): Likewise.
8009 * exec.h: Update comments.
8011 2014-02-24 Yao Qi <yao@codesourcery.com>
8013 * target.c (target_xfer_status_to_string): Rename argument err
8015 * target.h (target_xfer_status_to_string): Update declaration.
8016 Replace target_xfer_error_to_string with
8017 target_xfer_status_to_string in comment.
8019 2014-02-24 Yao Qi <yao@codesourcery.com>
8021 * mips-linux-nat.c (super_close): Update its type.
8022 (mips_linux_close): Pass 'self' to super_close.
8024 2014-02-24 Yao Qi <yao@codesourcery.com>
8026 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8027 * corefile.c (read_memory): Adjusted.
8028 * target.c (target_write_with_progress): Adjusted.
8030 2014-02-23 Yao Qi <yao@codesourcery.com>
8034 2013-10-25 Yao Qi <yao@codesourcery.com>
8036 * remote.c (remote_traceframe_info): Return early if
8037 traceframe is not selected.
8039 2013-07-19 Yao Qi <yao@codesourcery.com>
8041 * target.c (update_current_target): Change the default action
8042 of 'to_traceframe_info' from tcomplain to return_zero.
8043 * target.h (struct target_ops) <to_traceframe_info>: Add more
8046 2014-02-23 Yao Qi <yao@codesourcery.com>
8048 * valops.c (read_value_memory): Rewrite it. Call
8049 target_xfer_partial in a loop.
8050 * exec.h (section_table_available_memory): Remove declaration.
8051 Move comments to ...
8052 * exec.c (section_table_available_memory): ... here. Make it
8055 2014-02-23 Yao Qi <yao@codesourcery.com>
8057 * exec.c (section_table_read_available_memory): New function.
8058 * exec.h (section_table_read_available_memory): Declare.
8059 * ctf.c (ctf_xfer_partial): Call
8060 section_table_read_available_memory.
8061 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8063 2014-02-23 Yao Qi <yao@codesourcery.com>
8065 * ctf.c (ctf_xfer_partial): Move code to ...
8066 * exec.c (exec_read_partial_read_only): ... it. New function.
8067 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8068 * tracefile.c: Include "exec.h".
8069 * exec.h (exec_read_partial_read_only): Declare.
8071 2014-02-23 Yao Qi <yao@codesourcery.com>
8073 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8074 (tfile_has_memory): Remove.
8075 (init_tfile_ops): Don't set fields to_has_all_memory and
8076 to_has_memory of tfile_ops.
8077 * tracefile.c (tracefile_has_all_memory): New function.
8078 (tracefile_has_memory): New function.
8079 (init_tracefile_ops): Initialize fields to_has_all_memory and
8080 to_has_memory of 'ops'.
8082 2014-02-23 Yao Qi <yao@codesourcery.com>
8084 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8085 (ctf_thread_alive, ctf_get_trace_status): Remove.
8086 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8088 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8089 (tfile_has_stack, tfile_has_registers): Remove.
8090 (tfile_thread_alive): Remove.
8091 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8093 * tracefile.c (tracefile_has_stack): New function.
8094 (tracefile_has_registers): New function.
8095 (tracefile_thread_alive): New function.
8096 (tracefile_get_trace_status): New function.
8097 (init_tracefile_ops): New function.
8098 * tracefile.h (init_tracefile_ops): Declare.
8100 2014-02-23 Yao Qi <yao@codesourcery.com>
8102 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8103 (O_LARGEFILE): Likewise.
8104 (tfile_ops): Likewise.
8105 (TRACE_HEADER_SIZE): Likewise.
8106 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8107 (cur_data_size): Likewise.
8108 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8109 (tfile_close, tfile_files_info): Likewise.
8110 (tfile_get_trace_status): Likewise.
8111 (tfile_get_tracepoint_status): Likewise.
8112 (tfile_get_traceframe_address): Likewise.
8113 (tfile_trace_find, match_blocktype): Likewise.
8114 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8115 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8116 (tfile_get_trace_state_variable_value): Likewise.
8117 (tfile_has_all_memory, tfile_has_memory): Likewise.
8118 (tfile_has_stack, tfile_has_registers): Likewise.
8119 (tfile_thread_alive, build_traceframe_info): Likewise.
8120 (tfile_traceframe_info, init_tfile_ops): Likewise.
8121 (_initialize_tracepoint): Don't call init_tfile_ops
8122 and add_target_with_completer.
8123 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8124 exec.h, completer.h and filenames.h.
8125 (_initialize_tracefile_tfile): New function.
8127 2014-02-23 Yao Qi <yao@codesourcery.com>
8129 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8131 (HFILES_NO_SRCDIR): Add tracefile.h.
8132 * ctf.c: Include "tracefile.h".
8133 * tracefile.h: New file.
8134 * tracefile.c: New file
8135 * tracefile-tfile.c: New file.
8136 * tracepoint.c: Include "tracefile.h".
8137 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8138 (stop_reason_names): Add const.
8139 (trace_file_writer_xfree): Move it to tracefile.c.
8140 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8141 (trace_save_ctf): Likewise.
8142 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8143 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8144 (tfile_write_header, tfile_write_regblock_type): Likewise.
8145 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8146 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8147 (tfile_write_raw_data, tfile_end): Likewise.
8148 (tfile_trace_file_writer_new): Likewise.
8149 (free_uploaded_tp): Make it extern.
8150 (free_uploaded_tsv): Make it extern.
8151 (_initialize_tracepoint): Move code to register command 'tsave'
8153 * tracepoint.h (stop_reason_names): Declare.
8154 (struct trace_frame_write_ops): Move it to tracefile.h.
8155 (struct trace_file_write_ops): Likewise.
8156 (struct trace_file_writer): Likewise.
8157 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8159 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8162 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8164 (get_cores_used_by_process): New parameter num_cores, use it.
8165 (linux_xfer_osdata_processes): Pass num_cores to it.
8166 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8169 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8171 * target.c (memory_xfer_partial): Fix length arg in call to
8172 breakpoint_xfer_memory.
8174 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8177 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8178 number comes after the + or - signs. Adjust length of register
8179 name to be extracted.
8181 2014-02-20 Tom Tromey <tromey@redhat.com>
8183 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8184 (ada_varobj_ops): Mark "extern".
8186 2014-02-20 Tom Tromey <tromey@redhat.com>
8188 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8190 2014-02-20 Doug Evans <xdje42@gmail.com>
8192 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8193 All callers updated.
8194 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8195 All callers updated.
8196 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8197 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8199 2014-02-20 lin zuojian <manjian2006@gmail.com>
8200 Joel Brobecker <brobecker@adacore.com>
8201 Doug Evans <xdje42@gmail.com>
8204 * dwarf2read.c (struct die_info): New member in_process.
8205 (reset_die_in_process): New function.
8206 (process_die): Set it at the start, reset when returning.
8207 (inherit_abstract_dies): Only call process_die if origin_child_die
8208 not already being processed.
8210 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8212 * windows-nat.c (handle_unload_dll): Add function documentation.
8213 (do_initial_windows_stuff): Add comment explaining why we wait
8214 until after inferior initialization has finished before
8215 processing all DLLs.
8217 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8219 * windows-nat.c (get_module_name): Delete.
8220 (windows_get_exec_module_filename): New function, mostly
8221 inspired from get_module_name.
8222 (windows_pid_to_exec_file): Replace call to get_module_name
8223 by call to windows_get_exec_module_filename.
8225 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8227 * windows-nat.c (handle_load_dll): Rewrite this function's
8228 introductory comment. Remove code using get_module_name
8229 to get the DLL's name.
8231 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8233 * windows-nat.c (get_windows_debug_event): Ignore
8234 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8235 if windows_initialization_done == 0.
8236 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8237 Adjust implementation to always load all DLLs.
8238 (do_initial_windows_stuff): Replace call to
8239 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8241 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8243 * windows-nat.c (_initialize_windows_nat): Deprecate the
8244 "dll-symbols" command. Turn the "add-shared-symbol-files"
8245 and "assf" aliases into commands, and deprecate them as well.
8246 * NEWS: Add entry explaining that "dll-symbols" and its two
8247 aliases are now deprecated.
8249 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8251 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8252 new-line in debug string. Remove trailing spaces.
8254 2014-02-19 Stan Shebs <stan@codesourcery.com>
8256 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8258 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8260 * NEWS: Add entry for the new feature
8261 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8264 2014-02-19 Stan Shebs <stan@codesourcery.com>
8266 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8268 2014-02-19 Pedro Alves <palves@redhat.com>
8270 * common/ptid.h (struct ptid): Mention that process_stratum
8271 targets should prefer ptid.lwp.
8273 2014-02-19 Pedro Alves <palves@redhat.com>
8275 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8276 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8277 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8278 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8279 store remote thread ids rather than ptid.tid.
8280 (_initialize_remote): Adjust.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target.c (target_get_unwinder): Rewrite.
8285 (target_get_tailcall_unwinder): Rewrite.
8286 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8287 (record_btrace_to_get_tailcall_unwinder): New function.
8288 (init_record_btrace_ops): Update.
8289 * target.h (struct target_ops) <to_get_unwinder,
8290 to_get_tailcall_unwinder>: Now function pointers. Use
8291 TARGET_DEFAULT_RETURN.
8293 2014-02-19 Tom Tromey <tromey@redhat.com>
8295 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8297 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8299 2014-02-19 Tom Tromey <tromey@redhat.com>
8301 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8303 * target-delegates.c: Rebuild.
8304 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8305 TARGET_DEFAULT_FUNC.
8306 * target.c (default_target_decr_pc_after_break): Rename from
8307 forward_target_decr_pc_after_break. Simplify.
8308 (target_decr_pc_after_break): Rely on delegation.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * target.c (update_current_target): Do not INHERIT to_doc or
8313 to_magic. Do not de_fault to_open or to_close.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * gcore.h (objfile_find_memory_regions): Declare.
8318 * gcore.c (objfile_find_memory_regions): No longer static. Add
8320 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8321 * exec.c: Include gcore.h.
8322 (exec_set_find_memory_regions): Remove.
8323 (exec_find_memory_regions): Remove.
8324 (exec_do_find_memory_regions): Remove.
8325 (init_exec_ops): Update.
8326 * defs.h (exec_set_find_memory_regions): Remove.
8328 2014-02-19 Tom Tromey <tromey@redhat.com>
8330 * target-delegates.c: Rebuild.
8331 * target.h (struct target_ops) <to_extra_thread_info,
8332 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8333 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8334 not 0, in TARGET_DEFAULT_RETURN.
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8338 * target.c (complete_target_initialization): Remove casts. Use
8339 return_zero_has_execution.
8340 (return_zero): Add "ignore" argument.
8341 (return_zero_has_execution): New function.
8342 (init_dummy_target): Remove casts. Use
8343 return_zero_has_execution.
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8347 * target.c (update_current_target): Update comments. Do not
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8352 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8354 * corelow.c (core_read_description): Delegate when needed.
8355 * remote.c (remote_read_description): Delegate when needed.
8356 * target-delegates.c: Rebuild.
8357 * target.c (target_read_description): Rewrite.
8358 * target.h (struct target_ops) <to_read_description>: Update
8359 comment. Use TARGET_DEFAULT_RETURN.
8361 2014-02-19 Tom Tromey <tromey@redhat.com>
8363 * target-delegates.c: Rebuild.
8364 * target.c (update_current_target): Don't inherit or default
8366 (find_default_run_target): Check against delegate_can_run.
8367 * target.h (struct target_ops) <to_can_run>: Use
8368 TARGET_DEFAULT_RETURN.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target-delegates.c: Rebuild.
8373 * target.c (target_disconnect): Unconditionally delegate.
8374 * target.h (struct target_ops) <to_disconnect>: Use
8375 TARGET_DEFAULT_NORETURN.
8377 2014-02-19 Tom Tromey <tromey@redhat.com>
8379 * record.c (record_stop): Unconditionally delegate.
8380 * target-delegates.c: Rebuild.
8381 * target.c (target_stop_recording): Unconditionally delegate.
8382 * target.h (struct target_ops) <to_stop_recording>: Use
8383 TARGET_DEFAULT_IGNORE.
8385 2014-02-19 Tom Tromey <tromey@redhat.com>
8387 * target-delegates.c: Rebuild.
8388 * target.c (target_enable_btrace): Unconditionally delegate.
8389 * target.h (struct target_ops) <to_enable_btrace>: Use
8390 TARGET_DEFAULT_NORETURN.
8392 2014-02-19 Tom Tromey <tromey@redhat.com>
8394 * target-delegates.c: Rebuild.
8395 * target.c (target_read_btrace): Unconditionally delegate.
8396 * target.h (struct target_ops) <to_read_btrace>: Use
8397 TARGET_DEFAULT_NORETURN.
8399 2014-02-19 Tom Tromey <tromey@redhat.com>
8401 * target-delegates.c: Rebuild.
8402 * target.c (target_teardown_btrace): Unconditionally delegate.
8403 * target.h (struct target_ops) <to_teardown_btrace>: Use
8404 TARGET_DEFAULT_NORETURN.
8406 2014-02-19 Tom Tromey <tromey@redhat.com>
8408 * target-delegates.c: Rebuild.
8409 * target.c (target_disable_btrace): Unconditionally delegate.
8410 * target.h (struct target_ops) <to_disable_btrace>: Use
8411 TARGET_DEFAULT_NORETURN.
8413 2014-02-19 Tom Tromey <tromey@redhat.com>
8415 * target-delegates.c: Rebuild.
8416 * target.c (default_search_memory): New function.
8417 (simple_search_memory): Update comment.
8418 (target_search_memory): Unconditionally delegate.
8419 * target.h (struct target_ops) <to_search_memory>: Use
8420 TARGET_DEFAULT_FUNC.
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * auxv.c (default_auxv_parse): No longer static.
8425 (target_auxv_parse): Unconditionally delegate.
8426 * auxv.h (default_auxv_parse): Declare.
8427 * target-delegates.c: Rebuild.
8428 * target.c: Include auxv.h.
8429 * target.h (struct target_ops) <to_auxv_parse>: Use
8430 TARGET_DEFAULT_FUNC.
8432 2014-02-19 Tom Tromey <tromey@redhat.com>
8434 * target-delegates.c: Rebuild.
8435 * target.c (target_memory_map): Unconditionally delegate.
8436 * target.h (struct target_ops) <to_memory_map>: Use
8437 TARGET_DEFAULT_RETURN.
8439 2014-02-19 Tom Tromey <tromey@redhat.com>
8441 * target-delegates.c: Rebuild.
8442 * target.c (target_thread_alive): Unconditionally delegate.
8443 * target.h (struct target_ops) <to_thread_alive>: Use
8444 TARGET_DEFAULT_RETURN.
8446 2014-02-19 Tom Tromey <tromey@redhat.com>
8448 * target-delegates.c: Rebuild.
8449 * target.c (target_save_record): Unconditionally delegate.
8450 * target.h (struct target_ops) <to_save_record>: Use
8451 TARGET_DEFAULT_NORETURN.
8453 2014-02-19 Tom Tromey <tromey@redhat.com>
8455 * target-delegates.c: Rebuild.
8456 * target.c (target_delete_record): Unconditionally delegate.
8457 * target.h (struct target_ops) <to_delete_record>: Use
8458 TARGET_DEFAULT_NORETURN.
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8462 * target-delegates.c: Rebuild.
8463 * target.c (target_record_is_replaying): Unconditionally
8465 * target.h (struct target_ops) <to_record_is_replaying>: Use
8466 TARGET_DEFAULT_RETURN.
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8470 * target-delegates.c: Rebuild.
8471 * target.c (target_goto_record_begin): Unconditionally delegate.
8472 * target.h (struct target_ops) <to_goto_record_begin>: Use
8473 TARGET_DEFAULT_NORETURN.
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8477 * target-delegates.c: Rebuild.
8478 * target.c (target_goto_record_end): Unconditionally delegate.
8479 * target.h (struct target_ops) <to_goto_record_end>: Use
8480 TARGET_DEFAULT_NORETURN.
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8484 * target-delegates.c: Rebuild.
8485 * target.c (target_goto_record): Unconditionally delegate.
8486 * target.h (struct target_ops) <to_goto_record>: Use
8487 TARGET_DEFAULT_NORETURN.
8489 2014-02-19 Tom Tromey <tromey@redhat.com>
8491 * target-delegates.c: Rebuild.
8492 * target.c (target_insn_history): Unconditionally delegate.
8493 * target.h (struct target_ops) <to_insn_history>: Use
8494 TARGET_DEFAULT_NORETURN.
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8498 * target-delegates.c: Rebuild.
8499 * target.c (target_insn_history_from): Unconditionally delegate.
8500 * target.h (struct target_ops) <to_insn_history_from>: Use
8501 TARGET_DEFAULT_NORETURN.
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target-delegates.c: Rebuild.
8506 * target.c (target_insn_history_range): Unconditionally delegate.
8507 * target.h (struct target_ops) <to_insn_history_range>: Use
8508 TARGET_DEFAULT_NORETURN.
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8512 * target-delegates.c: Rebuild.
8513 * target.c (target_call_history): Unconditionally delegate.
8514 * target.h (struct target_ops) <to_call_history>: Use
8515 TARGET_DEFAULT_NORETURN.
8517 2014-02-19 Tom Tromey <tromey@redhat.com>
8519 * target-delegates.c: Rebuild.
8520 * target.c (target_call_history_from): Unconditionally delegate.
8521 * target.h (struct target_ops) <to_call_history_from>: Use
8522 TARGET_DEFAULT_NORETURN.
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * target-delegates.c: Rebuild.
8527 * target.c (target_call_history_range): Unconditionally delegate.
8528 * target.h (struct target_ops) <to_call_history_range>: Use
8529 TARGET_DEFAULT_NORETURN.
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8533 * target-delegates.c: Rebuild.
8534 * target.c (target_verify_memory): Unconditionally delegate.
8535 * target.h (struct target_ops) <to_verify_memory>: Use
8536 TARGET_DEFAULT_NORETURN.
8538 2014-02-19 Tom Tromey <tromey@redhat.com>
8540 * target-delegates.c: Rebuild.
8541 * target.c (target_core_of_thread): Unconditionally delegate.
8542 * target.h (struct target_ops) <to_core_of_thread>: Use
8543 TARGET_DEFAULT_RETURN.
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8547 * target-delegates.c: Rebuild.
8548 * target.c (target_flash_done): Unconditionally delegate.
8549 * target.h (struct target_ops) <to_flash_done>: Use
8550 TARGET_DEFAULT_NORETURN.
8552 2014-02-19 Tom Tromey <tromey@redhat.com>
8554 * target-delegates.c: Rebuild.
8555 * target.c (target_flash_erase): Unconditionally delegate.
8556 * target.h (struct target_ops) <to_flash_erase>: Use
8557 TARGET_DEFAULT_NORETURN.
8559 2014-02-19 Tom Tromey <tromey@redhat.com>
8561 * target-delegates.c: Rebuild.
8562 * target.c (target_get_section_table): Unconditionally delegate.
8563 * target.h (struct target_ops) <to_get_section_table>: Use
8564 TARGET_DEFAULT_RETURN.
8566 2014-02-19 Tom Tromey <tromey@redhat.com>
8568 * target-delegates.c: Rebuild.
8569 * target.c (target_pid_to_str): Unconditionally delegate.
8570 (init_dummy_target): Don't initialize to_pid_to_str.
8571 (default_pid_to_str): Rename from dummy_pid_to_str.
8572 * target.h (struct target_ops) <to_pid_to_str>: Use
8573 TARGET_DEFAULT_FUNC.
8575 2014-02-19 Tom Tromey <tromey@redhat.com>
8577 * target-delegates.c: Rebuild.
8578 * target.c (target_find_new_threads): Unconditionally delegate.
8579 * target.h (struct target_ops) <to_find_new_threads>: Use
8580 TARGET_DEFAULT_RETURN.
8582 2014-02-19 Tom Tromey <tromey@redhat.com>
8584 * target-delegates.c: Rebuild.
8585 * target.c (target_program_signals): Unconditionally delegate.
8586 * target.h (struct target_ops) <to_program_signals>: Use
8587 TARGET_DEFAULT_IGNORE.
8589 2014-02-19 Tom Tromey <tromey@redhat.com>
8591 * target-delegates.c: Rebuild.
8592 * target.c (target_pass_signals): Unconditionally delegate.
8593 * target.h (struct target_ops) <to_pass_signals>: Use
8594 TARGET_DEFAULT_IGNORE.
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8598 * target-delegates.c: Rebuild.
8599 * target.c (default_mourn_inferior): New function.
8600 (target_mourn_inferior): Unconditionally delegate.
8601 * target.h (struct target_ops) <to_mourn_inferior>: Use
8602 TARGET_DEFAULT_FUNC.
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8606 * target-delegates.c: Rebuild.
8607 * target.c (default_follow_fork): New function.
8608 (target_follow_fork): Unconditionally delegate.
8609 * target.h (struct target_ops) <to_follow_fork>: Use
8610 TARGET_DEFAULT_FUNC.
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8614 * target-delegates.c: Rebuild.
8615 * target.c (target_kill): Unconditionally delegate.
8616 * target.h (struct target_ops) <to_kill>: Use
8617 TARGET_DEFAULT_NORETURN.
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8621 * target-delegates.c: Rebuild.
8622 * target.c (target_masked_watch_num_registers): Unconditionally
8624 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8625 Use TARGET_DEFAULT_RETURN.
8627 2014-02-19 Tom Tromey <tromey@redhat.com>
8629 * target-delegates.c: Rebuild.
8630 * target.c (target_remove_mask_watchpoint): Unconditionally
8632 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8633 TARGET_DEFAULT_RETURN.
8635 2014-02-19 Tom Tromey <tromey@redhat.com>
8637 * target-delegates.c: Rebuild.
8638 * target.c (target_insert_mask_watchpoint): Unconditionally
8640 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8641 TARGET_DEFAULT_RETURN.
8643 2014-02-19 Tom Tromey <tromey@redhat.com>
8645 * target-delegates.c: Rebuild.
8646 * target.c (target_ranged_break_num_registers): Unconditionally
8648 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8649 Use TARGET_DEFAULT_RETURN.
8651 2014-02-19 Tom Tromey <tromey@redhat.com>
8653 * target-delegates.c: Rebuild.
8654 * target.c (target_fetch_registers): Unconditionally delegate.
8655 * target.h (struct target_ops) <to_fetch_registers>: Use
8656 TARGET_DEFAULT_NORETURN.
8658 2014-02-19 Tom Tromey <tromey@redhat.com>
8660 * target-delegates.c: Rebuild.
8661 * target.c (update_current_target): Don't inherit or default
8663 * target.h (struct target_ops) <to_stop>: Use
8664 TARGET_DEFAULT_IGNORE.
8666 2014-02-19 Tom Tromey <tromey@redhat.com>
8668 * target-delegates.c: Rebuild.
8669 * target.c (update_current_target): Don't inherit or default
8670 to_can_run_breakpoint_commands.
8671 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8672 Use TARGET_DEFAULT_RETURN.
8674 2014-02-19 Tom Tromey <tromey@redhat.com>
8676 * target-delegates.c: Rebuild.
8677 * target.c (update_current_target): Don't inherit or default
8678 to_supports_evaluation_of_breakpoint_conditions.
8679 * target.h (struct target_ops)
8680 <to_supports_evaluation_of_breakpoint_conditions>: Use
8681 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_augmented_libraries_svr4_read.
8688 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8689 Use TARGET_DEFAULT_RETURN.
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8693 * target-delegates.c: Rebuild.
8694 * target.c (update_current_target): Don't inherit or default
8696 * target.h (struct target_ops) <to_can_use_agent>: Use
8697 TARGET_DEFAULT_RETURN.
8699 2014-02-19 Tom Tromey <tromey@redhat.com>
8701 * target-delegates.c: Rebuild.
8702 * target.c (update_current_target): Don't inherit or default
8704 * target.h (struct target_ops) <to_use_agent>: Use
8705 TARGET_DEFAULT_NORETURN.
8707 2014-02-19 Tom Tromey <tromey@redhat.com>
8709 * target-delegates.c: Rebuild.
8710 * target.c (update_current_target): Don't inherit or default
8712 (return_null): Remove.
8713 * target.h (struct target_ops) <to_traceframe_info>: Use
8714 TARGET_DEFAULT_RETURN.
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
8720 to_static_tracepoint_markers_by_strid.
8721 * target.h (struct target_ops)
8722 <to_static_tracepoint_markers_by_strid>: Use
8723 TARGET_DEFAULT_NORETURN.
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_marker_at.
8730 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8731 Use TARGET_DEFAULT_RETURN.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8738 * target.h (struct target_ops) <to_set_permissions>: Use
8739 TARGET_DEFAULT_IGNORE.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8746 * target.h (struct target_ops) <to_get_tib_address>: Use
8747 TARGET_DEFAULT_NORETURN.
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8754 * target.h (struct target_ops) <to_set_trace_notes>: Use
8755 TARGET_DEFAULT_RETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't initialize
8761 to_set_trace_buffer_size.
8762 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8763 TARGET_DEFAULT_IGNORE.
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_set_circular_trace_buffer.
8770 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8771 TARGET_DEFAULT_IGNORE.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_set_disconnected_tracing.
8778 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8779 TARGET_DEFAULT_IGNORE.
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_get_min_fast_tracepoint_insn_len.
8786 (return_minus_one): Remove.
8787 * target.h (struct target_ops)
8788 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_raw_trace_data.
8795 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8796 TARGET_DEFAULT_NORETURN.
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8800 * target-delegates.c: Rebuild.
8801 * target.c (update_current_target): Don't inherit or default
8802 to_upload_trace_state_variables.
8803 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8804 Use TARGET_DEFAULT_RETURN.
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8808 * target-delegates.c: Rebuild.
8809 * target.c (update_current_target): Don't inherit or default
8810 to_upload_tracepoints.
8811 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8812 TARGET_DEFAULT_RETURN.
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target-delegates.c: Rebuild.
8817 * target.c (update_current_target): Don't inherit or default
8819 * target.h (struct target_ops) <to_save_trace_data>: Use
8820 TARGET_DEFAULT_NORETURN.
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8824 * target-delegates.c: Rebuild.
8825 * target.c (update_current_target): Don't inherit or default
8826 to_get_trace_state_variable_value.
8827 * target.h (struct target_ops)
8828 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8835 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8837 2014-02-19 Tom Tromey <tromey@redhat.com>
8839 * target-delegates.c: Rebuild.
8840 * target.c (update_current_target): Don't inherit or default
8842 * target.h (struct target_ops) <to_trace_stop>: Use
8843 TARGET_DEFAULT_NORETURN.
8845 2014-02-19 Tom Tromey <tromey@redhat.com>
8847 * target-delegates.c: Rebuild.
8848 * target.c (update_current_target): Don't inherit or default
8849 to_get_tracepoint_status.
8850 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8851 TARGET_DEFAULT_NORETURN.
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8855 * target-delegates.c: Rebuild.
8856 * target.c (update_current_target): Don't inherit or default
8857 to_get_trace_status.
8858 * target.h (struct target_ops) <to_get_trace_status>: Use
8859 TARGET_DEFAULT_RETURN.
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8863 * target-delegates.c: Rebuild.
8864 * target.c (update_current_target): Don't inherit or default
8866 * target.h (struct target_ops) <to_trace_start>: Use
8867 TARGET_DEFAULT_NORETURN.
8869 2014-02-19 Tom Tromey <tromey@redhat.com>
8871 * target-delegates.c: Rebuild.
8872 * target.c (update_current_target): Don't inherit or default
8873 to_trace_set_readonly_regions.
8874 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8875 Use TARGET_DEFAULT_NORETURN.
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8879 * target-delegates.c: Rebuild.
8880 * target.c (update_current_target): Don't inherit or default
8881 to_disable_tracepoint.
8882 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8883 TARGET_DEFAULT_NORETURN.
8885 2014-02-19 Tom Tromey <tromey@redhat.com>
8887 * target-delegates.c: Rebuild.
8888 * target.c (update_current_target): Don't inherit or default
8889 to_enable_tracepoint.
8890 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8891 TARGET_DEFAULT_NORETURN.
8893 2014-02-19 Tom Tromey <tromey@redhat.com>
8895 * target-delegates.c: Rebuild.
8896 * target.c (update_current_target): Don't inherit or default
8897 to_download_trace_state_variable.
8898 * target.h (struct target_ops) <to_download_trace_state_variable>:
8899 Use TARGET_DEFAULT_NORETURN.
8901 2014-02-19 Tom Tromey <tromey@redhat.com>
8903 * target-delegates.c: Rebuild.
8904 * target.c (update_current_target): Don't inherit or default
8905 to_can_download_tracepoint.
8906 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8907 TARGET_DEFAULT_RETURN.
8909 2014-02-19 Tom Tromey <tromey@redhat.com>
8911 * target-delegates.c: Rebuild.
8912 * target.c (update_current_target): Don't inherit or default
8913 to_download_tracepoint.
8914 * target.h (struct target_ops) <to_download_tracepoint>: Use
8915 TARGET_DEFAULT_NORETURN.
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8919 * target-delegates.c: Rebuild.
8920 * target.c (update_current_target): Don't inherit or default
8922 * target.h (struct target_ops) <to_trace_init>: Use
8923 TARGET_DEFAULT_RETURN.
8925 2014-02-19 Tom Tromey <tromey@redhat.com>
8927 * target-delegates.c: Rebuild.
8928 * target.c (update_current_target): Don't inherit or default
8929 to_supports_string_tracing.
8930 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8931 TARGET_DEFAULT_RETURN.
8933 2014-02-19 Tom Tromey <tromey@redhat.com>
8935 * target-delegates.c: Rebuild.
8936 * target.c (update_current_target): Don't inherit or default
8937 to_supports_enable_disable_tracepoint.
8938 * target.h (struct target_ops)
8939 <to_supports_enable_disable_tracepoint>: 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_multi_process.
8947 * target.h (struct target_ops) <to_supports_multi_process>: Use
8948 TARGET_DEFAULT_RETURN.
8950 2014-02-19 Tom Tromey <tromey@redhat.com>
8952 * target-delegates.c: Rebuild.
8953 * target.c (update_current_target): Don't inherit or default
8954 to_get_ada_task_ptid.
8955 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8956 TARGET_DEFAULT_FUNC.
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8960 * target-delegates.c: Rebuild.
8961 * target.c (update_current_target): Don't inherit or default
8962 to_thread_architecture.
8963 * target.h (struct target_ops) <to_thread_architecture>: Use
8964 TARGET_DEFAULT_FUNC.
8966 2014-02-19 Tom Tromey <tromey@redhat.com>
8968 * target-delegates.c: Rebuild.
8969 * target.c (update_current_target): Don't inherit or default
8970 to_execution_direction.
8971 * target.h (struct target_ops) <to_execution_direction>: Use
8972 TARGET_DEFAULT_FUNC.
8974 2014-02-19 Tom Tromey <tromey@redhat.com>
8976 * target-delegates.c: Rebuild.
8977 * target.c (update_current_target): Don't inherit or default
8978 to_can_execute_reverse.
8979 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8980 TARGET_DEFAULT_RETURN.
8981 (target_can_execute_reverse): Unconditionally delegate.
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
8988 (dummy_goto_bookmark): Remove.
8989 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8990 * target.h (struct target_ops) <to_goto_bookmark>: Use
8991 TARGET_DEFAULT_NORETURN.
8993 2014-02-19 Tom Tromey <tromey@redhat.com>
8995 * target-delegates.c: Rebuild.
8996 * target.c (update_current_target): Don't inherit or default
8998 (dummy_get_bookmark): Remove.
8999 (init_dummy_target): Don't inherit or default to_get_bookmark.
9000 * target.h (struct target_ops) <to_get_bookmark>: Use
9001 TARGET_DEFAULT_NORETURN
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9005 * target-delegates.c: Rebuild.
9006 * target.c (update_current_target): Don't inherit or default
9007 to_make_corefile_notes.
9008 (init_dummy_target): Don't initialize to_make_corefile_notes.
9009 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9010 TARGET_DEFAULT_FUNC.
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_find_memory_regions.
9017 (init_dummy_target): Don't initialize to_find_memory_regions.
9018 * target.h (struct target_ops) <to_find_memory_regions>: 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
9026 * target.h (struct target_ops) <to_log_command>: Use
9027 TARGET_DEFAULT_IGNORE.
9028 (target_log_command): Unconditionally delegate.
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
9034 to_pid_to_exec_file.
9035 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9036 TARGET_DEFAULT_RETURN.
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9040 * target-delegates.c: Rebuild.
9041 * target.c (update_current_target): Don't inherit or default
9043 (target_thread_name): Unconditionally delegate.
9044 * target.h (struct target_ops) <to_thread_name>: 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
9051 to_extra_thread_info.
9052 * target.h (struct target_ops) <to_extra_thread_info>: Use
9053 TARGET_DEFAULT_RETURN.
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9057 * target-delegates.c: Rebuild.
9058 * target.c (update_current_target): Don't inherit or default
9060 * target.h (struct target_ops) <to_has_exited>: Use
9061 TARGET_DEFAULT_RETURN..
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9065 * target-delegates.c: Rebuild.
9066 * target.c (update_current_target): Don't inherit or default
9067 to_set_syscall_catchpoint.
9068 (return_one): Remove.
9069 * target.h (struct target_ops) <to_set_syscall_catchpoint>: 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_insert_exec_catchpoint.
9077 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9078 TARGET_DEFAULT_RETURN.
9080 2014-01-08 Tom Tromey <tromey@redhat.com>
9082 * target-delegates.c: Rebuild.
9083 * target.c (update_current_target): Don't inherit or default
9084 to_insert_exec_catchpoint.
9085 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9086 TARGET_DEFAULT_RETURN.
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9090 * target-delegates.c: Rebuild.
9091 * target.c (update_current_target): Don't inherit or default
9092 to_remove_vfork_catchpoint.
9093 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9094 TARGET_DEFAULT_RETURN.
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9098 * target-delegates.c: Rebuild.
9099 * target.c (update_current_target): Don't inherit or default
9100 to_insert_vfork_catchpoint.
9101 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9102 TARGET_DEFAULT_RETURN.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target-delegates.c: Rebuild.
9107 * target.c (update_current_target): Don't inherit or default
9108 to_remove_fork_catchpoint.
9109 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9110 TARGET_DEFAULT_RETURN.
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target-delegates.c: Rebuild.
9115 * target.c (update_current_target): Don't inherit or default
9116 to_insert_fork_catchpoint.
9117 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9118 TARGET_DEFAULT_RETURN.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target-delegates.c: Rebuild.
9123 * target.c (update_current_target): Don't inherit or default
9124 to_post_startup_inferior.
9125 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9126 TARGET_DEFAULT_IGNORE.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target-delegates.c: Rebuild.
9131 * target.c (update_current_target): Don't inherit or default
9133 * target.h (struct target_ops) <to_load>: Use
9134 TARGET_DEFAULT_NORETURN.
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target-delegates.c: Rebuild.
9139 * target.c (update_current_target): Don't inherit or default
9141 * target.h (struct target_ops) <to_terminal_info>: Use
9142 TARGET_DEFAULT_FUNC.
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9146 * target-delegates.c: Rebuild.
9147 * target.c (update_current_target): Don't inherit or default
9148 to_terminal_save_ours.
9149 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9150 TARGET_DEFAULT_IGNORE.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target-delegates.c: Rebuild.
9155 * target.c (update_current_target): Don't inherit or default
9157 * target.h (struct target_ops) <to_terminal_ours>: Use
9158 TARGET_DEFAULT_IGNORE.
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9162 * target-delegates.c: Rebuild.
9163 * target.c (update_current_target): Don't inherit or default
9164 to_terminal_ours_for_output.
9165 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9166 TARGET_DEFAULT_IGNORE.
9168 2014-02-19 Tom Tromey <tromey@redhat.com>
9170 * target-delegates.c: Rebuild.
9171 * target.c (update_current_target): Don't inherit or default
9172 to_terminal_inferior.
9173 * target.h (struct target_ops) <to_terminal_inferior>: Use
9174 TARGET_DEFAULT_IGNORE.
9176 2014-02-19 Tom Tromey <tromey@redhat.com>
9178 * target-delegates.c: Rebuild.
9179 * target.c (update_current_target): Don't inherit or default
9181 * target.h (struct target_ops) <to_terminal_init>: Use
9182 TARGET_DEFAULT_IGNORE.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target-delegates.c: Rebuild.
9187 * target.c (update_current_target): Don't inherit or default
9188 to_can_accel_watchpoint_condition.
9189 * target.h (struct target_ops)
9190 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9192 2014-02-19 Tom Tromey <tromey@redhat.com>
9194 * target-delegates.c: Rebuild.
9195 * target.c (update_current_target): Don't inherit or default
9196 to_region_ok_for_hw_watchpoint.
9197 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9198 Use TARGET_DEFAULT_FUNC.
9200 2014-02-19 Tom Tromey <tromey@redhat.com>
9202 * target-delegates.c: Rebuild.
9203 * target.c (update_current_target): Don't inherit or default
9204 to_watchpoint_addr_within_range.
9205 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9206 Use TARGET_DEFAULT_FUNC.
9208 2014-02-19 Tom Tromey <tromey@redhat.com>
9210 * target-delegates.c: Rebuild.
9211 * target.c (update_current_target): Don't inherit or default
9212 to_remove_watchpoint.
9213 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9214 TARGET_DEFAULT_NORETURN.
9216 2014-02-19 Tom Tromey <tromey@redhat.com>
9218 * target-delegates.c: Rebuild.
9219 * target.c (update_current_target): Don't inherit or default
9220 to_insert_watchpoint.
9221 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9222 TARGET_DEFAULT_RETURN.
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9226 * target-delegates.c: Rebuild.
9227 * target.c (update_current_target): Don't inherit or default
9228 to_remove_hw_breakpoint.
9229 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9230 TARGET_DEFAULT_RETURN.
9232 2014-02-19 Tom Tromey <tromey@redhat.com>
9234 * target-delegates.c: Rebuild.
9235 * target.c (update_current_target): Don't inherit or default
9236 to_insert_hw_breakpoint.
9237 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9238 TARGET_DEFAULT_RETURN.
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9242 * target-delegates.c: Rebuild.
9243 * target.c (update_current_target): Don't inherit or default
9244 to_can_use_hw_breakpoint.
9245 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9246 TARGET_DEFAULT_RETURN.
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9250 * target-delegates.c: Rebuild.
9251 * target.c (update_current_target): Don't inherit or default
9253 * target.h (struct target_ops) <to_files_info>: Use
9254 TARGET_DEFAULT_IGNORE.
9256 2014-02-19 Tom Tromey <tromey@redhat.com>
9258 * target-delegates.c: Rebuild.
9259 * target.c (update_current_target): Don't inherit or default
9261 * target.h (struct target_ops) <to_store>: Use
9262 TARGET_DEFAULT_NORETURN.
9264 2014-02-19 Tom Tromey <tromey@redhat.com>
9266 * target-delegates.c: Rebuild.
9267 * target.c (update_current_target): Don't inherit or default
9269 * target.h (struct target_ops) <to_post_attach>: Use
9270 TARGET_DEFAULT_IGNORE.
9272 2014-02-19 Tom Tromey <tromey@redhat.com>
9274 * target-delegates.c: Rebuild.
9275 * target.c (update_current_target): Don't inherit or default
9277 (default_rcmd): New function.
9278 (do_monitor_command): Unconditionally delegate.
9279 * target.h (struct target_ops) <to_rmcd>: Use
9280 TARGET_DEFAULT_FUNC.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * target-delegates.c: Rebuild.
9285 * target.c (init_dummy_target): Don't initialize to_attach.
9286 (target_attach): Unconditionally delegate.
9287 * target.h (struct target_ops) <to_attach>: Use
9288 TARGET_DEFAULT_FUNC.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * target-delegates.c: Rebuild.
9293 * target.c (target_detach): Unconditionally delegate.
9294 (init_dummy_target): Don't initialize to_detach.
9295 * target.h (struct target_ops) <to_detach>: Use
9296 TARGET_DEFAULT_IGNORE.
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9302 (target_augmented_libraries_svr4_read): Add argument.
9303 * target.c (update_current_target): Update.
9304 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9307 2014-02-19 Tom Tromey <tromey@redhat.com>
9309 * target.h (struct target_ops) <to_call_history_range>: Add
9311 * target.c (target_call_history_range): Add argument.
9312 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9314 (record_btrace_call_history_from): Update.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target.h (struct target_ops) <to_call_history_from>: Add
9320 * target.c (target_call_history_from): Add argument.
9321 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target.h (struct target_ops) <to_call_history>: Add argument.
9327 * target.c (target_call_history): Add argument.
9328 * record-btrace.c (record_btrace_call_history): Add 'self'
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9333 * target.h (struct target_ops) <to_insn_history_range>: Add
9335 * target.c (target_insn_history_range): Add argument.
9336 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9338 (record_btrace_insn_history_from): Update.
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9342 * target.h (struct target_ops) <to_insn_history_from>: Add
9344 * target.c (target_insn_history_from): Add argument.
9345 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9348 2014-02-19 Tom Tromey <tromey@redhat.com>
9350 * target.h (struct target_ops) <to_insn_history>: Add argument.
9351 * target.c (target_insn_history): Add argument.
9352 * record-btrace.c (record_btrace_insn_history): Add 'self'
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9357 * target.h (struct target_ops) <to_goto_record>: Add argument.
9358 * target.c (target_goto_record): Add argument.
9359 * record-full.c (record_full_goto): Add 'self' argument.
9360 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9362 2014-02-19 Tom Tromey <tromey@redhat.com>
9364 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9365 * target.c (target_goto_record_end): Add argument.
9366 * record-full.c (record_full_goto_end): Add 'self' argument.
9367 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * target.h (struct target_ops) <to_goto_record_begin>: Add
9373 * target.c (target_goto_record_begin): Add argument.
9374 * record-full.c (record_full_goto_begin): Add 'self' argument.
9375 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target.h (struct target_ops) <to_record_is_replaying>: Add
9382 * target.c (target_record_is_replaying): Add argument.
9383 * record-full.c (record_full_is_replaying): Add 'self' argument.
9384 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9386 (record_btrace_xfer_partial, record_btrace_store_registers)
9387 (record_btrace_prepare_to_store, record_btrace_resume)
9388 (record_btrace_wait, record_btrace_decr_pc_after_break)
9389 (record_btrace_find_new_threads, record_btrace_thread_alive):
9392 2014-02-19 Tom Tromey <tromey@redhat.com>
9394 * target.h (struct target_ops) <to_delete_record>: Add argument.
9395 * target.c (target_delete_record): Add argument.
9396 * record-full.c (record_full_delete): Add 'self' argument.
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target.h (struct target_ops) <to_save_record>: Add argument.
9401 * target.c (target_save_record): Add argument.
9402 * record-full.c (record_full_save): Add 'self' argument.
9403 (record_full_save): Add 'self' argument.
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9407 * target.h (struct target_ops) <to_info_record>: Add argument.
9408 * target.c (target_info_record): Add argument.
9409 * record.c (info_record_command): Add argument.
9410 * record-full.c (record_full_info): Add 'self' argument.
9411 * record-btrace.c (record_btrace_info): Add 'self' argument.
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9416 * target.c (target_stop_recording): Add argument.
9417 * record.c (record_stop): Add argument.
9418 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9423 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9424 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9425 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9427 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9428 (_initialize_amd64_linux_nat): Use it.
9429 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9430 (_initialize_i386_linux_nat): Use it.
9432 2014-02-19 Tom Tromey <tromey@redhat.com>
9434 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9435 * target.c (target_teardown_btrace): Add argument.
9436 * remote.c (remote_teardown_btrace): Add 'self' argument.
9437 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9439 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9445 * target.c (target_disable_btrace): Add argument.
9446 * remote.c (remote_disable_btrace): Add 'self' argument.
9447 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9449 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9454 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9455 * target.c (target_enable_btrace): Add argument.
9456 * remote.c (remote_enable_btrace): Add 'self' argument.
9457 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9459 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9465 (target_can_use_agent): Add argument.
9466 * target.c (update_current_target): Update.
9467 * remote.c (remote_can_use_agent): Add 'self' argument.
9468 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9472 * target.h (struct target_ops) <to_use_agent>: Add argument.
9473 (target_use_agent): Add argument.
9474 * target.c (update_current_target): Update.
9475 * remote.c (remote_use_agent): Add 'self' argument.
9476 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9481 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9482 (target_traceframe_info): Add argument.
9483 * target.c (update_current_target): Update.
9484 * remote.c (remote_traceframe_info): Add 'self' argument.
9485 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9489 * target.h (target_static_tracepoint_markers_by_strid): Add
9491 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9493 * target.c (update_current_target): Update.
9494 * remote.c (struct target_ops)
9495 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9496 * linux-nat.c (struct target_ops)
9497 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9499 2014-02-19 Tom Tromey <tromey@redhat.com>
9501 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9503 (target_static_tracepoint_marker_at): Add argument.
9504 * target.c (update_current_target): Update.
9505 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9511 (target_set_permissions): Add argument.
9512 * target.c (update_current_target): Update.
9513 * remote.c (remote_set_permissions): Add 'self' argument.
9514 (remote_start_remote): Update.
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9518 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9519 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9520 (target_get_tib_address): Add argument.
9521 * target.c (update_current_target): Update.
9522 * remote.c (remote_get_tib_address): Add 'self' argument.
9524 2014-02-19 Tom Tromey <tromey@redhat.com>
9526 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9527 (target_set_trace_notes): Add argument.
9528 * target.c (update_current_target): Update.
9529 * remote.c (remote_set_trace_notes): Add 'self' argument.
9531 2014-02-19 Tom Tromey <tromey@redhat.com>
9533 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9535 (target_set_trace_buffer_size): Add argument.
9536 * target.c (update_current_target): Update.
9537 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9543 (target_set_circular_trace_buffer): Add argument.
9544 * target.c (update_current_target): Update.
9545 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9552 (target_set_disconnected_tracing): Add argument.
9553 * target.c (update_current_target): Update.
9554 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target.h (struct target_ops)
9559 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9560 (target_get_min_fast_tracepoint_insn_len): Add argument.
9561 * target.c (update_current_target): Update.
9562 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9567 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9569 (target_get_raw_trace_data): Add argument.
9570 * target.c (update_current_target): Update.
9571 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9573 2014-02-19 Tom Tromey <tromey@redhat.com>
9575 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9577 (target_upload_trace_state_variables): Add argument.
9578 * target.c (update_current_target): Update.
9579 * remote.c (remote_upload_trace_state_variables): Add 'self'
9581 (remote_start_remote): Update.
9583 2014-02-19 Tom Tromey <tromey@redhat.com>
9585 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9587 (target_upload_tracepoints): Add argument.
9588 * target.c (update_current_target): Update.
9589 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9590 (remote_start_remote): Update.
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9595 (target_save_trace_data): Add argument.
9596 * target.c (update_current_target): Update.
9597 * remote.c (remote_save_trace_data): Add 'self' argument.
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9603 * target.h (struct target_ops)
9604 <to_get_trace_state_variable_value>: Add argument.
9605 (target_get_trace_state_variable_value): Add argument.
9606 * target.c (update_current_target): Update.
9607 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9609 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9611 2014-02-19 Tom Tromey <tromey@redhat.com>
9613 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9614 * target.h (struct target_ops) <to_trace_find>: Add argument.
9615 (target_trace_find): Add argument.
9616 * target.c (update_current_target): Update.
9617 * remote.c (remote_trace_find): Add 'self' argument.
9618 * ctf.c (ctf_trace_find): Add 'self' argument.
9620 2014-02-19 Tom Tromey <tromey@redhat.com>
9622 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9623 (target_trace_stop): Add argument.
9624 * target.c (update_current_target): Update.
9625 * remote.c (remote_trace_stop): Add 'self' argument.
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9629 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9630 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9632 (target_get_tracepoint_status): Add argument.
9633 * target.c (update_current_target): Update.
9634 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9636 2014-02-19 Tom Tromey <tromey@redhat.com>
9638 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9639 * target.h (struct target_ops) <to_get_trace_status>: Add
9641 (target_get_trace_status): Add argument.
9642 * target.c (update_current_target): Update.
9643 * remote.c (remote_get_trace_status): Add 'self' argument.
9644 (remote_start_remote, remote_can_download_tracepoint): Update.
9645 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9647 2014-02-19 Tom Tromey <tromey@redhat.com>
9649 * target.h (struct target_ops) <to_trace_start>: Add argument.
9650 (target_trace_start): Add argument.
9651 * target.c (update_current_target): Update.
9652 * remote.c (remote_trace_start): Add 'self' argument.
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9656 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9658 (target_trace_set_readonly_regions): Add argument.
9659 * target.c (update_current_target): Update.
9660 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9665 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9667 (target_disable_tracepoint): Add argument.
9668 * target.c (update_current_target): Update.
9669 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9671 2014-02-19 Tom Tromey <tromey@redhat.com>
9673 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9675 (target_enable_tracepoint): Add argument.
9676 * target.c (update_current_target): Update.
9677 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9679 2014-02-19 Tom Tromey <tromey@redhat.com>
9681 * target.h (struct target_ops) <to_download_trace_state_variable>:
9683 (target_download_trace_state_variable): Add argument.
9684 * target.c (update_current_target): Update.
9685 * remote.c (remote_download_trace_state_variable): Add 'self'
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9692 (target_can_download_tracepoint): Add argument.
9693 * target.c (update_current_target): Update.
9694 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9696 2014-02-19 Tom Tromey <tromey@redhat.com>
9698 * target.h (struct target_ops) <to_download_tracepoint>: Add
9700 (target_download_tracepoint): Add argument.
9701 * target.c (update_current_target): Update.
9702 * remote.c (remote_download_tracepoint): Add 'self' argument.
9704 2014-02-19 Tom Tromey <tromey@redhat.com>
9706 * target.h (struct target_ops) <to_trace_init>: Add argument.
9707 (target_trace_init): Add argument.
9708 * target.c (update_current_target): Update.
9709 * remote.c (remote_trace_init): Add 'self' argument.
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9713 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9714 * target.c (target_fileio_readlink): Add argument.
9715 * remote.c (remote_hostio_readlink): Add 'self' argument.
9716 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9720 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9721 * target.c (target_fileio_unlink): Add argument.
9722 * remote.c (remote_hostio_unlink): Add 'self' argument.
9723 (remote_file_delete): Update.
9724 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9726 2014-02-19 Tom Tromey <tromey@redhat.com>
9728 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9729 * target.c (target_fileio_close): Add argument.
9730 * remote.c (remote_hostio_close): Add 'self' argument.
9731 (remote_hostio_close_cleanup): Update.
9732 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9734 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9738 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9739 * target.c (target_fileio_pread): Add argument.
9740 * remote.c (remote_hostio_pread): Add 'self' argument.
9741 (remote_bfd_iovec_pread, remote_file_get): Update.
9742 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9744 2014-02-19 Tom Tromey <tromey@redhat.com>
9746 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9747 * target.c (target_fileio_pwrite): Add argument.
9748 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9749 (remote_file_put): Update.
9750 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9754 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9755 * target.c (target_fileio_open): Add argument.
9756 * remote.c (remote_hostio_open): Add 'self' argument.
9757 (remote_bfd_iovec_open): Add 'self' argument.
9758 (remote_file_put): Add 'self' argument.
9759 (remote_file_get): Add 'self' argument.
9760 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9762 2014-02-19 Tom Tromey <tromey@redhat.com>
9764 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9766 (target_can_run_breakpoint_commands): Add argument.
9767 * target.c (update_current_target): Update.
9768 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9770 (remote_insert_breakpoint): Add 'self' argument.
9771 (remote_insert_hw_breakpoint): Add 'self' argument.
9772 (remote_can_run_breakpoint_commands): Add 'self' argument.
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9776 * target.h (struct target_ops)
9777 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9778 (target_supports_evaluation_of_breakpoint_conditions): Add
9780 * target.c (update_current_target): Update.
9781 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9783 (remote_insert_breakpoint): Add 'self' argument.
9784 (remote_insert_hw_breakpoint): Add 'self' argument.
9785 (remote_supports_cond_breakpoints): Add 'self' argument.
9787 2014-02-19 Tom Tromey <tromey@redhat.com>
9789 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9791 (target_supports_string_tracing): Add argument.
9792 * target.c (update_current_target): Update.
9793 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9797 * target.h (struct target_ops)
9798 <to_supports_disable_randomization>: Add argument.
9799 * target.c (find_default_supports_disable_randomization): Add
9801 (target_supports_disable_randomization): Add argument.
9802 (find_default_supports_disable_randomization): Add 'self'
9804 * remote.c (extended_remote_supports_disable_randomization): Add
9806 (remote_supports_disable_randomization): Add 'self' argument.
9807 (extended_remote_create_inferior): Update.
9808 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9813 * target.h (struct target_ops)
9814 <to_supports_enable_disable_tracepoint>: Add argument.
9815 (target_supports_enable_disable_tracepoint): Add argument.
9816 * target.c (update_current_target): Update.
9817 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9820 2014-02-19 Tom Tromey <tromey@redhat.com>
9822 * target.h (struct target_ops) <to_supports_multi_process>: Add
9824 (target_supports_multi_process): Add argument.
9825 * target.c (update_current_target): Update.
9826 * remote.c (remote_supports_multi_process): Add 'self' argument.
9827 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9829 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9834 * target.h (struct target_ops) <to_execution_direction>: Add
9836 (target_execution_direction): Add argument.
9837 * target.c (default_execution_direction): Add 'self' argument.
9838 * record-full.c (record_full_execution_direction): Add 'self'
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9843 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9845 (target_can_execute_reverse): Add argument.
9846 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9847 * record-full.c (record_full_can_execute_reverse): Add 'self'
9849 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9852 2014-02-19 Tom Tromey <tromey@redhat.com>
9854 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9855 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9857 (target_get_ada_task_ptid): Add argument.
9858 * target.c (update_current_target): Update.
9859 (default_get_ada_task_ptid): Add 'self' argument.
9860 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9861 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9862 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9864 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9866 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9868 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9870 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9871 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9876 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9877 (target_goto_bookmark): Add argument.
9878 * target.c (dummy_goto_bookmark): Add 'self' argument.
9879 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9881 2014-02-19 Tom Tromey <tromey@redhat.com>
9883 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9884 (target_get_bookmark): Add argument.
9885 * target.c (dummy_get_bookmark): Add 'self' argument.
9886 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9888 2014-02-19 Tom Tromey <tromey@redhat.com>
9890 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9892 (target_make_corefile_notes): Add argument.
9893 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9894 * procfs.c (procfs_make_note_section): Add 'self' argument.
9895 (procfs_make_note_section): Add 'self' argument.
9896 (procfs_make_note_section): Add 'self' argument.
9897 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9899 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9900 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9901 * exec.c (exec_make_note_section): Add 'self' argument.
9902 (exec_make_note_section): Add 'self' argument.
9904 2014-02-19 Tom Tromey <tromey@redhat.com>
9906 * target.h (struct target_ops) <to_find_memory_regions>: Add
9908 (target_find_memory_regions): Add argument.
9909 * target.c (dummy_find_memory_regions): Add 'self' argument.
9910 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9911 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9912 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9913 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9914 * exec. (exec_do_find_memory_regions): New global.
9915 (exec_set_find_memory_regions): Rewrite.
9916 (exec_find_memory_regions): New function.
9917 (init_exec_ops): Use exec_find_memory_regions.
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9921 * target.h (struct target_ops) <to_supports_non_stop>: Add
9923 * target.c (find_default_supports_non_stop): Add argument.
9924 (target_supports_non_stop): Add argument.
9925 (find_default_supports_non_stop): Add 'self' argument.
9926 * remote.c (remote_supports_non_stop): Add 'self' argument.
9927 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9931 * target.h (struct target_ops) <to_log_command>: Add argument.
9932 (target_log_command): Add argument.
9933 * serial.h (serial_log_command): Add 'self' argument.
9934 * serial.c (serial_log_command): Add 'self' argument.
9936 2014-02-19 Tom Tromey <tromey@redhat.com>
9938 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9939 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9941 (target_pid_to_exec_file): Add argument.
9942 * target.c (debug_to_pid_to_exec_file): Add argument.
9943 (update_current_target): Update.
9944 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9945 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9946 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9947 (linux_handle_extended_wait): Update.
9948 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9949 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9950 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9951 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9953 2014-02-19 Tom Tromey <tromey@redhat.com>
9955 * target.h (struct target_ops) <to_rcmd>: Add argument.
9956 (target_rcmd): Add argument.
9957 * target.c (debug_to_rcmd): Add argument.
9958 (update_current_target, do_monitor_command): Update.
9959 * remote.c (remote_rcmd): Add 'self' argument.
9960 * monitor.c (monitor_rcmd): Add 'self' argument.
9962 2014-02-19 Tom Tromey <tromey@redhat.com>
9964 * windows-nat.c (windows_stop): Add 'self' argument.
9965 * target.h (struct target_ops) <to_stop>: Add argument.
9966 * target.c (target_stop): Add argument.
9967 (debug_to_stop): Add argument.
9968 (update_current_target): Update.
9969 * remote.c (remote_stop): Add 'self' argument.
9970 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9971 (gdbsim_cntrl_c): Update.
9972 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9973 * procfs.c (procfs_stop): Add 'self' argument.
9974 * nto-procfs.c (procfs_stop): Add 'self' argument.
9975 * monitor.c (monitor_stop): Add 'self' argument.
9976 (monitor_open): Update.
9977 * linux-nat.c (linux_nat_stop): Add argument.
9978 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9979 * gnu-nat.c (gnu_stop): Add 'self' argument.
9980 * darwin-nat.c (darwin_stop): Add 'self' argument.
9982 2014-02-19 Tom Tromey <tromey@redhat.com>
9984 * target.h (struct target_ops) <to_thread_name>: Add argument.
9985 * target.c (target_thread_name): Add argument.
9986 (update_current_target): Update.
9987 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9989 2014-02-19 Tom Tromey <tromey@redhat.com>
9991 * target.h (struct target_ops) <to_extra_thread_info>: Add
9993 (target_extra_thread_info): Add argument.
9994 * target.c (update_current_target): Update.
9995 * remote.c (remote_threads_extra_info): Add 'self' argument.
9996 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9998 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9999 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10000 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10002 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10004 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10006 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10009 2014-02-19 Tom Tromey <tromey@redhat.com>
10011 * target.h (struct target_ops) <to_program_signals>: Add argument.
10012 * target.c (target_program_signals): Add argument.
10013 * remote.c (remote_program_signals): Add 'self' argument.
10015 2014-02-19 Tom Tromey <tromey@redhat.com>
10017 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10018 * target.c (target_pass_signals): Add argument.
10019 * remote.c (remote_pass_signals): Add 'self' argument.
10020 (remote_start_remote): Update.
10021 * procfs.c (procfs_pass_signals): Add 'self' argument.
10022 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10023 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10024 (linux_nat_create_inferior, linux_nat_attach): Update.
10026 2014-02-19 Tom Tromey <tromey@redhat.com>
10028 * windows-nat.c (windows_can_run): Add 'self' argument.
10029 * target.h (struct target_ops) <to_can_run>: Add argument.
10030 (target_can_run): Add argument.
10031 * target.c (debug_to_can_run): Add argument.
10032 (update_current_target): Update.
10033 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10034 * inf-child.c (inf_child_can_run): Add 'self' argument.
10035 * go32-nat.c (go32_can_run): Add 'self' argument.
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10039 * target.h (struct target_ops) <to_has_exited>: Add argument.
10040 (target_has_exited): Add argument.
10041 * target.c (debug_to_has_exited): Add argument.
10042 (update_current_target): Update.
10044 2014-02-19 Tom Tromey <tromey@redhat.com>
10046 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10048 (target_set_syscall_catchpoint): Add argument.
10049 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10051 * target.c (update_current_target): Update.
10053 2014-02-19 Tom Tromey <tromey@redhat.com>
10055 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10057 (target_remove_exec_catchpoint): Add argument.
10058 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10059 (update_current_target): Update.
10060 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10063 2014-02-19 Tom Tromey <tromey@redhat.com>
10065 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10067 (target_insert_exec_catchpoint): Add argument.
10068 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10069 (update_current_target): Update.
10070 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10073 2014-02-19 Tom Tromey <tromey@redhat.com>
10075 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10077 (target_remove_vfork_catchpoint): Add argument.
10078 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10079 (update_current_target): Update.
10080 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10083 2014-02-19 Tom Tromey <tromey@redhat.com>
10085 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10087 (target_insert_vfork_catchpoint): Add argument.
10088 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10089 (update_current_target): Update.
10090 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10093 2014-02-19 Tom Tromey <tromey@redhat.com>
10095 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10097 (target_remove_fork_catchpoint): Add argument.
10098 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10099 (update_current_target): Update.
10100 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10105 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10107 (target_insert_fork_catchpoint): Add argument.
10108 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10109 (update_current_target): Update.
10110 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10117 (target_post_startup_inferior): Add argument.
10118 * target.c (debug_to_post_startup_inferior): Add argument.
10119 (update_current_target): Update.
10120 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10122 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10124 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10126 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10128 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10130 (super_post_startup_inferior): Likewise.
10131 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10133 (super_post_startup_inferior): Likewise.
10134 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10135 Add 'self' argument.
10136 (super_post_startup_inferior): Likewise.
10138 2014-02-19 Tom Tromey <tromey@redhat.com>
10140 * target.h (struct target_ops) <to_load>: Add argument.
10141 * target.c (target_load): Add argument.
10142 (debug_to_load): Add argument.
10143 (update_current_target): Update.
10144 * remote.c (remote_load): Add 'self' argument.
10145 * remote-sim.c (gdbsim_load): Add 'self' argument.
10146 * remote-mips.c (mips_load): Add 'self' argument.
10147 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10148 * monitor.c (monitor_load): Add 'self' argument.
10149 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10151 2014-02-19 Tom Tromey <tromey@redhat.com>
10153 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10154 (target_terminal_info): Add argument.
10155 * target.c (debug_to_terminal_info): Add argument.
10156 (default_terminal_info): Likewise.
10157 * inflow.c (child_terminal_info): Add 'self' argument.
10158 * inferior.h (child_terminal_info): Add 'self' argument.
10159 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10161 2014-02-19 Tom Tromey <tromey@redhat.com>
10163 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10165 (target_terminal_save_ours): Add argument.
10166 * target.c (debug_to_terminal_save_ours): Add argument.
10167 (update_current_target): Update.
10168 * inflow.c (terminal_save_ours): Add 'self' argument.
10169 * inferior.h (terminal_save_ours): Add 'self' argument.
10171 2014-02-19 Tom Tromey <tromey@redhat.com>
10173 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10174 (target_terminal_ours): Add argument.
10175 * target.c (debug_to_terminal_ours): Add argument.
10176 (update_current_target): Update.
10177 * remote.c (remote_terminal_ours): Add 'self' argument.
10178 (remote_close): Update.
10179 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10180 * inflow.c (terminal_ours): Add 'self' argument.
10181 * inferior.h (terminal_ours): Add 'self' argument.
10182 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10184 2014-02-19 Pedro Alves <palves@redhat.com>
10185 Tom Tromey <tromey@redhat.com>
10187 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10189 (target_terminal_ours_for_output): Add argument.
10190 * target.c (debug_to_terminal_ours_for_output): Add argument.
10191 (update_current_target): Update.
10192 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10193 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10194 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10196 2014-02-19 Tom Tromey <tromey@redhat.com>
10198 * target.h (struct target_ops) <to_terminal_inferior>: Add
10200 * target.c (target_terminal_inferior): Add argument.
10201 (update_current_target): Update.
10202 * remote.c (remote_terminal_inferior): Add 'self' argument.
10203 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10204 * inflow.c (terminal_inferior): Add 'self' argument.
10205 * inferior.h (terminal_inferior): Add 'self' argument.
10206 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10207 (go32_terminal_inferior): Add 'self' argument.
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10211 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10212 (target_terminal_init): Add argument.
10213 * target.c (debug_to_terminal_init): Add argument.
10214 (update_current_target): Update.
10215 * inflow.c (terminal_init_inferior): Add 'self' argument.
10216 * inferior.h (terminal_init_inferior): Add 'self' argument.
10217 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10218 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10220 2014-02-19 Tom Tromey <tromey@redhat.com>
10222 * target.h (struct target_ops)
10223 <to_can_accel_watchpoint_condition>: Add argument.
10224 (target_can_accel_watchpoint_condition): Add argument.
10225 * target.c (debug_to_can_accel_watchpoint_condition): Add
10227 (update_current_target): Update.
10228 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10233 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10235 (target_region_ok_for_hw_watchpoint): Add argument.
10236 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10237 (default_region_ok_for_hw_watchpoint): Add argument.
10238 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10239 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10241 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10243 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10245 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10247 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10249 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10251 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10252 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10254 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10255 Add 'self' argument.
10257 2014-02-19 Tom Tromey <tromey@redhat.com>
10259 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10261 (target_insert_watchpoint): Add argument.
10262 * target.c (debug_to_insert_watchpoint): Add argument.
10263 (update_current_target): Update.
10264 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10265 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10266 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10267 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10268 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10269 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10271 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10272 (procfs_insert_hw_watchpoint): Add 'self' argument.
10273 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10275 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10277 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10279 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10280 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10282 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10285 2014-02-19 Tom Tromey <tromey@redhat.com>
10287 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10289 (target_remove_watchpoint): Add argument.
10290 * target.c (debug_to_remove_watchpoint): Add argument.
10291 (update_current_target): Update.
10292 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10293 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10294 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10295 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10296 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10297 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10299 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10300 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10302 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10304 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10306 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10307 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10309 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10312 2014-02-19 Tom Tromey <tromey@redhat.com>
10314 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10316 (target_remove_hw_breakpoint): Add argument.
10317 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10318 (update_current_target): Update.
10319 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10320 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10322 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10323 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10325 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10328 2014-02-19 Tom Tromey <tromey@redhat.com>
10330 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10332 (target_insert_hw_breakpoint): Add argument.
10333 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10334 (update_current_target): Update.
10335 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10336 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10338 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10339 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10340 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10342 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10345 2014-02-19 Tom Tromey <tromey@redhat.com>
10347 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10349 (target_can_use_hardware_watchpoint): Add argument.
10350 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10351 (update_current_target): Update.
10352 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10354 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10356 * remote.c (remote_check_watch_resources): Add 'self' argument.
10357 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10358 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10360 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10361 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10363 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10365 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10367 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10369 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10371 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10373 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10374 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10376 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10381 * target.h (struct target_ops) <to_post_attach>: Add argument.
10382 (target_post_attach): Add argument.
10383 * target.c (debug_to_post_attach): Add argument.
10384 (update_current_target): Update.
10385 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10386 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10387 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10388 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10389 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10391 2014-02-19 Tom Tromey <tromey@redhat.com>
10393 * windows-nat.c (windows_close): Add 'self' argument.
10394 * tracepoint.c (tfile_close): Add 'self' argument.
10395 * target.h (struct target_ops) <to_close>: Add argument.
10396 * target.c (target_close): Add argument.
10397 (update_current_target): Update.
10398 * remote.c (remote_close): Add 'self' argument.
10399 * remote-sim.c (gdbsim_close): Add 'self' argument.
10400 * remote-mips.c (mips_close): Add 'self' argument.
10401 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10402 * record-full.c (record_full_close): Add 'self' argument.
10403 * record-btrace.c (record_btrace_close): Add 'self' argument.
10404 * monitor.h (monitor_close): Add 'self' argument.
10405 * monitor.c (monitor_close): Add 'self' argument.
10406 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10407 * linux-nat.c (linux_nat_close): Add argument.
10408 * go32-nat.c (go32_close): Add 'self' argument.
10409 * exec.c (exec_close_1): Add 'self' argument.
10410 * ctf.c (ctf_close): Add 'self' argument.
10411 * corelow.c (core_close): Add 'self' argument.
10412 (core_close_cleanup): Update.
10413 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10414 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10416 2014-02-19 Tom Tromey <tromey@redhat.com>
10418 * remote.c (remote_load): New function.
10419 (init_remote_ops): Use it.
10421 2014-02-19 Tom Tromey <tromey@redhat.com>
10423 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10425 * common/linux-btrace.h (linux_supports_btrace): Update.
10426 * remote.c (remote_supports_btrace): Add "self" argument.
10427 * target-delegates.c: Rebuild.
10428 * target.c (target_supports_btrace): Remove.
10429 * target.h (struct target_ops) <to_supports_btrace>: Add
10430 target_ops argument.
10431 (target_supports_btrace): New define.
10433 2014-02-19 Tom Tromey <tromey@redhat.com>
10435 * record-full.c (record_full_beneath_to_resume_ops)
10436 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10437 (record_full_beneath_to_wait)
10438 (record_full_beneath_to_store_registers_ops)
10439 (record_full_beneath_to_store_registers)
10440 (record_full_beneath_to_xfer_partial_ops)
10441 (record_full_beneath_to_xfer_partial)
10442 (record_full_beneath_to_insert_breakpoint_ops)
10443 (record_full_beneath_to_insert_breakpoint)
10444 (record_full_beneath_to_remove_breakpoint_ops)
10445 (record_full_beneath_to_remove_breakpoint)
10446 (record_full_beneath_to_stopped_by_watchpoint)
10447 (record_full_beneath_to_stopped_data_address)
10448 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10449 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10450 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10451 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10452 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10453 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10454 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10455 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10456 (record_full_resume, record_full_wait_1)
10457 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10458 (record_full_store_registers, record_full_xfer_partial)
10459 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10460 (record_full_async, record_full_core_xfer_partial): Use target
10462 * target-delegates.c: Rebuild.
10463 * target.c (current_xfer_partial): Remove.
10464 (update_current_target): Do not INHERIT or de_fault
10465 to_insert_breakpoint, to_remove_breakpoint,
10466 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10467 to_is_async_p, to_async. Do not set to_xfer_partial field.
10468 (default_xfer_partial): Simplify.
10469 (current_xfer_partial): Remove.
10470 (target_wait, target_resume): Simplify.
10471 (find_default_can_async_p, find_default_is_async_p): Update.
10472 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10473 to_xfer_partial, to_stopped_by_watchpoint,
10474 to_stopped_data_address.
10475 (target_store_registers): Simplify.
10476 (forward_target_remove_breakpoint)
10477 (forward_target_insert_breakpoint): Remove.
10478 (target_remove_breakpoint, target_insert_breakpoint)
10479 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10480 * target.h (struct target_ops) <to_resume, to_wait,
10481 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10482 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10483 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10485 (forward_target_remove_breakpoint)
10486 (forward_target_insert_breakpoint): Remove.
10487 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10489 (record_btrace_insert_breakpoint): Delegate directly.
10491 2014-02-19 Tom Tromey <tromey@redhat.com>
10494 * target-delegates.c: New file.
10495 * target.c: Include target-delegates.c.
10496 (init_dummy_target): Call install_dummy_methods.
10497 (complete_target_initialization): Call install_delegators.
10498 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10499 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10500 * make-target-delegates: New file.
10502 2014-02-19 Tom Tromey <tromey@redhat.com>
10504 * record.c (find_record_target): Use find_target_at.
10505 * target.c (find_target_at): New function.
10506 * target.h (find_target_at): Declare.
10508 2014-02-19 Tom Tromey <tromey@redhat.com>
10510 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10511 Add 'ops' argument.
10512 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10514 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10515 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10517 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10519 * linux-nat.c (save_sigtrap): Update.
10520 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10521 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10522 (linux_nat_close): Update.
10523 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10525 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10527 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10528 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10529 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10530 (tmp_to_async): Add 'ops' argument.
10531 (record_full_stopped_by_watchpoint, record_full_async)
10532 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10534 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10535 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10536 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10537 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10538 (remote_is_async_p, remote_async): Add 'ops' argument.
10539 (remote_stopped_data_address): Update.
10540 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10541 * target.c (update_current_target)
10542 (find_default_can_async_p, find_default_is_async_p): Update.
10543 (init_dummy_target): Update.
10544 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10545 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10546 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10547 (target_can_async_p, target_is_async_p, target_async)
10548 (target_stopped_by_watchpoint): Update.
10550 2014-02-19 Yao Qi <yao@codesourcery.com>
10553 * gdbarch.sh: Remove startup_gdbarch.
10554 * gdbarch.c: Regenerated.
10555 * gdbarch.h: Likewise.
10557 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10559 * rl78-tdep.c (rl78_g10_register_name): New function.
10560 (rl78_return_value): Add g10 support.
10561 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10564 2014-02-17 Doug Evans <xdje42@gmail.com>
10566 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10567 (SUBDIR_GUILE_SRCS): Ditto.
10568 (scm-gsmob.o): Ditto.
10570 2014-02-17 Yao Qi <yao@codesourcery.com>
10572 * gnu-nat.c (ILL_RPC): Declare defined function.
10574 2014-02-17 Yao Qi <yao@codesourcery.com>
10576 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10577 mach_msg_type_number_t.
10578 (gnu_write_inferior): Likewise.
10580 2014-02-17 Yao Qi <yao@codesourcery.com>
10582 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10584 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10585 (inf_validate_procs, inf_signal): Likewise.
10586 (S_exception_raise_request): Likewise.
10587 (do_mach_notify_dead_name): Likewise.
10588 (steal_exc_port): Likewise.
10589 (gnu_read_inferior): Change 'copy_count''s type to
10590 mach_msg_type_number_t.
10591 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10594 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10596 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10597 flag. Adjust all users; in particular...
10598 (gnu_wait): ..., don't decrement its value in here...
10599 (gnu_create_inferior): ..., and instead set the flag in here,
10600 around the startup_inferior call, and call that one with
10601 START_INFERIOR_TRAPS_EXPECTED.
10603 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10604 (ILL_RPC): ... new macro.
10605 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10606 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10607 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10608 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10609 functions with ILL_RPC macro.
10610 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10611 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10612 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10613 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10614 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10615 (S_proc_getlogin_reply, S_proc_getsid_reply)
10616 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10617 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10618 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10619 (S_proc_getnports_reply, S_proc_is_important_reply)
10620 (S_proc_get_code_reply): New stub functions, generated with
10623 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10624 collected the type check structures.
10626 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10628 2014-02-14 Doug Evans <dje@google.com>
10630 * target.c (target_write_partial): Fix result type.
10632 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10634 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10635 the proper offsets to access fpregset_t.
10637 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10639 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10640 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10641 * h8300-tdep.c (setmachinelist): Remove global.
10642 * hppa-tdep.c (hppa_sigtramp): Remove global.
10643 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10644 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10645 * ravenscar-thread.c (update_target_observer): Remove global.
10646 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10648 2014-02-12 Tom Tromey <tromey@redhat.com>
10650 * common/rsp-low.c: Update comments.
10651 * common/rsp-low.h: Update comments.
10653 2014-02-12 Tom Tromey <tromey@redhat.com>
10655 * common/rsp-low.c (convert_ascii_to_int): Remove.
10656 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10658 2014-02-12 Tom Tromey <tromey@redhat.com>
10660 * common/rsp-low.h (unhexify): Don't declare.
10661 * common/rsp-low.c (unhexify): Remove.
10663 2014-02-12 Tom Tromey <tromey@redhat.com>
10665 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10666 * common/rsp-low.c (convert_int_to_ascii): Remove.
10668 2014-02-12 Tom Tromey <tromey@redhat.com>
10670 * common/rsp-low.h (hexify): Don't declare.
10671 * common/rsp-low.c (hexify): Remove.
10673 2014-02-12 Tom Tromey <tromey@redhat.com>
10675 * common/rsp-low.c (hexify): Never take strlen of argument.
10677 2014-02-12 Tom Tromey <tromey@redhat.com>
10679 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10680 * remote.c (extended_remote_run, remote_rcmd)
10681 (remote_download_trace_state_variable, remote_save_trace_data)
10682 (remote_set_trace_notes): Update.
10683 * tracepoint.c (encode_source_string, tfile_write_status)
10684 (tfile_write_uploaded_tsv): Update.
10686 2014-02-12 Tom Tromey <tromey@redhat.com>
10688 * tracepoint.c: Include rsp-low.h.
10689 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10690 * remote.c: Include rsp-low.h.
10691 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10692 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10693 (remote_unescape_input): Move to common/rsp-low.c.
10694 * common/rsp-low.h: New file.
10695 * common/rsp-low.c: New file.
10696 * Makefile.in (SFILES): Add common/rsp-low.c.
10697 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10698 (COMMON_OBS): Add rsp-low.o.
10699 (rsp-low.o): New target.
10701 2014-02-12 Tom Tromey <tromey@redhat.com>
10703 * utils.h: Include print-utils.h.
10704 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10705 (int_string, core_addr_to_string, core_addr_to_string_nz)
10706 (hex_string, hex_string_custom): Don't declare.
10707 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10708 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10709 (hex_string_custom, int_string, core_addr_to_string)
10710 (core_addr_to_string_nz, host_address_to_string): Move to
10711 common/print-utils.c.
10712 * common/print-utils.h: New file.
10713 * common/print-utils.c: New file
10714 * Makefile.in (SFILES): Add common/print-utils.c.
10715 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10716 (COMMON_OBS): Add print-utils.o.
10717 (print-utils.o): New target.
10719 2014-02-12 Tom Tromey <tromey@redhat.com>
10721 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10723 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10725 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10727 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10729 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10730 if a PT_IO ptrace request returns sucessfully but indicates that 0
10731 bytes were transferred.
10733 2014-02-12 Pedro Alves <palves@redhat.com>
10734 Kevin Buettner <kevinb@redhat.com>
10736 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10737 TYPE_INSTANCE_FLAG_CODE_SPACE.
10739 2014-02-12 Pedro Alves <palves@redhat.com>
10741 * h8300-tdep.c (pseudo_from_raw_register)
10742 (raw_from_pseudo_register): New functions.
10743 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10746 2014-02-12 Pedro Alves <palves@redhat.com>
10748 * h8300-tdep.c (h8300_register_sim_regno): New function.
10749 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10750 gdbarch_register_sim_regno hook.
10752 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10754 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10756 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10758 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10760 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10762 * obsd-tdep.h (obsd_init_abi): New prototype.
10763 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10764 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10765 (obsd_init_abi): New functions.
10766 * i386obsd-tdep.c: Include "obsd-tdep.h".
10767 (i386obsd_init_abi): Call obsd_init_abi.
10768 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10769 (amd64obsd_init_abi): Call obsd_init_abi.
10770 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10771 obsd-tdep.c to gdb_target_obs.
10773 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10775 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10776 double float arguments to 16-byte in the argument slots.
10778 2014-02-11 Doug Evans <xdje42@gmail.com>
10780 * configure.ac: Don't crash if pkg-config is not found and guile
10781 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10783 * configure: Regenerate.
10785 2014-02-11 Yao Qi <yao@codesourcery.com>
10787 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10788 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10789 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10790 * gnu-nat.c (gnu_xfer_memory): Likewise.
10791 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10792 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10793 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10794 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10796 2014-02-11 Yao Qi <yao@codesourcery.com>
10798 * target.h (enum target_xfer_error): Rename to ...
10799 (enum target_xfer_status): ... it. New. All users updated.
10800 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10802 (TARGET_XFER_STATUS_ERROR_P): New macro.
10803 (target_xfer_error_to_string): Remove declaration.
10804 (target_xfer_status_to_string): Declare.
10805 (target_xfer_partial_ftype): Adjust it.
10806 (struct target_ops) <to_xfer_partial>: Return
10807 target_xfer_status. Add argument xfered_len. Update
10809 * target.c (target_xfer_error_to_string): Rename to ...
10810 (target_xfer_status_to_string): ... it. New. All callers
10812 (target_read_live_memory): Likewise. Call target_xfer_partial
10813 instead of target_read.
10814 (memory_xfer_live_readonly_partial): Return
10815 target_xfer_status. Add argument xfered_len.
10816 (raw_memory_xfer_partial): Likewise.
10817 (memory_xfer_partial_1): Likewise.
10818 (memory_xfer_partial): Likewise.
10819 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10820 properly. Update debug message.
10821 (default_xfer_partial, current_xfer_partial): Likewise.
10822 (target_write_partial): Likewise.
10823 (target_read_partial): Likewise. All callers updated.
10824 (read_whatever_is_readable): Likewise.
10825 (target_write_with_progress): Likewise.
10826 (target_read_alloc_1): Likewise.
10828 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10829 * auxv.c (procfs_xfer_auxv): Likewise.
10830 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10831 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10832 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10833 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10834 * corefile.c (read_memory): Adjust.
10835 * corelow.c (core_xfer_partial): Likewise.
10836 * ctf.c (ctf_xfer_partial): Likewise.
10837 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10839 (darwin_xfer_partial): Likewise.
10840 * exec.c (section_table_xfer_memory_partial): Likewise. All
10842 (exec_xfer_partial): Likewise.
10843 * exec.h (section_table_xfer_memory_partial): Update
10845 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10847 (gnu_xfer_partial): Likewise.
10848 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10849 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10850 (ia64_hpux_xfer_solib_got): Likewise.
10851 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10852 type of 'partial_len' to ULONGEST.
10853 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10854 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10855 (linux_nat_xfer_partial): Likewise.
10856 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10857 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10858 * monitor.c (monitor_xfer_memory): Likewise.
10859 (monitor_xfer_partial): Likewise.
10860 * procfs.c (procfs_xfer_partial): Likewise.
10861 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10862 * record-full.c (record_full_xfer_partial): Likewise.
10863 (record_full_core_xfer_partial): Likewise.
10864 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10865 (gdbsim_xfer_partial): Likewise.
10866 * remote.c (remote_write_bytes_aux): Likewise. All callers
10868 (remote_write_bytes, remote_read_bytes): Likewise. All
10870 (remote_flash_erase): Likewise. All callers updated.
10871 (remote_write_qxfer): Likewise. All callers updated.
10872 (remote_read_qxfer): Likewise. All callers updated.
10873 (remote_xfer_partial): Likewise.
10874 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10875 (rs6000_xfer_shared_libraries): Likewise.
10876 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10877 (sol_thread_xfer_partial): Likewise.
10878 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10879 (sparc_xfer_partial): Likewise.
10880 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10882 (spu_xfer_partial): Likewise.
10883 * spu-multiarch.c (spu_xfer_partial): Likewise.
10884 * tracepoint.c (tfile_xfer_partial): Likewise.
10885 * windows-nat.c (windows_xfer_memory): Likewise.
10886 (windows_xfer_shared_libraries): Likewise.
10887 (windows_xfer_partial): Likewise.
10888 * valprint.c: Replace 'target_xfer_error' with
10889 'target_xfer_status' in comments.
10891 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10893 Checked in by Joel Brobecker <brobecker@adacore.com>.
10894 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10896 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10898 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10899 function parameters.
10901 2014-02-10 Will Newton <will.newton@linaro.org>
10903 * elfread.c (elf_rel_plt_read): Look for a .got section if
10904 looking up .got.plt fails.
10905 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10906 on address passed to elf_gnu_ifunc_record_cache.
10907 (elf_gnu_ifunc_resolve_addr): Likewise.
10908 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10910 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10912 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10913 (X_RETTURN): New macro.
10914 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10916 * sparc64-tdep.c (sparc64_init_abi): Hook
10917 sparc_in_function_epilogue_p.
10919 2014-02-10 Gary Benson <gbenson@redhat.com>
10921 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10922 Rename name_matcher to symbol_matcher.
10924 2014-02-10 Gary Benson <gbenson@redhat.com>
10926 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10927 Use expand_symtabs_file_matcher_ftype and
10928 expand_symtabs_symbol_matcher_ftype.
10930 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10932 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10933 (struct ada_symbol_cache): New.
10934 (ada_free_symbol_cache): Forward declare.
10935 (struct ada_pspace_data): New.
10936 (ada_pspace_data_handle): New static global.
10937 (get_ada_pspace_data, ada_pspace_data_cleanup)
10938 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10939 (cache_space, cache): Delete, now folded inside struct
10941 (ada_get_symbol_cache): New function.
10942 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10944 (_initialize_ada_language): Remove initialization of cache_space.
10945 Move call to observer_attach_inferior_exit up, grouping it
10946 with the other observer registrations inside this function.
10947 Rename command to be more general. Add call to
10948 register_program_space_data_with_cleanup.
10950 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10952 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10953 ada_new_objfile_observer.
10954 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10955 (_initialize_tasks): Update uses of ada_new_objfile_observer
10956 and ada_tasks_normal_stop_observer.
10958 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10960 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10961 returned by the 'Length attribute to integer.
10963 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10965 * ada-lang.c (_initialize_ada_language): Initialize
10966 cache_space obstack.
10968 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10970 * ada-lang.c (HASH_SIZE): New macro.
10971 (struct cache_entry): New type.
10972 (cache_space, cache): New static globals.
10973 (ada_clear_symbol_cache, find_entry): New functions.
10974 (lookup_cached_symbol, cache_symbol): Implement.
10975 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10976 (_initialize_ada_language): Attach ada_new_objfile_observer
10977 and ada_free_objfile_observer.
10979 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10981 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10982 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10983 struct block * parameter.
10984 (ada_lookup_symbol_list_worker): Constify local variable "block".
10985 Remove cast which is no longer necessary.
10987 2014-02-10 Doug Evans <xdje42@gmail.com>
10989 Add Guile as an extension language.
10990 * NEWS: Mention Guile scripting.
10991 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10992 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10993 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10994 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10995 (CLIBS): Add GUILE_LIBS.
10996 (install-guile): New rule.
10997 (guile.o): New rule.
10998 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10999 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11000 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11001 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11002 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11003 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11004 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11005 * configure.ac: New option --with-guile.
11006 * configure: Regenerate.
11007 * config.in: Regenerate.
11008 * auto-load.c: Remove #include "python/python.h". Add #include
11009 "gdb/section-scripts.h".
11010 (source_section_scripts): Handle Guile scripts.
11011 (_initialize_auto_load): Add name of Guile objfile script to
11012 scripts-directory help text.
11013 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11014 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11015 (struct breakpoint): New member scm_bp_object.
11016 * defs.h (enum command_control_type): New value guile_control.
11017 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11019 (show_user): Update comment.
11020 (_initialize_cli_cmds): Update help text for "show user". Update help
11021 text for max-user-call-depth.
11022 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11024 (multi_line_command_p): Add guile_control.
11025 (print_command_lines): Handle guile_control.
11026 (execute_control_command, recurse_read_control_structure): Ditto.
11027 (process_next_line): Recognize "guile" commands.
11028 * disasm.c (gdb_disassemble_info): Make non-static.
11029 * disasm.h: #include "dis-asm.h".
11030 (struct gdbarch): Add forward decl.
11031 (gdb_disassemble_info): Declare.
11032 * extension.c: #include "guile/guile.h".
11033 (extension_languages): Add guile.
11034 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11035 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11036 * gdbtypes.c (get_unsigned_type_max): New function.
11037 (get_signed_type_minmax): New function.
11038 * gdbtypes.h (get_unsigned_type_max): Declare.
11039 (get_signed_type_minmax): Declare.
11040 * guile/README: New file.
11041 * guile/guile-internal.h: New file.
11042 * guile/guile.c: New file.
11043 * guile/guile.h: New file.
11044 * guile/scm-arch.c: New file.
11045 * guile/scm-auto-load.c: New file.
11046 * guile/scm-block.c: New file.
11047 * guile/scm-breakpoint.c: New file.
11048 * guile/scm-disasm.c: New file.
11049 * guile/scm-exception.c: New file.
11050 * guile/scm-frame.c: New file.
11051 * guile/scm-gsmob.c: New file.
11052 * guile/scm-iterator.c: New file.
11053 * guile/scm-lazy-string.c: New file.
11054 * guile/scm-math.c: New file.
11055 * guile/scm-objfile.c: New file.
11056 * guile/scm-ports.c: New file.
11057 * guile/scm-pretty-print.c: New file.
11058 * guile/scm-safe-call.c: New file.
11059 * guile/scm-string.c: New file.
11060 * guile/scm-symbol.c: New file.
11061 * guile/scm-symtab.c: New file.
11062 * guile/scm-type.c: New file.
11063 * guile/scm-utils.c: New file.
11064 * guile/scm-value.c: New file.
11065 * guile/lib/gdb.scm: New file.
11066 * guile/lib/gdb/boot.scm: New file.
11067 * guile/lib/gdb/experimental.scm: New file.
11068 * guile/lib/gdb/init.scm: New file.
11069 * guile/lib/gdb/iterator.scm: New file.
11070 * guile/lib/gdb/printing.scm: New file.
11071 * guile/lib/gdb/types.scm: New file.
11072 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11073 (VPATH): Add $(GUILE_SRCDIR).
11074 (GUILE_DIR): New variable.
11075 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11076 (all): Add stamp-guile dependency.
11077 (stamp-guile): New rule.
11078 (clean-guile, install-guile, uninstall-guile): New rules.
11079 (install-only): Add install-guile dependency.
11080 (uninstall): Add uninstall-guile dependency.
11081 (clean): Add clean-guile dependency.
11083 2014-02-09 Doug Evans <xdje42@gmail.com>
11085 Revert this patch (which I approved, mea culpa).
11087 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11089 * Makefile.in (all-lib): Remove.
11090 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11092 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11094 Fix Python stack corruption.
11095 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11098 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11100 * Makefile.in (all-lib): Remove.
11101 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11103 2014-02-07 Doug Evans <dje@google.com>
11105 * extension-priv.h (extension_language_script_ops): Add comment.
11106 (extension_language_ops): Add comment.
11107 (active_ext_lang_state): Fix typo in comment.
11109 2014-02-07 Pedro Alves <palves@redhat.com>
11111 PR breakpoints/16292
11112 * infrun.c (handle_signal_stop) <signal arrives while stepping
11113 over a breakpoint>: Switch back to the stepping thread.
11115 2014-02-07 Yao Qi <yao@codesourcery.com>
11117 * target.c (target_xfer_partial): Return zero if LEN is zero.
11119 2014-02-07 Yao Qi <yao@codesourcery.com>
11121 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11122 (ld_so_xfer_auxv): Likewise.
11123 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11124 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11125 * corelow.c (core_xfer_partial): Likewise.
11126 * ctf.c (ctf_xfer_partial): Likewise.
11127 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11128 (darwin_xfer_partial): Likewise.
11129 * exec.c (exec_xfer_partial): Likewise.
11130 * gnu-nat.c (gnu_xfer_partial): Likewise.
11131 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11132 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11133 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11134 * linux-nat.c (linux_xfer_siginfo): Likewise.
11135 (linux_proc_xfer_spu): Likewise.
11136 * procfs.c (procfs_xfer_partial): Likewise.
11137 * record-full.c (record_full_xfer_partial): Likewise.
11138 (record_full_core_xfer_partial): Likewise.
11139 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11140 * remote.c (remote_write_qxfer): Likewise.
11141 (remote_write_qxfer, remote_read_qxfer): Likewise.
11142 (remote_xfer_partial): Likewise.
11143 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11144 (rs6000_xfer_shared_libraries): Likewise.
11145 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11146 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11147 (spu_xfer_partial): Likewise.
11148 * target.c (memory_xfer_partial_1): Likewise.
11149 * tracepoint.c (tfile_xfer_partial): Likewise.
11150 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11151 (windows_xfer_partial): Likewise.
11153 2014-02-07 Yao Qi <yao@codesourcery.com>
11155 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11157 (core_xfer_shared_libraries_aix): Likewise.
11158 * gdbarch.c, gdbarch.h: Regenerated.
11159 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11160 ULONGEST. Change 'len_avail' type to ULONGEST.
11161 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11162 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11164 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11166 2014-02-07 Yao Qi <yao@codesourcery.com>
11168 * corefile.c (memory_error): Get 'exception' from ERR and pass
11169 'exception' to throw_error.
11171 2014-02-06 Doug Evans <xdje42@gmail.com>
11173 * configure.ac (libpython checking): Remove all but python.o from
11174 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11175 * configure: Regenerate.
11177 * Makefile.in (SFILES): Add extension.c.
11178 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11179 (COMMON_OBS): Add extension.o.
11180 * extension.h: New file.
11181 * extension-priv.h: New file.
11182 * extension.c: New file.
11184 * python/python-internal.h: #include "extension.h".
11185 (gdbpy_auto_load_enabled): Declare.
11186 (gdbpy_apply_val_pretty_printer): Declare.
11187 (gdbpy_apply_frame_filter): Declare.
11188 (gdbpy_preserve_values): Declare.
11189 (gdbpy_breakpoint_cond_says_stop): Declare.
11190 (gdbpy_breakpoint_has_cond): Declare.
11191 (void source_python_script_for_objfile): Delete.
11192 * python/python.c: #include "extension-priv.h".
11193 Delete inclusion of "observer.h".
11194 (extension_language_python): Moved here and renamed from
11195 script_language_python in py-auto-load.c.
11196 Redefined to be of type extension_language_defn.
11197 (python_extension_script_ops): New global.
11198 (python_extension_ops): New global.
11199 (struct python_env): New member previous_active.
11200 (restore_python_env): Call restore_active_ext_lang.
11201 (ensure_python_env): Call set_active_ext_lang.
11202 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11204 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11206 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11208 (gdbpy_eval_from_control_command): Renamed from
11209 eval_python_from_control_command, made static. New arg extlang.
11210 (gdbpy_source_script) Renamed from source_python_script, made static.
11212 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11213 result to int. New arg extlang.
11214 (gdbpy_source_objfile_script): Renamed from
11215 source_python_script_for_objfile, made static. New arg extlang.
11216 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11217 static. New args extlang, extlang_printers. Change result type to
11219 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11220 static. New arg extlang. Rename arg printers to extlang_printers
11221 and change type to ext_lang_type_printers *.
11222 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11223 static. Replace argument arg with extlang, extlang_printers.
11224 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11225 (!HAVE_PYTHON, source_python_script): Delete.
11226 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11227 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11228 (!HAVE_PYTHON, start_type_printers): Delete.
11229 (!HAVE_PYTHON, apply_type_printers): Delete.
11230 (!HAVE_PYTHON, free_type_printers): Delete.
11231 (_initialize_python): Delete call to observer_attach_before_prompt.
11232 (finalize_python): Set/restore active extension language.
11233 (gdbpy_finish_initialization) Renamed from
11234 finish_python_initialization, made static. New arg extlang.
11235 (gdbpy_initialized): New function.
11236 * python/python.h: #include "extension.h". Delete #include
11237 "value.h", "mi/mi-cmds.h".
11238 (extension_language_python): Declare.
11239 (GDBPY_AUTO_FILE_NAME): Delete.
11240 (enum py_bt_status): Moved to extension.h and renamed to
11241 ext_lang_bt_status.
11242 (enum frame_filter_flags): Moved to extension.h.
11243 (enum py_frame_args): Moved to extension.h and renamed to
11244 ext_lang_frame_args.
11245 (finish_python_initialization): Delete.
11246 (eval_python_from_control_command): Delete.
11247 (source_python_script): Delete.
11248 (apply_val_pretty_printer): Delete.
11249 (apply_frame_filter): Delete.
11250 (preserve_python_values): Delete.
11251 (gdbpy_script_language_defn): Delete.
11252 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11253 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11255 * auto-load.c: #include "extension.h".
11256 (GDB_AUTO_FILE_NAME): Delete.
11257 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11258 (script_language_gdb): Delete, moved to extension.c and renamed to
11259 extension_language_gdb.
11260 (source_gdb_script_for_objfile): Delete.
11261 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11262 (loaded_script): Change type of language member to
11263 struct extension_language_defn *.
11264 (init_loaded_scripts_info): Initialize
11265 unsupported_script_warning_printed.
11266 (maybe_add_script): Make static. Change type of language arg to
11267 struct extension_language_defn *.
11268 (clear_section_scripts): Reset unsupported_script_warning_printed.
11269 (auto_load_objfile_script_1): Rewrite to use extension language API.
11270 (auto_load_objfile_script): Make public. Remove support-compiled-in
11271 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11272 (source_section_scripts): Rewrite to use extension language API.
11273 (load_auto_scripts_for_objfile): Rewrite to use
11274 auto_load_scripts_for_objfile.
11275 (collect_matching_scripts_data): Change type of language member to
11276 struct extension_language_defn *.
11277 (auto_load_info_scripts): Change type of language arg to
11278 struct extension_language_defn *.
11279 (unsupported_script_warning_print): New function.
11280 (script_not_found_warning_print): Make static.
11281 (_initialize_auto_load): Rewrite construction of scripts-directory
11283 * auto-load.h (struct objfile): Add forward decl.
11284 (struct script_language): Delete.
11285 (struct auto_load_pspace_info): Add forward decl.
11286 (struct extension_language_defn): Add forward decl.
11287 (maybe_add_script): Delete.
11288 (auto_load_objfile_script): Declare.
11289 (script_not_found_warning_print): Delete.
11290 (auto_load_info_scripts): Update prototype.
11291 (auto_load_gdb_scripts_enabled): Declare.
11292 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11293 auto_load_python_scripts_enabled and made public.
11294 (script_language_python): Delete, moved to python.c.
11295 (gdbpy_script_language_defn): Delete.
11296 (info_auto_load_python_scripts): Update to use
11297 extension_language_python.
11299 * breakpoint.c (condition_command): Replace call to
11300 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11301 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11302 with call to breakpoint_ext_lang_cond_says_stop.
11303 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11304 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11305 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11306 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11308 (local_setattro): Print name of extension language with existing
11311 * valprint.c (val_print, value_print): Update to call
11312 apply_ext_lang_val_pretty_printer.
11313 * cp-valprint.c (cp_print_value): Update call to
11314 apply_ext_lang_val_pretty_printer.
11315 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11316 (gdbpy_apply_val_pretty_printer): Renamed from
11317 apply_val_pretty_printer. New arg extlang.
11318 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11320 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11321 extension language API.
11322 * cli/cli-script.c (execute_control_command): Update to call
11323 eval_ext_lang_from_control_command.
11325 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11326 enum ext_lang_bt_status values. Update call to
11327 apply_ext_lang_frame_filter.
11328 (mi_cmd_stack_list_locals): Ditto.
11329 (mi_cmd_stack_list_args): Ditto.
11330 (mi_cmd_stack_list_variables): Ditto.
11331 * mi/mi-main.c: Delete #include "python/python-internal.h".
11332 Add #include "extension.h".
11333 (mi_cmd_list_features): Replace reference to python internal variable
11334 gdb_python_initialized with call to ext_lang_initialized_p.
11336 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11337 Update to use enum ext_lang_frame_args. Update to call
11338 apply_ext_lang_frame_filter.
11339 * python/py-framefilter.c (extract_sym): Update to use enum
11340 ext_lang_bt_status.
11341 (extract_value, py_print_type, py_print_value): Ditto.
11342 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11343 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11344 (py_print_frame): Ditto.
11345 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11346 New arg extlang. Update to use enum ext_lang_bt_status.
11348 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11349 finish_python_initialization. Replace with call to
11350 finish_ext_lang_initialization.
11352 * typeprint.c (do_free_global_table): Update to call
11353 free_ext_lang_type_printers.
11354 (create_global_typedef_table): Update to call
11355 start_ext_lang_type_printers.
11356 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11357 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11358 (type_print_options): Change type of global_printers from "void *"
11359 to "struct ext_lang_type_printers *".
11361 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11362 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11363 (gdbpy_preserve_values): Renamed from preserve_python_values.
11365 (!HAVE_PYTHON, preserve_python_values): Delete.
11367 * utils.c (quit_flag): Delete, moved to extension.c.
11368 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11371 * eval.c: Delete #include "python/python.h".
11372 * main.c: Delete #include "python/python.h".
11374 * defs.h: Update comment.
11376 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11380 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11382 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11385 2014-02-05 Yao Qi <yao@codesourcery.com>
11387 * remote.c (remote_pass_signals): Remove local 'buf' and use
11389 (remote_program_signals): Likewise.
11391 2014-02-05 Yao Qi <yao@codesourcery.com>
11393 * ctf.c: Include "inferior.h" and "gdbthread.h".
11394 (CTF_PID): A new macro.
11395 (ctf_open): Call inferior_appeared and add_thread_silent.
11396 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11397 (ctf_thread_alive): New function.
11398 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11400 2014-02-05 Yao Qi <yao@codesourcery.com>
11404 2013-05-24 Yao Qi <yao@codesourcery.com>
11406 * tracepoint.c (TFILE_PID): Remove.
11407 (tfile_open): Don't add thread and inferior.
11408 (tfile_close): Don't set 'inferior_ptid'. Don't call
11409 exit_inferior_silent.
11410 (tfile_thread_alive): Remove.
11411 (init_tfile_ops): Don't set field 'to_thread_alive' of
11414 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11416 * remote.c (remote_start_remote): Call remote_check_symbols even
11417 if only symbol-file (not file) has been given.
11419 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11421 * gdbarch.sh (skip_entrypoint): New callback.
11422 * gdbarch.c, gdbarch.h: Regenerate.
11423 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11424 * infrun.c (fill_in_stop_func): Likewise.
11425 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11426 (ppc_elfv2_elf_make_msymbol_special): New function.
11427 (ppc_elfv2_skip_entrypoint): Likewise.
11428 (ppc_linux_init_abi): Install them for ELFv2.
11430 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11432 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11433 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11434 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11435 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11436 structures returned in GPRs.
11438 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11440 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11441 offset to the stack parameter list for the ELFv2 ABI.
11443 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11445 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11446 set_gdbarch_convert_from_func_ptr_addr and
11447 set_gdbarch_elf_make_msymbol_special for ELFv1.
11448 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11449 function descriptors on ELFv1.
11450 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11451 set up r12 at function entry.
11453 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11455 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11456 (struct gdbarch_tdep): New member elf_abi.
11458 * rs6000-tdep.c: Include "elf/ppc64.h".
11459 (rs6000_gdbarch_init): Detect ELF ABI version.
11461 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11463 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11464 within a register pair holding a DFP 128-bit value on little-endian.
11465 (ppc64_sysv_abi_return_value_base): Likewise.
11466 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11467 (dfp_pseudo_register_write): Likewise.
11469 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11471 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11472 offset on little-endian when passing _Decimal32.
11473 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11475 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11477 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11478 of the overlapped FP register within the VSX register on little-
11480 (efpr_pseudo_register_write): Likewise.
11482 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11484 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11485 offset on little-endian when passing small structures.
11487 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11489 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11490 (struct ppc64_sysv_argpos): New data structure.
11491 (ppc64_sysv_abi_push_float): Remove.
11492 (ppc64_sysv_abi_push_val): New function.
11493 (ppc64_sysv_abi_push_integer): Likewise.
11494 (ppc64_sysv_abi_push_freg): Likewise.
11495 (ppc64_sysv_abi_push_vreg): Likewise.
11496 (ppc64_sysv_abi_push_param): Likewise.
11497 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11498 (ppc64_sysv_abi_return_value_base): New function.
11499 (ppc64_sysv_abi_return_value): Refactor to use it.
11501 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11503 * NEWS: Document new target powerpc64le-*-linux*.
11505 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11507 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11508 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11510 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11511 register set used in ELF core dumps. Add floating-point register set.
11513 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11515 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11516 dwarf2_to_gdb[] table using symbolic constants. Adjust
11517 penultimate entry from number representing the PC register
11518 to symbolic constant representing the MDR register. Add
11519 constant for the PC register to the end of the table.
11521 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11523 * bsd-kvm.c: Include <sys/param.h>
11525 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11527 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11529 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11531 * ada-lang.h (clear_ada_sym_cache): Delete.
11533 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11535 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11537 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11539 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11540 the sigreturn register save area only if the syscall is
11543 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11545 * valops.c (value_slice): Minor reformatting.
11547 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11549 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11551 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11553 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11554 New static globals.
11555 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11556 (ada_ignore_descriptive_types_p): New static global.
11557 (find_parallel_type_by_descriptive_type): Return immediately
11558 if ada_ignore_descriptive_types_p is set.
11559 (_initialize_ada_language): Register new commands "maintenance
11560 set ada", "maintenance show ada", "maintenance set ada
11561 ignore-descriptive-types" and "maintenance show ada
11562 ignore-descriptive-types".
11563 * NEWS: Add entry for new "maint ada set/show
11564 ignore-descriptive-types" commands.
11566 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11568 * record-btrace.c (record_btrace_close): Call btrace_teardown
11571 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11573 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11576 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11578 * ada-typeprint (type_is_full_subrange_of_target_type):
11580 (print_range): Add parameter bounds_prefered_p. If not set,
11581 try printing range types using the name of their base type.
11582 (print_range_type): Add parameter bounds_prefered_p.
11583 Use it in call to print_range.
11584 (print_array_type, ada_print_type): Update calls to print_range
11585 and print_range_type.
11587 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11589 * ada-typeprint.c (print_array_type, print_choices, print_range)
11590 (print_range_bound, print_dynamic_range_bound, print_range_type):
11591 Remove declaration.
11593 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11595 * ada-typeprint.c (print_range): Add missing empty line
11596 after local declaration.
11598 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11600 * ada-valprint.c (print_optional_low_bound): Get index_type's
11601 target type for as long as it is a TYPE_CODE_RANGE.
11603 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11605 * procfs.c (procfs_make_note_section): Remove assertion and
11606 associated comment.
11608 2014-01-24 Yao Qi <yao@codesourcery.com>
11610 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11611 * corelow.c (get_core_siginfo): Likewise.
11613 2014-01-24 Yao Qi <yao@codesourcery.com>
11615 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11616 ULONGEST. Don't check 'len' is negative.
11617 (remote_write_bytes): Change type of 'len' to ULONGEST.
11619 2014-01-23 Tom Tromey <tromey@redhat.com>
11622 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11623 Handle exception from frame.block.
11624 (FrameVars.fetch_frame_locals): Likewise.
11626 2014-01-23 Tom Tromey <tromey@redhat.com>
11629 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11630 on a NULL pointer. Move "goto error" to correct place.
11632 2014-01-23 Tom Tromey <tromey@redhat.com>
11635 * python/py-framefilter.c (apply_frame_filter): Call
11636 ensure_python_env after computing gdbarch.
11638 2014-01-23 Yao Qi <yao@codesourcery.com>
11640 * target.c (raw_memory_xfer_partial): Change argument type
11641 from void * to gdb_byte *.
11642 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11644 2014-01-22 Doug Evans <dje@google.com>
11646 New gdbserver option --debug-format=timestamp.
11647 * NEWS: Mention it.
11649 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11651 * syscalls/s390x-linux.xml: New file.
11652 * syscalls/s390-linux.xml: New file.
11653 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11654 (XML_SYSCALL_FILENAME_S390X): Likewise.
11655 (op_svc): New enum value for SVC opcode.
11656 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11657 (s390_linux_get_syscall_number): New function.
11658 (s390_gdbarch_init): Register '*get_syscall_number' and the
11659 syscall xml file name.
11660 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11661 "s390-linux.xml" and "s390x-linux.xml".
11662 * NEWS: Announce new feature.
11664 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11666 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11668 2014-01-22 Pedro Alves <palves@redhat.com>
11670 * xtensa-config.c: Include defs.h.
11672 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11674 * common/common-utils.h: Add "ARI:" comment beside __func__
11677 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11679 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11680 documentation a bit.
11682 2014-01-21 Roland McGrath <mcgrathr@google.com>
11684 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11685 * configure: Regenerate.
11686 * aclocal.m4: Regenerate.
11687 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11688 New substituted variables.
11689 (install-strip): New target.
11690 (INSTALL_SCRIPT): New substituted variable.
11691 (FLAGS_TO_PASS): Add it.
11692 (install-only): Use $(INSTALL_SCRIPT) rather than
11693 $(INSTALL_PROGRAM) for gcore.
11695 2014-01-20 Tom Tromey <tromey@redhat.com>
11697 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11700 2014-01-20 Tom Tromey <tromey@redhat.com>
11702 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11703 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11704 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11705 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11706 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11707 (struct cmd_list_element) <flags>: Remove.
11708 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11709 doc_allocated>: New fields.
11710 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11712 * maint.c (maintenance_do_deprecate): Update.
11713 * top.c (execute_command): Update.
11715 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11717 * xtensa-linux-nat.c: Include asm/ptrace.h.
11719 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11721 * Makefile.in (SFILES): Add d-support.c.
11722 (COMMON_OBS): Add d-support.o.
11723 * d-lang.h (d_parse_symbol): Add comment, now defined in
11725 * d-lang.c (parse_call_convention)
11726 (parse_attributes, parse_function_types)
11727 (parse_function_args, parse_type, parse_identifier)
11728 (call_convention_p, d_parse_symbol): Move functions to ...
11729 * d-support.c: ... New file.
11731 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11733 * d-lang.h (d_parse_symbol): Add declaration.
11734 * d-lang.c (extract_identifiers)
11735 (extract_type_info): Remove functions.
11736 (parse_call_convention, parse_attributes)
11737 (parse_function_types, parse_function_args)
11738 (parse_type, parse_identifier, call_convention_p)
11739 (d_parse_symbol): New functions.
11740 (d_demangle): Use d_parse_symbol to demangle D symbols.
11742 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11744 * d-lang.h (struct builtin_d_type): New data type.
11745 (builtin_d_type): Add declaration.
11746 * d-lang.c (d_language_arch_info, build_d_types)
11747 (builtin_d_type): New functions.
11748 (enum d_primitive_types): New data type.
11749 (d_language_defn): Change c_language_arch_info to
11750 d_language_arch_info.
11751 (d_type_data): New static variable.
11752 (_initialize_d_language): Initialize d_type_data.
11754 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11756 * d-lang.h (d_main_name): Add declaration.
11757 * d-lang.c (d_main_name): New function.
11758 * symtab.c (find_main_name): Add call to d_main_name.
11760 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11762 * d-lang.c (d_language_defn): Change macro_expansion_c to
11763 macro_expansion_no.
11765 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11767 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11769 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11771 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11772 gdb_exception" declaration.
11773 * remote.c (getpkt_or_notif_sane): Likewise.
11775 2014-01-17 Doug Evans <dje@google.com>
11777 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11778 function, contents of dirnames_to_char_ptr_vec_append moved here.
11779 (delim_string_to_char_ptr_vec): New function.
11780 (dirnames_to_char_ptr_vec_append): Rewrite.
11781 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11783 2014-01-17 Doug Evans <dje@google.com>
11785 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11787 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11788 #include "common-utils.h".
11789 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11790 * common/vec.h (VEC_ASSERT_PASS): Update.
11791 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11792 (MACH_CHECK_ERROR): Update.
11794 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11796 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11798 * gdbarch.h: Regenerate.
11800 2014-01-16 Tom Tromey <tromey@redhat.com>
11802 * value.c (struct value) <regnum>: Move earlier.
11804 2014-01-16 Tom Tromey <tromey@redhat.com>
11806 * remote.c (extended_remote_create_inferior): Rename from
11807 extended_remote_create_inferior_1. Add "ops" argument. Remove
11808 old implementation.
11810 2014-01-16 Pedro Alves <palves@redhat.com>
11812 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11813 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11816 2014-01-16 Doug Evans <dje@google.com>
11818 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11822 * btrace.h (btrace_thread_flag): New.
11823 (struct btrace_thread_info) <flags>: New.
11824 * record-btrace.c (record_btrace_resume_thread)
11825 (record_btrace_find_thread_to_move, btrace_step_no_history)
11826 (btrace_step_stopped, record_btrace_start_replaying)
11827 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11828 (record_btrace_find_resume_thread): New.
11829 (record_btrace_resume, record_btrace_wait): Extend.
11830 (record_btrace_can_execute_reverse): New.
11831 (record_btrace_open): Fail in non-stop mode.
11832 (record_btrace_set_replay): Split into this, ...
11833 (record_btrace_stop_replaying): ... this, ...
11834 (record_btrace_clear_histories): ... and this.
11835 (init_record_btrace_ops): Init to_can_execute_reverse.
11836 * NEWS: Announce it.
11838 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11840 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11841 (forward_target_decr_pc_after_break)
11842 (target_decr_pc_after_break): New.
11843 * target.c (forward_target_decr_pc_after_break)
11844 (target_decr_pc_after_break): New.
11845 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11846 instead of gdbarch_decr_pc_after_break.
11847 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11848 instead of gdbarch_decr_pc_after_break.
11849 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11850 instead of gdbarch_decr_pc_after_break.
11851 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11852 instead of gdbarch_decr_pc_after_break.
11853 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11854 instead of gdbarch_decr_pc_after_break.
11855 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11856 instead of gdbarch_decr_pc_after_break.
11858 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11860 * btrace.c: Include regcache.h.
11861 (btrace_add_pc): New.
11862 (btrace_enable): Call btrace_add_pc.
11863 (btrace_is_empty): New.
11864 * btrace.h (btrace_is_empty): New.
11865 * record-btrace.c (require_btrace, record_btrace_info): Call
11868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11870 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11871 Support delta reads.
11872 (linux_disable_btrace): Change return type.
11873 * common/linux-btrace.h (linux_read_btrace): Change parameters
11874 and return type to allow error reporting. Update users.
11875 (linux_disable_btrace): Change return type. Update users.
11876 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11878 (btrace_error): New.
11879 (btrace_block) <begin>: Comment on BEGIN == 0.
11880 * btrace.c (btrace_compute_ftrace): Start from the end of
11882 (btrace_stitch_trace, btrace_clear_history): New.
11883 (btrace_fetch): Read delta trace, return if replaying.
11884 (btrace_clear): Move clear history code to btrace_clear_history.
11885 (parse_xml_btrace): Throw an error if parsing failed.
11886 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11887 and return type to allow error reporting.
11888 (target_read_btrace): Change parameters and return type to allow
11890 * target.c (target_read_btrace): Update.
11891 * remote.c (remote_read_btrace): Support delta reads. Pass
11893 * NEWS: Announce it.
11895 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11897 * record.h (record_btrace_frame_unwind)
11898 (record_btrace_tailcall_frame_unwind): New declarations.
11899 * dwarf2-frame: Include record.h
11900 (dwarf2_frame_cfa): Throw an error for btrace frames.
11901 * record-btrace.c: Include hashtab.h.
11902 (btrace_get_bfun_name): New.
11903 (btrace_call_history): Call btrace_get_bfun_name.
11904 (struct btrace_frame_cache): New.
11906 (bfcache_hash, bfcache_eq, bfcache_new): New.
11907 (btrace_get_frame_function): New.
11908 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11909 (record_btrace_frame_this_id): Compute own id.
11910 (record_btrace_frame_prev_register): Provide PC, throw_error
11911 for all other registers.
11912 (record_btrace_frame_sniffer): Detect btrace frames.
11913 (record_btrace_tailcall_frame_sniffer): New.
11914 (record_btrace_frame_dealloc_cache): New.
11915 (record_btrace_frame_unwind): Add new functions.
11916 (record_btrace_tailcall_frame_unwind): New.
11917 (_initialize_record_btrace): Allocate cache.
11918 * btrace.c (btrace_clear): Call reinit_frame_cache.
11919 * NEWS: Announce it.
11921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11923 * record-btrace.c (record_btrace_set_replay)
11924 (record_btrace_goto_begin, record_btrace_goto_end)
11925 (record_btrace_goto): New.
11926 (init_record_btrace_ops): Initialize them.
11927 * NEWS: Announce it.
11929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11931 * record-btrace.c (record_btrace_find_new_threads)
11932 (record_btrace_thread_alive): New.
11933 (init_record_btrace_ops): Initialize to_find_new_threads and
11936 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11938 * record-btrace.c (record_btrace_resume): New.
11939 (record_btrace_wait): New.
11940 (init_record_btrace_ops): Initialize to_wait and to_resume.
11942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11944 * record-btrace.c (record_btrace_xfer_partial)
11945 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11946 (record_btrace_allow_memory_access): New.
11947 (init_record_btrace_ops): Initialize new methods.
11948 * target.c (raw_memory_xfer_partial): Bail out if target reports
11949 that this memory is not available.
11951 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11953 * target.h (target_ops) <to_insert_breakpoint>
11954 <to_remove_breakpoint>: Add target_ops parameter.
11955 (forward_target_insert_breakpoint): New.
11956 (forward_target_remove_breakpoint): New.
11957 (memory_remove_breakpoint, memory_insert_breakpoint):
11958 Add target_ops parameter.
11959 * target.c (target_insert_breakpoint): Split into this and ...
11960 (forward_target_insert_breakpoint): ... this.
11961 (target_remove_breakpoint): Split into this and ...
11962 (forward_target_remove_breakpoint): ... this.
11963 (debug_to_insert_breakpoint): Add target_ops parameter.
11964 Call forward_target_insert_breakpoint.
11965 (debug_to_remove_breakpoint): Add target_ops parameter.
11966 Call forward_target_remove_breakpoint.
11967 (update_current_target): Do not inherit or default to_insert_breakpoint
11968 and to_remove_breakpoint.
11969 * corelow.c (ignore): Add target_ops parameter.
11970 * exec.c (ignore): Add target_ops parameter.
11971 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11972 Add target_ops parameter.
11973 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11974 Add target_ops parameter.
11975 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11976 Add target_ops parameter.
11977 * record-full.c (record_full_beneath_to_insert_breakpoint)
11978 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11979 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11980 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11981 (record_full_core_remove_breakpoint): Add target_ops parameter.
11983 (record_full_beneath_to_insert_breakpoint_ops)
11984 (record_full_beneath_to_remove_breakpoint_ops)
11985 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11986 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11987 tmp_to_remove_breakpoint_ops,
11988 record_full_beneath_to_insert_breakpoint_ops, and
11989 record_full_beneath_to_remove_breakpoint_ops.
11990 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11991 (m32r_remove_breakpoint): Add target_ops parameter.
11992 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11993 Add target_ops parameter.
11994 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11995 Add target_ops parameter.
11997 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11998 Markus Metzger <markus.t.metzger@intel.com>
12000 * record-btrace.c: Include frame-unwind.h.
12001 (record_btrace_frame_unwind_stop_reason)
12002 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12003 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12005 (init_record_btrace_ops): Install it.
12007 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12009 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12012 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12014 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12017 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12019 * frame-unwind.c: Include target.h.
12020 (frame_unwind_try_unwinder): New function with code from ...
12021 (frame_unwind_find_by_frame): ... here. New variable
12022 unwinder_from_target, call also target_get_unwinder)
12023 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12024 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12025 * target.h (struct target_ops): New fields to_get_unwinder and
12026 to_get_tailcall_unwinder.
12027 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12029 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12031 * record-btrace.c (record_btrace_fetch_registers)
12032 (record_btrace_store_registers)
12033 (record_btrace_to_prepare_to_store): New.
12034 (init_record_btrace_ops): Add the above.
12036 2014-01-16 Tom Tromey <tromey@redhat.com>
12038 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12039 * target.h (struct target_ops) <to_prepare_to_store>: Add
12041 (target_prepare_to_store): Add argument.
12042 * target.c (debug_to_prepare_to_store): Add argument.
12043 (update_current_target): Update.
12044 * remote.c (remote_prepare_to_store): Add 'self' argument.
12045 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12046 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12047 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12048 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12050 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12051 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12052 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12053 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12054 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12056 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12058 * btrace.h (replay) <replay>: New.
12059 (btrace_is_replaying): New.
12060 * btrace.c (btrace_clear): Free replay iterator.
12061 (btrace_is_replaying): New.
12062 * record-btrace.c (record_btrace_is_replaying): New.
12063 (record_btrace_info): Print insn number if replaying.
12064 (record_btrace_insn_history): Start at replay position.
12065 (record_btrace_call_history): Start at replay position.
12066 (init_record_btrace_ops): Init to_record_is_replaying.
12068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12070 * record-btrace.c (record_btrace_insn_history_range): Include
12072 (record_btrace_insn_history_from): Adjust range.
12073 (record_btrace_call_history_range): Include
12075 (record_btrace_call_history_from): Adjust range.
12076 * NEWS: Announce changes.
12078 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12080 * record.h (enum record_print_flag)
12081 <record_print_indent_calls>: New.
12082 * record.c (get_call_history_modifiers): Recognize /c modifier.
12083 (_initialize_record): Document /c modifier.
12084 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12085 Reorder fields. Optionally indent the function name. Update
12087 * NEWS: Announce changes.
12089 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12091 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12093 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12095 * btrace.c (ftrace_new_function): Start counting at one.
12096 * record-btrace.c (record_btrace_info): Adjust number of calls
12098 * NEWS: Announce it.
12100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12102 * record-btrace.c (btrace_call_history_insn_range): Print
12103 insn range as [begin, end].
12105 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12107 * btrace.h (struct btrace_func_link): New.
12108 (enum btrace_function_flag): New.
12109 (struct btrace_inst): Rename to ...
12110 (struct btrace_insn): ...this. Update all users.
12111 (struct btrace_func) <ibegin, iend>: Remove.
12112 (struct btrace_func_link): New.
12113 (struct btrace_func): Rename to ...
12114 (struct btrace_function): ...this. Update all users.
12115 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12116 (number, level, flags>: New.
12117 (struct btrace_insn_iterator): Rename to ...
12118 (struct btrace_insn_history): ...this.
12120 (struct btrace_insn_iterator, btrace_call_iterator): New.
12121 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12122 (struct btrace_target_info) <begin, end, level>
12123 <insn_history, call_history>: New.
12124 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12125 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12126 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12127 (btrace_call_number, btrace_call_begin, btrace_call_end)
12128 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12129 (btrace_find_function_by_number, btrace_set_insn_history)
12130 (btrace_set_call_history): New.
12131 * btrace.c (btrace_init_insn_iterator)
12132 (btrace_init_func_iterator, compute_itrace): Remove.
12133 (ftrace_print_function_name, ftrace_print_filename)
12134 (ftrace_skip_file): Change
12135 parameter to const.
12136 (ftrace_init_func): Remove.
12137 (ftrace_debug): Use new btrace_function fields.
12138 (ftrace_function_switched): Also consider gaining and
12139 losing symbol information).
12140 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12141 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12142 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12144 (ftrace_new_function): Move. Remove debug print.
12145 (ftrace_update_lines, ftrace_update_insns): New.
12146 (ftrace_update_function): Check for call, ret, and jump.
12147 (compute_ftrace): Renamed to ...
12148 (btrace_compute_ftrace): ...this. Rewritten to compute call
12150 (btrace_fetch, btrace_clear): Updated.
12151 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12152 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12153 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12154 (btrace_call_number, btrace_call_begin, btrace_call_end)
12155 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12156 (btrace_find_function_by_number, btrace_set_insn_history)
12157 (btrace_set_call_history): New.
12158 * record-btrace.c (require_btrace): Use new btrace thread
12160 (record_btrace_info, btrace_insn_history)
12161 (record_btrace_insn_history, record_btrace_insn_history_range):
12162 Use new btrace thread info fields and new iterator.
12163 (btrace_func_history_src_line): Rename to ...
12164 (btrace_call_history_src_line): ...this. Use new btrace
12165 thread info fields.
12166 (btrace_func_history): Rename to ...
12167 (btrace_call_history): ...this. Use new btrace thread info
12168 fields and new iterator.
12169 (record_btrace_call_history, record_btrace_call_history_range):
12170 Use new btrace thread info fields and new iterator.
12172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12174 * frame.h (frame_id_build_unavailable_stack_special): New.
12175 * frame.c (frame_id_build_unavailable_stack_special): New.
12177 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12179 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12180 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12181 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12183 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12184 (i386_insn_is_jump, i386_jmp_p): New.
12185 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12186 insn_is_jump to gdbarch.
12187 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12188 * gdbarch.h: Regenerated.
12189 * gdbarch.c: Regenerated.
12190 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12191 (default_insn_is_jump): New.
12192 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12193 (default_insn_is_jump): New.
12195 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12197 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12199 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12200 (btrace_read_type) <btrace_read_new>: Change to ...
12201 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12203 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12205 * common/linux-btrace.c (linux_read_btrace): Free trace from
12206 previous iteration.
12208 2014-01-15 Doug Evans <dje@google.com>
12210 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12213 2014-01-15 Tom Tromey <tromey@redhat.com>
12215 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12216 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12217 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12218 (set_objfile_main_name): New function.
12219 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12220 language_of_main>: New fields.
12221 (set_objfile_main_name): Declare.
12222 * symtab.c (find_main_name): Loop over objfiles to find the main
12224 (set_main_name): Now static.
12225 (get_main_info): Add comment.
12226 * symtab.h (set_main_name): Don't declare.
12228 2014-01-15 Tom Tromey <tromey@redhat.com>
12230 * symtab.c (main_progspace_key): New global.
12231 (struct main_info): New.
12232 (name_of_main, language_of_main): Remove.
12233 (get_main_info, main_info_cleanup): New function.
12234 (set_main_name, main_name, main_language): Use get_main_info.
12235 (_initialize_symtab): Initialize main_progspace_key.
12237 2014-01-15 Tom Tromey <tromey@redhat.com>
12239 * dbxread.c (process_one_symbol): Update.
12240 * dwarf2read.c (read_partial_die): Update.
12241 * symfile.c (set_initial_language): Call main_language.
12242 * symtab.c (language_of_main): Now static.
12243 (set_main_name): Add 'lang' parameter.
12244 (find_main_name): Update.
12245 (main_language): New function.
12246 (symtab_observer_executable_changed): Update.
12247 * symtab.h (set_main_name): Update.
12248 (language_of_main): Remove.
12249 (main_language): Declare.
12251 2014-01-15 Tom Tromey <tromey@redhat.com>
12253 * symfile.c (init_entry_point_info): Use new "initialized" field.
12255 * objfiles.h (struct entry_point) <initialized>: New field.
12256 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12257 (struct objfile) <ei>: ...here. Remove.
12258 * objfiles.c (entry_point_address_query): Update.
12260 2014-01-15 Tom Tromey <tromey@redhat.com>
12262 * objfiles.c (entry_point_address_query): Relocate entry point
12264 (objfile_relocate1): Do not relocate entry point address.
12265 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12266 <the_bfd_section_index>: New field.
12267 * symfile.c (init_entry_point_info): Find the entry point's
12270 2014-01-15 Tom Tromey <tromey@redhat.com>
12272 * solib-frv.c (enable_break): Use entry_point_address_query.
12274 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12276 * NEWS: Add note on improved process record-replay on
12277 arm*-linux* targets.
12279 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12281 * arm-tdep.c (enum arm_record_result): New enum.
12282 (arm_record_unsupported_insn): New function.
12283 (arm_record_coproc_data_proc): Removed.
12284 (thumb2_record_ld_st_multiple): New function.
12285 (thumb2_record_ld_st_dual_ex_tbb): New function.
12286 (thumb2_record_data_proc_sreg_mimm): New function.
12287 (thumb2_record_ps_dest_generic): New function.
12288 (thumb2_record_branch_misc_cntrl): New function.
12289 (thumb2_record_str_single_data): New function.
12290 (thumb2_record_ld_mem_hints): New function.
12291 (thumb2_record_ld_word): New function.
12292 (thumb2_record_lmul_lmla_div): New function.
12293 (thumb2_record_decode_insn_handler): New function.
12294 (decode_insn): Add thumb32 instruction handlers.
12296 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12298 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12299 (struct arm_linux_record_tdep): Declare.
12300 (arm_canonicalize_syscall): New function.
12301 (arm_all_but_pc_registers_record): New function.
12302 (arm_linux_syscall_record): New function.
12303 (arm_linux_init_abi): Add syscall recording constructs.
12304 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12305 decoding. (arm_record_coproc_data_proc): Update arm syscall
12307 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12308 <arm_syscall_record>: New field.
12309 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12312 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12314 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12315 register for push instruction recording.
12317 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12319 * arm-tdep.c (thumb_record_misc): Update to correct logical
12320 error while recording ldm, ldmia and pop instructions.
12322 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12324 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12326 2014-01-15 Pedro Alves <palves@redhat.com>
12328 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12329 (go32_resume, go32_fetch_registers, store_register)
12330 (go32_store_registers, go32_prepare_to_store)
12331 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12332 (go32_create_inferior, go32_can_run, go32_terminal_init)
12333 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12336 2014-01-15 Tom Tromey <tromey@redhat.com>
12338 * target.h (async_callback_ftype): New typedef.
12339 (struct target_ops) <to_async>: Use it.
12341 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12343 * python/py-value.c (get_field_type): Remove unnecessary curly
12344 braces for single-statement if block.
12346 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12348 * python/py-type.c (convert_field): Add missing empty line
12349 after declarations.
12351 2014-01-14 Doug Evans <dje@google.com>
12353 * symfile.h (expand_symtabs_matching): Renamed from
12354 expand_partial_symbol_names. Update prototype.
12355 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12356 * symfile.c (expand_symtabs_matching): Renamed from
12357 expand_partial_symbol_names. New args file_matcher, kind.
12358 Rename arg fun to symbol_matcher.
12359 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12360 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12361 ada_expand_partial_symbol_name.
12362 (ada_make_symbol_completion_list): Update to call
12363 expand_symtabs_matching.
12364 (ada_add_global_exceptions): Call expand_symtabs_matching.
12365 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12366 call map_symbol_filenames.
12367 * symtab.c (sources_info): Update to call map_symbol_filenames.
12368 (search_symbols): Call expand_symtabs_matching.
12369 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12370 (default_make_symbol_completion_list_break_on): Update to call
12371 expand_symtabs_matching.
12372 (make_source_files_completion_list): Update to call
12373 map_symbol_filenames.
12375 2014-01-14 Doug Evans <dje@google.com>
12377 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12378 (expand_symtabs_symbol_matcher_ftype): New typedef.
12379 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12380 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12381 * symfile.c (expand_partial_symbol_names): Update to use
12382 expand_symtabs_symbol_matcher_ftype.
12383 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12384 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12385 Arg name_matcher renamed to symbol_matcher.
12386 * psymtab.c (recursively_search_psymtabs): Update to use
12387 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12389 (expand_symtabs_matching_via_partial): Update to use
12390 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12391 Arg name_matcher renamed to symbol_matcher.
12393 2014-01-14 Doug Evans <dje@google.com>
12395 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12396 (map_partial_symbol_filenames): Ditto.
12397 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12398 (map_partial_symbol_filenames): Ditto.
12399 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12400 (map_partial_symbol_filenames): Ditto.
12401 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12402 (map_partial_symbol_filenames): Ditto.
12403 * symtab.c: Delete #include "psymtab.h".
12405 2014-01-14 Pedro Alves <palves@redhat.com>
12406 Tom Tromey <tromey@redhat.com>
12408 * infrun.c (use_displaced_stepping): Use find_record_target
12409 instead of RECORD_IS_USED.
12410 (adjust_pc_after_break): Use record_full_is_used instead of
12412 * record-btrace.c (record_btrace_open): Call record_preopen
12413 instead of checking RECORD_IS_USED.
12414 * record-full.c (record_full_shortname)
12415 (record_full_core_shortname): New globals.
12416 (record_full_is_used): New function.
12417 (find_full_open): Call record_preopen instead of checking
12419 (init_record_full_ops): Set the target's shortname to
12420 record_full_shortname.
12421 (init_record_full_core_ops): Set the target's shortname to
12422 record_full_core_shortname.
12423 * record-full.h (record_full_is_used): Declare.
12424 * record.c (find_record_target): Make extern.
12425 (record_preopen): New function.
12426 * record.h (RECORD_IS_USED): Delete macro.
12427 (find_record_target, record_preopen): Declare functions.
12429 2014-01-14 Yao Qi <yao@codesourcery.com>
12431 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12432 'len''s type to ULONGEST.
12433 (core_xfer_shared_libraries_aix): Likewise.
12434 * gdbarch.c, gdbarch.h: Regenerated.
12435 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12436 Change type of 'len' to ULONGEST.
12437 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12438 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12440 2014-01-14 Yao Qi <yao@codesourcery.com>
12442 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12443 type of 'len' to ULONGEST.
12444 (linux_xfer_osdata_processgroups): Likewise.
12445 (linux_xfer_osdata_threads): Likewise.
12446 (linux_xfer_osdata_fds): Likewise.
12447 (linux_xfer_osdata_isockets): Likewise.
12448 (linux_xfer_osdata_shm): Likewise.
12449 (linux_xfer_osdata_sem): Likewise.
12450 (linux_xfer_osdata_msg): Likewise.
12451 (linux_common_xfer_osdata): Likewise.
12452 (struct osdata_type) <getter>: Likewise.
12453 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12456 2014-01-14 Yao Qi <yao@codesourcery.com>
12458 * target.h (target_xfer_partial_ftype): Update.
12459 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12461 * aix-thread.c (aix_thread_xfer_partial): Change type of
12462 argument 'len' to ULONGEST.
12463 * auxv.c (procfs_xfer_auxv): Likewise.
12464 (ld_so_xfer_auxv): Likewise.
12465 (memory_xfer_auxv): Likewise.
12466 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12467 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12468 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12469 * corelow.c (core_xfer_partial): Likewise.
12470 * ctf.c (ctf_xfer_partial): Likewise.
12471 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12473 (darwin_read_dyld_info): Likewise.
12474 (darwin_xfer_partial): Likewise.
12475 * exec.c (section_table_xfer_memory_partial): Likewise.
12476 (exec_xfer_partial): Likewise.
12477 * exec.h (section_table_xfer_memory_partial): Update
12479 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12480 instead of plongest.
12481 (gnu_xfer_partial): Likewise.
12482 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12483 (ia64_hpux_xfer_solib_got): Likewise.
12484 (ia64_hpux_xfer_partial): Likewise.
12485 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12486 * inf-ptrace.c (inf_ptrace_xfer_partial):
12487 * inf-ttrace.c (inf_ttrace_xfer_partial):
12488 * linux-nat.c (linux_xfer_siginfo): Likewise.
12489 (linux_nat_xfer_partial): Likewise.
12490 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12491 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12492 * monitor.c (monitor_xfer_memory): Likewise.
12493 (monitor_xfer_partial): Likewise.
12494 * procfs.c (procfs_xfer_partial): Likewise.
12495 * record-full.c (record_full_xfer_partial): Likewise.
12496 (record_full_core_xfer_partial): Likewise.
12497 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12498 instead of plongest.
12499 (gdbsim_xfer_partial): Likewise.
12500 * remote.c (remote_xfer_partial): Likewise.
12501 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12502 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12504 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12505 (rs6000_xfer_shared_libraries): Likewise.
12506 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12507 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12508 (sparc_xfer_partial): Likewise.
12509 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12510 (spu_xfer_partial): Likewise.
12511 * spu-multiarch.c (spu_xfer_partial): Likewise.
12512 * target.c (target_read_live_memory): Likewise.
12513 (memory_xfer_live_readonly_partial): Likewise.
12514 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12515 (target_xfer_partial, default_xfer_partial): Likewise.
12516 (current_xfer_partial): Likewise.
12517 * tracepoint.c (tfile_xfer_partial): Likewise.
12518 * windows-nat.c (windows_xfer_memory): Likewise. Call
12519 pulongest instead of plongest.
12520 (windows_xfer_partial): Likewise.
12521 (windows_xfer_shared_libraries): Likewise.
12523 2014-01-14 Yao Qi <yao@codesourcery.com>
12525 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12526 target_xfer_partial_ftype.
12528 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12532 * valops.c (value_struct_elt_bitpos): New function
12533 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12534 object to 'None' if the field name is an empty string ("").
12535 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12536 attribute to look for a field when 'name' is 'None'.
12537 (get_field_type): New function
12539 2014-01-13 Doug Evans <dje@google.com>
12542 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12543 (try_open_dwop_file): Ditto.
12544 * gdb_bfd.c: #include "vec.h".
12545 (bfdp): New typedef.
12546 (struct gdb_bfd_data): New member included_bfds.
12547 (gdb_bfd_unref): Unref all included bfds.
12548 (gdb_bfd_record_inclusion): New function.
12549 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12551 2014-01-13 Tom Tromey <tromey@redhat.com>
12553 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12555 2014-01-13 Tom Tromey <tromey@redhat.com>
12557 * defs.h (use_windows): Remove.
12558 * gdb.c (main): Update.
12559 * main.c (captured_main, gdb_main): Update.
12560 * main.h (struct captured_main_args) <use_windows>: Remove.
12561 * top.c (use_windows): Remove.
12563 2014-01-13 Tom Tromey <tromey@redhat.com>
12565 * defs.h (deprecated_flush_hook): Remove.
12567 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12570 * linux-thread-db.c (try_thread_db_load): Add parameter
12571 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12572 (try_thread_db_load_from_pdir_1): Move it there from here.
12573 (try_thread_db_load_from_sdir): Update caller.
12574 (try_thread_db_load_from_dir): Move it there from here.
12576 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12578 * regformats/regdat.sh: Always rewrite the register file.
12580 2014-01-13 Pedro Alves <palves@redhat.com>
12582 * Makefile.in (CHECK_HEADERS): New variable.
12583 (check-headers:): New rule.
12585 2014-01-13 Tom Tromey <tromey@redhat.com>
12587 * cli/cli-setshow.c (do_set_command): Update.
12588 * defs.h (deprecated_set_hook): Remove.
12589 * top.c (deprecated_set_hook): Remove.
12591 2014-01-13 Pedro Alves <palves@redhat.com>
12593 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12594 the tracepoint if the PC is a pseudo-register.
12596 2014-01-13 Tom Tromey <tromey@redhat.com>
12598 * defs.h (XCALLOC): Remove.
12599 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12600 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12601 * dwarf2loc.c (allocate_piece_closure): Likewise.
12602 * elfread.c (elf_symfile_segments): Likewise.
12603 (elf_symfile_segments): Likewise.
12604 * gdbtypes.c (copy_type_recursive): Likewise.
12605 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12606 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12607 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12609 * mt-tdep.c (mt_gdbarch_init): Likewise.
12610 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12612 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12613 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12614 * registry.c (registry_alloc_data): Likewise.
12615 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12616 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12617 * serial.c (serial_fdopen_ops): Likewise.
12618 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12620 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12621 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12624 2014-01-13 Tom Tromey <tromey@redhat.com>
12626 * defs.h (XMALLOC): Remove.
12627 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12628 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12629 * cli-out.c (struct ui_out *): Likewise.
12630 * cli/cli-dump.c (add_dump_command): Likewise.
12631 (add_dump_command): Likewise.
12632 * complaints.c (get_complaints): Likewise.
12633 (find_complaint): Likewise.
12634 * dwarf2-frame.c (execute_cfa_program): Likewise.
12635 * dwarf2read.c (abbrev_table_read_table): Likewise.
12636 * gdbarch.sh: Likewise.
12637 * gdbarch.c: Rebuild.
12638 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12639 * interps.c (interp_new): Likewise.
12640 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12641 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12642 * mi/mi-console.c (mi_console_file_new): Likewise.
12643 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12644 * mi/mi-out.c (mi_out_new): Likewise.
12645 * mi/mi-parse.c (mi_parse): Likewise.
12646 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12647 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12648 * observer.c (xalloc_observer_list_node): Likewise.
12649 * regcache.c (regcache_xmalloc_1): Likewise.
12650 * reggroups.c (reggroup_new): Likewise.
12651 (_initialize_reggroup): Likewise.
12652 * registry.c (register_data_with_cleanup): Likewise.
12653 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12654 * ser-base.c (serial_ttystate): Likewise.
12655 * ser-mingw.c (make_pipe_state): Likewise.
12656 * ser-pipe.c (pipe_open): Likewise.
12657 * serial.c (serial_open): Likewise.
12658 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12659 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12660 (tui_alloc_win_info): Likewise.
12661 (tui_add_content_elements): Likewise.
12662 * tui/tui-file.c (tui_file_new): Likewise.
12663 * tui/tui-out.c (tui_out_new): Likewise.
12664 * ui-file.c (mem_file_new): Likewise.
12665 * ui-out.c (push_level): Likewise.
12666 (make_cleanup_ui_out_end): Likewise.
12667 (append_header_to_list): Likewise.
12668 (ui_out_new): Likewise.
12669 * user-regs.c (user_reg_add_builtin): Likewise.
12671 2014-01-13 Tom Tromey <tromey@redhat.com>
12673 * defs.h (XZALLOC): Remove.
12674 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12675 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12676 (get_ada_tasks_inferior_data): Likewise.
12677 * auto-load.c (get_auto_load_pspace_data): Likewise.
12678 * auxv.c (get_auxv_inferior_data): Likewise.
12679 * bfd-target.c (target_bfd_reopen): Likewise.
12680 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12681 (deprecated_insert_raw_breakpoint): Likewise.
12682 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12683 * corelow.c (core_open): Likewise.
12684 * darwin-nat.c (darwin_check_new_threads): Likewise.
12685 (darwin_attach_pid): Likewise.
12686 * dummy-frame.c (dummy_frame_push): Likewise.
12687 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12688 * dwarf2loc.c (allocate_piece_closure): Likewise.
12689 * elfread.c (elf_symfile_segments): Likewise.
12690 * eval.c (ptrmath_type_p): Likewise.
12691 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12692 * gdbtypes.c (alloc_type_arch): Likewise.
12693 (alloc_type_instance): Likewise.
12694 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12695 * inf-child.c (inf_child_can_use_agent): Likewise.
12696 * inflow.c (get_inflow_inferior_data): Likewise.
12697 * infrun.c (save_infcall_suspend_state): Likewise.
12698 * jit.c (jit_reader_load): Likewise.
12699 (get_jit_objfile_data): Likewise.
12700 (get_jit_program_space_data): Likewise.
12701 (jit_object_open_impl): Likewise.
12702 (jit_symtab_open_impl): Likewise.
12703 (jit_block_open_impl): Likewise.
12704 (jit_frame_sniffer): Likewise.
12705 * linux-fork.c (add_fork): Likewise.
12706 * maint.c (make_command_stats_cleanup): Likewise.
12707 * objfiles.c (get_objfile_pspace_data): Likewise.
12708 * opencl-lang.c (struct lval_closure): Likewise.
12709 * osdata.c (osdata_start_osdata): Likewise.
12710 * progspace.c (new_address_space): Likewise.
12711 (add_program_space): Likewise.
12712 * remote-sim.c (get_sim_inferior_data): Likewise.
12713 * sh-tdep.c (sh_gdbarch_init): Likewise.
12714 * skip.c (Ignore): Likewise.
12715 (skip_delete_command): Likewise.
12716 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12717 (library_list_start_library): Likewise.
12718 (solib_aix_current_sos): Likewise.
12719 * solib-darwin.c (get_darwin_info): Likewise.
12720 (darwin_current_sos): Likewise.
12721 * solib-dsbt.c (get_dsbt_info): Likewise.
12722 * solib-ia64-hpux.c (new_so_list): Likewise.
12723 (ia64_hpux_get_solib_linkage_addr): Likewise.
12724 * solib-spu.c (append_ocl_sos): Likewise.
12725 (spu_current_sos): Likewise.
12726 * solib-svr4.c (get_svr4_info): Likewise.
12727 (svr4_keep_data_in_core): Likewise.
12728 (library_list_start_library): Likewise.
12729 (svr4_default_sos): Likewise.
12730 (svr4_read_so_list): Likewise.
12731 * solib-target.c (library_list_start_library): Likewise.
12732 (solib_target_current_sos): Likewise.
12733 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12734 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12735 * symfile.c (default_symfile_segments): Likewise.
12736 * target-descriptions.c (tdesc_data_init): Likewise.
12737 (tdesc_create_reg): Likewise.
12738 (struct tdesc_type *): Likewise.
12739 (tdesc_create_vector): Likewise.
12740 (tdesc_set_struct_size): Likewise.
12741 (struct tdesc_type *): Likewise.
12742 (tdesc_free_feature): Likewise.
12743 (tdesc_create_feature): Likewise.
12744 * windows-nat.c (windows_add_thread): Likewise.
12745 (windows_make_so): Likewise.
12746 * xml-support.c (gdb_xml_body_text): Likewise.
12747 (gdb_xml_create_parser_and_cleanup): Likewise.
12748 (xml_process_xincludes): Likewise.
12749 * xml-syscall.c (allocate_syscalls_info): Likewise.
12750 (syscall_create_syscall_desc): Likewise.
12752 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12754 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12755 function, with code from i386_stap_parse_special_token.
12756 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12757 (i386_stap_parse_special_token): Move code to the two functions
12758 above; simplify it.
12760 2014-01-09 Pedro Alves <palves@redhat.com>
12761 Hui Zhu <hui@codesourcery.com>
12764 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12765 bp_err_string. Don't mark the location shlib_disabled if the
12766 error thrown wasn't a generic or memory error. Catch errors
12767 thrown while inserting breakpoints in overlayed code. Output
12768 error message of software breakpoints.
12769 * remote.c (remote_insert_breakpoint): If this breakpoint has
12770 target-side commands but this stub doesn't support Z0 packets,
12771 throw NOT_SUPPORTED_ERROR error.
12772 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12773 * target.h (target_insert_breakpoint): Extend comment.
12774 (target_insert_hw_breakpoint): Add comment.
12776 2014-01-08 Pedro Alves <palves@redhat.com>
12778 * remote.c (remote_add_thread): Add threads silently if starting
12780 (remote_notice_new_inferior): If in all-stop, and starting up,
12781 don't call notice_new_inferior.
12782 (get_current_thread): New function, factored out from ...
12783 (add_current_inferior_and_thread): ... this. Adjust.
12784 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12785 found any thread, then select the remote's current thread as GDB's
12786 current thread too.
12788 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12790 * NEWS: Create a new section for the next release branch.
12791 Rename the section of the current branch, now that it has
12794 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12796 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12797 * version.in: Bump version to 7.7.50.DATE-cvs.
12799 2014-01-08 Yao Qi <yao@codesourcery.com>
12801 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12802 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12803 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12805 2014-01-08 Yao Qi <yao@codesourcery.com>
12807 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12808 return value of bfd_get_filename to symbol_file_add_from_bfd.
12810 2014-01-08 Pierre Muller <muller@sourceware.org>
12813 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12814 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12815 to prim_record_mininal_symbol_and_info.
12816 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12817 in call to prim_record_minimal_symbol_and_info.
12818 (read_pe_exported_syms): Set index field of section_data.
12820 2014-01-07 Andrew Pinski <apinski@cavium.com>
12822 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12823 * features/aarch64.c: Regenerate.
12825 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12827 * target.c (return_null): Define.
12828 (update_current_target): Use it instead of return_zero for
12829 functions that return a pointer.
12831 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12833 * source.c (add_path): Fix check for duplicated paths in the previously
12836 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12838 * ada-lang.c: Remove duplicated include statements.
12839 * alphabsd-nat.c: Ditto.
12840 * amd64-darwin-tdep.c: Ditto.
12841 * amd64fbsd-nat.c: Ditto.
12842 * auto-load.c: Ditto.
12844 * breakpoint.c: Ditto.
12845 * dbxread.c: Ditto.
12846 * fork-child.c: Ditto.
12847 * gdb_usleep.c: Ditto.
12848 * i386-darwin-tdep.c: Ditto.
12849 * i386fbsd-nat.c: Ditto.
12851 * inferior.c: Ditto.
12852 * jv-lang.c: Ditto.
12853 * linux-nat.c: Ditto.
12854 * linux-tdep.c: Ditto.
12855 * m68kbsd-nat.c: Ditto.
12856 * m68klinux-nat.c: Ditto.
12857 * microblaze-tdep.c: Ditto.
12858 * mips-linux-tdep.c: Ditto.
12859 * mn10300-tdep.c: Ditto.
12860 * nto-tdep.c: Ditto.
12861 * opencl-lang.c: Ditto.
12863 * printcmd.c: Ditto.
12864 * regcache.c: Ditto.
12865 * remote-m32r-sdi.c: Ditto.
12867 * symfile.c: Ditto.
12869 * tilegx-linux-nat.c: Ditto.
12870 * tilegx-tdep.c: Ditto.
12871 * tracepoint.c: Ditto.
12873 * vaxbsd-nat.c: Ditto.
12874 * windows-nat.c: Ditto.
12875 * xtensa-tdep.c: Ditto.
12877 2014-01-07 Yao Qi <yao@codesourcery.com>
12879 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12881 2014-01-07 Yao Qi <yao@codesourcery.com>
12882 Joel Brobecker <brobecker@adacore.com>
12884 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12885 (pdc_write_regs): Likewise.
12886 (fetch_regs_kernel_thread): Likewise.
12887 (store_regs_kernel_thread): Likewise.
12889 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12891 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12892 tagged type objects to their actual type.
12894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12896 * ada-valprint.c (print_field_values): Add "language" parameter.
12897 Update calls to print_field_values and print_variant_part.
12898 Pass new parameter "language" in call to val_print instead
12899 of "current_language". Replace call to ada_val_print by call
12901 (print_variant_part): Add "language" parameter.
12902 (ada_val_print_struct_union): Update call to print_field_values.
12904 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12906 * ada-valprint.c (ui_memcpy): Delete.
12907 (ada_print_floating): Update documentation. Add empty line
12908 between between function documentation and implementation.
12909 Delete variable "buffer". Use ui_file_xstrdup in place of
12910 ui_file_put. Minor adjustments following this change.
12912 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12914 * ada-valprint.c (ada_val_print_string): New function,
12915 extracted from ada_val_print_array.
12916 (ada_val_print_array): Replace extracted code by call
12917 to ada_val_print_string followed by a return. Move
12918 "else" branch to the function's top block.
12920 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12922 * ada-valprint.c (ada_val_print_array): Move implementation
12923 down. Rename parameter "offset" and "val" into "offset_aligned"
12924 and "original_value" respectively. Add parameter "offset".
12926 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12928 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12929 re-organizing the code. Change the "???" message printed
12930 when target type is a TYPE_CODE_UNDEF into
12931 "<ref to undefined type>".
12933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12935 * ada-valprint.c (print_record): Delete, implementation inlined...
12936 (ada_val_print_struct_union): ... here. Remove call to
12937 ada_check_typedef in inlined implementation.
12939 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12941 * ada-valprint.c (ada_val_print_gnat_array): New function,
12942 extracted from ada_val_print_1;
12943 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12944 (ada_val_print_flt, ada_val_print_struct_union)
12945 (ada_val_print_ref): Likewise.
12946 (ada_val_print_1): Delete variables i and elttype.
12947 Replace extracted-out code by call to corresponding
12950 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12952 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12954 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12956 * ada-valprint.c (ada_val_print_1): Replace calls to
12957 ada_val_print_1 by calls to val_print.
12959 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12961 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12962 Update calls to self accordingly. Replace calls to c_val_print
12963 by calls to val_print.
12965 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12967 * ada-valprint.c (print_record): Delete declaration.
12968 (adjust_type_signedness, ada_val_print_1): Likewise.
12969 (ada_val_print): Move function implementation down.
12970 (print_variant_part, print_field_values, print_record):
12971 Move function implementation up.
12973 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12975 * python/py-type.c (typy_get_name): New function.
12976 (type_object_getset): Add entry for attribute "name".
12977 * NEWS: Add entry mentioning this new attribute.
12979 2014-01-07 Yao Qi <yao@codesourcery.com>
12981 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12984 2014-01-07 Yao Qi <yao@codesourcery.com>
12986 * gnu-nat.c (info_port_rights): Add qualifier const to
12989 2014-01-07 Yao Qi <yao@codesourcery.com>
12991 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12993 2014-01-07 Yao Qi <yao@codesourcery.com>
12995 * gnu-nat.c (make_inf) Update declaration.
12996 (make_inf): Make it static.
12997 (inf_set_traced): Likewise.
12998 (inf_port_to_thread, inf_task_died_status): Likewise.
13000 2014-01-07 Yao Qi <yao@codesourcery.com>
13002 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13004 2014-01-07 Yao Qi <yao@codesourcery.com>
13006 * gnu-nat.c (_initialize_gnu_nat): Declare.
13008 2014-01-07 Yao Qi <yao@codesourcery.com>
13010 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13012 (struct gdbarch_info) <byte_order>: Change type to
13014 <byte_order_for_code>: Likewise.
13015 * gdbarch.c, gdbarch.h: Regenerated.
13017 2014-01-06 Sasha Smundak <asmundak@google.com>
13019 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13021 2014-01-06 Tom Tromey <tromey@redhat.com>
13023 * doublest.c (convert_doublest_to_floatformat): Use const, not
13025 * somread.c (som_symtab_read): Likewise.
13027 2014-01-07 Hui Zhu <hui@codesourcery.com>
13029 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13030 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13031 (gdb_bfd_fopen): Ditto.
13032 (gdb_bfd_openr): Ditto.
13033 (gdb_bfd_openw): Ditto.
13034 (gdb_bfd_openr_iovec): Ditto.
13035 (gdb_bfd_fdopenr): Ditto.
13036 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13037 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13039 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13041 * symfile-mem.c (symbol_file_add_from_memory): Removed
13042 gdb_bfd_stash_filename.
13044 2014-01-03 Doug Evans <dje@google.com>
13046 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13049 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13051 Update year range in copyright notice of all files.
13053 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13055 * top.c (print_gdb_version): Set copyright year to 2014.
13057 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13059 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13061 For older changes see ChangeLog-2013.
13067 version-control: never