1 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
3 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
6 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
8 * objc-lang.c (find_implementation_from_class): Remove dead code.
10 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
13 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
14 "fprintf_unfiltered (gdb_stdlog...)".
16 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
19 * breakpoint.h (struct watchpoint): New fields val_bitpos and
21 * breakpoint.c (watch_command_1): Use these fields to retain
23 (extract_bitfield_from_watchpoint_value): New function.
24 (watchpoint_check): Use it.
25 (update_watchpoint): Use it. Optimize the address and length of a
26 HW watchpoint pointing to a bitfield.
27 * value.h (unpack_value_bitfield): New prototype.
28 * value.c (unpack_value_bitfield): Make extern.
30 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
32 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
34 * gnu-nat.c (inf_threads): New function.
35 * gnu-nat.h (inf_threads_ftype): New typedef.
36 (inf_threads): New declaration.
37 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
38 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
39 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
40 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
41 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
42 (i386_gnu_dr_get_control): New functions.
43 (reg_addr): New structure.
44 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
45 i386 debugging register hooks.
48 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
50 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
51 vector data transfer instructions.
52 (arm_record_coproc_data_proc): Updated.
54 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
56 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
57 arm_record_exreg_ld_st_insn.
58 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
61 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
63 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
64 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
65 processing instructions.
67 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
69 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
70 for advance SIMD struct ld/st insn.
71 (thumb2_record_decode_insn_handler): Replace stub handler with
72 thumb2_record_asimd_struct_ld_st.
74 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
76 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
77 for asimd, vfp and coprocessor insns.
78 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
79 and coprocessor insns.
80 (thumb2_record_coproc_insn): New function.
81 (thumb2_record_decode_insn_handler): Update coprocessor insns record
83 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
86 2014-09-13 Doug Evans <xdje42@gmail.com>
88 * NEWS: Mention new "queue-signal" command.
89 * infcmd.c (queue_signal_command): New function.
90 (_initialize_infcmd): Add new queue-signal command.
92 2014-09-13 Doug Evans <xdje42@gmail.com>
94 * linux-nat.c (wait_lwp): Add debugging printf.
95 (linux_nat_wait_1): Ditto.
97 2014-09-12 Pedro Alves <palves@redhat.com>
99 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
100 (create_and_insert_solib_event_breakpoint): New functions.
101 * breakpoint.h (create_and_insert_solib_event_breakpoint)
102 (remove_solib_event_breakpoints_at_next_stop): New declarations.
103 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
104 (remove_dbx_link_breakpoint): Delete function.
105 (insert_dbx_link_bpt_in_file): Use
106 create_and_insert_solib_event_breakpoint instead of
107 deprecated_insert_raw_breakpoint.
108 (procfs_wait): Don't check whether we hit __dbx_link here.
109 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
111 * solib-irix.c (base_breakpoint): Delete global.
112 (disable_break): Delete function.
113 (enable_break): Use create_solib_event_breakpoint
114 instead of deprecated_insert_raw_breakpoint.
115 (irix_solib_handle_event): New function.
116 (irix_solib_create_inferior_hook): Don't run the target or disable
117 the mapping-complete breakpoint here.
118 (_initialize_irix_solib): Install irix_solib_handle_event as
119 so_ops->handle_event hook.
121 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
122 Ulrich Weigand <uweigand@de.ibm.com>
125 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
126 instead of read_memory_unsigned_integer.
128 2014-09-12 Gary Benson <gbenson@redhat.com>
130 * nat/linux-waitpid.c: Include common-defs.h.
131 [GDBSERVER]: Add FIXME comment.
132 [!GDBSERVER]: Don't include defs.h or signal.h.
133 (linux_debug) [!GDBSERVER]: Remove empty block.
135 2014-09-12 Gary Benson <gbenson@redhat.com>
137 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
138 Don't include defs.h or server.h.
140 2014-09-12 Gary Benson <gbenson@redhat.com>
142 * nat/linux-btrace.c: Include common-defs.h.
143 Don't include defs.h, server.h or gdbthread.h.
144 * nat/linux-btrace.h (struct target_ops): New forward declaration.
146 2014-09-12 Gary Benson <gbenson@redhat.com>
148 * common/agent.c: Include common-defs.h.
149 Don't include defs.h or server.h.
150 * common/buffer.c: Likewise.
151 * common/common-debug.c: Likewise.
152 * common/common-utils.c: Likewise.
153 * common/errors.c: Likewise.
154 * common/filestuff.c: Likewise.
155 * common/format.c: Likewise.
156 * common/gdb_vecs.c: Likewise.
157 * common/print-utils.c: Likewise.
158 * common/ptid.c: Likewise.
159 * common/rsp-low.c: Likewise.
160 * common/signals.c: Likewise.
161 * common/vec.c: Likewise.
162 * common/xml-utils.c: Likewise.
163 * nat/linux-osdata.c: Likewise.
164 * nat/linux-procfs.c: Likewise.
165 * nat/linux-ptrace.c: Likewise.
166 * nat/mips-linux-watch.c: Likewise.
167 * target/waitstatus.c: Likewise.
169 2014-09-12 Tom Tromey <tromey@redhat.com>
170 Gary Benson <gbenson@redhat.com>
172 * common/common-regcache.h: New file.
173 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
174 * regcache.h: Include common-regcache.h.
175 (regcache_read_pc): Don't declare.
176 * regcache.c (get_thread_regcache_for_ptid): New function.
177 * nat/linux-btrace.c: Don't include regcache.h.
178 Include common-regcache.h.
179 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
181 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
183 * regcache.h (struct regset): Declare.
185 2014-09-11 Pedro Alves <palves@redhat.com>
188 * main.c: Include "infrun.h".
189 (catch_command_errors, catch_command_errors_const): Wait for the
190 foreground command to complete.
191 * top.c (maybe_wait_sync_command_done): New function, factored out
193 (maybe_wait_sync_command_done): ... here.
194 * top.h (maybe_wait_sync_command_done): New declaration.
196 2014-09-11 Tom Tromey <tromey@redhat.com>
197 Gary Benson <gbenson@redhat.com>
199 * common/symbol.h: New file.
200 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
201 * minsyms.c (find_minimal_symbol_address): New function.
202 * common/agent.c: Include common/symbol.h.
203 [!GDBSERVER]: Don't include objfiles.h.
204 (agent_look_up_symbols): Use find_minimal_symbol_address.
206 2014-09-11 Gary Benson <gbenson@redhat.com>
208 * target/target.h (target_stop_ptid, target_continue_ptid):
210 * target.c (target_stop_ptid, target_continue_ptid): New
212 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
213 (agent_run_command): Always use target_stop_ptid and
214 target_continue_ptid.
216 2014-09-11 Tom Tromey <tromey@redhat.com>
217 Gary Benson <gbenson@redhat.com>
219 * target/target.h: New file.
220 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
221 * target.h: Include target/target.h.
222 (target_read_memory, target_write_memory): Don't declare.
223 * target.c (target_read_uint32): New function.
224 * common/agent.c: Include target/target.h.
225 [!GDBSERVER]: Don't include target.h.
226 (helper_thread_id): Type changed to uint32_t.
227 (agent_get_helper_thread_id): Use target_read_uint32.
228 (agent_run_command): Always use target_read_memory and
230 (agent_capability): Type changed to uint32_t.
231 (agent_capability_check): Use target_read_uint32.
233 2014-09-11 Gary Benson <gbenson@redhat.com>
235 * common/common-debug.h (show_debug_regs): Declare.
236 * common/common-debug.c (show_debug_regs): Define.
237 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
238 all uses with show_debug_regs. Replace all uses that considered
239 debug_hw_points as a multi-value integer with straight boolean
241 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
242 with show_debug_regs.
243 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
244 all uses with show_debug_regs.
245 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
246 uses with show_debug_regs.
248 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
250 * findvar.c (address_from_register): Handle targets requiring
251 a special conversion routine even for plain pointer types.
253 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
255 * rs6000-nat.c (exec_one_dummy_insn): Remove.
256 (store_register): Do not call exec_one_dummy_insn.
258 2014-09-10 Joel Brobecker <brobecker@adacore.com>
260 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
261 dereference it first. Use value_enclosing_type instead of
263 (ada_array_length): Likewise.
265 2014-09-10 Joel Brobecker <brobecker@adacore.com>
267 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
268 Adjust function implementation and documentation accordingly.
269 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
270 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
271 Update call to ada_value_ptr_subscript.
273 2014-09-10 Joel Brobecker <brobecker@adacore.com>
275 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
276 instead of VAL's type.
278 2014-09-10 Joel Brobecker <brobecker@adacore.com>
280 * amd64-linux-nat.c: Add <sys/uio.h> #include.
282 2014-09-09 Doug Evans <xdje42@gmail.com>
285 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
286 last parameter to pkg-config, not first.
287 * configure.ac: Pass --with-guile provided pkg-config path to
288 GDB_GUILE_PROGRAM_NAMES.
289 * configure: Regenerate.
291 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
293 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
296 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
298 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
299 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
300 the list of sections determining GDB_OSABI_IRIX.
302 2014-09-09 James Hogan <james.hogan@imgtec.com>
304 * MAINTAINERS (Write After Approval): Add "James Hogan".
306 2014-09-09 James Hogan <james.hogan@imgtec.com>
308 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
310 2014-09-09 Joel Brobecker <brobecker@adacore.com>
312 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
314 2014-09-08 Doug Evans <xdje42@gmail.com>
317 * guile.c: #include <signal.h>.
318 (_initialize_guile): Block SIGCHLD while initializing Guile.
320 Replaces the following, which is reverted.
322 2014-07-26 Doug Evans <xdje42@gmail.com>
325 * configure.ac: Add check for header gc/gc.h.
326 Add check for function setenv.
327 * configure: Regenerate.
328 * config.in: Regenerate.
329 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
331 2014-09-08 Doug Evans <xdje42@gmail.com>
333 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
334 with named constant. Fix style of pointer comparison.
335 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
337 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
340 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
341 decide whether we display the command on "show user".
342 * cli/cli-script.c (show_user_1): Only verify cmdlines after
343 printing command name.
344 * cli/cli-decode.h (cli_user_command_p): Declare new function.
345 * cli/cli-decode.c (cli_user_command_p): Create helper function
346 to verify whether cmd_list_element is a user-defined command.
348 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
351 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
352 Fix goto out of TRY_CATCH.
354 2014-09-06 Doug Evans <xdje42@gmail.com>
355 Tom Tromey <tromey@redhat.com>
358 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
359 $_any_caller_matches.
360 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
361 * python/lib/gdb/function/caller_is.py: New file.
363 2014-09-06 Doug Evans <xdje42@gmail.com>
365 * infcmd.c (program_info): Fix typo.
367 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
370 * stap-probe.c (stap_parse_single_operand): Delete unused variable
371 'number'. New variable 'has_digit'. Rewrite code to deal with
372 subexpressions on SDT probes.
374 2014-09-04 Pedro Alves <palves@redhat.com>
376 * c-exp.y (parse_number): Skip handling base-switching prefixes if
377 the input is only one character long.
379 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
382 * f-valprint.c (f_val_print): Specify the correct print option to
383 use when printing integer values.
385 2014-09-04 Gary Benson <gbenson@redhat.com>
387 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
388 Remove code to cope with LWPs wrapped as PIDs.
389 Add assertions to ensure no wrapped LWPs are passed.
391 2014-09-04 Pedro Alves <palves@redhat.com>
393 * value.c (value_ranges_copy_adjusted): New function, factored out
395 (value_contents_copy_raw): ... here.
396 (unpack_value_bits_as_long_1): Rename back to ...
397 (unpack_bits_as_long): ... this. Remove 'original_value' and
398 'result' parameters. Change return type to LONGEST.
399 (unpack_value_bits_as_long): Delete.
400 (unpack_value_field_as_long_1): Delete.
401 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
402 (unpack_value_bitfield): New function.
403 (value_field_bitfield): Reimplement using unpack_value_bitfield.
404 (value_fetch_lazy): Use unpack_value_bitfield.
405 * value.h (unpack_value_bits_as_long): Delete declaration.
407 2014-09-03 Sasha Smundak <asmundak@google.com>
409 * python/py-frame.c (frapy_read_register): New function.
411 2014-09-03 James Hogan <james.hogan@imgtec.com>
413 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
414 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
416 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
419 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
421 (add_cmd): Set "completer_handle_brkchars" to NULL.
422 * cli/cli-decode.h (struct cmd_list_element)
423 <completer_handle_brkchars>: New field.
424 * command.h (completer_ftype_void): New typedef.
425 (set_cmd_completer_handle_brkchars): New prototype.
426 * completer.c (set_gdb_completion_word_break_characters): New
428 (complete_line_internal): Call "completer_handle_brkchars"
429 callback from command.
430 * completer.h: Include "command.h".
431 (set_gdb_completion_word_break_characters): New prototype.
432 * python/py-cmd.c (cmdpy_completer_helper): New function.
433 (cmdpy_completer_handle_brkchars): New function.
434 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
435 (cmdpy_init): Set completer_handle_brkchars to
436 cmdpy_completer_handle_brkchars.
438 2014-09-03 Gary Benson <gbenson@redhat.com>
440 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
441 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
442 Loop conditions changed to equivalent form.
443 (struct x86_debug_reg_state): Updated dr_ref_count comment.
444 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
445 ALL_DEBUG_ADDRESS_REGISTERS.
447 2014-09-03 Joel Brobecker <brobecker@adacore.com>
449 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
452 2014-09-02 Doug Evans <dje@google.com>
454 * typeprint.c (find_global_typedef): Fix comment.
456 2014-09-02 Gary Benson <gbenson@redhat.com>
458 * i386-nat.h: Renamed as...
459 * x86-nat.h: New file. All type, function and variable name
460 prefixes changed from "i386_" to "x86_". All references updated.
461 * i386-nat.c: Renamed as...
462 * x86-nat.c: New file. All type, function and variable name
463 prefixes changed from "i386_" to "x86_". All references updated.
464 * common/i386-xstate.h: Renamed as...
465 * common/x86-xstate.h: New file. All type, function and variable
466 name prefixes changed from "i386_" to "x86_". All references
468 * nat/i386-cpuid.h: Renamed as...
469 * nat/x86-cpuid.h: New file. All type, function and variable name
470 prefixes changed from "i386_" to "x86_". All references updated.
471 * nat/i386-gcc-cpuid.h: Renamed as...
472 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
473 name prefixes changed from "i386_" to "x86_". All references
475 * nat/i386-dregs.h: Renamed as...
476 * nat/x86-dregs.h: New file. All type, function and variable name
477 prefixes changed from "i386_" to "x86_". All references updated.
478 * nat/i386-dregs.c: Renamed as...
479 * nat/x86-dregs.c: New file. All type, function and variable name
480 prefixes changed from "i386_" to "x86_". All references updated.
482 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
484 * varobj.c (_initialize_varobj): Move to the end of file.
486 2014-08-29 Gary Benson <gbenson@redhat.com>
488 * common/common-exceptions.h: New file.
489 * common/common-exceptions.c: Likewise.
490 * Makefile.in (SFILES): Add common/common-exceptions.c.
491 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
492 (COMMON_OBS): Add common-exceptions.o.
493 (common-exceptions.o): New rule.
494 * exceptions.h (common-exceptions.h): Include.
495 (gdb_setjmp.h): Do not include.
496 (return_reason): Moved to common-exceptions.h.
497 (enum return_reason): Likewise.
498 (RETURN_MASK): Likewise.
499 (typedef return_mask): Likewise.
500 (enum errors): Likewise.
501 (struct gdb_exception): Likewise.
502 (exceptions_state_mc_init): Likewise.
503 (exceptions_state_mc_action_iter): Likewise.
504 (exceptions_state_mc_action_iter_1): Likewise.
505 (TRY_CATCH): Likewise.
506 (throw_exception): Likewise.
507 (throw_verror): Likewise.
508 (throw_vquit): Likewise.
509 (throw_error): Likewise.
510 (throw_quit): Likewise.
511 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
512 (enum catcher_action): Likewise.
513 (struct catcher): Likewise.
514 (current_catcher): Likewise.
515 (catcher_list_size): Likewise.
516 (exceptions_state_mc_init): Likewise.
517 (catcher_pop): Likewise.
518 (exceptions_state_mc): Likewise.
519 (exceptions_state_mc_action_iter): Likewise.
520 (exceptions_state_mc_action_iter_1): Likewise.
521 (throw_exception): Likewise.
522 (exception_messages): Likewise.
523 (exception_messages_size): Likewise.
524 (throw_it): Likewise.
525 (throw_verror): Likewise.
526 (throw_vquit): Likewise.
527 (throw_error): Likewise.
528 (throw_quit): Likewise.
529 (prepare_to_throw_exception): New function.
531 2014-08-29 Gary Benson <gbenson@redhat.com>
533 * common/gdb_setjmp.h: New file.
534 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
535 * configure.ac: Move sigsetjmp check...
536 * common/common.m4: ...here.
537 * configure: Regenerate.
538 * cp-support.c (SIGJMP_BUF): Delete.
539 (SIGSETJMP): Likewise.
540 (SIGLONGJMP): Likewise.
541 * exceptions.h (gdb_setjmp.h): Include.
542 (setjmp.h): Do not include.
543 (EXCEPTIONS_SIGJMP_BUF): Delete.
544 (EXCEPTIONS_SIGSETJMP): Likewise.
545 (EXCEPTIONS_SIGLONGJMP): Likewise.
546 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
548 * exceptions.c: Likewise.
550 2014-08-29 Gary Benson <gbenson@redhat.com>
552 * cleanups.h: Moved to...
553 * common/cleanups.h: New file.
554 * cleanups.c: Moved to...
555 * common/cleanups.c: New file. Include common-defs.h and
556 cleanups.h. Do not include defs.h.
557 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
558 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
559 (cleanups.o): New rule.
561 2014-08-29 Gary Benson <gbenson@redhat.com>
563 * common/errors.h (internal_warning): New declaration.
564 (internal_vwarning): Likewise.
565 * common/errors.c (internal_warning): New function.
566 * utils.h (internal_warning): Don't declare.
567 (internal_vwarning): Likewise.
568 * utils.c (internal_warning): Removed.
570 2014-08-29 Gary Benson <gbenson@redhat.com>
572 * main.c (captured_main): Use warning during startup.
573 Prefix startup warning messages with command name.
575 2014-08-29 Gary Benson <gbenson@redhat.com>
577 * main.c (captured_main): Handle usage errors with error.
579 2014-08-29 Gary Benson <gbenson@redhat.com>
581 * go32-nat.c (go32_create_inferior): Replace a fprintf/
582 exit pair with a call to error. Wrap the message with _().
584 2014-08-29 Gary Benson <gbenson@redhat.com>
586 * main.c (captured_main): Replace a fprintf/exit
587 pair with a call to error. Wrap the message with _().
589 2014-08-29 Gary Benson <gbenson@redhat.com>
591 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
592 pairs with calls to error. Wrap the message with _().
594 2014-08-29 Gary Benson <gbenson@redhat.com>
596 * utils.c (vwarning): Protect calls to target_terminal_ours
599 2014-08-29 Gary Benson <gbenson@redhat.com>
601 * exceptions.c (print_flush): Protect calls to
602 target_terminal_ours and wrap_here.
604 2014-08-29 Gary Benson <gbenson@redhat.com>
606 * utils.h (filtered_printing_initialized): New declaration.
607 * utils.c (abort_with_message): New function.
608 (internal_vproblem): Use abort_with_message for first level
609 recursive internal problems, and if gdb_stderr is not set up.
610 Protect calls to target_terminal_ours, begin_line and query.
612 2014-08-28 Doug Evans <dje@google.com>
614 * symtab.c (in_prologue): Move definition to better spot.
615 (skip_prologue_using_sal): Ditto.
617 2014-08-28 Doug Evans <dje@google.com>
619 * symtab.c (find_function_start_sal): Move definition to better spot.
621 2014-08-28 Yao Qi <yao@codesourcery.com>
623 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
624 found_stack_adjust in forward scan. Remove condition check
625 on found_stack_adjust which is always true. Indent the code.
627 2014-08-28 Yao Qi <yao@codesourcery.com>
629 * dwarf2read.c (dwarf_decode_lines): Update declaration.
630 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
631 (dwarf_decode_lines): Remove argument
632 want_line_info. Remove condition check on want_line_info.
635 2014-08-27 Doug Evans <dje@google.com>
637 * dwarf2read.c (dwarf_record_line): Fix typo.
639 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
641 * target.h (struct target_ops::to_terminal_save_ours): Remove
643 (target_terminal_save_ours): Remove macro.
644 * target-delegates.c: Regenerate.
645 * inf-child.c (inf_child_target): Don't set the nonexistent
646 field to_terminal_save_ours.
647 * inferior.h (child_terminal_save_ours): Remove declaration.
648 * terminal.h (gdb_save_tty_state): New declaration.
649 * inflow.c (child_terminal_save_ours): Rename to ...
650 (gdb_save_tty_state): ... this.
651 * tui/tui.c: Include terminal.h.
652 (tui_enable): Use gdb_save_tty_state instead of
653 target_terminal_save_ours.
654 (tui_disable): Likewise.
656 2014-08-25 Doug Evans <dje@google.com>
658 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
659 Pass NULL instead of 0 for context pointer.
661 2014-08-25 Yao Qi <yao@codesourcery.com>
663 * dwarf2read.c: Fix grammatical error.
665 2014-08-24 Yao Qi <yao@codesourcery.com>
667 * dwarf2read.c (scan_partial_symbols): Update comments.
668 Rename argument 'need_pc' with 'set_addrmap'.
669 (add_partial_namespace): Rename argument 'need_pc' with
671 (add_partial_module): Likewise.
672 (add_partial_subprogram): Likewise. Update comments.
673 (dwarf2_name): Fix typo.
675 2014-08-22 Doug Evans <dje@google.com>
678 * dwarf2read.c (dwarf_record_line_p): New function.
679 (dwarf_decode_lines_1): Ignore subsequent line number entries
680 for the same line if any entry had a non-zero discriminator.
682 2014-08-22 Doug Evans <dje@google.com>
684 * buildsym.h (record_line_ftype): New typedef.
685 (record_line): Use it.
686 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
687 (dwarf_decode_lines_1): Call them.
689 2014-08-22 Yao Qi <yao@codesourcery.com>
691 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
692 (ctf_end): Remove code.
694 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
696 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
697 (linux_make_corefile_notes): call update_thread_list, protected against
700 2014-08-21 Pedro Alves <palves@redhat.com>
702 * infcmd.c (attach_command): Remove comment.
704 2014-08-21 Bin Cheng <bin.cheng@arm.com>
706 * aarch64-linux-nat.c (dr_changed_t): Change the type from
707 unsigned LONGEST to ULONGEST.
709 2014-08-20 Pedro Alves <palves@redhat.com>
711 * Makefile.in (check-read1): New rule.
713 2014-08-20 Joel Brobecker <brobecker@adacore.com>
715 * value.c (value_from_contents_and_address): Strip resolved_type's
716 typedef layers before checking its TYPE_DATA_LOCATION.
718 2014-08-20 Pedro Alves <palves@redhat.com>
720 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
722 2014-08-20 Yao Qi <yao@codesourcery.com>
724 * amd64-tdep.c (amd64_classify): Add a blank line after the
725 example. Move "*/" to a new line.
726 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
727 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
728 * dwarf2read.c (psymtab_include_file_name): Likewise.
730 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
731 Pedro Alves <palves@redhat.com>
735 * ada-lang.c (coerce_unspec_val_to_type): Use
736 value_contents_copy_raw.
737 * ada-valprint.c (val_print_packed_array_elements): Adjust.
738 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
739 * cp-valprint.c (cp_print_value_fields): Let the common printing
740 code handle optimized out values.
741 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
742 * d-valprint.c (dynamic_array_type): Use
743 value_bits_any_optimized_out.
744 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
745 check_any_valid fields.
746 (check_pieced_value_bits): Delete and inline ...
747 (check_pieced_synthetic_pointer): ... here.
748 (check_pieced_value_validity): Delete.
749 (check_pieced_value_invalid): Delete.
750 (pieced_value_funcs): Remove check_validity and check_any_valid
752 (read_pieced_value): Use mark_value_bits_optimized_out.
753 (write_pieced_value): Switch to use
754 mark_value_bytes_optimized_out.
755 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
756 of assuming the whole value is optimized out.
757 * findvar.c (read_frame_register_value): Remove special handling
758 of optimized out registers.
759 (value_from_register): Use mark_value_bytes_optimized_out.
760 * frame-unwind.c (frame_unwind_got_optimized): Use
761 mark_value_bytes_optimized_out.
762 * jv-valprint.c (java_value_print): Adjust.
763 (java_print_value_fields): Let the common printing code handle
764 optimized out values.
765 * mips-tdep.c (mips_print_register): Remove special handling of
766 optimized out registers.
767 * opencl-lang.c (lval_func_check_validity): Delete.
768 (lval_func_check_any_valid): Delete.
769 (opencl_value_funcs): Remove check_validity and check_any_valid
771 * p-valprint.c (pascal_object_print_value_fields): Let the common
772 printing code handle optimized out values.
773 * stack.c (read_frame_arg): Remove special handling of optimized
774 out values. Fetch both VAL and ENTRYVAL before comparing
775 contents. Adjust to value_available_contents_eq rename.
776 * valprint.c (valprint_check_validity)
777 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
778 (val_print_array_elements): Adjust.
779 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
780 (value_bits_any_optimized_out): New function.
781 (value_entirely_covered_by_range_vector): New function, factored
782 out from value_entirely_unavailable.
783 (value_entirely_unavailable): Reimplement.
784 (value_entirely_optimized_out): New function.
785 (insert_into_bit_range_vector): New function, factored out from
786 mark_value_bits_unavailable.
787 (mark_value_bits_unavailable): Reimplement.
788 (struct ranges_and_idx): New struct.
789 (find_first_range_overlap_and_match): New function, factored out
790 from value_available_contents_bits_eq.
791 (value_available_contents_bits_eq): Rename to ...
792 (value_contents_bits_eq): ... this. Check both unavailable
793 contents and optimized out contents.
794 (value_available_contents_eq): Rename to ...
795 (value_contents_eq): ... this.
796 (allocate_value_lazy): Remove reference to the old optimized_out
798 (allocate_optimized_out_value): Use
799 mark_value_bytes_optimized_out.
800 (require_not_optimized_out): Adjust to check whether the
801 optimized_out vec is empty.
802 (ranges_copy_adjusted): New function, factored out from
803 value_contents_copy_raw.
804 (value_contents_copy_raw): Also copy the optimized out ranges.
805 Assert the destination ranges aren't optimized out.
806 (value_contents_copy): Update comment, remove call to
807 require_not_optimized_out.
808 (value_contents_equal): Adjust to check whether the optimized_out
810 (set_value_optimized_out, value_optimized_out_const): Delete.
811 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
813 (value_entirely_optimized_out, value_bits_valid): Delete.
814 (value_copy): Take a VEC copy of the 'optimized_out' field.
815 (value_primitive_field): Remove special handling of optimized out.
816 (value_fetch_lazy): Assert that lazy values have no unavailable
817 regions. Use value_bits_any_optimized_out. Remove some special
818 handling for optimized out values.
819 * value.h: Add intro comment about <optimized out> and
821 (struct lval_funcs): Remove check_validity and check_any_valid
823 (set_value_optimized_out, value_optimized_out_const): Remove.
824 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
826 (value_bits_any_optimized_out): New declaration.
827 (value_bits_valid): Delete declaration.
828 (value_available_contents_eq): Rename to ...
829 (value_contents_eq): ... this, and extend comments.
831 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
833 Fix -fsanitize=address on unreadable inferior strings.
834 * valprint.c (val_print_string): Fix access before BUFFER.
836 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
838 * target.c (target_struct_size): Remove.
839 (target_struct_allocsize): Remove.
840 (DEFAULT_ALLOCSIZE): Remove.
841 (target_ops_p): New typedef.
842 (DEF_VEC_P (target_ops_p)): New vector type.
843 (target_structs): Change type to VEC (target_ops_p).
844 (add_target_with_completer): Replace "push" code by VEC_safe_push.
845 (find_default_run_target): Rewrite for loop following changes to
848 2014-08-19 Joel Brobecker <brobecker@adacore.com>
850 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
851 Adjust code accordingly. Adjust function description comment.
853 2014-08-19 Yao Qi <yao@codesourcery.com>
855 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
858 2014-08-19 Alan Modra <amodra@gmail.com>
860 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
861 * config.in: Regenerate.
862 * configure: Regenerate.
864 2014-08-19 Tom Tromey <tromey@redhat.com>
865 Gary Benson <gbenson@redhat.com>
867 * common/common-debug.h: New file.
868 * common/common-debug.c: Likewise.
870 * Makefile.in (SFILES): Add common/common-debug.c.
871 (HFILES_NO_SRCDIR): Add common/common-debug.h.
872 (COMMON_OBS): Add common-debug.o and debug.o.
873 (common-debug.o): New rule.
874 * common/common-defs.h: Include common-debug.h.
875 * common/agent.c (debug_agent_printf): New function.
876 (DEBUG_AGENT): Redefine.
877 * nat/i386-dregs.c (debug_printf): Undefine.
879 2014-08-19 Gary Benson <gbenson@redhat.com>
881 * common/common-defs.h: Include print-utils.h.
882 * utils.h: Do not include print-utils.h.
884 2014-08-19 Tom Tromey <tromey@redhat.com>
885 Gary Benson <gbenson@redhat.com>
887 * common/common-types.h: New file.
888 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
889 * common/common-defs.h: Include common-types.h.
890 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
893 2014-08-19 Tom Tromey <tromey@redhat.com>
894 Gary Benson <gbenson@redhat.com>
896 * common/errors.h: New file.
897 * common/errors.c: Likewise.
898 * Makefile.in (SFILES): Add common/errors.c.
899 (HFILES_NO_SRCDIR): Add common/errors.h.
900 (COMMON_OBS): Add errors.o.
901 (errors.o): New rule.
902 * common/common-defs.h: Include errors.h.
903 * utils.h (perror_with_name, error, verror, warning, vwarning):
905 * common/common-utils.h: (malloc_failure, internal_error):
908 2014-08-19 Gary Benson <gbenson@redhat.com>
910 * utils.c (internal_vproblem): Always print the message.
912 2014-08-18 Doug Evans <dje@google.com>
914 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
916 2014-08-18 Joel Brobecker <brobecker@adacore.com>
918 * ada-typeprint.c (type_is_full_subrange_of_target_type):
919 Return 0 if TYPE is dynamic.
920 (print_range): Add handling of dynamic ranges.
922 2014-08-18 Keven Boell <keven.boell@intel.com>
923 Joel Brobecker <brobecker@adacore.com>
925 * gdbtypes.h (struct main_type): Add field "data_location".
926 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
927 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
928 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
929 a dynamic data location.
930 (resolve_dynamic_type): Add DW_AT_data_location handling.
931 (copy_recursive, copy_type): Copy the data_location information
933 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
934 * value.c (value_from_contents_and_address): Add
935 DW_AT_data_location handling.
937 2014-08-18 Keven Boell <keven.boell@intel.com>
938 Joel Brobecker <brobecker@adacore.com>
940 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
941 field "get_object_address".
942 * dwarf2expr.c (execute_stack_op): Add handling for
943 DW_OP_push_object_address.
944 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
945 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
946 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
947 (dwarf_expr_get_obj_addr): New function.
948 (dwarf_expr_ctx_funcs): Add get_object_address field.
949 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
950 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
951 (dwarf2_evaluate_property): Add parameter "address". Use it.
952 (needs_get_obj_addr): New function.
953 (needs_frame_ctx_funcs): Add get_object_address field.
954 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
955 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
956 (resolve_dynamic_array): Likewise.
958 2014-08-18 Joel Brobecker <brobecker@adacore.com>
960 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
961 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
962 fixed value for records and unions for which some GNAT encodings
965 2014-08-18 Joel Brobecker <brobecker@adacore.com>
967 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
968 rewrite to avoid "else if" and "else" constructs. Should be
971 2014-08-18 Joel Brobecker <brobecker@adacore.com>
973 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
976 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
979 * eval.c: Update all calls to find_overload_match.
980 * valarith.c: Likewise.
981 (value_user_defined_cpp_op, value_user_defined_op): New
982 argument NOSIDE. Update all callers.
983 * valops.c (find_overload_match): New argument NOSIDE.
984 * value.h (find_overload_match): Update signature.
986 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
988 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
989 'items' methods instead of 'iteritems' method on dictionaries.
991 2014-08-15 Doug Evans <dje@google.com>
993 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
996 2014-08-15 Doug Evans <dje@google.com>
998 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1000 2014-08-15 Doug Evans <dje@google.com>
1002 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1004 2014-08-15 Doug Evans <dje@google.com>
1006 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1009 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1011 * dcache.h: Include target.h, to avoid compile time warnings.
1013 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1015 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1016 frame_info" partial declaration.
1017 * gdbarch.h: Regenerate.
1019 2014-08-15 Yao Qi <yao@codesourcery.com>
1021 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1022 Add parameter 'decode_for_pst_p'. Callers update.
1024 2014-08-13 Yao Qi <yao@codesourcery.com>
1027 * configure.ac: Use local variable 'pos'.
1028 * configure: Regenerated.
1030 2014-08-11 Doug Evans <dje@google.com>
1032 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1033 message, it is redundant with "Reading symbols from ..." message.
1035 2014-08-10 Doug Evans <xdje42@gmail.com>
1037 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1039 2014-08-09 Yao Qi <yao@codesourcery.com>
1042 * remote.c (remote_xfer_partial): Remove dead code.
1044 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1046 * ia64-linux-tdep.c: Include "regset.h".
1047 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1048 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1049 (ia64_linux_supply_fpregset): New function.
1050 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1051 (ia64_linux_regset_from_core_section): New function.
1052 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1055 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1057 * m68klinux-tdep.c: Include "regset.h".
1058 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1059 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1060 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1061 (m68k_linux_regset_from_core_section): New function.
1062 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1065 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1067 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1068 function. Move logic to...
1069 (tilegx_linux_regmap): ... this new register map.
1070 (tilegx_linux_regset): Refer to register map, replace supply
1071 method by regcache_supply_regset, and add collect method.
1072 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1073 TILEGX_FIRST_EASY_REGNUM.
1075 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1077 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1078 that calls regcache_supply_regset and handles the EPC register
1079 separately. Move main logic to...
1080 (score7_linux_gregmap): ... this new register map.
1081 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1082 (score7_linux_gregset): Refer to register map. Add collect method.
1083 (score7_linux_regset_from_core_section): Replace
1084 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1085 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1086 (struct regset): Delete unused forward declaraction.
1087 (struct pt_regs): Delete structure definition.
1088 (elf_gregset_t): Delete typedef.
1090 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1092 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1093 (nios2_core_regset): Add collect method.
1095 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1097 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1098 platform-independent and don't write to read-only input buffer.
1099 (m32r_linux_collect_gregset): New function.
1100 (m32r_linux_gregset): Add collect method.
1102 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1104 * hppa-linux-tdep.c (greg_map): Rename to...
1105 (hppa_linux_gregmap): ... this. Also convert to
1106 regcache_map_entry format.
1107 (hppa_linux_supply_regset): Delete function.
1108 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1109 (hppa_linux_fpregmap): ... this new register map.
1110 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1111 register map, replace supply method by regcache_supply_regset, and
1112 add collect method regcache_collect_regset.
1114 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1116 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1117 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1118 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1119 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1120 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1121 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1122 (frv_linux_supply_gregset): Replace main logic by call to
1123 regcache_supply_regset, but keep clearing gr32-gr63.
1124 (frv_linux_supply_fpregset): Delete function.
1125 (frv_linux_gregset): Refer to appropriate register map and add
1126 regcache_collect_regset as the collect method.
1127 (frv_linux_fpregset): Likewise. Also exchange the supply method
1128 by regcache_supply_regset.
1130 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1132 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1133 by call to alpha_supply_int_regs.
1134 (alpha_linux_collect_gregset): New function.
1135 (alpha_linux_supply_fpregset): Replace logic by call to
1136 alpha_supply_fp_regs.
1137 (alpha_linux_collect_fpregset): New function.
1138 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1140 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1142 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1143 by call to regcache_collect_regset.
1144 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1145 instead of aarch64_linux_supply_gregset/_fpregset.
1146 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1147 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1148 header file instead.
1149 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1150 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1151 functions. Move logic to ...
1152 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1154 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1155 refer to new register maps, replace *_regset_from_core by
1156 regcache_supply_regset, and also use regcache_collect_regset.
1157 * aarch64-linux-tdep.h: Include "regset.h".
1158 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1160 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1161 macros, moved from C source file.
1162 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1163 variable declarations.
1165 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1167 * s390-linux-nat.c: Include "regset.h".
1168 (regmap_gregset): Delete macro.
1169 (s390_64_regmap_gregset): New register map for
1170 regcache_supply/_collect_regset.
1171 (s390_64_gregset): New regset.
1172 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1173 (regmap_fpregset): Delete macro.
1174 (s390_native_supply, s390_native_collect): Delete functions.
1175 (supply_gregset, fill_gregset): Replace s390-specific regmap
1176 handling by a call to regcache_supply/_collect_regset.
1177 (supply_fpregset, fill_fpregset): Call regcache_supply/
1178 _collect_regset instead of s390_native_supply/_collect.
1179 (fetch_regset, store_regset): Likewise. Also change the last
1180 parameter to a regset instead of a regmap.
1181 (s390_linux_fetch_inferior_registers)
1182 (390_linux_store_inferior_registers): Adjust last parameter in
1183 calls to fetch_regset and store_regset.
1184 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1185 (s390_gregmap): ... this. Also make static const and convert to
1186 regcache_map_entry format.
1187 (s390x_regmap_gregset): Delete.
1188 (s390_regmap_fpregset): Rename to...
1189 (s390_fpregmap): ... this. Make static const and convert to
1190 regcache_map_entry format.
1191 (s390_regmap_upper, s390_regmap_last_break)
1192 (s390x_regmap_last_break, s390_regmap_system_call)
1193 (s390_regmap_tdb): Likewise.
1194 (s390_supply_regset, s390_collect_regset): Remove functions.
1195 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1197 (s390_gregset, s390_fpregset, s390_upper_regset)
1198 (s390_last_break_regset, s390x_last_break_regset)
1199 (s390_system_call_regset, s390_tdb_regset): Make global and
1200 replace s390_supply/_collect_regset by regcache_supply/
1202 (s390x_gregset): Delete.
1203 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1204 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1205 (s390_regmap_fpregset, s390_regmap_last_break)
1206 (s390x_regmap_last_break, s390_regmap_system_call)
1207 (s390_regmap_tdb): Delete global variable declarations.
1208 (s390_gregset, s390_fpregset, s390_last_break_regset)
1209 (s390x_last_break_regset, s390_system_call_regset)
1210 (s390_tdb_regset): New global variable declarations.
1212 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1214 * regcache.c: Include "regset.h".
1215 (regcache_transfer_regset): New local function.
1216 (regcache_supply_regset, regcache_collect_regset): New functions.
1217 * regcache.h (struct regcache_map_entry): New structure.
1218 (REGCACHE_MAP_SKIP): New enum value.
1219 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1221 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1223 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1224 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1225 (ppc_linux_collect_gregset ): Likewise.
1226 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1227 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1228 (ppc_collect_vrregset): Likewise.
1229 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1232 2014-08-07 Yao Qi <yao@codesourcery.com>
1234 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1235 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1236 * remote.c (remote_read_bytes): Likewise.
1238 2014-08-07 Yao Qi <yao@codesourcery.com>
1240 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1242 2014-08-07 Yao Qi <yao@codesourcery.com>
1245 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1246 TARGET_XFER_OK instead of 0.
1248 2014-08-07 Gary Benson <gbenson@redhat.com>
1250 * common/common-defs.h: Include errno.h.
1251 * defs.h: Do not include errno.h.
1252 * ada-typeprint.c: Likewise.
1253 * c-typeprint.c: Likewise.
1254 * core-regset.c: Likewise.
1255 * corefile.c: Likewise.
1256 * corelow.c: Likewise.
1257 * event-loop.c: Likewise.
1258 * f-typeprint.c: Likewise.
1259 * gnu-nat.c: Likewise.
1260 * go32-nat.c: Likewise.
1261 * i386gnu-nat.c: Likewise.
1262 * m2-typeprint.c: Likewise.
1263 * nat/linux-btrace.c: Likewise.
1264 * p-typeprint.c: Likewise.
1265 * procfs.c: Likewise.
1266 * remote-sim.c: Likewise.
1267 * rs6000-nat.c: Likewise.
1268 * target.c: Likewise.
1269 * typeprint.c: Likewise.
1270 * ui-file.c: Likewise.
1271 * valops.c: Likewise.
1272 * valprint.c: Likewise.
1274 2014-08-07 Gary Benson <gbenson@redhat.com>
1276 * common/common-defs.h: Include string.h.
1277 * aarch64-tdep.c: Do not include string.h.
1278 * ada-exp.y: Likewise.
1279 * ada-lang.c: Likewise.
1280 * ada-lex.l: Likewise.
1281 * ada-typeprint.c: Likewise.
1282 * ada-valprint.c: Likewise.
1283 * aix-thread.c: Likewise.
1284 * alpha-linux-tdep.c: Likewise.
1285 * alpha-mdebug-tdep.c: Likewise.
1286 * alpha-nat.c: Likewise.
1287 * alpha-osf1-tdep.c: Likewise.
1288 * alpha-tdep.c: Likewise.
1289 * alphanbsd-tdep.c: Likewise.
1290 * amd64-dicos-tdep.c: Likewise.
1291 * amd64-linux-tdep.c: Likewise.
1292 * amd64-nat.c: Likewise.
1293 * amd64-sol2-tdep.c: Likewise.
1294 * amd64fbsd-tdep.c: Likewise.
1295 * amd64obsd-tdep.c: Likewise.
1296 * arch-utils.c: Likewise.
1297 * arm-linux-nat.c: Likewise.
1298 * arm-linux-tdep.c: Likewise.
1299 * arm-tdep.c: Likewise.
1300 * arm-wince-tdep.c: Likewise.
1301 * armbsd-tdep.c: Likewise.
1302 * armnbsd-nat.c: Likewise.
1303 * armnbsd-tdep.c: Likewise.
1304 * armobsd-tdep.c: Likewise.
1305 * avr-tdep.c: Likewise.
1306 * ax-gdb.c: Likewise.
1307 * ax-general.c: Likewise.
1308 * bcache.c: Likewise.
1309 * bfin-tdep.c: Likewise.
1310 * breakpoint.c: Likewise.
1311 * build-id.c: Likewise.
1312 * buildsym.c: Likewise.
1313 * c-exp.y: Likewise.
1314 * c-lang.c: Likewise.
1315 * c-typeprint.c: Likewise.
1316 * c-valprint.c: Likewise.
1317 * charset.c: Likewise.
1318 * cli-out.c: Likewise.
1319 * cli/cli-cmds.c: Likewise.
1320 * cli/cli-decode.c: Likewise.
1321 * cli/cli-dump.c: Likewise.
1322 * cli/cli-interp.c: Likewise.
1323 * cli/cli-logging.c: Likewise.
1324 * cli/cli-script.c: Likewise.
1325 * cli/cli-setshow.c: Likewise.
1326 * cli/cli-utils.c: Likewise.
1327 * coffread.c: Likewise.
1328 * common/agent.c: Likewise.
1329 * common/buffer.c: Likewise.
1330 * common/buffer.h: Likewise.
1331 * common/common-utils.c: Likewise.
1332 * common/filestuff.c: Likewise.
1333 * common/filestuff.c: Likewise.
1334 * common/format.c: Likewise.
1335 * common/print-utils.c: Likewise.
1336 * common/rsp-low.c: Likewise.
1337 * common/signals.c: Likewise.
1338 * common/vec.h: Likewise.
1339 * common/xml-utils.c: Likewise.
1340 * core-regset.c: Likewise.
1341 * corefile.c: Likewise.
1342 * corelow.c: Likewise.
1343 * cp-abi.c: Likewise.
1344 * cp-name-parser.y: Likewise.
1345 * cp-support.c: Likewise.
1346 * cp-valprint.c: Likewise.
1347 * cris-tdep.c: Likewise.
1348 * d-exp.y: Likewise.
1349 * darwin-nat.c: Likewise.
1350 * dbxread.c: Likewise.
1351 * dcache.c: Likewise.
1352 * demangle.c: Likewise.
1353 * dicos-tdep.c: Likewise.
1354 * disasm.c: Likewise.
1355 * doublest.c: Likewise.
1356 * dsrec.c: Likewise.
1357 * dummy-frame.c: Likewise.
1358 * dwarf2-frame.c: Likewise.
1359 * dwarf2loc.c: Likewise.
1360 * dwarf2read.c: Likewise.
1361 * elfread.c: Likewise.
1362 * environ.c: Likewise.
1364 * event-loop.c: Likewise.
1365 * exceptions.c: Likewise.
1367 * expprint.c: Likewise.
1368 * f-exp.y: Likewise.
1369 * f-lang.c: Likewise.
1370 * f-typeprint.c: Likewise.
1371 * f-valprint.c: Likewise.
1372 * fbsd-nat.c: Likewise.
1373 * findcmd.c: Likewise.
1374 * findvar.c: Likewise.
1375 * fork-child.c: Likewise.
1376 * frame.c: Likewise.
1377 * frv-linux-tdep.c: Likewise.
1378 * frv-tdep.c: Likewise.
1380 * gdb_bfd.c: Likewise.
1381 * gdbarch.c: Likewise.
1382 * gdbarch.sh: Likewise.
1383 * gdbtypes.c: Likewise.
1384 * gnu-nat.c: Likewise.
1385 * gnu-v2-abi.c: Likewise.
1386 * gnu-v3-abi.c: Likewise.
1387 * go-exp.y: Likewise.
1388 * go-lang.c: Likewise.
1389 * go32-nat.c: Likewise.
1390 * guile/guile.c: Likewise.
1391 * guile/scm-auto-load.c: Likewise.
1392 * hppa-hpux-tdep.c: Likewise.
1393 * hppa-linux-nat.c: Likewise.
1394 * hppanbsd-tdep.c: Likewise.
1395 * hppaobsd-tdep.c: Likewise.
1396 * i386-cygwin-tdep.c: Likewise.
1397 * i386-dicos-tdep.c: Likewise.
1398 * i386-linux-tdep.c: Likewise.
1399 * i386-nto-tdep.c: Likewise.
1400 * i386-sol2-tdep.c: Likewise.
1401 * i386-tdep.c: Likewise.
1402 * i386bsd-tdep.c: Likewise.
1403 * i386gnu-nat.c: Likewise.
1404 * i386nbsd-tdep.c: Likewise.
1405 * i386obsd-tdep.c: Likewise.
1406 * i387-tdep.c: Likewise.
1407 * ia64-libunwind-tdep.c: Likewise.
1408 * ia64-linux-nat.c: Likewise.
1409 * inf-child.c: Likewise.
1410 * inf-ptrace.c: Likewise.
1411 * inf-ttrace.c: Likewise.
1412 * infcall.c: Likewise.
1413 * infcmd.c: Likewise.
1414 * inflow.c: Likewise.
1415 * infrun.c: Likewise.
1416 * interps.c: Likewise.
1417 * iq2000-tdep.c: Likewise.
1418 * irix5-nat.c: Likewise.
1419 * jv-exp.y: Likewise.
1420 * jv-lang.c: Likewise.
1421 * jv-typeprint.c: Likewise.
1422 * jv-valprint.c: Likewise.
1423 * language.c: Likewise.
1424 * linux-fork.c: Likewise.
1425 * linux-nat.c: Likewise.
1426 * lm32-tdep.c: Likewise.
1427 * m2-exp.y: Likewise.
1428 * m2-typeprint.c: Likewise.
1429 * m32c-tdep.c: Likewise.
1430 * m32r-linux-nat.c: Likewise.
1431 * m32r-linux-tdep.c: Likewise.
1432 * m32r-rom.c: Likewise.
1433 * m32r-tdep.c: Likewise.
1434 * m68hc11-tdep.c: Likewise.
1435 * m68k-tdep.c: Likewise.
1436 * m68kbsd-tdep.c: Likewise.
1437 * m68klinux-nat.c: Likewise.
1438 * m68klinux-tdep.c: Likewise.
1439 * m88k-tdep.c: Likewise.
1440 * machoread.c: Likewise.
1441 * macrocmd.c: Likewise.
1443 * mdebugread.c: Likewise.
1444 * mem-break.c: Likewise.
1445 * memattr.c: Likewise.
1446 * memory-map.c: Likewise.
1447 * mep-tdep.c: Likewise.
1448 * mi/mi-cmd-break.c: Likewise.
1449 * mi/mi-cmd-disas.c: Likewise.
1450 * mi/mi-cmd-env.c: Likewise.
1451 * mi/mi-cmd-stack.c: Likewise.
1452 * mi/mi-cmd-var.c: Likewise.
1453 * mi/mi-cmds.c: Likewise.
1454 * mi/mi-console.c: Likewise.
1455 * mi/mi-getopt.c: Likewise.
1456 * mi/mi-interp.c: Likewise.
1457 * mi/mi-main.c: Likewise.
1458 * mi/mi-parse.c: Likewise.
1459 * microblaze-rom.c: Likewise.
1460 * microblaze-tdep.c: Likewise.
1461 * mingw-hdep.c: Likewise.
1462 * minidebug.c: Likewise.
1463 * minsyms.c: Likewise.
1464 * mips-irix-tdep.c: Likewise.
1465 * mips-linux-tdep.c: Likewise.
1466 * mips-tdep.c: Likewise.
1467 * mips64obsd-tdep.c: Likewise.
1468 * mipsnbsd-tdep.c: Likewise.
1469 * mipsread.c: Likewise.
1470 * mn10300-linux-tdep.c: Likewise.
1471 * mn10300-tdep.c: Likewise.
1472 * monitor.c: Likewise.
1473 * moxie-tdep.c: Likewise.
1474 * mt-tdep.c: Likewise.
1475 * nat/linux-btrace.c: Likewise.
1476 * nat/linux-osdata.c: Likewise.
1477 * nat/linux-procfs.c: Likewise.
1478 * nat/linux-ptrace.c: Likewise.
1479 * nat/linux-waitpid.c: Likewise.
1480 * nbsd-tdep.c: Likewise.
1481 * nios2-linux-tdep.c: Likewise.
1482 * nto-procfs.c: Likewise.
1483 * nto-tdep.c: Likewise.
1484 * objc-lang.c: Likewise.
1485 * objfiles.c: Likewise.
1486 * opencl-lang.c: Likewise.
1487 * osabi.c: Likewise.
1488 * osdata.c: Likewise.
1489 * p-exp.y: Likewise.
1490 * p-lang.c: Likewise.
1491 * p-typeprint.c: Likewise.
1492 * parse.c: Likewise.
1493 * posix-hdep.c: Likewise.
1494 * ppc-linux-nat.c: Likewise.
1495 * ppc-sysv-tdep.c: Likewise.
1496 * ppcfbsd-tdep.c: Likewise.
1497 * ppcnbsd-tdep.c: Likewise.
1498 * ppcobsd-tdep.c: Likewise.
1499 * printcmd.c: Likewise.
1500 * procfs.c: Likewise.
1501 * prologue-value.c: Likewise.
1502 * python/py-auto-load.c: Likewise.
1503 * python/py-gdb-readline.c: Likewise.
1504 * ravenscar-thread.c: Likewise.
1505 * regcache.c: Likewise.
1506 * registry.c: Likewise.
1507 * remote-fileio.c: Likewise.
1508 * remote-m32r-sdi.c: Likewise.
1509 * remote-mips.c: Likewise.
1510 * remote-notif.c: Likewise.
1511 * remote-sim.c: Likewise.
1512 * remote.c: Likewise.
1513 * reverse.c: Likewise.
1514 * rs6000-aix-tdep.c: Likewise.
1515 * ser-base.c: Likewise.
1516 * ser-go32.c: Likewise.
1517 * ser-mingw.c: Likewise.
1518 * ser-pipe.c: Likewise.
1519 * ser-tcp.c: Likewise.
1520 * ser-unix.c: Likewise.
1521 * serial.c: Likewise.
1522 * sh-tdep.c: Likewise.
1523 * sh64-tdep.c: Likewise.
1524 * shnbsd-tdep.c: Likewise.
1526 * sol-thread.c: Likewise.
1527 * solib-dsbt.c: Likewise.
1528 * solib-frv.c: Likewise.
1529 * solib-osf.c: Likewise.
1530 * solib-som.c: Likewise.
1531 * solib-spu.c: Likewise.
1532 * solib-target.c: Likewise.
1533 * solib.c: Likewise.
1534 * somread.c: Likewise.
1535 * source.c: Likewise.
1536 * sparc-nat.c: Likewise.
1537 * sparc-sol2-tdep.c: Likewise.
1538 * sparc-tdep.c: Likewise.
1539 * sparc64-tdep.c: Likewise.
1540 * sparc64fbsd-tdep.c: Likewise.
1541 * sparc64nbsd-tdep.c: Likewise.
1542 * sparcnbsd-tdep.c: Likewise.
1543 * spu-linux-nat.c: Likewise.
1544 * spu-multiarch.c: Likewise.
1545 * spu-tdep.c: Likewise.
1546 * stabsread.c: Likewise.
1547 * stack.c: Likewise.
1548 * std-regs.c: Likewise.
1549 * symfile.c: Likewise.
1550 * symmisc.c: Likewise.
1551 * symtab.c: Likewise.
1552 * target.c: Likewise.
1553 * thread.c: Likewise.
1554 * tilegx-linux-nat.c: Likewise.
1555 * tilegx-tdep.c: Likewise.
1557 * tracepoint.c: Likewise.
1558 * tui/tui-command.c: Likewise.
1559 * tui/tui-data.c: Likewise.
1560 * tui/tui-disasm.c: Likewise.
1561 * tui/tui-file.c: Likewise.
1562 * tui/tui-layout.c: Likewise.
1563 * tui/tui-out.c: Likewise.
1564 * tui/tui-regs.c: Likewise.
1565 * tui/tui-source.c: Likewise.
1566 * tui/tui-stack.c: Likewise.
1567 * tui/tui-win.c: Likewise.
1568 * tui/tui-windata.c: Likewise.
1569 * tui/tui-winsource.c: Likewise.
1570 * typeprint.c: Likewise.
1571 * ui-file.c: Likewise.
1572 * ui-out.c: Likewise.
1573 * user-regs.c: Likewise.
1574 * utils.c: Likewise.
1575 * v850-tdep.c: Likewise.
1576 * valarith.c: Likewise.
1577 * valops.c: Likewise.
1578 * valprint.c: Likewise.
1579 * value.c: Likewise.
1580 * varobj.c: Likewise.
1581 * vax-tdep.c: Likewise.
1582 * vaxnbsd-tdep.c: Likewise.
1583 * vaxobsd-tdep.c: Likewise.
1584 * windows-nat.c: Likewise.
1585 * xcoffread.c: Likewise.
1586 * xml-support.c: Likewise.
1587 * xstormy16-tdep.c: Likewise.
1588 * xtensa-linux-nat.c: Likewise.
1590 2014-08-07 Gary Benson <gbenson@redhat.com>
1592 * common/common-defs.h: Include gdb_assert.h.
1593 * aarch64-tdep.c: Do not include gdb_assert.h.
1594 * addrmap.c: Likewise.
1595 * aix-thread.c: Likewise.
1596 * alpha-linux-tdep.c: Likewise.
1597 * alpha-mdebug-tdep.c: Likewise.
1598 * alphanbsd-tdep.c: Likewise.
1599 * amd64-nat.c: Likewise.
1600 * amd64-tdep.c: Likewise.
1601 * amd64bsd-nat.c: Likewise.
1602 * amd64fbsd-nat.c: Likewise.
1603 * amd64fbsd-tdep.c: Likewise.
1604 * amd64nbsd-nat.c: Likewise.
1605 * amd64nbsd-tdep.c: Likewise.
1606 * amd64obsd-nat.c: Likewise.
1607 * amd64obsd-tdep.c: Likewise.
1608 * arch-utils.c: Likewise.
1609 * arm-tdep.c: Likewise.
1610 * armbsd-tdep.c: Likewise.
1612 * bcache.c: Likewise.
1613 * bfin-tdep.c: Likewise.
1614 * blockframe.c: Likewise.
1615 * breakpoint.c: Likewise.
1616 * bsd-kvm.c: Likewise.
1617 * bsd-uthread.c: Likewise.
1618 * buildsym.c: Likewise.
1619 * c-exp.y: Likewise.
1620 * c-lang.c: Likewise.
1621 * charset.c: Likewise.
1622 * cleanups.c: Likewise.
1623 * cli-out.c: Likewise.
1624 * cli/cli-decode.c: Likewise.
1625 * cli/cli-dump.c: Likewise.
1626 * cli/cli-logging.c: Likewise.
1627 * cli/cli-script.c: Likewise.
1628 * cli/cli-utils.c: Likewise.
1629 * coffread.c: Likewise.
1630 * common/common-utils.c: Likewise.
1631 * common/queue.h: Likewise.
1632 * common/signals.c: Likewise.
1633 * common/vec.h: Likewise.
1634 * complaints.c: Likewise.
1635 * completer.c: Likewise.
1636 * corelow.c: Likewise.
1637 * cp-abi.c: Likewise.
1638 * cp-name-parser.y: Likewise.
1639 * cp-namespace.c: Likewise.
1640 * cp-support.c: Likewise.
1641 * cris-tdep.c: Likewise.
1642 * dbxread.c: Likewise.
1643 * dictionary.c: Likewise.
1644 * doublest.c: Likewise.
1645 * dsrec.c: Likewise.
1646 * dummy-frame.c: Likewise.
1647 * dwarf2-frame-tailcall.c: Likewise.
1648 * dwarf2-frame.c: Likewise.
1649 * dwarf2expr.c: Likewise.
1650 * dwarf2loc.c: Likewise.
1651 * dwarf2read.c: Likewise.
1653 * event-loop.c: Likewise.
1654 * exceptions.c: Likewise.
1655 * expprint.c: Likewise.
1656 * f-valprint.c: Likewise.
1657 * fbsd-nat.c: Likewise.
1658 * findvar.c: Likewise.
1659 * frame-unwind.c: Likewise.
1660 * frame.c: Likewise.
1661 * frv-tdep.c: Likewise.
1662 * gcore.c: Likewise.
1663 * gdb-dlfcn.c: Likewise.
1664 * gdb_bfd.c: Likewise.
1665 * gdbarch.c: Likewise.
1666 * gdbarch.sh: Likewise.
1667 * gdbtypes.c: Likewise.
1668 * gnu-nat.c: Likewise.
1669 * gnu-v3-abi.c: Likewise.
1670 * go-lang.c: Likewise.
1671 * guile/scm-exception.c: Likewise.
1672 * guile/scm-gsmob.c: Likewise.
1673 * guile/scm-lazy-string.c: Likewise.
1674 * guile/scm-math.c: Likewise.
1675 * guile/scm-pretty-print.c: Likewise.
1676 * guile/scm-safe-call.c: Likewise.
1677 * guile/scm-utils.c: Likewise.
1678 * guile/scm-value.c: Likewise.
1679 * h8300-tdep.c: Likewise.
1680 * hppa-hpux-nat.c: Likewise.
1681 * hppa-tdep.c: Likewise.
1682 * hppanbsd-tdep.c: Likewise.
1683 * hppaobsd-tdep.c: Likewise.
1684 * i386-darwin-nat.c: Likewise.
1685 * i386-darwin-tdep.c: Likewise.
1686 * i386-nto-tdep.c: Likewise.
1687 * i386-tdep.c: Likewise.
1688 * i386bsd-nat.c: Likewise.
1689 * i386fbsd-tdep.c: Likewise.
1690 * i386gnu-nat.c: Likewise.
1691 * i386nbsd-tdep.c: Likewise.
1692 * i386obsd-tdep.c: Likewise.
1693 * i387-tdep.c: Likewise.
1694 * ia64-libunwind-tdep.c: Likewise.
1695 * ia64-tdep.c: Likewise.
1696 * inf-ptrace.c: Likewise.
1697 * inf-ttrace.c: Likewise.
1698 * infcall.c: Likewise.
1699 * infcmd.c: Likewise.
1700 * infrun.c: Likewise.
1701 * inline-frame.c: Likewise.
1702 * interps.c: Likewise.
1703 * jv-lang.c: Likewise.
1704 * jv-typeprint.c: Likewise.
1705 * linux-fork.c: Likewise.
1706 * linux-nat.c: Likewise.
1707 * linux-thread-db.c: Likewise.
1708 * m32c-tdep.c: Likewise.
1709 * m32r-linux-nat.c: Likewise.
1710 * m32r-tdep.c: Likewise.
1711 * m68k-tdep.c: Likewise.
1712 * m68kbsd-nat.c: Likewise.
1713 * m68kbsd-tdep.c: Likewise.
1714 * m88k-tdep.c: Likewise.
1715 * machoread.c: Likewise.
1716 * macroexp.c: Likewise.
1717 * macrotab.c: Likewise.
1718 * maint.c: Likewise.
1719 * mdebugread.c: Likewise.
1720 * memory-map.c: Likewise.
1721 * mep-tdep.c: Likewise.
1722 * mi/mi-common.c: Likewise.
1723 * microblaze-tdep.c: Likewise.
1724 * mingw-hdep.c: Likewise.
1725 * mips-linux-nat.c: Likewise.
1726 * mips-linux-tdep.c: Likewise.
1727 * mips-tdep.c: Likewise.
1728 * mips64obsd-tdep.c: Likewise.
1729 * mipsnbsd-tdep.c: Likewise.
1730 * mn10300-linux-tdep.c: Likewise.
1731 * mn10300-tdep.c: Likewise.
1732 * moxie-tdep.c: Likewise.
1733 * mt-tdep.c: Likewise.
1734 * nat/linux-btrace.c: Likewise.
1735 * nat/linux-osdata.c: Likewise.
1736 * nat/linux-ptrace.c: Likewise.
1737 * nat/mips-linux-watch.c: Likewise.
1738 * nios2-linux-tdep.c: Likewise.
1739 * nios2-tdep.c: Likewise.
1740 * objc-lang.c: Likewise.
1741 * objfiles.c: Likewise.
1742 * obsd-nat.c: Likewise.
1743 * opencl-lang.c: Likewise.
1744 * osabi.c: Likewise.
1745 * parse.c: Likewise.
1746 * ppc-linux-nat.c: Likewise.
1747 * ppc-sysv-tdep.c: Likewise.
1748 * ppcfbsd-nat.c: Likewise.
1749 * ppcfbsd-tdep.c: Likewise.
1750 * ppcnbsd-nat.c: Likewise.
1751 * ppcnbsd-tdep.c: Likewise.
1752 * ppcobsd-nat.c: Likewise.
1753 * ppcobsd-tdep.c: Likewise.
1754 * printcmd.c: Likewise.
1755 * procfs.c: Likewise.
1756 * prologue-value.c: Likewise.
1757 * psymtab.c: Likewise.
1758 * python/py-lazy-string.c: Likewise.
1759 * python/py-value.c: Likewise.
1760 * regcache.c: Likewise.
1761 * reggroups.c: Likewise.
1762 * registry.c: Likewise.
1763 * remote-sim.c: Likewise.
1764 * remote.c: Likewise.
1765 * rs6000-aix-tdep.c: Likewise.
1766 * rs6000-tdep.c: Likewise.
1767 * s390-linux-tdep.c: Likewise.
1768 * score-tdep.c: Likewise.
1769 * ser-base.c: Likewise.
1770 * ser-mingw.c: Likewise.
1771 * sh-tdep.c: Likewise.
1772 * sh64-tdep.c: Likewise.
1773 * solib-darwin.c: Likewise.
1774 * solib-spu.c: Likewise.
1775 * solib-svr4.c: Likewise.
1776 * source.c: Likewise.
1777 * sparc-nat.c: Likewise.
1778 * sparc-sol2-tdep.c: Likewise.
1779 * sparc-tdep.c: Likewise.
1780 * sparc64-sol2-tdep.c: Likewise.
1781 * sparc64-tdep.c: Likewise.
1782 * sparc64fbsd-tdep.c: Likewise.
1783 * sparc64nbsd-tdep.c: Likewise.
1784 * sparc64obsd-tdep.c: Likewise.
1785 * sparcnbsd-tdep.c: Likewise.
1786 * sparcobsd-tdep.c: Likewise.
1787 * spu-multiarch.c: Likewise.
1788 * spu-tdep.c: Likewise.
1789 * stabsread.c: Likewise.
1790 * stack.c: Likewise.
1791 * symfile.c: Likewise.
1792 * symtab.c: Likewise.
1793 * target-descriptions.c: Likewise.
1794 * target-memory.c: Likewise.
1795 * target.c: Likewise.
1796 * tic6x-linux-tdep.c: Likewise.
1797 * tic6x-tdep.c: Likewise.
1798 * tilegx-linux-nat.c: Likewise.
1799 * tilegx-tdep.c: Likewise.
1801 * tramp-frame.c: Likewise.
1802 * tui/tui-out.c: Likewise.
1803 * tui/tui-winsource.c: Likewise.
1804 * ui-out.c: Likewise.
1805 * user-regs.c: Likewise.
1806 * utils.c: Likewise.
1807 * v850-tdep.c: Likewise.
1808 * valops.c: Likewise.
1809 * value.c: Likewise.
1810 * varobj.c: Likewise.
1811 * vax-nat.c: Likewise.
1812 * xml-syscall.c: Likewise.
1813 * xml-tdesc.c: Likewise.
1814 * xstormy16-tdep.c: Likewise.
1815 * xtensa-linux-nat.c: Likewise.
1816 * xtensa-tdep.c: Likewise.
1818 2014-08-07 Gary Benson <gbenson@redhat.com>
1820 * common/common-defs.h: Include common-utils.h.
1821 * defs.h: Do not include common-utils.h.
1822 * common/gdb_assert.h: Likewise.
1823 * darwin-nat.h: Likewise.
1824 * nat/linux-btrace.c: Likewise.
1825 * target/waitstatus.h: Likewise.
1827 2014-08-07 Gary Benson <gbenson@redhat.com>
1829 * common/common-defs.h: Include ptid.h.
1830 * defs.h: Do not include ptid.h.
1831 * inferior.h: Likewise.
1832 * infrun.h: Likewise.
1833 * nat/linux-btrace.h: Likewise.
1834 * nat/linux-osdata.h: Likewise.
1835 * target/waitstatus.h: Likewise.
1837 2014-08-07 Gary Benson <gbenson@redhat.com>
1839 * common/common-defs.h: Include gdb_locale.h.
1840 * defs.h: Do not include gdb_locale.h.
1842 2014-08-07 Gary Benson <gbenson@redhat.com>
1844 * common/common-defs.h: Include gdb/signals.h.
1845 * defs.h: Do not include gdb/signals.h.
1847 2014-08-07 Gary Benson <gbenson@redhat.com>
1849 * common/common-defs.h: Include pathmax.h.
1850 * defs.h: Do not include pathmax.h.
1852 2014-08-07 Gary Benson <gbenson@redhat.com>
1854 * common/common-defs.h: Include libiberty.h.
1855 * defs.h: Do not include libiberty.h.
1856 * common/queue.h: Likewise.
1857 * cp-name-parser.y: Likewise.
1858 * mi/mi-cmd-catch.c: Likewise.
1859 * python/python.c: Likewise.
1861 2014-08-07 Gary Benson <gbenson@redhat.com>
1863 * common/common-defs.h: Include ansidecl.h.
1864 * defs.h: Do not include ansidecl.h.
1865 * common/buffer.h: Likewise.
1866 * common/common-utils.h: Likewise.
1868 2014-08-07 Gary Benson <gbenson@redhat.com>
1870 * common/common-defs.h: Include stddef.h.
1871 * defs.h: Do not include stddef.h.
1872 * common/common-utils.h: Likewise.
1873 * amd64fbsd-nat.c: Likewise.
1874 * bcache.c: Likewise.
1875 * charset.c: Likewise.
1876 * common/buffer.h: Likewise.
1877 * common/vec.h: Likewise.
1878 * i386bsd-nat.c: Likewise.
1879 * nat/linux-btrace.h: Likewise.
1880 * ppcfbsd-nat.c: Likewise.
1881 * ppcnbsd-tdep.h: Likewise.
1882 * ppcobsd-nat.c: Likewise.
1883 * ppcobsd-tdep.h: Likewise.
1884 * python/py-gdb-readline.c: Likewise.
1886 2014-08-07 Gary Benson <gbenson@redhat.com>
1888 * common/common-defs.h: Include stdarg.h.
1889 * defs.h: Do not include stdarg.h.
1890 * ada-lang.c: Likewise.
1891 * common/common-utils.h: Likewise.
1892 * guile/scm-string.c: Likewise.
1893 * guile/scm-utils.c: Likewise.
1894 * m32c-tdep.c: Likewise.
1896 2014-08-07 Gary Benson <gbenson@redhat.com>
1898 * common/common-defs.h: Include stdlib.h.
1899 * defs.h: Do not include stdlib.h.
1900 * addrmap.c: Likewise.
1901 * bcache.c: Likewise.
1902 * common/buffer.c: Likewise.
1903 * common/common-utils.c: Likewise.
1904 * cp-name-parser.y: Likewise.
1905 * go32-nat.c: Likewise.
1906 * mn10300-linux-tdep.c: Likewise.
1907 * nat/linux-osdata.c: Likewise.
1908 * tui/tui.c: Likewise.
1909 * windows-nat.c: Likewise.
1911 2014-08-07 Gary Benson <gbenson@redhat.com>
1913 * common/common-defs.h: Include stdio.h.
1914 * defs.h: Do not include stdio.h.
1915 * ada-lang.c: Likewise.
1916 * common/buffer.c: Likewise.
1917 * common/common-utils.c: Likewise.
1918 * cp-name-parser.y: Likewise.
1919 * gnu-nat.c: Likewise.
1920 * go32-nat.c: Likewise.
1921 * i386gnu-nat.c: Likewise.
1922 * proc-api.c: Likewise.
1923 * proc-events.c: Likewise.
1924 * proc-flags.c: Likewise.
1925 * proc-why.c: Likewise.
1926 * python/python-internal.h: Likewise.
1927 * target-memory.c: Likewise.
1928 * tui/tui-io.c: Likewise.
1929 * tui/tui.c: Likewise.
1931 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1933 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1934 (scan_dyntag_auxv): Same.
1936 2014-08-06 Yao Qi <yao@codesourcery.com>
1938 * amd64-linux-nat.c: Remove duplicated include
1940 * i386-linux-nat.c: Likewise.
1942 2014-08-06 Yao Qi <yao@codesourcery.com>
1944 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1945 operand" with "Special opcode" in comments.
1947 2014-08-05 Gary Benson <gbenson@redhat.com>
1949 * interps.c (initialize_interps): Remove prototype.
1950 (interpreter_initialized): Remove static global.
1951 (interp_add): Do not call initialize_interps.
1952 (initialize_interps): Remove function.
1954 2014-08-05 Gary Benson <gbenson@redhat.com>
1956 * utils.c (vwarning): Remove spurious va_end.
1958 2014-08-05 Alan Modra <amodra@gmail.com>
1960 * charset.c (convert_between_encodings): Cast result of obstack_base.
1961 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1962 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1963 (read_unwind_info): Use size_t for some locals.
1964 * jit.c (finalize_symtab): Likewise.
1965 * utils.c (hashtab_obstack_allocate): Likewise.
1966 * symmisc.c (print_objfile_statistics): Update format strings.
1968 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1970 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1971 (Changes in GDB 7.8): ... here.
1973 2014-08-04 Tom Tromey <tromey@redhat.com>
1975 * target.c (set_targetdebug): New function.
1976 (initialize_targets): Pass set_targetdebug when creating "set
1979 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1981 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1982 if detecting a variable-sized field that is not the last field.
1983 Fix struct type length computation.
1985 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1987 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1990 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1992 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1993 Remove "+ 8" offset in computation of CHAIN_VMA.
1995 2014-07-31 Doug Evans <dje@google.com>
1997 * inflow.c (child_terminal_inferior): Add comment.
1998 (child_terminal_ours_for_output): Add comment.
1999 (child_terminal_ours): Add comment.
2000 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2001 (linux_nat_terminal_ours): Add comment.
2003 2014-07-31 Gary Benson <gbenson@redhat.com>
2005 * common/btrace-common.h: Do not include defs.h or server.h.
2006 * nat/mips-linux-watch.h: Likewise.
2007 * gdb-dlfcn.h: Do not include defs.h.
2008 * tracefile.h: Likewise.
2010 2014-07-30 Roland McGrath <mcgrathr@google.com>
2012 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2014 2014-07-30 Tom Tromey <tromey@redhat.com>
2016 * bsd-kvm.c (bsd_kvm_open): Constify.
2017 * corelow.c (core_open): Constify.
2018 * ctf.c (ctf_open): Constify.
2019 * dbug-rom.c (dbug_open): Constify.
2020 * exec.c (exec_open): Constify.
2021 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2022 * microblaze-rom.c (picobug_open): Constify.
2023 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2025 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2026 * record-btrace.c (record_btrace_open): Constify.
2027 * record-full.c (record_full_core_open_1, record_full_open_1)
2028 (record_full_open): Constify.
2029 * remote-m32r-sdi.c (m32r_open): Constify.
2030 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2031 (rockhopper_open, lsi_open): Constify.
2032 * remote-sim.c (gdbsim_open): Constify.
2033 * remote.c (remote_open, extended_remote_open, remote_open_1):
2035 * target.h (struct target_ops) <to_open>: Make "arg" const.
2036 * tracefile-tfile.c (tfile_open): Constify.
2038 2014-07-30 Tom Tromey <tromey@redhat.com>
2040 * breakpoint.c (map_breakpoint_numbers): Update.
2041 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2042 (get_number_const): New function.
2043 (get_number): Rewrite using get_number_const.
2044 (init_number_or_range): Make "string" const.
2045 (number_is_in_list): Make "list" const.
2046 * cli/cli-utils.h (get_number_const): Declare.
2047 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2048 (init_number_or_range, number_is_in_list): Update.
2049 * printcmd.c (map_display_numbers): Update.
2050 * value.c (value_from_history_ref): Constify.
2051 * value.h (value_from_history_ref): Update.
2053 2014-07-30 Tom Tromey <tromey@redhat.com>
2055 * corefile.c (hook_type, call_extra_exec_file_hooks)
2056 (specify_exec_file_hook): Constify.
2057 * exec.c (exec_file_attach): Make "filename" const.
2058 * gdbcore.h (deprecated_exec_file_display_hook)
2059 (specify_exec_file_hook, exec_file_attach): Constify.
2060 * main.c (captured_main): Use catch_command_errors_const.
2062 2014-07-30 Tom Tromey <tromey@redhat.com>
2064 * target.c (open_target): New function.
2065 (add_target_with_completer, add_deprecated_target_alias): Use
2066 set_cmd_sfunc, set_cmd_context.
2067 (debug_to_open): Remove.
2068 (setup_target_debug): Update.
2070 2014-07-30 Yao Qi <yao@codesourcery.com>
2072 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2074 * parse.c (exp_iterate): Update comments.
2076 2014-07-30 Gary Benson <gbenson@redhat.com>
2078 * common/common-defs.h: New file.
2079 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2080 * defs.h: Include common-defs.h.
2081 Do not include config.h or build-gnulib/config.h.
2083 2014-07-30 Gary Benson <gbenson@redhat.com>
2085 * common/common-utils.h: Do not include config.h.
2086 * nat/linux-btrace.h: Likewise.
2088 2014-07-30 Gary Benson <gbenson@redhat.com>
2090 * btrace.c: Include defs.h.
2091 * common/ptid.c: Include defs.h or server.h as appropriate.
2092 * nat/mips-linux-watch.c: Likewise.
2094 2014-07-29 Tom Tromey <tromey@redhat.com>
2096 * target.c (target_is_pushed): Simplify.
2098 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2102 2014-07-29 Yao Qi <yao@codesourcery.com>
2105 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2107 2014-07-28 Doug Evans <xdje42@gmail.com>
2110 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2111 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2114 2014-07-28 Will Newton <will.newton@linaro.org>
2116 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2117 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2118 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2119 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2120 (THUMB2_EABI_SYSCALL): Likewise.
2121 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2123 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2124 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2126 2014-07-27 Doug Evans <xdje42@gmail.com>
2128 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2130 2014-07-27 Doug Evans <xdje42@gmail.com>
2132 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2134 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2135 Doug Evans <xdje42@gmail.com>
2138 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2139 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2140 * configure.ac: Try to use guild to compile an scm file, if it fails
2141 then disable guile support.
2142 * configure: Regenerate.
2143 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2145 (GUILE_COMPILED_FILES): New variable.
2146 (GUILE_FILES) Update.
2147 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2148 (stamp-guile): Compile scm files.
2149 * guile/guile.c (boot_guile_support): New function.
2150 (standard_throw_args_p): New function.
2151 (print_standard_throw_error, print_throw_error): New functions.
2152 (handle_boot_error): New function.
2153 (initialize_scheme_side): Rewrite to call boot_guile_support.
2154 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2155 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2157 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2158 Doug Evans <xdje42@gmail.com>
2161 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2162 * guile/lib/gdb/support.scm: New file.
2163 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2164 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2166 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2168 (%assert-type): Ditto, and renamed to assert-type.
2169 (%exception-print-style): Delete.
2171 2014-07-26 Doug Evans <xdje42@gmail.com>
2174 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2175 * configure: Regenerate.
2176 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2178 (PYTHON_FILES): New variable.
2179 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2180 (GUILE_FILES): New variable.
2181 (stamp-python, install-python, uninstall-python): Handle empty
2183 (stamp-guile, install-guile, uninstall-guile): Ditto.
2185 2014-07-26 Doug Evans <xdje42@gmail.com>
2188 * guile/lib/gdb.scm (pretty-printers): Export.
2189 (set-pretty-printers!): Export.
2190 * guile/lib/gdb/printing.scm (gdb module): Update.
2191 (prepend-pretty-printer!, append-pretty-printer!): Update.
2192 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2193 (pretty_printer_list_var): Delete.
2194 (pretty_printer_list): New static global.
2195 (gdbscm_pretty_printers): New function.
2196 (gdbscm_set_pretty_printers_x): New function.
2197 (ppscm_find_pretty_printer_from_gdb): Update.
2198 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2199 (gdbscm_initialize_pretty_printers): Update.
2201 2014-07-26 Doug Evans <xdje42@gmail.com>
2204 * configure.ac: Add check for header gc/gc.h.
2205 Add check for function setenv.
2206 * configure: Regenerate.
2207 * config.in: Regenerate.
2208 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2210 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2212 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2213 variation in gdbarch matching.
2215 2014-07-25 Tom Tromey <tromey@redhat.com>
2217 * exec.c (using_exec_ops): Remove.
2218 (exec_close_1): Update. Remove extraneous block, reindent.
2219 (add_target_sections): Use target_is_pushed.
2221 2014-07-25 Pedro Alves <palves@redhat.com>
2223 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2224 * monitor.c (monitor_create_inferior): Likewise.
2225 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2226 * remote-sim.c (gdbsim_create_inferior): Likewise.
2227 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2228 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2229 * windows-nat.c (do_initial_windows_stuff): Likewise.
2231 2014-07-25 Pedro Alves <palves@redhat.com>
2233 * NEWS: Mention signal passing and "signal" command changes.
2234 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2236 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2238 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2239 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2240 (jump_command): Adjust clear_proceed_status call.
2241 (signal_command): Warn if other thread that are resumed have
2242 signals that will be delivered. Adjust clear_proceed_status call.
2243 (until_next_command, finish_command)
2244 (proceed_after_attach_callback, attach_command_post_wait)
2245 (attach_command): Adjust clear_proceed_status call.
2246 * infrun.c (proceed_after_vfork_done): Likewise.
2247 (proceed_after_attach_callback): Adjust comment.
2248 (clear_proceed_status_thread): Clear stop_signal if not in pass
2250 (clear_proceed_status_callback): Delete.
2251 (clear_proceed_status): New 'step' parameter. Only clear the
2252 proceed status of threads the command being prepared is about to
2254 (proceed): If passed in an explicit signal, override stop_signal
2255 with it. Don't pass the last stop signal to the thread we're
2257 (init_wait_for_inferior): Adjust clear_proceed_status call.
2258 (switch_back_to_stepped_thread): Clear the signal if it should not
2260 * infrun.h (clear_proceed_status): New 'step' parameter.
2261 (user_visible_resume_ptid): Add comment.
2262 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2263 signal is in pass state.
2264 * remote.c (append_pending_thread_resumptions): Likewise.
2265 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2267 2014-07-25 Tom Tromey <tromey@redhat.com>
2269 * target.h (target_stopped_data_address)
2270 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2273 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2275 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2277 (avr_pointer_to_address): Likewise.
2279 2014-07-24 Tom Tromey <tromey@redhat.com>
2281 * monitor.c (compile_pattern): Update.
2282 * target.h (struct target_ops) <to_shortname, to_longname,
2285 2014-07-24 Tom Tromey <tromey@redhat.com>
2287 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2288 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2289 (add_info_alias, add_com): Make "doc" const.
2290 (print_doc_line): Make "str" const.
2291 (delete_cmd): Update.
2292 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2293 (print_doc_line): Update.
2294 * cli/cli-script.c (document_command): Update.
2295 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2296 (add_com, add_info, add_info_alias): Update.
2297 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2298 * python/py-cmd.c (cmdpy_destroyer): Update.
2300 2014-07-24 Tom Tromey <tromey@redhat.com>
2302 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2303 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2304 (help_cmd_list): Constify.
2305 (lookup_cmd): Update.
2306 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2308 (help_cmd_list, apropos_cmd): Update.
2309 * cli/cli-script.c (show_user): Update.
2310 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2311 * cli/cli-setshow.h (cmd_show_list): Update.
2312 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2313 (cmd_show_list): Update.
2314 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2315 * python/py-cmd.c (cmdpy_destroyer): Update.
2317 2014-07-24 Tom Tromey <tromey@redhat.com>
2319 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2320 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2322 * command.h (deprecate_cmd): Update.
2323 * maint.c (maintenance_do_deprecate): Add casts.
2325 2014-07-24 Tom Tromey <tromey@redhat.com>
2327 * cli/cli-decode.c (help_cmd): Make parameter "const".
2328 * cli/cli-decode.h (help_cmd): Update.
2330 2014-07-24 Tom Tromey <tromey@redhat.com>
2332 * stack.c (up_silently_base, down_silently_base): Make argument
2335 2014-07-24 Tom Tromey <tromey@redhat.com>
2337 * solib.c (solib_add): Make "pattern" const.
2338 * solib.h (solib_add): Update.
2340 2014-07-24 Tom Tromey <tromey@redhat.com>
2342 * remote.c (remote_serial_open, print_packet, putpkt)
2343 (putpkt_binary): Constify.
2344 * remote.h (putpkt): Update.
2346 2014-07-24 Tom Tromey <tromey@redhat.com>
2348 * monitor.c (monitor_open): Make "args" const.
2349 * monitor.h (monitor_open): Update.
2351 2014-07-24 Tom Tromey <tromey@redhat.com>
2353 * maint.c (match_bfd_flags): Make "string" const.
2354 (print_bfd_section_info): Remove casts.
2355 (print_objfile_section_info): Make "string" const.
2357 2014-07-24 Tom Tromey <tromey@redhat.com>
2359 * inf-child.c (inf_child_open_target): Make "arg" const.
2360 * inf-child.h (inf_child_open_target): Update.
2362 2014-07-24 Tom Tromey <tromey@redhat.com>
2364 * environ.c (unset_in_environ): Make "var" const.
2365 * environ.h (unset_in_environ): Update.
2367 2014-07-24 Tom Tromey <tromey@redhat.com>
2369 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2371 (scan_filename_with_cleanup): Likewise.
2372 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2373 Make arguments const.
2374 (restore_command): Update.
2376 2014-07-24 Pedro Alves <palves@redhat.com>
2378 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2380 2014-07-24 Tom Tromey <tromey@redhat.com>
2381 Gary Benson <gbenson@redhat.com>
2383 * nat/linux-ptrace.c (additional_flags): New global.
2384 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2385 additional_flags; don't check GDBSERVER.
2386 (linux_ptrace_set_additional_flags): New function.
2387 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2389 * linux-nat.c (_initialize_linux_nat): Call
2390 linux_ptrace_set_additional_flags.
2392 2014-07-24 Tom Tromey <tromey@redhat.com>
2394 * make-target-delegates (munge_type, write_debugmethod): New
2396 (debug_names): New global.
2397 ($TARGET_DEBUG_PRINTER): New global.
2398 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2400 Write debug methods. Generate init_debug_target.
2401 * target-debug.h: New file.
2402 * target-delegates.c: Rebuild.
2403 * target.c: Include target-debug.h.
2404 (debug_target): Hoist definition.
2405 (target_kill, target_get_section_table, target_memory_map)
2406 (target_flash_erase, target_flash_done, target_detach)
2407 (target_disconnect, target_wait, target_resume)
2408 (target_pass_signals, target_program_signals, target_follow_fork)
2409 (target_mourn_inferior, target_search_memory)
2410 (target_thread_address_space, target_close)
2411 (target_find_new_threads, target_core_of_thread)
2412 (target_verify_memory, target_insert_mask_watchpoint)
2413 (target_remove_mask_watchpoint): Remove targetdebug code.
2414 (debug_to_post_attach, debug_to_prepare_to_store)
2415 (debug_to_files_info, debug_to_insert_breakpoint)
2416 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2417 (debug_to_region_ok_for_hw_watchpoint)
2418 (debug_to_can_accel_watchpoint_condition)
2419 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2420 (debug_to_watchpoint_addr_within_range)
2421 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2422 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2423 (debug_to_terminal_init, debug_to_terminal_inferior)
2424 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2425 (debug_to_terminal_save_ours, debug_to_terminal_info)
2426 (debug_to_load, debug_to_post_startup_inferior)
2427 (debug_to_insert_fork_catchpoint)
2428 (debug_to_remove_fork_catchpoint)
2429 (debug_to_insert_vfork_catchpoint)
2430 (debug_to_remove_vfork_catchpoint)
2431 (debug_to_insert_exec_catchpoint)
2432 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2433 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2434 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2435 (setup_target_debug): Call init_debug_target.
2436 * target.h (TARGET_DEBUG_PRINTER): New macro.
2437 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2438 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2440 2014-07-24 Gary Benson <gbenson@redhat.com>
2442 * exceptions.h (throw_vfatal): Renamed to...
2443 (throw_vquit): New declaration.
2444 (throw_quit): Likewise.
2445 * exceptions.c (throw_vfatal): Renamed to...
2446 (throw_vquit): New function.
2447 (throw_quit): Likewise.
2448 (throw_error): Call throw_verror rather than throw_it.
2449 * utils.h (vfatal): Removed.
2451 * utils.c (vfatal): Removed.
2453 (internal_verror): Replaced call to fatal with call to throw_quit.
2454 (quit): Replaced calls to fatal with calls to throw_quit.
2456 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2458 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2461 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2463 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2464 less than zero in conditional expression.
2466 2014-07-23 Tom Tromey <tromey@redhat.com>
2468 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2469 ($INTRO_PART): Don't match whitespace.
2470 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2472 ($METHOD): Add $METHOD_TRAILER.
2474 (scan_target_h): New sub.
2475 Change main loop not to collect state.
2476 * target-delegates.c: Rebuild.
2478 2014-07-23 Gary Benson <gbenson@redhat.com>
2480 * cp-support.c (gdb_demangle): Fix build on systems without
2483 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2485 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2486 for reference entry value target data value.
2488 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2490 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2491 value_available_contents_eq.
2493 2014-07-22 Pedro Alves <palves@redhat.com>
2495 * value.c (allocate_optimized_out_value): Don't mark value as
2498 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2500 * MAINTAINERS (Write After Approval): Update my email address.
2502 2014-07-20 Doug Evans <dje@google.com>
2505 * remote.c (putpkt_binary): Add text to error message.
2507 2014-07-20 Yao Qi <yao@codesourcery.com>
2509 * eval.c: Remove "Chill" from comments.
2510 * gdbtypes.h: Likewise.
2511 * symtab.h: Likewise.
2513 2014-07-20 Yao Qi <yao@codesourcery.com>
2515 * std-operator.def: Update comments to TERNOP_SLICE.
2517 2014-07-20 Yao Qi <yao@codesourcery.com>
2519 * std-operator.def: Remove BINOP_RANGE.
2520 * breakpoint.c (watchpoint_exp_is_const): Update.
2521 * expprint.c (dump_subexp_body_standard): Likewise.
2522 * eval.c (init_array_element): Remove dead code.
2523 (evaluate_subexp_standard): Likewise.
2525 2014-07-20 Yao Qi <yao@codesourcery.com>
2527 * std-operator.def: Remove BINOP_IN.
2528 * breakpoint.c (watchpoint_exp_is_const): Update.
2529 * eval.c (evaluate_subexp_standard): Likewise.
2530 * expprint.c (dump_subexp_body_standard): Likewise.
2532 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2534 * microblaze-tdep.c (microblaze_register_names): Add
2535 the rshr and rslr register names.
2536 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2537 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2538 Use of tdesc_numbered_register. Use of
2539 microblaze_register_g_packet_guesses. Use of
2540 tdesc_use_registers. Use of set_gdbarch_register_type.
2541 (microblaze_register_g_packet_guesses): New.
2542 * microblaze-tdep.h (microblaze_reg_num): Add
2543 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2544 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2545 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2546 * features/microblaze-core.xml: New file.
2547 * features/microblaze-stack-protect.xml: New file.
2548 * features/microblaze-with-stack-protect.c: New file.
2549 * features/microblaze-with-stack-protect.xml: New file.
2550 * features/microblaze.xml: New file.
2551 * features/microblaze.c: New file.
2552 * features/Makefile (microblaze-with-stack-protect): Add
2553 microblaze-with-stack-protect microblaze and microblaze-expedite.
2554 * regformats/microblaze-with-stack-protect.dat: New file.
2555 * regformats/microblaze.dat: New file.
2556 * doc/gdb.texinfo (MicroBlaze Features): Added.
2558 2014-07-18 Tom Tromey <tromey@redhat.com>
2560 * exec.c (exec_ops): Now static.
2561 * exec.h (exec_ops): Don't declare.
2563 2014-07-18 Tom Tromey <tromey@redhat.com>
2565 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2566 to find_target_beneath.
2567 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2568 find_target_beneath.
2569 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2571 2014-07-18 Tom Tromey <tromey@redhat.com>
2574 * utils.c (quit): Use target_supports_terminal_ours.
2575 * target.h (target_supports_terminal_ours): Declare.
2576 * target.c (target_supports_delete_record): Don't check
2577 to_delete_record against NULL.
2578 (target_supports_terminal_ours): New function.
2580 2014-07-18 Tom Tromey <tromey@redhat.com>
2583 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2584 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2585 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2586 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2587 * windows-nat.c (windows_xfer_partial): Always delegate.
2588 * record-btrace.c (record_btrace_xfer_partial): Simplify
2590 (record_btrace_fetch_registers, record_btrace_store_registers)
2591 (record_btrace_prepare_to_store, record_btrace_resume)
2592 (record_btrace_wait, record_btrace_find_new_threads)
2593 (record_btrace_thread_alive): Likewise.
2594 * procfs.c (procfs_xfer_partial): Always delegate.
2595 * corelow.c (core_xfer_partial): Always delegate.
2596 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2598 2014-07-18 Tom Tromey <tromey@redhat.com>
2600 * exec.c (exec_make_note_section): Move earlier.
2602 2014-07-17 Doug Evans <dje@google.com>
2605 * maint.c (count_symtabs_and_blocks): Handle NULL
2606 current_program_space.
2607 (report_command_stats): Check global enabled flag in addition to
2608 recorded enabled flag.
2609 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2611 2014-07-16 Pedro Alves <palves@redhat.com>
2613 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2615 2014-07-16 Tom Tromey <tromey@redhat.com>
2617 * target.h (struct target_ops) <to_delete_record>: Reformat
2620 2014-07-16 Tom Tromey <tromey@redhat.com>
2622 * target-delegates.c: Rebuild.
2624 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2626 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2627 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2628 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2629 (avr_pointer_to_address): Likewise.
2630 (avr_address_class_type_flags): New function.
2631 (avr_address_class_type_flags_to_name): Likewise.
2632 (avr_address_class_name_to_type_flags): Likewise.
2633 (avr_gdbarch_init): Set address_class_type_flags,
2634 address_class_type_flags_to_name and
2635 address_class_name_to_type_flags.
2637 2014-07-15 Pedro Alves <palves@redhat.com>
2639 * linux-nat.c (kill_callback): Save errno and work with saved
2642 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2644 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2646 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2648 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2649 breakpoint support correctly.
2651 2014-07-14 Pedro Alves <palves@redhat.com>
2653 * utils.c (prompt_for_continue): Call target_terminal_ours.
2655 2014-07-14 Pedro Alves <palves@redhat.com>
2657 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2658 catch_errors. Don't re-enable stdin or notify observers where,
2660 (fetch_inferior_event_wrapper): Delete.
2662 2014-07-14 Pedro Alves <palves@redhat.com>
2665 * top.c: Include "inf-loop.h".
2666 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2668 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2670 (gdb_readline_wrapper): Store whether the target is async, and
2673 2014-07-14 Pedro Alves <palves@redhat.com>
2676 * top.c (gdb_readline_wrapper_line): Tweak comment.
2677 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2678 the input handler callback.
2680 2014-07-14 Pedro Alves <palves@redhat.com>
2683 * main.c: Include event-top.h.
2684 (handle_command_errors): New function.
2685 (catch_command_errors, catch_command_errors_const): Use it.
2687 2014-07-14 Pedro Alves <palves@redhat.com>
2689 * exceptions.c (catch_command_errors, catch_command_errors_const):
2691 * exceptions.h (catch_command_errors_ftype)
2692 (catch_command_errors_const_ftype): Moved to main.c.
2693 (catch_command_errors, catch_command_errors_const): Delete
2695 * main.c (catch_command_errors_ftype)
2696 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2697 (catch_command_errors, catch_command_errors_const)): Moved here
2698 from exceptions.c and make static.
2700 2014-07-14 Pedro Alves <palves@redhat.com>
2702 * exceptions.c (print_any_exception): Delete.
2703 (catch_exceptions_with_msg): Use exception_print instead of
2704 print_any_exception.
2705 (catch_errors): Use exception_fprintf instead of
2706 print_any_exception.
2707 (catch_command_errors, catch_command_errors_const): Use
2708 exception_print instead of print_any_exception.
2710 2014-07-14 Pedro Alves <palves@redhat.com>
2712 * infcall.c (run_inferior_call): Set 'sync_execution' while
2713 running the inferior call.
2715 2014-07-14 Pedro Alves <palves@redhat.com>
2717 * value.c (value_contents_equal): Delete function.
2718 * value.h (value_contents_equal): Delete declaration.
2720 2014-07-14 Tom Tromey <tromey@redhat.com>
2723 * gdbtypes.c (is_dynamic_type_internal): New function, from
2725 (is_dynamic_type): Rewrite.
2726 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2727 (resolve_dynamic_struct): Likewise.
2728 (resolve_dynamic_type_internal): New function, from
2729 resolve_dynamic_type.
2730 (resolve_dynamic_type): Rewrite.
2732 2014-07-14 Tom Tromey <tromey@redhat.com>
2734 * target.c (target_require_runnable): Also check record_stratum.
2737 2014-07-11 Yao Qi <yao@codesourcery.com>
2739 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2740 thumb_instruction_restores_sp return true.
2742 2014-07-11 Yao Qi <yao@codesourcery.com>
2744 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2745 (thumb_in_function_epilogue_p): Call
2746 thumb_instruction_restores_sp.
2748 2014-07-11 Yao Qi <yao@codesourcery.com>
2750 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2752 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2754 2014-07-11 Gary Benson <gbenson@redhat.com>
2756 * amd64-linux-nat.c (gdbcore.h): Remove include.
2757 (regset.h): Likewise.
2758 (nat/linux-btrace.h): Likewise.
2759 (btrace.h): Likewise.
2760 (gdb_assert.h): Likewise.
2761 (string.h): Likewise.
2762 (sys/uio.h): Likewise.
2763 (sys/debugreg.h): Likewise.
2764 (sys/syscall.h): Likewise.
2765 (sys/procfs.h): Likewise.
2766 (sys/user.h): Likewise.
2767 (asm/ptrace.h): Likewise.
2768 (i386-nat.h): Likewise.
2769 * i386-linux-nat.c (i386-nat.h): Likewise.
2770 (regset.h): Likewise.
2771 (target.h): Likewise.
2772 (linux-nat.h): Likewise.
2773 (nat/linux-btrace.h): Likewise.
2774 (btrace.h): Likewise.
2775 (gdb_assert.h): Likewise.
2776 (string.h): Likewise.
2777 (sys/uio.h): Likewise.
2778 (sys/user.h): Likewise.
2779 (sys/procfs.h): Likewise.
2780 (sys/reg.h): Likewise.
2781 (sys/debugreg.h): Likewise.
2782 (ORIG_EAX): Remove definition.
2784 2014-07-11 Gary Benson <gbenson@redhat.com>
2786 * i386-linux-nat.h: New file.
2787 * x86-linux-nat.h: Likewise.
2788 * x86-linux-nat.c: Likewise.
2789 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2790 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2791 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2792 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2793 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2794 (PTRACE_SETREGSET): Likewise.
2795 (arch_lwp_info): Now in x86-linux-nat.c.
2796 (have_ptrace_getregset): Now in x86-linux-nat.h.
2797 (x86_linux_dr_get): Now in x86-linux-nat.c.
2798 (x86_linux_dr_set): Likewise.
2799 (x86_linux_dr_get_addr): Likewise.
2800 (x86_linux_dr_get_control): Likewise.
2801 (x86_linux_dr_get_status): Likewise.
2802 (update_debug_registers_callback): Likewise.
2803 (x86_linux_dr_set_control): Likewise.
2804 (x86_linux_dr_set_addr): Likewise.
2805 (x86_linux_prepare_to_resume): Likewise.
2806 (x86_linux_new_thread): Likewise.
2807 (x86_linux_new_fork): Likewise.
2808 (x86_linux_get_thread_area): Likewise.
2809 (super_post_startup_inferior): Likewise.
2810 (x86_linux_child_post_startup_inferior): Likewise.
2811 (AMD64_LINUX_USER64_CS): Likewise.
2812 (AMD64_LINUX_X32_DS): Likewise.
2813 (x86_linux_read_description): Likewise.
2814 (x86_linux_enable_btrace): Likewise.
2815 (x86_linux_disable_btrace): Likewise.
2816 (x86_linux_teardown_btrace): Likewise.
2817 (x86_linux_read_btrace): Likewise.
2818 (x86_linux_create_target): Likewise.
2819 (x86_linux_add_target): Likewise.
2820 * i386-linux-nat.c (x86-linux-nat.h): New include.
2821 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2822 (PTRACE_SETREGSET): Likewise.
2823 (arch_lwp_info): Now in x86-linux-nat.c.
2824 (have_ptrace_getregset): Now in x86-linux-nat.h.
2825 (x86_linux_dr_get): Now in x86-linux-nat.c.
2826 (x86_linux_dr_set): Likewise.
2827 (x86_linux_dr_get_addr): Likewise.
2828 (x86_linux_dr_get_control): Likewise.
2829 (x86_linux_dr_get_status): Likewise.
2830 (update_debug_registers_callback): Likewise.
2831 (x86_linux_dr_set_control): Likewise.
2832 (x86_linux_dr_set_addr): Likewise.
2833 (x86_linux_prepare_to_resume): Likewise.
2834 (x86_linux_new_thread): Likewise.
2835 (x86_linux_new_fork): Likewise.
2836 (x86_linux_get_thread_area): Likewise.
2837 (super_post_startup_inferior): Likewise.
2838 (x86_linux_child_post_startup_inferior): Likewise.
2839 (AMD64_LINUX_USER64_CS): Likewise.
2840 (AMD64_LINUX_X32_DS): Likewise.
2841 (x86_linux_read_description): Likewise.
2842 (x86_linux_enable_btrace): Likewise.
2843 (x86_linux_disable_btrace): Likewise.
2844 (x86_linux_teardown_btrace): Likewise.
2845 (x86_linux_read_btrace): Likewise.
2846 (x86_linux_create_target): Likewise.
2847 (x86_linux_add_target): Likewise.
2849 2014-07-11 Gary Benson <gbenson@redhat.com>
2851 * amd64-linux-nat.c: Comment and whitespace changes.
2852 * i386-linux-nat.c: Comment and whitespace changes.
2854 2014-07-11 Gary Benson <gbenson@redhat.com>
2856 * amd64-linux-nat.c (x86_linux_create_target): New function.
2857 (x86_linux_add_target): Likewise.
2858 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2859 * i386-linux-nat.c (x86_linux_create_target): New function.
2860 (x86_linux_add_target): Likewise.
2861 (_initialize_i386_linux_nat): Delegate to the above new functions.
2863 2014-07-11 Gary Benson <gbenson@redhat.com>
2865 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2866 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2867 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2868 (ps_get_thread_area): Delegate to the above.
2870 2014-07-11 Gary Benson <gbenson@redhat.com>
2872 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2873 x86_linux_read_description. All uses updated. amd64-specific
2874 code conditionalized. Conditionalized i386-specific code added.
2875 Redundant cast removed.
2876 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2877 x86_linux_read_description. All uses updated. i386-specific
2878 code conditionalized. Conditionalized amd64-specific code added.
2879 One sizeof replaced with the actual type it is describing.
2881 2014-07-11 Gary Benson <gbenson@redhat.com>
2883 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2884 x86_linux_dr_get. All uses updated.
2885 (amd64_linux_dr_set): Renamed to
2886 x86_linux_dr_set. All uses updated.
2887 (amd64_linux_dr_get_addr): Renamed to
2888 x86_linux_dr_get_addr. All uses updated.
2889 (amd64_linux_dr_get_control): Renamed to
2890 x86_linux_dr_get_control. All uses updated.
2891 (amd64_linux_dr_get_status): Renamed to
2892 x86_linux_dr_get_status. All uses updated.
2893 (amd64_linux_dr_set_control): Renamed to
2894 x86_linux_dr_set_control. All uses updated.
2895 (amd64_linux_dr_set_addr): Renamed to
2896 x86_linux_dr_set_addr. All uses updated.
2897 (amd64_linux_prepare_to_resume): Renamed to
2898 x86_linux_prepare_to_resume. All uses updated.
2899 (amd64_linux_new_thread): Renamed to
2900 x86_linux_new_thread. All uses updated.
2901 (amd64_linux_new_fork): Renamed to
2902 x86_linux_new_fork. All uses updated.
2903 (amd64_linux_child_post_startup_inferior): Renamed to
2904 x86_linux_child_post_startup_inferior. All uses updated.
2905 (amd64_linux_enable_btrace): Renamed to
2906 x86_linux_enable_btrace. All uses updated.
2907 (amd64_linux_disable_btrace): Renamed to
2908 x86_linux_disable_btrace. All uses updated.
2909 (amd64_linux_teardown_btrace): Renamed to
2910 x86_linux_teardown_btrace. All uses updated.
2911 (amd64_linux_read_btrace): Renamed to
2912 x86_linux_read_btrace. All uses updated.
2913 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2914 x86_linux_dr_get. All uses updated.
2915 (i386_linux_dr_set): Renamed to
2916 x86_linux_dr_set. All uses updated.
2917 (i386_linux_dr_get_addr): Renamed to
2918 x86_linux_dr_get_addr. All uses updated.
2919 (i386_linux_dr_get_control): Renamed to
2920 x86_linux_dr_get_control. All uses updated.
2921 (i386_linux_dr_get_status): Renamed to
2922 x86_linux_dr_get_status. All uses updated.
2923 (i386_linux_dr_set_control): Renamed to
2924 x86_linux_dr_set_control. All uses updated.
2925 (i386_linux_dr_set_addr): Renamed to
2926 x86_linux_dr_set_addr. All uses updated.
2927 (i386_linux_prepare_to_resume): Renamed to
2928 x86_linux_prepare_to_resume. All uses updated.
2929 (i386_linux_new_thread): Renamed to
2930 x86_linux_new_thread. All uses updated.
2931 (i386_linux_new_fork): Renamed to
2932 x86_linux_new_fork. All uses updated.
2933 (i386_linux_child_post_startup_inferior): Renamed to
2934 x86_linux_child_post_startup_inferior. All uses updated.
2935 (i386_linux_enable_btrace): Renamed to
2936 x86_linux_enable_btrace. All uses updated.
2937 (i386_linux_disable_btrace): Renamed to
2938 x86_linux_disable_btrace. All uses updated.
2939 (i386_linux_teardown_btrace): Renamed to
2940 x86_linux_teardown_btrace. All uses updated.
2941 (i386_linux_read_btrace): Renamed to
2942 x86_linux_read_btrace. All uses updated.
2944 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2946 * remote.c (extended_remote_post_attach): New function.
2947 (init_extended_remote_ops): Install it as to_post_attach method.
2949 2014-07-09 Pedro Alves <palves@redhat.com>
2951 * infcmd.c (attach_command_post_wait): Don't call
2952 target_terminal_inferior here.
2953 (attach_command): Call it here instead.
2955 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2957 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2959 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2960 from varobj.c, with additional checks.
2961 (c_varobj_ops): Fill in is_path_expr_parent field.
2962 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2963 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2965 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2967 (varobj_default_is_path_expr_parent): New function.
2968 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2969 (varobj_default_is_path_expr_parent): Declare new function.
2971 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2973 * infcmd.c (finish_backward): Turn internal error into normal error.
2975 2014-07-07 Pedro Alves <palves@redhat.com>
2978 * remote.c (async_handle_remote_sigint)
2979 (async_handle_remote_sigint_twice): Call
2980 gdb_call_async_signal_handler instead of
2981 mark_async_signal_handler.
2983 2014-07-07 Tom Tromey <tromey@redhat.com>
2985 * target-delegates.c: Rebuild.
2986 * target.c (target_info_record): Remove.
2987 * record.c (info_record_command): Unconditionally call
2989 * target.h (struct target_ops) <to_info_record>: Use
2990 TARGET_DEFAULT_IGNORE.
2991 (target_info_record): Remove.
2993 2014-07-07 Tom Tromey <tromey@redhat.com>
2995 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2996 TARGET_DEFAULT_NORETURN.
2997 * target.c (generic_tls_error): New function.
2998 (target_translate_tls_address): Don't search target stack.
2999 * target-delegates.c: Rebuild.
3000 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3002 * linux-thread-db.c (thread_db_get_thread_local_address):
3003 Unconditionally call beneath target.
3005 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3007 * cli/cli-logging.c (pop_output_files): Assign targerr to
3010 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3012 * MAINTAINERS (Write After Approval): Update my email address.
3014 2014-07-02 Gary Benson <gbenson@redhat.com>
3016 * proc-service.c (ps_xfer_memory): Update comment.
3017 (ps_pstop): Remove unused function.
3018 (ps_pcontinue): Likewise.
3019 (ps_lstop): Likewise.
3020 (ps_lcontinue): Likewise.
3021 (ps_lgetxregsize): Likewise.
3022 (ps_lgetxregs): Likewise.
3023 (ps_lsetxregs): Likewise.
3024 (ps_plog): Likewise.
3025 (ps_ptread): Likewise.
3026 (ps_ptwrite): Likewise.
3028 2014-07-01 Mark Wielaard <mjw@redhat.com>
3030 * dwarf2read.c (add_array_cv_type): New function.
3031 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3032 (read_tag_volatile_type): Likewise.
3034 2014-07-01 Tom Tromey <tromey@redhat.com>
3036 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3037 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3038 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3039 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3040 * command.h (cmd_cfunc_ftype): Move earlier.
3041 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3042 (add_com, add_info): Use cmd_cfunc_ftype.
3044 2014-06-30 Tom Tromey <tromey@redhat.com>
3046 * symtab.c (operator_chars): Make parameters and return type
3048 (file_matches): Make "files" const.
3049 (struct search_symbols_data) <files>: Now const.
3050 (search_symbols): Make "regexp" and "files" parameters const.
3052 (symtab_symbol_info): Remove cast.
3053 (rbreak_command): Update.
3054 * symtab.h (search_symbols): Update.
3056 2014-06-27 Yao Qi <yao@codesourcery.com>
3058 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3059 Change parameter type to 'struct thread_info *'. Caller
3061 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3063 * dummy-frame.c (struct dummy_frame_id): New.
3064 (dummy_frame_id_eq): New function.
3065 (struct dummy_frame) <id>: Change its type to 'struct
3067 (dummy_frame_push): Add parameter ptid and save it in
3069 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3071 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3073 (lookup_dummy_frame): Change parameter type to 'struct
3074 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3075 instead of frame_id_eq.
3076 (dummy_frame_pop): Add parameter ptid. Callers updated.
3077 Update comments. Compose dummy_frame_id and pass it to
3079 (dummy_frame_discard): Add parameter ptid.
3080 (dummy_frame_sniffer): Compose dummy_frame_id and call
3081 dummy_frame_id_eq instead of frame_id_eq.
3082 (fprint_dummy_frames): Print ptid.
3083 * dummy-frame.h: Remove comments.
3084 (dummy_frame_push): Add ptid in declaration.
3085 (dummy_frame_pop, dummy_frame_discard): Likewise.
3087 2014-06-26 Tom Tromey <tromey@redhat.com>
3089 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3090 * command.h (error_no_arg): Update.
3092 2014-06-26 Tom Tromey <tromey@redhat.com>
3094 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3095 (do_show_command): Make "arg" const.
3096 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3098 2014-06-26 Tom Tromey <tromey@redhat.com>
3100 * record-full.c (record_full_get_bookmark): Make "args" const.
3101 (record_full_goto_bookmark): Make "raw_bookmark" const.
3102 * record.c (record_goto): New function.
3103 (cmd_record_goto): Use it. Now static.
3104 * record.h (record_goto): Declare.
3105 (cmd_record_goto): Remove declaration.
3106 * target-delegates.c: Rebuild.
3107 * target.h (struct target_ops) <to_get_bookmark,
3108 to_goto_bookmark>: Make parameter const.
3110 2014-06-26 Tom Tromey <tromey@redhat.com>
3112 * defs.h (generic_load): Update.
3113 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3114 * monitor.c (monitor_load): Make "args" const.
3115 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3116 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3118 (mips_load): Make "file" const.
3119 * remote-sim.c (gdbsim_load): Make "args" const.
3120 * remote.c (remote_load): Make "name" const.
3121 * symfile.c (generic_load): Make "args" const.
3122 * target-delegates.c: Rebuild.
3123 * target.c (target_load): Make "arg" const.
3124 (debug_to_load): Make "args" const.
3125 * target.h (struct target_ops) <to_load>: Make parameter const.
3126 (target_load): Update.
3128 2014-06-26 Tom Tromey <tromey@redhat.com>
3131 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3132 (dwarf2_physname, read_partial_die)
3133 (guess_partial_die_structure_name, fixup_partial_die)
3134 (guess_full_die_structure_name, anonymous_struct_prefix)
3135 (dwarf2_name): Use per-BFD obstack.
3137 2014-06-26 Yao Qi <yao@codesourcery.com>
3139 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3140 dummyframe and this_id into inner block below.
3142 2014-06-26 Yao Qi <yao@codesourcery.com>
3144 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3145 with "signal_pass[0]" in the initialization of signal_pass.
3147 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3149 * record-btrace.c (record_btrace_generating_corefile)
3150 (record_btrace_prepare_to_generate_core)
3151 (record_btrace_done_generating_core): New.
3152 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3153 (record_btrace_store_registers, record_btrace_prepare_to_store):
3154 Forward request when generating a core file.
3155 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3156 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3157 to_done_generating_core.
3159 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3161 * target.h (target_ops) <to_prepare_to_generate_core>
3162 <to_done_generating_core>: New.
3163 (target_prepare_to_generate_core, target_done_generating_core): New.
3164 * target.c (target_prepare_to_generate_core)
3165 (target_done_generating_core): New.
3166 * target-delegates.c: Regenerate.
3167 * gcore.c: (write_gcore_file): Rename to ...
3168 (write_gcore_file_1): ...this.
3169 (write_gcore_file): Call target_prepare_to_generate_core
3170 and target_done_generating_core.
3172 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3174 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3175 * gcore.c (write_gcore_file): Free memory returned from
3176 make_corefile_notes.
3177 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3178 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3180 2014-06-24 Yao Qi <yao@codesourcery.com>
3182 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3183 (arm_linux_init_abi): Set skip_trampoline_code with
3184 gdbarch_skip_trampoline_code instead of
3185 find_solib_trampoline_target.
3187 2014-06-24 Yao Qi <yao@codesourcery.com>
3189 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3190 arm_skip_bx_reg returns non-zero.
3192 2014-06-24 Yao Qi <yao@codesourcery.com>
3194 * arm-tdep.c (arm_skip_bx_reg): New function.
3195 (arm_skip_stub): Call arm_skip_bx_reg.
3197 2014-06-23 Don Breazeal <donb@codesourcery.com>
3199 * MAINTAINERS: Add myself as write-after-approval maintainer.
3201 2014-06-23 Pedro Alves <palves@redhat.com>
3203 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3204 DR_CONTROL before setting DR0..DR3.
3205 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3206 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3207 bits of DR_CONTROL related to the debug register slot being
3208 disabled. If all slots are vacant, clear local slowdown as well,
3209 and assert DR_CONTROL is 0.
3211 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3213 * python/lib/gdb/command/xmethods.py
3214 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3215 current progspace only if the string "progspace" matches LOCUS_RE.
3217 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3219 Fix --with-system-readline with readline-6.3 patch 5.
3220 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3221 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3224 2014-06-20 Tom Tromey <tromey@redhat.com>
3226 * dwarf2read.c (dw2_get_real_path): Use correct type in
3228 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3230 2014-06-20 Gary Benson <gbenson@redhat.com>
3232 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3233 * common/glibc_thread_db.h: Likewise.
3234 * common/i386-cpuid.h: Likewise.
3235 * common/i386-gcc-cpuid.h: Likewise.
3236 * common/linux-btrace.h: Likewise.
3237 * common/linux-osdata.h: Likewise.
3238 * common/linux-procfs.h: Likewise.
3239 * common/linux-ptrace.h: Likewise.
3240 * common/mips-linux-watch.h: Likewise.
3241 * common/linux-btrace.c: Moved to nat.
3242 * common/linux-osdata.c: Likewise.
3243 * common/linux-procfs.c: Likewise.
3244 * common/linux-ptrace.c: Likewise.
3245 * common/mips-linux-watch.c: Likewise.
3246 * nat/gdb_thread_db.h: Moved from common.
3247 * nat/glibc_thread_db.h: Likewise.
3248 * nat/i386-cpuid.h: Likewise.
3249 * nat/i386-gcc-cpuid.h: Likewise.
3250 * nat/linux-btrace.c: Likewise.
3251 * nat/linux-btrace.h: Likewise.
3252 * nat/linux-osdata.c: Likewise.
3253 * nat/linux-osdata.h: Likewise.
3254 * nat/linux-procfs.c: Likewise.
3255 * nat/linux-procfs.h: Likewise.
3256 * nat/linux-ptrace.c: Likewise.
3257 * nat/linux-ptrace.h: Likewise.
3258 * nat/mips-linux-watch.c: Likewise.
3259 * nat/mips-linux-watch.h: Likewise.
3260 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3261 (object file files): Reordered.
3262 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3263 of glibc_thread_db.h.
3265 2014-06-20 Gary Benson <gbenson@redhat.com>
3267 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3268 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3269 (i386_dr_low): Likewise.
3270 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3271 (i386_dr_low_set_addr): Likewise.
3272 (i386_dr_low_get_addr): Likewise.
3273 (i386_dr_low_can_set_control): Likewise.
3274 (i386_dr_low_set_control): Likewise.
3275 (i386_dr_low_get_control): Likewise.
3276 (i386_dr_low_get_status): Likewise.
3277 (i386_get_debug_register_length): Likewise.
3278 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3279 (i386_dr_low): Likewise.
3280 * nat/i386-dregs.c (i386-low.h): Remove include.
3281 (i386-nat.h): Likewise.
3282 (nat/i386-dregs.h): New include.
3283 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3284 (i386_dr_low_set_addr): Likewise.
3285 (i386_dr_low_get_addr): Likewise.
3286 (i386_dr_low_can_set_control): Likewise.
3287 (i386_dr_low_set_control): Likewise.
3288 (i386_dr_low_get_control): Likewise.
3289 (i386_dr_low_get_status): Likewise.
3290 (i386_get_debug_register_length): Likewise.
3291 (debug_hw_points): Likewise.
3293 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3295 * Makefile.in (SFILES): Add d-exp.y.
3296 (YYFILES): Add d-exp.c.
3297 (YYOBJ): Add d-exp.o.
3298 (local-maintainer-clean): Delete d-exp.c.
3299 * d-exp.y: New file.
3300 * d-lang.h (d_parse): New declaration.
3301 (d_error): New declaration.
3302 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3303 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3304 PREC_ORDER operators.
3305 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3307 2014-06-19 Yao Qi <yao@codesourcery.com>
3309 * gdbthread.h (any_running): Remove the declaration.
3310 * thread.c (any_running): Remove.
3312 2014-06-19 Yao Qi <yao@codesourcery.com>
3314 * gdbthread.h (struct thread_info) <state>: Change its type to
3315 'enum thread_state'. Update comments.
3317 2014-06-19 Pedro Alves <palves@redhat.com>
3319 * gdbthread.h (ALL_THREADS): Delete.
3320 (ALL_NON_EXITED_THREADS): New macro.
3321 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3322 instead of ALL_THREADS.
3323 * infrun.c (find_thread_needs_step_over)
3324 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3325 instead of ALL_THREADS.
3326 * record-btrace.c (record_btrace_open)
3327 (record_btrace_stop_recording, record_btrace_close)
3328 (record_btrace_is_replaying, record_btrace_resume)
3329 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3330 * remote.c (append_pending_thread_resumptions): Likewise.
3331 * thread.c (thread_apply_all_command): Likewise.
3333 2014-06-19 Gary Benson <gbenson@redhat.com>
3335 * i386-nat.c (i386_stopped_by_watchpoint):
3336 Use i386_dr_stopped_by_watchpoint.
3337 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3338 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3340 2014-06-19 Gary Benson <gbenson@redhat.com>
3342 * nat/i386-dregs.c: New file.
3343 * Makefile.in (i386-dregs.o): New rule.
3344 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3345 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3346 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3347 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3348 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3349 * config/i386/go32.mh (NATDEPFILES): Likewise.
3350 * config/i386/linux.mh (NATDEPFILES): Likewise.
3351 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3352 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3353 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3354 * i386-nat.h (debug_hw_points): New declaration.
3355 * i386-nat.c (breakpoint.h): Remove include.
3356 (command.h): Likewise.
3357 (target.h): Likewise.
3358 (gdb_assert.h): Likewise.
3359 (debug_hw_points): Made nonstatic.
3360 (debug_printf): Now in i386-dregs.c.
3361 (TARGET_HAS_DR_LEN_8): Likewise.
3362 (DR_CONTROL_SHIFT): Likewise.
3363 (DR_CONTROL_SIZE): Likewise.
3364 (DR_RW_EXECUTE): Likewise.
3365 (DR_RW_WRITE): Likewise.
3366 (DR_RW_READ): Likewise.
3367 (DR_RW_IORW): Likewise.
3368 (DR_LEN_1): Likewise.
3369 (DR_LEN_2): Likewise.
3370 (DR_LEN_4): Likewise.
3371 (DR_LEN_8): Likewise.
3372 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3373 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3374 (DR_ENABLE_SIZE): Likewise.
3375 (DR_LOCAL_SLOWDOWN): Likewise.
3376 (DR_GLOBAL_SLOWDOWN): Likewise.
3377 (DR_CONTROL_RESERVED): Likewise.
3378 (I386_DR_CONTROL_MASK): Likewise.
3379 (I386_DR_VACANT): Likewise.
3380 (I386_DR_LOCAL_ENABLE): Likewise.
3381 (I386_DR_GLOBAL_ENABLE): Likewise.
3382 (I386_DR_DISABLE): Likewise.
3383 (I386_DR_SET_RW_LEN): Likewise.
3384 (I386_DR_GET_RW_LEN): Likewise.
3385 (I386_DR_WATCH_HIT): Likewise.
3386 (i386_wp_op_t): Likewise.
3387 (i386_show_dr): Likewise.
3388 (i386_length_and_rw_bits): Likewise.
3389 (i386_insert_aligned_watchpoint): Likewise.
3390 (i386_remove_aligned_watchpoint): Likewise.
3391 (i386_handle_nonaligned_watchpoint): Likewise.
3392 (i386_update_inferior_debug_regs): Likewise.
3393 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3394 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3395 (i386_region_ok_for_watchpoint):
3396 Use i386_dr_region_ok_for_watchpoint.
3397 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3399 2014-06-19 Gary Benson <gbenson@redhat.com>
3401 * i386-nat.c (i386_insert_hw_breakpoint): Use
3402 i386_insert_watchpoint.
3403 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3405 2014-06-19 Gary Benson <gbenson@redhat.com>
3407 * i386-nat.c (i386_dr_show): Renamed to
3408 i386_show_dr and made static. All uses updated.
3409 (i386_dr_length_and_rw_bits): Renamed to
3410 i386_length_and_rw_bits and made static.
3412 (i386_dr_insert_aligned_watchpoint): Renamed to
3413 i386_insert_aligned_watchpoint and made static.
3415 (i386_dr_remove_aligned_watchpoint): Renamed to
3416 i386_remove_aligned_watchpoint and made static.
3418 (i386_dr_update_inferior_debug_regs): Renamed to
3419 i386_update_inferior_debug_regs and made static.
3421 * nat/i386-dregs.h (i386_dr_show): Removed.
3422 (i386_dr_length_and_rw_bits): Likewise.
3423 (i386_dr_insert_aligned_watchpoint): Likewise.
3424 (i386_dr_remove_aligned_watchpoint): Likewise.
3425 (i386_dr_update_inferior_debug_regs): Likewise.
3427 2014-06-19 Gary Benson <gbenson@redhat.com>
3429 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3430 * configure: Regenerate.
3431 * config.in: Likewise.
3432 * main.c (signal.h): New include.
3433 (setup_alternate_signal_stack): New function.
3434 (captured_main): Call the above.
3435 * cp-support.c (signal.h): New include.
3436 (catch_demangler_crashes): New flag.
3437 (SIGJMP_BUF): New define.
3438 (SIGSETJMP): Likewise.
3439 (SIGLONGJMP): Likewise.
3440 (gdb_demangle_jmp_buf): New static global.
3441 (gdb_demangle_attempt_core_dump): Likewise.
3442 (gdb_demangle_signal_handler): New function.
3443 (gdb_demangle): If catch_demangler_crashes is set, install the
3444 above signal handler before calling bfd_demangle, and restore
3445 the original signal handler afterwards. Display the offending
3446 symbol and call demangler_warning the first time a segmentation
3448 (_initialize_cp_support): New maint set/show command.
3450 2014-06-19 Gary Benson <gbenson@redhat.com>
3452 * utils.h (resource_limit_kind): New enum.
3453 (can_dump_core): New declaration.
3454 (warn_cant_dump_core): Likewise.
3455 (dump_core): Likewise.
3456 * utils.c (dump_core): Made nonstatic. Added new
3457 parameter "limit_kind".
3458 (can_dump_core): Made nonstatic. Moved printing code to...
3459 (warn_cant_dump_core): New function.
3460 (can_dump_core_warn): Likewise.
3461 (internal_vproblem): Replace calls to can_dump_core with
3462 calls to can_dump_core_warn. Supply new argument to each.
3464 2014-06-19 Gary Benson <gbenson@redhat.com>
3466 * utils.h (demangler_vwarning): New declaration.
3467 (demangler_warning): Likewise.
3468 * utils.c (struct internal_problem)
3469 <user_settable_should_quit>: New field.
3470 <user_settable_should_dump_core>: Likewise
3471 (internal_error_problem): Add values for above new fields.
3472 (internal_warning_problem): Likewise.
3473 (demangler_warning_problem): New static global.
3474 (demangler_vwarning): New function.
3475 (demangler_warning): Likewise.
3476 (add_internal_problem_command): Selectively add commands.
3477 (_initialize_utils): New internal problem command.
3478 * maint.c (maintenance_demangler_warning): New function.
3479 (_initialize_maint_cmds): New command.
3481 2014-06-18 Tom Tromey <tromey@redhat.com>
3483 * f-valprint.c (info_common_command_for_block): Update.
3484 * symtab.h (struct general_symbol_info) <common_block>: Now
3487 2014-06-18 Tom Tromey <tromey@redhat.com>
3489 * symtab.h (struct symtab) <blockvector>: Now const.
3490 * ada-lang.c (ada_add_global_exceptions): Update.
3491 * buildsym.c (augment_type_symtab): Update.
3492 * dwarf2read.c (dw2_lookup_symbol): Update.
3493 * jit.c (finalize_symtab): Update.
3494 * jv-lang.c (add_class_symtab_symbol): Update.
3495 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3497 * objfiles.c (objfile_relocate1): Update.
3498 * psymtab.c (lookup_symbol_aux_psymtabs)
3499 (maintenance_check_psymtabs): Update.
3500 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3502 * spu-tdep.c (spu_catch_start): Update.
3503 * symmisc.c (dump_symtab_1): Update.
3504 * symtab.c (lookup_global_symbol_from_objfile)
3505 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3506 (basic_lookup_transparent_type_quick)
3507 (basic_lookup_transparent_type, find_pc_sect_symtab)
3508 (find_pc_sect_line, search_symbols): Update.
3509 * block.c (find_block_in_blockvector): Make "bl" const.
3510 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3512 (blockvector_contains_pc): Make "bv" const.
3513 (block_for_pc_sect): Update.
3514 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3515 (blockvector_contains_pc): Update.
3516 * breakpoint.c (resolve_sal_pc): Update.
3517 * inline-frame.c (block_starting_point_at): Update.
3519 2014-06-18 Tom Tromey <tromey@redhat.com>
3521 * completer.c (complete_line): Make "line_buffer" const.
3522 * completer.h (complete_line): Update.
3524 2014-06-18 Tom Tromey <tromey@redhat.com>
3526 * symtab.c (add_macro_name): Remove unneeded cast.
3528 2014-06-18 Tom Tromey <tromey@redhat.com>
3530 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3531 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3533 2014-06-18 Tom Tromey <tromey@redhat.com>
3535 * probe.c (info_probes_for_ops): Make "arg" const.
3536 * probe.h (info_probes_for_ops): Update.
3538 2014-06-18 Tom Tromey <tromey@redhat.com>
3540 * varobj.c (varobj_create): Update.
3541 * valops.c (value_of_this): Update.
3542 * tracepoint.c (add_local_symbols, scope_info): Update.
3543 * symtab.h (struct general_symbol_info) <block>: Now const.
3544 * symtab.c (skip_prologue_sal)
3545 (default_make_symbol_completion_list_break_on)
3546 (skip_prologue_using_sal): Update.
3547 * stack.h (iterate_over_block_locals)
3548 (iterate_over_block_local_vars): Update.
3549 * stack.c (print_frame_args): Update.
3550 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3552 (get_selected_block): Make return type const.
3553 * python/py-frame.c (frapy_block): Update.
3554 * python/py-block.c (gdbpy_block_for_pc): Update.
3555 * p-exp.y (%union) <bval>: Now const.
3556 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3557 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3558 * m2-exp.y (%union) <bval>: Now const.
3559 * linespec.c (get_current_search_block): Make return type const.
3560 (create_sals_line_offset, find_label_symbols): Update.
3561 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3563 (block_starting_point_at): Make "block" const.
3564 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3565 (check_exception_resume): Update.
3566 * guile/scm-frame.c (gdbscm_frame_block): Update.
3567 * guile/scm-block.c (gdbscm_lookup_block): Update.
3568 * frame.h (get_frame_block): Update.
3569 (get_selected_block): Make return type const.
3570 * frame.c (frame_id_inner): Update.
3571 * f-valprint.c (info_common_command_for_block)
3572 (info_common_command): Update.
3573 * dwarf2loc.c (dwarf2_find_location_expression)
3574 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3575 (locexpr_describe_location_piece): Update.
3576 * c-exp.y (%union) <bval>: Now const.
3577 * breakpoint.c (resolve_sal_pc): Update.
3578 * blockframe.c (get_frame_block):Make return type const.
3579 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3580 (block_innermost_frame): Update.
3581 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3582 (block_for_pc, block_for_pc_sect): Update.
3583 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3585 (block_for_pc_sect, block_for_pc): Make return type const.
3586 * ax-gdb.c (gen_expr): Update.
3587 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3588 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3589 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3590 (ada_read_var_value): Update.
3591 * ada-exp.y (struct name_info) <block>: Now const.
3593 (block_lookup): Constify.
3595 2014-06-18 Gary Benson <gbenson@redhat.com>
3597 * nat/i386-dregs.h: New file.
3598 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3599 * i386-nat.h (i386-dregs.h): New include.
3600 (DR_FIRSTADDR): Now in i386-dregs.h.
3601 (DR_LASTADDR): Likewise.
3602 (DR_NADDR): Likewise.
3603 (DR_STATUS): Likewise.
3604 (DR_CONTROL): Likewise.
3605 (i386_debug_reg_state): Likewise.
3606 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3608 2014-06-18 Don Breazeal <donb@codesourcery.com>
3610 * breakpoint.c (set_longjmp_breakpoint): Call
3611 momentary_breakpoint_from_master with additional argument.
3612 (set_longjmp_breakpoint_for_call_dummy): Call
3613 momentary_breakpoint_from_master with additional argument.
3614 (set_std_terminate_breakpoint): Call
3615 momentary_breakpoint_from_master with additional argument.
3616 (momentary_breakpoint_from_master): Add argument to function
3617 definition and use it to initialize structure member flag.
3618 (clone_momentary_breakpoint): Call
3619 momentary_breakpoint_from_master with additional argument.
3620 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3621 member flags set in momentary_breakpoint_from_master.
3623 2014-06-18 Gary Benson <gbenson@redhat.com>
3625 * i386-nat.c (i386_show_dr): Renamed to
3626 i386_dr_show and made nonstatic. All uses updated.
3627 (i386_length_and_rw_bits): Renamed to
3628 i386_dr_length_and_rw_bits and made nonstatic.
3630 (i386_insert_aligned_watchpoint): Renamed to
3631 i386_dr_insert_aligned_watchpoint and made nonstatic.
3633 (i386_remove_aligned_watchpoint): Renamed to
3634 i386_dr_remove_aligned_watchpoint and made nonstatic.
3636 (i386_update_inferior_debug_regs): Renamed to
3637 i386_dr_update_inferior_debug_regs and made nonstatic.
3640 2014-06-18 Gary Benson <gbenson@redhat.com>
3642 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3643 (i386_dr_low_can_set_control): Likewise.
3644 (i386_dr_low_set_addr): Likewise.
3645 (i386_dr_low_set_control): Likewise.
3646 (i386_dr_low_get_addr): Likewise.
3647 (i386_dr_low_get_status): Likewise.
3648 (i386_dr_low_get_control): Likewise.
3649 (i386_insert_aligned_watchpoint): Use new macros.
3650 (i386_update_inferior_debug_regs): Likewise.
3651 (i386_stopped_data_address): Likewise.
3653 2014-06-18 Gary Benson <gbenson@redhat.com>
3655 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3656 New parameter. All uses updated.
3658 2014-06-18 Gary Benson <gbenson@redhat.com>
3660 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3663 2014-06-18 Gary Benson <gbenson@redhat.com>
3665 * i386-nat.c (debug_printf): New macro.
3666 (i386_get_debug_register_length): Likewise.
3667 (TARGET_HAS_DR_LEN_8): Use above macro.
3668 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3669 and printf_unfiltered. Use phex to format values.
3671 2014-06-18 Gary Benson <gbenson@redhat.com>
3673 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3676 2014-06-18 Gary Benson <gbenson@redhat.com>
3678 * i386-nat.c: Comment changes.
3680 2014-06-18 Gary Benson <gbenson@redhat.com>
3682 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3684 2014-06-18 Gary Benson <gbenson@redhat.com>
3686 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3687 (i386_insert_aligned_watchpoint): Likewise.
3688 (i386_remove_aligned_watchpoint): Likewise.
3689 (i386_handle_nonaligned_watchpoint): Likewise.
3691 2014-06-18 Gary Benson <gbenson@redhat.com>
3693 * i386-nat.c: Whitespace changes.
3695 2014-06-17 Samuel Bronson <naesten@gmail.com>
3697 * MAINTAINERS: Update Roland McGrath's email address.
3698 Thanks to Sergio Durigan Junior for pointing out that he left
3699 Red Hat a while ago, and giving me a current address.
3701 2014-06-17 Tom Tromey <tromey@redhat.com>
3703 * utils.h (savestring): Remove declaration.
3705 2014-06-17 Tom Tromey <tromey@redhat.com>
3707 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3709 2014-06-16 Keith Seitz <keiths@redhat.com>
3712 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3713 to update the varobj if inferior_ptid is null_ptid.
3715 2014-06-16 Tom Tromey <tromey@redhat.com>
3717 * target.h (struct target_ops) <to_info_proc>: Make parameter
3719 (target_info_proc): Update.
3720 * target.c (target_info_proc): Make "args" const.
3721 * procfs.c (procfs_info_proc): Update.
3722 * linux-tdep.c (linux_info_proc): Update.
3723 (linux_core_info_proc_mappings): Make "args" const.
3724 (linux_core_info_proc): Update.
3725 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3726 * gdbarch.c: Rebuild.
3727 * gdbarch.h: Rebuild.
3728 * corelow.c (core_info_proc): Update.
3730 2014-06-16 Tom Tromey <tromey@redhat.com>
3732 * target.h (struct target_ops) <to_disconnect>: Make parameter
3734 (target_disconnect): Update.
3735 * target.c (target_disconnect): Make "args" const.
3736 * target-delegates.c: Rebuild.
3737 * remote.c (remote_disconnect): Update.
3738 * record.h (record_disconnect): Update.
3739 * record.c (record_disconnect): Update.
3740 * inf-child.c (inf_child_disconnect): Update.
3742 2014-06-16 Tom Tromey <tromey@redhat.com>
3744 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3745 * target.c (debug_to_rcmd, default_rcmd): Update.
3746 * target-delegates.c: Rebuild.
3747 * remote.c (remote_rcmd): Update.
3748 * monitor.c (monitor_rcmd): Update.
3750 2014-06-16 Pedro Alves <palves@redhat.com>
3752 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3753 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3754 have OBJF_SHARED set.
3755 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3756 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3757 instead of OBJF_USERLOADED.
3758 * objfiles.h (OBJF_SHARED): Update comment.
3759 (userloaded_objfile_contains_address_p): Rename to ...
3760 (shared_objfile_contains_address_p): ... this, and update
3762 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3764 (remove_symbol_file_command): Skip objfiles that don't have
3767 2014-06-16 Tom Tromey <tromey@redhat.com>
3769 * minsyms.h (prim_record_minimal_symbol)
3770 (prim_record_minimal_symbol_and_info): Update comments.
3772 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3774 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3775 or --without-guile, according to how GDB was built.
3777 2014-06-13 Tom Tromey <tromey@redhat.com>
3779 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3781 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3783 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3785 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3786 help_list.Pass all_commands, not -1, to help_list.
3787 * cli/cli-dump.c (dump_command, append_command)
3788 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3789 (binary_dump_command, binary_append_command): Pass all_commands,
3790 not -1, to help_list.
3791 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3793 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3795 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3797 * top.c (set_history): Pass all_commands, not -1, to help_list.
3798 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3799 all_commands, not -1, to help_list.
3800 * symfile.c (overlay_command): Pass all_commands, not -1, to
3802 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3804 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3806 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3808 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3809 not -1, to help_list.
3810 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3811 not -1, to help_list.
3812 * maint.c (maintenance_command, maintenance_info_command)
3813 (maintenance_print_command, maintenance_set_cmd): Pass
3814 all_commands, not -1, to help_list.
3815 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3817 * language.c (set_check): Pass all_commands, not -1, to help_list.
3818 * infcmd.c (unset_command): Pass all_commands, not -1, to
3820 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3822 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3824 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3826 * breakpoint.c (save_command): Pass all_commands, not -1, to
3828 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3829 all_commands, not -1, to help_list.
3831 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3833 * regcache.c (struct register_to_invalidate): New structure.
3834 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3836 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3838 2014-06-12 Yao Qi <yao@codesourcery.com>
3840 * varobj.c (varobj_get_num_children): Call
3841 varobj_is_dynamic_p.
3842 (varobj_list_children): Likewise.
3843 (varobj_update): Likewise. Update comments.
3845 2014-06-12 Yao Qi <yao@codesourcery.com>
3847 * varobj.c (varobj_pretty_printed_p): Rename to ...
3848 (varobj_is_dynamic_p): ... this. New function.
3849 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3850 (varobj_is_dynamic_p): Declare.
3851 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3852 (mi_print_value_p, varobj_update_one): Likewise.
3854 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3855 Yao Qi <yao@codesourcery.com>
3857 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3858 (varobj_get_iterator): Wrap up code for pretty-printer by
3859 "#if HAVE_PYTHON" and "#endif".
3860 (update_dynamic_varobj_children): Likewise.
3862 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3863 Yao Qi <yao@codesourcery.com>
3865 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3866 gdb_python_initialized is false. Move some code from varobj.c.
3867 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3868 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3869 (struct varobj_item): Moved to varobj-iter.h".
3870 (varobj_clear_saved_item): New function.
3871 (update_dynamic_varobj_children): Move python-related code to
3873 (free_variable): Call varobj_clear_saved_item and
3876 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3877 Yao Qi <yao@codesourcery.com>
3879 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3880 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3881 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3882 (py-varobj.o): New rule.
3883 * python/py-varobj.c: New file.
3884 * python/python-internal.h (py_varobj_get_iterator): Declare.
3885 * varobj-iter.h: New file.
3886 * varobj.c: Include "varobj-iter.h"
3887 (struct varobj) <child_iter>: Change its type from "PyObject *"
3888 to "struct varobj_iter *".
3889 <saved_item>: Likewise.
3890 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3891 [HAVE_PYTHON] (varobj_get_iterator): New function.
3892 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3893 python-specific code to python/py-varobj.c.
3894 (install_visualizer): Call varobj_iter_delete instead of
3896 * varobj.h (varobj_ensure_python_env): Declare.
3898 2014-06-12 Yao Qi <yao@codesourcery.com>
3900 * varobj.c (struct varobj_item): New structure.
3901 (create_child_with_value): Update declaration.
3902 (varobj_add_child): Replace arguments 'name' and 'value' with
3903 'item'. All callers updated.
3904 (install_dynamic_child): Likewise.
3905 (update_dynamic_varobj_children): Likewise.
3906 (varobj_add_child): Likewise.
3907 (create_child_with_value): Likewise.
3909 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3911 * NEWS: Create a new section for the next release branch.
3912 Rename the section of the current branch, now that it has
3915 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3917 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3918 * version.in: Bump version to 7.8.50.DATE-cvs.
3920 2014-06-11 Pedro Alves <palves@redhat.com>
3923 * ser-mingw.c (net_windows_socket_check_pending): New function.
3924 (net_windows_select_thread): Ignore spurious wakeups. Use
3925 net_windows_socket_check_pending.
3926 (net_windows_wait_handle): Check for pending events with
3927 ioctlsocket, through net_windows_socket_check_pending, instead of
3928 checking the socket's event.
3930 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3932 * python/python-internal.h (gdb_PyObject_GetAttrString)
3933 (gdb_PyObject_HasAttrString): New inline function definitions.
3934 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3935 char * of the second argument to PyObject_GetAttrString.
3937 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3939 * serial.c (serial_write): Fix index of character to be printed
3940 in call to serial_logchar when serial debug traces are enabled.
3942 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3944 * gdbtypes (resolve_dynamic_range): Add function description.
3946 2014-06-09 Pedro Alves <palves@redhat.com>
3948 * linux-nat.c (linux_child_follow_fork): Initialize status with
3949 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3950 inner block. Only pass the signal to PTRACE_DETACH if in pass
3953 2014-06-09 Gary Benson <gbenson@redhat.com>
3955 * common/signals.c (gdb_signal_from_host): Reorder to separate
3956 the always-available ANSI-standard signals from the signals that
3958 (do_gdb_signal_to_host): Likewise.
3959 * proc-events.c (signal_table): Likewise.
3961 2014-06-08 Hui Zhu <hui@codesourcery.com>
3963 * common/linux-ptrace.c (linux_disable_event_reporting): New
3965 * common/linux-ptrace.h (linux_disable_event_reporting): New
3967 * linux-nat.c (linux_child_follow_fork): Do a single step before
3970 2014-06-07 Keith Seitz <keiths@redhat.com>
3974 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3975 from symbol_matches_domain in symtab.c. All local callers
3976 of symbol_matches_domain updated.
3977 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3978 search STRUCT_DOMAIN.
3979 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3980 independently. standard_lookup will do that automatically.
3981 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3982 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3983 (cp_lookup_symbol_in_namespace): Likewise.
3984 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3985 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3986 may return a STRUCT_DOMAIN match.
3987 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3988 * cp-support.c: Include language.h.
3989 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3991 * psymtab.c (match_partial_symbol): Compare the requested
3992 domain with the symbol's domain directly.
3993 (lookup_partial_symbol): Likewise.
3994 * symtab.c (lookup_symbol_in_language): Explain when/why
3995 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3996 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3997 appropriate languages.
3998 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3999 and moved to ada-lang.c
4000 (lookup_block_symbol): Explain that this function only returns
4001 symbol matching the requested DOMAIN.
4002 Compare the requested domain with the symbol's domain directly.
4003 (iterate_over_symbols): Compare the requested domain with the
4004 symbol's domain directly.
4005 * symtab.h (symbol_matches_domain): Remove.
4007 2014-06-06 Doug Evans <xdje42@gmail.com>
4009 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4010 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4011 (gdbscm_guile_version_is_at_least): Declare.
4012 (gdbscm_scm_string_to_int): Declare.
4013 * guile/guile.c (gdbscm_guile_major_version): New global.
4014 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4015 (guile_datadir): New static global.
4016 (gdbscm_guile_data_directory): New function.
4017 (initialize_scheme_side): Update.
4018 (misc_guile_functions): Add guile-data-directory.
4019 (initialize_gdb_module): Fetch guile version number.
4020 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4021 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4022 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4023 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4025 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4026 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4027 * guile/scm-value.c (gdbscm_value_to_string): Only call
4028 scm_port_conversion_strategy if Guile version >= 2.0.6.
4030 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4032 * main.c (print_gdb_help): Add -q and --silent.
4034 2014-06-06 Gary Benson <gbenson@redhat.com>
4036 * common/signals.c: Remove preprocessor conditionals for
4037 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4038 SIGSEGV and SIGTERM.
4039 * proc-events.c: Likewise.
4041 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4043 * symfile.c (symfile_free_objfile): Remove restriction to
4045 * symfile-mem.c (symbol_file_add_from_memory): Call
4046 add_target_sections_of_objfile.
4048 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4050 * guile/scm-value.c (gdbscm_history_append_x): Use
4051 'vlscm_get_value_smob_arg_unsafe' instead of
4052 'vlscm_scm_to_value'.
4054 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4057 * utils.c (printchar): Don't escape at all if quoter is NUL.
4058 Update function documentation to clarify effect of parameter
4060 * remote.c (escape_buffer): Pass '\\' as the quoter to
4061 fputstrn_unfiltered.
4062 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4063 generate the output.
4064 (mi_solib_unloaded): Same.
4066 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4068 * development.sh: Delete.
4069 * Makefile.in (config.status): Adjust dependency on development.sh.
4070 * configure.ac: Adjust development.sh source call.
4071 * configure: Regenerate.
4073 2014-06-04 Doug Evans <xdje42@gmail.com>
4075 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4076 is_scheme_bkpt, spec.
4077 (bpscm_make_breakpoint_smob): Initialize new members.
4078 (gdbscm_create_breakpoint_x): Split into two ...
4079 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4080 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4081 (scheme_function breakpoint_functions): Update.
4082 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4083 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4084 register-breakpoint!.
4086 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4089 * mem-break.c (z_type_supported): Return zero if
4090 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4092 2014-06-04 Tom Tromey <tromey@redhat.com>
4094 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4095 value_from_contents_and_address_unresolved.
4096 (ada_template_to_fixed_record_type_1): Likewise.
4097 (ada_which_variant_applies): Likewise.
4098 * value.h (value_from_contents_and_address_unresolved): Declare.
4099 * value.c (value_from_contents_and_address_unresolved): New
4101 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4102 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4103 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4105 2014-06-04 Tom Tromey <tromey@redhat.com>
4107 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4109 2014-06-04 Tom Tromey <tromey@redhat.com>
4111 * procfs.c (procfs_attach): Make "args" const.
4112 * windows-nat.c (windows_attach): Make "args" const.
4113 * nto-procfs.c (procfs_attach): Make "args" const.
4114 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4115 * go32-nat.c (go32_attach): Make "args" const.
4116 * gnu-nat.c (gnu_attach): Make "args" const.
4117 * darwin-nat.c (darwin_attach): Make "args" const.
4118 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4119 * linux-nat.c (linux_nat_attach): Make "args" const.
4120 * remote.c (extended_remote_attach_1, extended_remote_attach):
4122 * target.h (struct target_ops) <to_attach>: Make "args" const.
4123 (find_default_attach): Likewise.
4124 * utils.c (parse_pid_to_attach): Make "args" const.
4125 * utils.h (parse_pid_to_attach): Update.
4127 2014-06-04 Tom Tromey <tromey@redhat.com>
4129 * target-delegates.c: Rebuild.
4130 * target.c (default_thread_address_space): New function.
4131 (target_thread_address_space): Simplify.
4132 * target.h (struct target_ops) <to_thread_address_space>: Add
4133 TARGET_DEFAULT_FUNC.
4135 2014-06-04 Doug Evans <xdje42@gmail.com>
4137 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4139 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4141 * record-btrace.c: Include event-loop.h and inf-loop.h.
4142 (record_btrace_resume_exec_dir)
4143 (record_btrace_async_inferior_event_handler)
4144 (record_btrace_handle_async_inferior_event): New.
4145 (record_btrace_open): Create async event handler.
4146 (record_btrace_close): Delete async event handler.
4147 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4148 Mark async event handler.
4149 (record_btrace_execution_direction): New.
4150 (init_record_btrace_ops): Initialize to_execution_direction.
4152 2014-06-03 Doug Evans <xdje42@gmail.com>
4154 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4155 (gdbscm_make_parameter): Ditto.
4157 2014-06-03 Doug Evans <dje@google.com>
4159 * exec.c (exec_close_1): Call clear_section_table instead of
4160 resize_section_table.
4161 (clear_section_table): New function.
4162 (resize_section_table): Make static. Rename arg num_added to
4164 * exec.h (clear_section_table): Declare.
4165 (resize_section_table): Delete.
4166 * progspace.c (release_program_space): Call clear_section_table
4167 instead of resize_section_table.
4169 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4171 * NEWS (Python Scripting): Add entry about the new xmethods
4174 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4176 * python/py-xmethods.c: New file.
4177 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4178 (objfpy_dealloc): XDECREF on the new xmethods field.
4179 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4181 (objfpy_get_xmethods): New function.
4182 (objfile_getset): New entry 'xmethods'.
4183 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4184 (pspy_dealloc): XDECREF on the new xmethods field.
4185 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4187 (pspy_get_xmethods): New function.
4188 (pspace_getset): New entry 'xmethods'.
4189 * python/python-internal.h: Add declarations for new functions.
4190 * python/python.c (_initialize_python): Invoke
4191 gdbpy_initialize_xmethods.
4192 * python/lib/gdb/__init__.py (xmethods): New
4194 * python/lib/gdb/xmethod.py: New file.
4195 * python/lib/gdb/command/xmethods.py: New file.
4197 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4199 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4200 best match method returned by find_overload_match is an xmethod.
4201 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4202 the best matching operator returned by find_overload_match is an
4204 * valops.c: #include "extension.h".
4205 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4206 Return void. The list of matching source methods is returned in
4207 "fn_list" and a vector of matching debug method workers is
4208 returned in "xm_worker_vec". Update all callers.
4209 (value_find_oload_method_list): Likewise.
4210 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4211 non-NULL, then the index of the best matching method in this
4212 vector is returned. Update all callers.
4213 (find_overload_match): Include xmethods while performing overload
4216 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4218 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4219 * extension-priv.h (struct extension_language_ops): Add the
4221 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4222 get_matching_xmethod_workers, get_xmethod_argtypes,
4223 invoke_xmethod, free_xmethod_worker,
4224 free_xmethod_worker_vec): New functions.
4225 * extension.h: #include "common/vec.h".
4226 New function declarations.
4227 (struct xmethod_worker): New struct.
4228 (VEC (xmethod_worker_ptr)): New vector type.
4229 (xmethod_worker_ptr): New typedef.
4230 (xmethod_worker_vec): Likewise.
4231 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4233 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4234 (struct builtin_type): New field "xmethod".
4235 * valarith.c (value_ptradd): Assert that the value argument is not
4237 * valops.c (value_must_coerce_to_target): Return 0 for
4238 lval_xcallable values.
4239 * value.c (struct value): New field XM_WORKER in the field
4241 (value_address, value_raw_address): Return 0 for lval_xcallable
4243 (set_value_address): Assert that the value is not an
4245 (value_free): Free the associated xmethod worker when freeing
4246 lval_xcallable values.
4247 (set_value_component_location): Assert that the WHOLE value is not
4249 (value_of_xmethod, call_xmethod): New functions.
4250 * value.h: Declare "struct xmethod_worker".
4251 Declare new functions value_of_xmethod, call_xmethod.
4253 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4254 Pedro Alves <palves@redhat.com>
4256 PR breakpoints/17000
4257 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4258 New function, extracted from software_breakpoint_inserted_here_p.
4259 (software_breakpoint_inserted_here_p): Replace factored out code
4260 by call to find_non_raw_software_breakpoint_inserted_here.
4261 (bp_target_info_copy_insertion_state): New function.
4262 (bkpt_insert_location): Handle the case of a single-step
4263 breakpoint already inserted at the same address.
4264 (bkpt_remove_location): Handle the case of a single-step
4265 breakpoint still inserted at the same address.
4266 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4267 breakpoint already inserted at the same address.
4268 (deprecated_remove_raw_breakpoint): Handle the case of a
4269 non-raw breakpoint still inserted at the same address.
4270 (find_single_step_breakpoint): New function, extracted from
4271 single_step_breakpoint_inserted_here_p.
4272 (find_single_step_breakpoint): New function,
4273 factored out from single_step_breakpoint_inserted_here_p.
4274 (single_step_breakpoint_inserted_here_p): Reimplement.
4276 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4278 Pushed by Joel Brobecker <brobecker@adacore.com>
4279 * source.c (show_substitute_path_command): Fix display of matching
4282 2014-06-03 Gary Benson <gbenson@redhat.com>
4284 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4286 2014-06-02 Doug Evans <xdje42@gmail.com>
4288 Add parameter support for Guile.
4289 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4290 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4291 (scm-param.o): New rule.
4292 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4293 (gdbscm_misc_error): Declare.
4294 (gdbscm_canonicalize_command_name): Declare.
4295 (gdbscm_scm_to_host_string): Declare.
4296 (gdbscm_scm_from_host_string): Declare.
4297 (gdbscm_initialize_parameters): Declare.
4298 * guile/guile.c (initialize_gdb_module): Call
4299 gdbscm_initialize_parameters.
4300 * guile/lib/gdb.scm: Export parameter symbols.
4301 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4302 cmdscm_canonicalize_name and made public. All callers updated.
4303 * guile/scm-exception.c (gdbscm_misc_error): New function.
4304 * guile/scm-param.c: New file.
4305 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4306 (gdbscm_scm_to_host_string): New function.
4307 (gdbscm_scm_from_host_string): New function.
4308 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4310 2014-06-02 Doug Evans <xdje42@gmail.com>
4312 Add command support for Guile.
4313 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4314 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4315 (scm-cmd.o): New rule.
4316 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4317 (gdbscm_user_error_p): Declare.
4318 (gdbscm_parse_command_name): Declare.
4319 (gdbscm_valid_command_class_p): Declare.
4320 (gdbscm_initialize_commands): Declare.
4321 * guile/guile.c (initialize_gdb_module): Call
4322 gdbscm_initialize_commands.
4323 * guile/lib/gdb.scm: Export command symbols.
4324 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4325 (throw-user-error): New function.
4326 * guile/scm-cmd.c: New file.
4327 * guile/scm-exception.c (user_error_symbol): New static global.
4328 (gdbscm_user_error_p): New function.
4329 (gdbscm_initialize_exceptions): Set user_error_symbol.
4330 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4332 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4334 * top.c (command_loop): Handle comments here...
4335 (command_line_input): ... not here.
4337 2014-06-02 Doug Evans <xdje42@gmail.com>
4339 Add progspace support for Guile.
4340 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4341 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4342 (scm-progspace.o): New rule.
4343 * guile/guile-internal.h (pspace_smob): New typedef.
4344 (psscm_pspace_smob_pretty_printers): Declare.
4345 (psscm_pspace_smob_from_pspace): Declare.
4346 (psscm_scm_from_pspace): Declare.
4347 * guile/guile.c (initialize_gdb_module): Call
4348 gdbscm_initialize_pspaces.
4349 * guile/lib/gdb.scm: Export progspace symbols.
4350 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4352 (append-pretty-printer!): Ditto.
4353 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4355 * guile/scm-progspace.c: New file.
4357 2014-06-03 Alan Modra <amodra@gmail.com>
4359 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4360 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4362 2014-06-02 Doug Evans <dje@google.com>
4364 Add support for skeletonless type units.
4365 * dwarf2read.c (struct dwarf2_per_objfile): New member
4366 n_allocated_type_units.
4367 (struct dwarf2_per_objfile) <tu_stats>: New member
4368 nr_all_type_units_reallocs.
4369 (create_signatured_type_table_from_index): Initialize
4370 n_allocated_type_units
4371 (create_all_type_units): Ditto.
4372 (add_type_unit): Move up in file. New arg slot.
4373 All callers updated. Increase space for all_type_units more
4375 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4376 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4377 (lookup_dwp_signatured_type): Ditto.
4378 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4379 All callers updated.
4380 (build_type_psymtabs_1): Leave type_unit_groups as
4381 NULL if no TUs present.
4382 (print_tu_stats): New function.
4383 (process_skeletonless_type_unit): New function.
4384 (process_dwo_file_for_skeletonless_type_units): New
4386 (process_skeletonless_type_units): New function.
4387 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4388 Call print tu_stats if debugging enabled.
4390 2014-06-02 Pedro Alves <palves@redhat.com>
4392 * breakpoint.c (build_target_command_list): Don't build a command
4393 list if we have any duplicate location that isn't a dprintf.
4395 2014-06-02 Pedro Alves <palves@redhat.com>
4397 * breakpoint.c (dprintf_breakpoint_hit): New function.
4398 (initialize_breakpoint_ops): Install it as dprintf's
4399 breakpoint_hit method.
4401 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4403 * source.c (substitute_path_rule_matches): Simplify using
4404 filename_ncmp instead of FILENAME_CMP.
4406 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4408 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4410 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4412 * configure.ac: When Guile is available, check for the
4413 availability of 'scm_new_smob'.
4414 * configure, config.h.in: Regenerate.
4415 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4418 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4420 * frame.c (struct frame_info): Add stop_string field.
4421 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4422 (get_prev_frame_always): Old content moved into
4423 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4424 TRY_CATCH, handle MEMORY_ERROR exceptions.
4425 (frame_stop_reason_string): New function definition.
4426 * frame.h (unwind_stop_reason_to_string): Extend comment to
4427 mention frame_stop_reason_string.
4428 (frame_stop_reason_string): New function declaration.
4429 * stack.c (frame_info): Switch to frame_stop_reason_string.
4430 (backtrace_command_1): Switch to frame_stop_reason_string.
4431 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4432 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4433 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4435 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4437 * frame.c (frame_stop_reason_string): Rename to ...
4438 (unwind_stop_reason_to_string): this.
4439 * frame.h (frame_stop_reason_string): Rename to ...
4440 (unwind_stop_reason_to_string): this.
4441 * stack.c (frame_info): Update call to frame_stop_reason_string.
4442 (backtrace_command_1): Likewise.
4443 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4444 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4446 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4448 * frame.c (remove_prev_frame): New function.
4449 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4452 2014-05-29 Pedro Alves <palves@redhat.com>
4454 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4455 and make it const. When a single-step decays to a continue,
4456 clear 'step', not 'hw_step'. Pass whether the caller wanted
4457 to step to user_visible_resume_ptid, not what we ask the
4460 2014-05-29 Pedro Alves <palves@redhat.com>
4462 * infrun.c (process_event_stop_test, handle_step_into_function)
4463 (handle_step_into_function_backward): Adjust.
4464 Don't set the even thread's stop_step and call stop_waiting before
4465 calling end_stepping_range. Instead do that ...
4466 (end_stepping_range): ... here. Take an ecs pointer parameter.
4468 2014-05-29 Pedro Alves <palves@redhat.com>
4470 * infrun.c (stop_stepping): Rename to ...
4471 (stop_waiting): ... this.
4472 (proceed): Update comment.
4473 (process_event_stop_test, handle_inferior_event)
4474 (handle_signal_stop, handle_step_into_function)
4475 (handle_step_into_function_backward): Update.
4477 2014-05-29 Pedro Alves <palves@redhat.com>
4479 * infcall.c (run_inferior_call): Don't check whether the current
4480 thread is running after the proceed call.
4482 2014-05-29 Pedro Alves <palves@redhat.com>
4483 Tom Tromey <tromey@redhat.com>
4485 * NEWS: Mention "maint set target-async", "set mi-async", and that
4486 background execution commands are now always available.
4487 * target.h (target_async_permitted): Update comment.
4488 * target.c (target_async_permitted, target_async_permitted_1):
4490 (set_target_async_command): Rename to ...
4491 (maint_set_target_async_command): ... this.
4492 (show_target_async_command): Rename to ...
4493 (maint_show_target_async_command): ... this.
4494 (_initialize_target): Adjust.
4495 * infcmd.c (prepare_execution_command): Make extern.
4496 * inferior.h (prepare_execution_command): Declare.
4497 * infrun.c (set_observer_mode): Leave target async alone.
4498 * mi/mi-interp.c (mi_interpreter_init): Install
4499 mi_on_sync_execution_done as sync_execution_done observer.
4500 (mi_on_sync_execution_done): New function.
4501 (mi_execute_command_input_handler): Don't print the prompt if we
4502 just started a synchronous command with an async target.
4503 (mi_on_resume): Check sync_execution before printing prompt.
4504 * mi/mi-main.h (mi_async_p): Declare.
4505 * mi/mi-main.c: Include gdbcmd.h.
4506 (mi_async_p): New function.
4507 (mi_async, mi_async_1): New globals.
4508 (set_mi_async_command, show_mi_async_command, mi_async): New
4510 (exec_continue): Call prepare_execution_command.
4511 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4512 (mi_execute_async_cli_command): Use mi_async_p.
4513 (_initialize_mi_main): Install "set mi-async". Make
4514 "target-async" a deprecated alias.
4516 2014-05-29 Pedro Alves <palves@redhat.com>
4518 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4519 (_initialize_cli_interp): Adjust.
4520 * event-loop.c: Include "observer.h".
4521 (start_event_loop): Notify 'command_error' observers instead of
4522 calling display_gdb_prompt. Remove FIXME comment.
4523 * event-top.c (display_gdb_prompt): Remove call into the
4525 * inf-loop.c: Include "observer.h".
4526 (inferior_event_handler): Notify 'command_error' observers instead
4527 of calling display_gdb_prompt.
4528 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4529 observers instead of calling display_gdb_prompt.
4530 * interps.c (interp_set): Don't call display_gdb_prompt.
4531 (current_interp_display_prompt_p): Delete.
4532 * interps.h (interp_prompt_p): Delete declaration.
4533 (interp_prompt_p_ftype): Delete.
4534 (struct interp_procs) <prompt_proc_p>: Delete field.
4535 (current_interp_display_prompt_p): Delete declaration.
4536 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4537 (_initialize_mi_interp): Adjust.
4538 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4539 'command_error' observers.
4540 (tui_on_sync_execution_done, tui_on_command_error): New
4542 (tui_display_prompt_p): Delete.
4543 (_initialize_tui_interp): Adjust.
4545 2014-05-29 Pedro Alves <palves@redhat.com>
4548 * cli/cli-interp.c: Include infrun.h and observer.h.
4549 (cli_uiout, cli_interp): New globals.
4550 (cli_on_signal_received, cli_on_end_stepping_range)
4551 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4553 (cli_interpreter_init): Install them as 'end_stepping_range',
4554 'signal_received' 'signal_exited', 'exited' and 'no_history'
4556 (_initialize_cli_interp): Remove cli_interp local.
4557 * infrun.c (handle_inferior_event): Call the several stop reason
4558 observers instead of printing the stop reason directly.
4559 (end_stepping_range): New function.
4560 (print_end_stepping_range_reason, print_signal_exited_reason)
4561 (print_exited_reason, print_signal_received_reason)
4562 (print_no_history_reason): Make static, and add an uiout
4563 parameter. Print to that instead of to CURRENT_UIOUT.
4564 * infrun.h (print_end_stepping_range_reason)
4565 (print_signal_exited_reason, print_exited_reason)
4566 (print_signal_received_reason print_no_history_reason): New
4568 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4570 <cli_uiout>: New field.
4571 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4572 uiout for CLI output. Install 'signal_received',
4573 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4575 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4576 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4577 (mi_on_no_history): New functions.
4578 (ui_out_free_cleanup): Delete function.
4579 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4580 instead use the one already stored in the MI interpreter data.
4581 (mi_ui_out): Adjust.
4582 * tui/tui-interp.c: Include infrun.h and observer.h.
4583 (tui_interp): New global.
4584 (tui_on_signal_received, tui_on_end_stepping_range)
4585 (tui_on_signal_exited, tui_on_exited)
4586 (tui_on_no_history): New functions.
4587 (tui_init): Install them as 'end_stepping_range',
4588 'signal_received' 'signal_exited', 'exited' and 'no_history'
4590 (_initialize_tui_interp): Delete tui_interp local.
4592 2014-05-29 Pedro Alves <palves@redhat.com>
4595 * linux-nat.c (linux_nat_resume_callback): Rename the second
4596 parameter to 'except'. Skip LP if it points to EXCEPT.
4597 (linux_nat_resume): Don't mark the event lwp as not stopped
4598 before resuming sibling lwps. Instead ask
4599 linux_nat_resume_callback to skip the event lwp. Mark it as not
4600 stopped after actually resuming it.
4601 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4603 (wait_lwp): Mark the lwp as stopped here.
4604 (stop_wait_callback): Mark the lwp as not stopped right after
4605 resuming it. Don't mark lwps as stopped here.
4606 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4607 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4609 2014-05-29 Pedro Alves <palves@redhat.com>
4612 * infrun.c (resume): Determine how much to resume depending on
4613 whether the caller wanted a step, not whether we can hardware step
4614 the target. Mark all threads that we intend to run as running,
4615 unless we're calling an inferior function.
4616 (normal_stop): If the thread is running an infcall, don't finish
4618 * target.c (target_resume): Don't mark threads as running here.
4620 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4622 * serial.c (_initialize_serial): Remove support for
4623 the "set remotebaud" and "show remotebaud" commands.
4624 * NEWS: Add entry documenting the removal of that command.
4626 2014-05-28 Yao Qi <yao@codesourcery.com>
4628 * charset.c: Fix typo in comments.
4630 2014-05-27 Gary Benson <gbenson@redhat.com>
4632 * utils.c (internal_vproblem): Prompt for a bug report.
4634 2014-05-26 Andy Wingo <wingo@igalia.com>
4636 * guile/scm-arch.c (arscm_mark_arch_smob):
4637 * guile/scm-block.c (bkscm_mark_block_smob)
4638 (bkscm_mark_block_syms_progress_smob):
4639 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4640 * guile/scm-exception.c (exscm_mark_exception_smob):
4641 * guile/scm-frame.c (frscm_mark_frame_smob):
4642 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4643 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4644 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4645 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4646 (ppscm_mark_pretty_printer_worker_smob):
4647 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4648 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4649 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4650 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4652 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4655 2014-05-26 Andy Wingo <wingo@igalia.com>
4656 Doug Evans <xdje42@gmail.com>
4658 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4659 empty_base_class. All uses updated.
4660 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4661 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4663 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4664 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4665 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4666 (gdbscm_gsmob_has_property_p, add_property_name)
4667 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4668 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4669 (gdb-object-has-property?, gdb-object-properties): Remove.
4670 (gdb-object-kind): Renamed from gsmob-kind.
4672 2014-05-26 Andy Wingo <wingo@igalia.com>
4674 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4675 * configure: Regenerate.
4677 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4679 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4681 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4683 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4684 (replay_memory_access_read_only, replay_memory_access_read_write)
4685 (replay_memory_access_types, replay_memory_access)
4686 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4687 (cmd_set_record_btrace, cmd_show_record_btrace)
4688 (cmd_show_replay_memory_access): New.
4689 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4690 (record_btrace_remove_breakpoint): Replace
4691 record_btrace_allow_memory_access with replay_memory_access.
4692 (_initialize_record_btrace): Add commands.
4693 * NEWS: Announce it.
4695 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4697 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4699 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4701 * MAINTAINERS (Write After Approval): Move self back from
4704 2014-05-22 Pedro Alves <palves@redhat.com>
4706 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4707 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4708 (disable_randomization, enum exec_direction_kind)
4709 (execution_direction, stop_registers, start_remote)
4710 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4711 (wait_for_inferior, normal_stop, get_last_target_status)
4712 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4713 (insert_step_resume_breakpoint_at_sal)
4714 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4715 (set_step_info, print_stop_event, signal_stop_state)
4716 (signal_print_state, signal_pass_state, signal_stop_update)
4717 (signal_print_update, signal_pass_update)
4718 (update_signals_program_target, clear_exit_convenience_vars)
4719 (displaced_step_dump_bytes, update_observer_mode)
4720 (signal_catch_update, gdb_signal_from_command): Move
4722 * infrun.h: ... to this new file.
4723 * amd64-tdep.c: Include infrun.h.
4724 * annotate.c: Include infrun.h.
4725 * arch-utils.c: Include infrun.h.
4726 * arm-linux-tdep.c: Include infrun.h.
4727 * arm-tdep.c: Include infrun.h.
4728 * break-catch-sig.c: Include infrun.h.
4729 * breakpoint.c: Include infrun.h.
4730 * common/agent.c: Include infrun.h instead of inferior.h.
4731 * corelow.c: Include infrun.h.
4732 * event-top.c: Include infrun.h.
4733 * go32-nat.c: Include infrun.h.
4734 * i386-tdep.c: Include infrun.h.
4735 * inf-loop.c: Include infrun.h.
4736 * infcall.c: Include infrun.h.
4737 * infcmd.c: Include infrun.h.
4738 * infrun.c: Include infrun.h.
4739 * linux-fork.c: Include infrun.h.
4740 * linux-nat.c: Include infrun.h.
4741 * linux-thread-db.c: Include infrun.h.
4742 * monitor.c: Include infrun.h.
4743 * nto-tdep.c: Include infrun.h.
4744 * procfs.c: Include infrun.h.
4745 * record-btrace.c: Include infrun.h.
4746 * record-full.c: Include infrun.h.
4747 * remote-m32r-sdi.c: Include infrun.h.
4748 * remote-mips.c: Include infrun.h.
4749 * remote-notif.c: Include infrun.h.
4750 * remote-sim.c: Include infrun.h.
4751 * remote.c: Include infrun.h.
4752 * reverse.c: Include infrun.h.
4753 * rs6000-tdep.c: Include infrun.h.
4754 * s390-linux-tdep.c: Include infrun.h.
4755 * solib-irix.c: Include infrun.h.
4756 * solib-osf.c: Include infrun.h.
4757 * solib-svr4.c: Include infrun.h.
4758 * target.c: Include infrun.h.
4759 * top.c: Include infrun.h.
4760 * windows-nat.c: Include infrun.h.
4761 * mi/mi-interp.c: Include infrun.h.
4762 * mi/mi-main.c: Include infrun.h.
4763 * python/py-threadevent.c: Include infrun.h.
4765 2014-05-22 Pedro Alves <palves@redhat.com>
4767 * infrun.c (handle_inferior_event): Store the exit code for
4768 --return-child-result here, instead of ...
4769 (print_exited_reason): ... here.
4771 2014-05-21 Pedro Alves <palves@redhat.com>
4774 * gdbthread.h (struct thread_control_state): New field
4776 * infrun.c (follow_fork): Copy the new thread control field to the
4778 (clear_proceed_status_thread): Clear the new thread control field.
4779 (proceed): Set the new thread control field.
4780 * interps.h (command_interp): Declare.
4781 * interps.c (command_interpreter): New global.
4782 (command_interp): New function.
4783 (interp_exec): Set `command_interpreter' while here.
4784 * cli-out.c (cli_uiout_dtor): New function.
4785 (cli_ui_out_impl): Install it.
4786 * mi/mi-interp.c: Include cli-out.h.
4787 (mi_cmd_interpreter_exec): Add comment.
4788 (restore_current_uiout_cleanup): New function.
4789 (ui_out_free_cleanup): New function.
4790 (mi_on_normal_stop): If finishing an execution command started by
4791 a CLI command, or any kind of breakpoint-like event triggered,
4792 print the stop event to the output (CLI) stream.
4793 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4795 2014-05-21 Pedro Alves <palves@redhat.com>
4797 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4798 current source line having changed.
4799 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4800 * infrun.c (normal_stop): Adjust call to
4801 set_current_sal_from_frame.
4802 * source.c (clear_lines_listed_range): New function.
4803 (set_current_source_symtab_and_line, identify_source_line): Clear
4804 the lines listed range.
4805 (line_info): Handle the first "info line" after the current source
4806 line having changed.
4807 * stack.c (print_stack_frame): Remove center handling.
4808 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4811 2014-05-21 Pedro Alves <palves@redhat.com>
4813 * inf-child.c (inf_child_mourn_inferior): New function.
4814 * inf-child.h (inf_child_mourn_inferior): New declaration.
4815 * darwin-nat.c (darwin_mourn_inferior): Use
4816 inf_child_mourn_inferior.
4817 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4818 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4819 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4820 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4821 * windows-nat.c (windows_mourn_inferior): Likewise.
4823 2014-05-21 Doug Evans <xdje42@gmail.com>
4825 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4827 2014-05-21 Doug Evans <xdje42@gmail.com>
4829 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4830 (gdbscm_out_of_range_error): Ditto.
4831 (gdbscm_memory_error): Ditto.
4832 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4833 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4834 (gdbscm_out_of_range_error): Update.
4835 (gdbscm_memory_error): Update.
4836 (gdbscm_scm_to_target_string_unsafe): Delete.
4838 2014-05-21 Pedro Alves <palves@redhat.com>
4840 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4842 (inf_child_open_target): New function.
4843 (inf_child_open): Use inf_child_open_target to push the target
4844 instead of erroring out.
4845 (inf_child_disconnect, inf_child_close)
4846 (inf_child_maybe_unpush_target): New functions.
4847 (inf_child_target): Install inf_child_disconnect and
4848 inf_child_close. Store a pointer to the returned object.
4849 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4851 * target.c (auto_connect_native_target): New global.
4852 (show_default_run_target): New function.
4853 (find_default_run_target): Return NULL if automatically connecting
4854 to the native target is disabled.
4855 (_initialize_target): Install set/show auto-connect-native-target.
4856 * NEWS: Mention "set auto-connect-native-target", and "target
4858 * linux-nat.c (super_close): New global.
4859 (linux_nat_close): Call super_close.
4860 (linux_nat_add_target): Store a pointer to the base class's
4862 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4863 inf_child_maybe_unpush.
4864 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4866 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4867 the inferior. Use inf_child_maybe_unpush_target.
4868 (inf_ttrace_attach): Don't push the target if it is already
4870 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4871 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4872 after mourning the inferior. Use inf_child_maybe_unpush_target.
4873 (darwin_attach_pid): Don't push the target if it is already
4875 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4876 mourning the inferior. Use inf_child_maybe_unpush_target.
4877 (gnu_detach): Use inf_child_maybe_unpush_target.
4878 * go32-nat.c (go32_create_inferior): Don't push the target if it
4880 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4881 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4882 (procfs_open): Rename to ...
4883 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4884 comments. Can target_preopen before changing node. Call
4885 inf_child_open_target to push the target explicitly.
4886 (procfs_attach): Don't push the target if it is already pushed.
4887 (procfs_detach): Use inf_child_maybe_unpush_target.
4888 (procfs_create_inferior): Don't push the target if it is already
4890 (nto_native_ops): New global.
4891 (procfs_open): Reimplement.
4892 (procfs_native_open): New function.
4893 (init_procfs_targets): Install procfs_native_open as to_open of
4894 "target native". Store a pointer to the "native" target in
4896 * procfs.c (procfs_attach): Don't push the target if it is already
4898 (procfs_detach): Use inf_child_maybe_unpush_target.
4899 (procfs_mourn_inferior): Only unpush the target after mourning the
4900 inferior. Use inf_child_maybe_unpush_target.
4901 (procfs_init_inferior): Don't push the target if it is already
4903 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4904 if it is already pushed.
4906 2014-05-21 Pedro Alves <palves@redhat.com>
4908 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4909 and "procfs" targets are now called "native" instead.
4911 2014-05-21 Pedro Alves <palves@redhat.com>
4913 * go32-nat.c (go32_open): Delete.
4914 (go32_target): Don't override the to_open method.
4916 2014-05-21 Pedro Alves <palves@redhat.com>
4918 * nto-procfs.c (procfs_can_run): New function.
4919 (nto_procfs_ops): New global.
4920 (init_procfs_targets): New, based on procfs_target. Install
4921 "target native" in addition to "target procfs".
4922 (_initialize_procfs): Call init_procfs_targets instead of adding
4925 2014-05-21 Pedro Alves <palves@redhat.com>
4927 * windows-nat.c (windows_target): Don't override to_shortname,
4928 to_longname or to_doc.
4930 2014-05-21 Pedro Alves <palves@redhat.com>
4932 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4935 2014-05-21 Pedro Alves <palves@redhat.com>
4937 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4938 to_shortname, to_longname or to_doc.
4940 2014-05-21 Pedro Alves <palves@redhat.com>
4942 * go32-nat.c (go32_target): Don't override to_shortname,
4943 to_longname or to_doc.
4945 2014-05-21 Pedro Alves <palves@redhat.com>
4947 * inf-child.c (inf_child_open): Remove mention of "child".
4948 (inf_child_target): Rename target to "native" instead of "child".
4950 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4952 * Makefile.in (SFILES): Delete "regset.c".
4953 (COMMON_OBS): Delete "regset.o".
4955 * regset.h (regset_alloc): Delete prototype.
4957 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4959 * sparc-linux-tdep.c (sparc32_linux_gregset)
4960 (sparc32_linux_fpregset): New static regset structures.
4961 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4962 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4964 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4965 (sparc64_linux_fpregset): New static regset structures.
4966 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4967 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4968 New static regset structures.
4969 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4970 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4971 New static regset structures.
4972 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4973 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4974 New static regset structures.
4975 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4976 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4977 New static regset structures.
4978 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4980 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4982 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4983 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4984 register maps ("regmaps") from "*regset" to "*regmap". Do this
4985 for all regmap types and variables.
4986 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4987 (sparc32_linux_supply_core_gregset)
4988 (sparc32_linux_collect_core_gregset)
4989 (sparc32_linux_supply_core_fpregset)
4990 (sparc32_linux_collect_core_fpregset): Likewise.
4991 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4992 (sparc_gregmap, sparc_fpregmap): ... these.
4993 (sparc_supply_gregset, sparc_collect_gregset)
4994 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4995 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4996 (_initialize_sparc_nat): Rename regmaps.
4997 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4998 (sparc_gregmap, sparc_fpregmap): ... these.
4999 (sparc_supply_gregset, sparc_collect_gregset)
5000 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5001 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5003 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5004 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5006 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5008 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5009 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5010 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5012 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5013 (sparc32_bsd_fpregset): Rename to...
5014 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5015 (sparc32_bsd_fpregmap): ... these.
5016 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5017 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5018 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5019 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5020 (struct sparc_gregmap, struct sparc_fpregmap)
5021 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5022 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5023 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5024 (sparc32_supply_regset, sparc32_collect_gregset)
5025 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5027 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5028 (sparc64_linux_ptrace_gregmap): ... this.
5029 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5030 (_initialize_sparc64_linux_nat): Rename regmaps.
5031 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5032 (sparc64_linux_core_gregmap): ... this.
5033 (sparc64_linux_supply_core_gregset)
5034 (sparc64_linux_collect_core_gregset)
5035 (sparc64_linux_supply_core_fpregset)
5036 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5037 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5038 (sparc64_sol2_fpregset): Rename to...
5039 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5040 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5041 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5043 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5044 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5045 (sparc64_bsd_fpregset): Rename to...
5046 (struct sparc_gregmap, sparc64_sol2_gregmap)
5047 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5048 (sparc64_bsd_fpregmap): ... these.
5049 (sparc64_supply_gregset, sparc64_collect_gregset)
5050 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5052 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5053 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5054 (sparc64fbsd_gregmap): ... this.
5055 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5056 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5058 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5059 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5060 (sparc64nbsd_collect_fpregset): Likewise.
5061 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5062 (sparc64nbsd_gregmap): ... this.
5063 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5065 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5066 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5067 (sparc64obsd_gregmap): ... this.
5068 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5070 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5071 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5072 (sparc32nbsd_gregmap): ... this.
5073 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5076 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5078 * score-tdep.c (score7_linux_gregset): New static regset
5080 (score7_linux_regset_from_core_section): Remove dynamic regset
5082 (score_gdbarch_init): Drop allocation of tdep structure.
5083 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5085 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5087 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5089 (am33_regset_from_core_section): Remove dynamic regset
5092 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5094 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5095 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5097 (mips_linux_regset_from_core_section): Remove dynamic regset
5099 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5100 'gregset64', 'fpregset', and 'fpregset64'.
5101 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5102 deleted tdep fields.
5104 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5106 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5108 (amd64_regset_from_core_section): Remove dynamic regset
5110 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5112 (amd64obsd_regset_from_core_section): Remove dynamic regset
5114 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5116 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5117 x86-common regset supply function.
5118 * i386-tdep.c (i386_collect_gregset): Make static.
5119 (i386_gregset): New global regset structure.
5120 (i386_fpregset, i386_xstateregset): New static regset structures.
5121 (i386_regset_from_core_section): Remove dynamic regset
5123 (i386_gdbarch_init): Remove initialization of tdep fields
5124 'gregset', 'fpregset', and 'xstateregset'.
5125 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5126 'fpregset', and 'xstateregset'.
5127 (i386_collect_gregset): Remove prototype.
5128 (i386_gregset): New declaration.
5129 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5131 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5134 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5136 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5137 (arm_linux_vfpregset): New static regset structures.
5138 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5140 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5141 and 'vfpregset' fields.
5143 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5145 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5146 (aarch64_linux_fpregset): New static regset structures.
5147 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5148 of regset structures.
5149 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5152 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5154 * regset.h (struct regset): Remove gdbarch field.
5155 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5156 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5157 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5159 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5160 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5161 (ppc32_linux_vsxregset): Likewise.
5162 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5163 via the regcache instead of the regset.
5164 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5165 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5166 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5167 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5170 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5172 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5173 Constify structures.
5174 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5175 (alphanbsd_aout_gregset): Likewise.
5176 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5177 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5179 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5180 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5182 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5183 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5184 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5185 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5186 * m88k-tdep.c (m88k_gregset): Likewise.
5187 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5188 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5189 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5190 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5191 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5192 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5193 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5194 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5195 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5197 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5198 * sh-tdep.h (sh_corefile_gregset): Likewise.
5199 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5200 * vax-tdep.c (vax_gregset): Likewise.
5202 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5204 Fix TLS access for -static -pthread.
5205 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5206 (try_thread_db_load_1): Initialize it.
5207 (thread_db_get_thread_local_address): Call it if LM is zero.
5208 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5209 * target.h (struct target_ops) (to_get_thread_local_address): Add
5210 load_module_addr comment.
5212 2014-05-21 Pedro Alves <palves@redhat.com>
5214 * dcache.c (dcache_read_memory_partial): If reading the cache line
5215 fails, fallback to reading just the memory the caller wanted.
5217 2014-05-20 Doug Evans <dje@google.com>
5219 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5220 instead of get_current_arch.
5222 2014-05-20 Pedro Alves <palves@redhat.com>
5224 * NEWS: Mention that compare-sections now works with all targets.
5226 * remote.c (PACKET_qCRC): New enum value.
5227 (remote_verify_memory): Don't send qCRC if the target has no
5228 execution. Use packet_support/packet_ok. If the target doesn't
5229 support the qCRC packet, fallback to a deep memory copy.
5230 (compare_sections_command): Say "target image" instead of "remote
5232 (_initialize_remote): Add PACKET_qCRC to the list of config
5233 packets that have no associated command. Extend comment.
5234 * target.c (simple_verify_memory, default_verify_memory): New
5236 * target.h (struct target_ops) <to_verify_memory>: Default to
5237 default_verify_memory.
5238 (simple_verify_memory): New declaration.
5239 * target-delegates.c: Regenerate.
5241 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5243 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5245 2014-05-20 Hui Zhu <hui@codesourcery.com>
5246 Yao Qi <yao@codesourcery.com>
5249 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5250 and change address of sp and pc.
5252 2014-05-19 Tom Tromey <tromey@redhat.com>
5254 * gdbtypes.c (rank_function): Use XNEWVEC.
5255 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5257 2014-05-19 Doug Evans <dje@google.com>
5259 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5260 build_type_unit_groups and moved closer to only caller. Remove
5261 arguments. All references updated. Remove outdated .gdb_index
5263 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5264 build_type_psymtabs_1.
5266 2014-05-19 Doug Evans <dje@google.com>
5268 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5269 n_type_unit_groups, all_type_unit_groups. All uses removed.
5270 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5271 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5272 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5273 (add_type_unit_group_to_table): Delete.
5275 2014-05-19 Doug Evans <dje@google.com>
5277 * eval.c (evaluate_subexp_standard): Add some comments.
5279 2014-05-17 Doug Evans <xdje42@gmail.com>
5281 * progspace.c (remove_program_space): Delete, unused.
5282 * progspace.h (remove_program_space): Ditto.
5284 2014-05-17 Doug Evans <xdje42@gmail.com>
5286 * inferior.c (prune_inferiors): Fix comment.
5287 (remove_inferior_command): Call prune_program_spaces.
5289 2014-05-16 Doug Evans <dje@google.com>
5291 New command line option -D.
5293 * main.c (set_gdb_data_directory): New function.
5294 (captured_main): Recognize -D. Flag error for --data-directory "".
5295 Call set_gdb_data_directory.
5296 (print_gdb_help): Print --data-directory, -D.
5297 * main.h (set_gdb_data_directory): Declare.
5298 * top.c (staged_gdb_datadir): New static global.
5299 (set_gdb_datadir): Call set_gdb_data_directory
5300 (show_gdb_datadir): New function.
5301 (init_main): Update init of data-directory parameter.
5303 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5305 Import the "dirfd" gnulib module.
5306 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5307 * gnulib/aclocal.m4: Update.
5308 * gnulib/config.in: Update.
5309 * gnulib/configure: Update.
5310 * gnulib/import/Makefile.am: Update.
5311 * gnulib/import/Makefile.in: Update.
5312 * gnulib/import/dirfd.c: New.
5313 * gnulib/import/m4/dirfd.m4: New.
5314 * gnulib/import/m4/gnulib-cache.m4: Update.
5315 * gnulib/import/m4/gnulib-comp.m4: Update.
5317 2014-05-16 Pierre Muller <muller@sourceware.org>
5318 Yao Qi <yao@codesourcery.com>
5320 * valprint.c (print_wchar): Move the code on checking whether
5321 W is a printable wide char to the default branch of switch
5322 statement below. Call wchar_printable instead of gdb_iswprint.
5324 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5326 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5327 ldr.w and ldrd instructions.
5329 2014-05-15 Doug Evans <dje@google.com>
5331 * dwarf2read.c (read_structure_type): Delete outdated comments.
5333 2014-05-14 Tom Tromey <tromey@redhat.com>
5335 * macrocmd.c (print_macro_definition): Reindent.
5337 2014-05-13 Doug Evans <xdje42@gmail.com>
5339 * python/py-cmd.c (cmdpy_completer): Add comment.
5340 (completers): Make const.
5342 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5344 * infrun.c (resume): Remove should_resume (unused). Move up
5345 declaration of resume_ptid.
5347 2014-05-13 Tom Tromey <tromey@redhat.com>
5349 * language.h (unop_type_check): Remove.
5350 (binop_type_check): Don't declare.
5352 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5354 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5355 call to regcache_raw_collect.
5357 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5359 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5360 mi_console->quote as the quoting character.
5362 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5364 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5366 2014-04-29 Tom Tromey <tromey@redhat.com>
5368 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5369 "show debug varobj".
5371 2014-05-07 Kyle McMartin <kyle@redhat.com>
5373 Pushed by Joel Brobecker <brobecker@adacore.com>.
5374 * aarch64-tdep.c (aarch64_software_single_step): New function.
5375 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5376 with aarch64_software_single_step.
5378 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5382 2014-05-05 Keith Seitz <keiths@redhat.com>
5384 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5385 variable or history value is successfully parsed.
5387 2014-05-05 Yao Qi <yao@codesourcery.com>
5388 Pedro Alves <palves@redhat.com>
5390 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5391 address of blocks that intersects the requested range. Trim
5392 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5394 * ctf.c (ctf_xfer_partial): Likewise.
5396 2014-05-05 Yao Qi <yao@codesourcery.com>
5398 * printcmd.c (display_command): Remove the check to
5399 target_has_execution.
5401 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5403 * ppcobsd-nat.c: Include "obsd-nat.h".
5404 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5406 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5408 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5410 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5411 and 16-bit signed and unsigned arguments. Update comment.
5412 (stap_parse_probe_arguments): Extend code to handle such
5413 arguments. Use warning instead of complaint to notify about
5414 unrecognized bitness.
5416 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5418 PR breakpoints/16889
5419 * stap-probe.c (stap_parse_probe_arguments): Simplify
5420 check for non-prefixed probes (i.e., probes whose
5421 arguments do not start with "N@"). Always set the
5422 argument type to a sane value.
5424 2014-05-01 David Taylor <dtaylor@emc.com>
5426 * remote.c (compare_sections_command): Add -r option to compare
5427 all loadable read-only sections.
5429 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5431 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5432 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5434 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5435 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5436 Remove unused CORE_ADDR argument. Update all callers.
5438 2014-04-29 Pedro Alves <palves@redhat.com>
5440 * remote.c (struct packet_config) <detect>: Extend comment.
5441 (add_packet_config_cmd): Don't set the config's detect or support
5443 (init_all_packet_configs): Also initialize the config's 'detect'
5445 (reset_all_packet_configs_support): New function.
5446 (remote_open_1): Call reset_all_packet_configs_support instead of
5447 init_all_packet_configs.
5448 (_initialize_remote): Initialize all packet configs. Assert that
5449 all packets have an associated command, except a few known
5452 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5454 * dwarf2read.c (read_subrange_type): Handle dynamic
5455 DW_AT_lower_bound attributes.
5457 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5459 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5460 dynamic bounds before computing its upper bound.
5461 (ada_discrete_type_low_bound): Same as above with the lower bound.
5463 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5465 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5466 range types. Adjust the array handling implementation to
5467 take advantage of this change.
5468 (resolve_dynamic_range): New function, mostly extracted from
5469 resolve_dynamic_bounds.
5470 (resolve_dynamic_array): New function, mostly extracted from
5471 resolve_dynamic_bounds.
5472 (resolve_dynamic_bounds): Delete.
5473 (resolve_dynamic_type): Reimplement. Add handling of
5474 TYPE_CODE_RANGE types.
5476 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5478 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5479 handling of parallel ___XA types.
5481 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5483 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5484 unnecessary second call to static_unwrap_type.
5486 2014-04-27 Hui Zhu <hui@codesourcery.com>
5488 * stack.c (print_frame_info): Call do_gdb_disassembly with
5489 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5491 2014-04-26 Doug Evans <xdje42@gmail.com>
5493 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5495 2014-04-25 Pedro Alves <palves@redhat.com>
5498 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5499 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5500 and newline from built string.
5501 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5502 (linux_ptrace_attach_fail_reason): ... this.
5503 * linux-nat.c (linux_nat_attach): Adjust to use
5504 linux_ptrace_attach_fail_reason.
5506 2014-04-25 Pedro Alves <palves@redhat.com>
5508 * remote.c (struct remote_state): Remove multi_process_aware,
5509 non_stop_aware, cond_tracepoints, cond_breakpoints,
5510 breakpoint_commands, fast_tracepoints, static_tracepoints,
5511 install_in_trace, disconnected_tracing,
5512 enable_disable_tracepoints, string_tracing, and
5513 augmented_libraries_svr4_read fields.
5514 (remote_multi_process_p): Move further below in the file.
5515 (struct packet_config): Add comments.
5516 (update_packet_config): Delete function.
5517 (show_packet_config_cmd): Use packet_config_support.
5518 (add_packet_config_cmd): Use NULL as set callback.
5519 (packet_ok): "set remote foo-packet"-style commands no longer
5520 change config->supported -- adjust.
5521 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5522 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5523 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5524 (PACKET_QNonStop, PACKET_multiprocess_feature)
5525 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5526 (PACKET_DisconnectedTracing_feature)
5527 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5528 (set_remote_protocol_packet_cmd): Delete function.
5529 (packet_config_support, packet_support): New functions.
5530 (set_remote_protocol_Z_packet_cmd): Don't call
5531 update_packet_config.
5532 (remote_query_attached, remote_pass_signals)
5533 (remote_program_signals, remote_threads_info)
5534 (remote_threads_extra_info, remote_start_remote): Use
5536 (remote_start_remote): Use packet_config_support and
5538 (init_all_packet_configs): Set all packets to unknown support,
5539 instead of calling update_packet_config.
5540 (remote_check_symbols): Use packet_support.
5541 (remote_supported_packet): Unconditionally set the packet config's
5543 (remote_multi_process_feature, remote_non_stop_feature)
5544 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5545 (remote_breakpoint_commands_feature)
5546 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5547 (remote_install_in_trace_feature)
5548 (remote_disconnected_tracing_feature)
5549 (remote_enable_disable_tracepoint_feature)
5550 (remote_string_tracing_feature)
5551 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5552 (remote_protocol_features): Adjust to use remote_supported_packet
5553 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5554 "ConditionalTracepoints", "ConditionalBreakpoints",
5555 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5556 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5557 "EnableDisableTracepoints", and "tracenz".
5558 (remote_query_supported): Use packet_support.
5559 (remote_open_1): Adjust.
5560 (extended_remote_attach_1): Use packet_support. Switch on the
5561 result of packet_ok instead of checking whether the packet ended
5563 (remote_vcont_resume): Use packet_support.
5564 (remote_resume, remote_stop_ns, fetch_register_using_p)
5565 (remote_prepare_to_store, store_register_using_P)
5566 (check_binary_download, remote_write_bytes): Use packet_support.
5567 (remote_vkill): Use packet_support. Switch on the result of
5568 packet_ok instead of checking whether the packet ended up
5570 (extended_remote_supports_disable_randomization): Use
5572 (extended_remote_run): Switch on the result of packet_ok instead
5573 of checking whether the packet ended up disabled.
5574 (remote_insert_breakpoint, remote_remove_breakpoint)
5575 (remote_insert_watchpoint, remote_remove_watchpoint)
5576 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5578 (remote_search_memory): Use packet_config_support.
5579 (remote_get_thread_local_address, remote_get_tib_address)
5580 (remote_hostio_send_command, remote_can_execute_reverse): Use
5582 (remote_supports_cond_tracepoints)
5583 (remote_supports_cond_breakpoints)
5584 (remote_supports_fast_tracepoints)
5585 (remote_supports_static_tracepoints)
5586 (remote_supports_install_in_trace)
5587 (remote_supports_enable_disable_tracepoint)
5588 (remote_supports_string_tracing)
5589 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5590 the packet config says the feature is enabled or disabled.
5591 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5592 (remote_get_trace_status): Use packet_support.
5593 (remote_set_disconnected_tracing): Adjust to check whether the
5594 feature is enabled with packet_support.
5595 (remote_set_trace_buffer_size, remote_use_agent)
5596 (remote_can_use_agent, remote_supports_btrace): Use
5598 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5599 Use packet_config_support.
5600 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5601 the packet config says the feature is enabled or disabled.
5602 (set_range_stepping): Use packet_support.
5604 2014-04-25 Tom Tromey <tromey@redhat.com>
5606 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5609 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5611 * NEWS: Mention support for C99 variable length arrays.
5613 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5615 * ada-lang.c (standard_exc): Expand introductory comment.
5617 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5618 Walfred Tedeschi <walfred.tedeschi@intel.com>
5620 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5622 (amd64_linux_read_description): Add code to handle AVX512 xstate
5623 mask and return respective tdesc.
5624 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5625 and features/i386/x32-avx512-linux.c.
5626 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5627 (amd64_linux_core_read_description): Add code to handle AVX512
5628 xstate mask and return respective tdesc.
5629 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5630 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5632 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5633 (tdesc_amd64_avx512_linux): New prototype.
5634 (tdesc_x32_avx512_linux): Likewise.
5635 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5636 features/i386/x32-avx512.c.
5637 (amd64_ymm_avx512_names): New register names for pseudo
5639 (amd64_ymmh_avx512_names): New register names for raw registers
5641 (amd64_k_names): New register names for K registers.
5642 (amd64_zmmh_names): New register names for ZMM raw registers.
5643 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5644 (amd64_xmm_avx512_names): New register names for XMM16-31
5646 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5648 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5649 if feature is present.
5650 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5651 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5652 (AMD64_NUM_REGS): Adjust to new number of registers.
5653 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5654 registers supplied via XSTATE by AVX512 registers.
5655 (i386_linux_read_description): Add case for AVX512.
5656 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5657 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5658 (i386_linux_core_read_description): Add case for AVX512.
5659 (i386_linux_init_abi): Install supported register note section
5661 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5663 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5664 registers to be number of zmm7h + 1.
5665 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5666 * i386-tdep.c: Include features/i386/i386-avx512.c.
5667 (i386_zmm_names): Add ZMM pseudo register names array.
5668 (i386_zmmh_names): Add ZMM raw register names array.
5669 (i386_k_names): Add K raw register names array.
5670 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5671 registers. AVX512 has 16 more ZMM registers than there are YMM
5673 (i386_zmmh_regnum_p): Add function to look up register number of
5675 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5676 (i386_k_regnum_p): Likewise for K raw registers.
5677 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5678 registers added by AVX512.
5679 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5680 registers added by AVX512.
5681 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5683 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5684 (i386_pseudo_register_name): Add ZMM pseudo registers.
5685 (i386_zmm_type): Construct and return vector registers type for ZMM
5687 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5688 ZMM0-31 pseudo registers and K registers.
5689 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5690 and YMM16-31 registers from register cache.
5691 (i386_pseudo_register_write): Add code to write K, ZMM and
5693 (i386_register_reggroup_p): Add code to include/exclude AVX512
5694 registers in/from respective register groups.
5695 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5696 registers if feature is present in xcr0.
5697 (i386_gdbarch_init): Add code to initialize AVX512 feature
5698 variables in tdep structure, wire in pseudo registers and call
5699 initialize_tdesc_i386_avx512.
5700 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5702 (i386_regnum): Add AVX512 registers.
5703 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5704 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5705 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5706 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5708 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5709 (i386_ymm_avx512_regnum_p): Likewise.
5710 (i386_k_regnum_p): Likewise.
5711 (i386_zmm_regnum_p): Likewise.
5712 (i386_zmmh_regnum_p): Likewise.
5713 * i387-tdep.c : Update year in copyright notice.
5714 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5716 (XSAVE_YMM_AVX512_ADDR): New macro.
5717 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5719 (XSAVE_XMM_AVX512_ADDR): New macro.
5720 (xsave_avx512_k_offset): New table for K register offsets in
5722 (XSAVE_AVX512_K_ADDR): New macro.
5723 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5725 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5726 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5728 (i387_collect_xsave): Add code to collect AVX512 registers from
5730 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5731 of XMM16-31 registers.
5732 (I387_NUM_K_REGS): New define for number of K registers.
5733 (I387_K0_REGNUM): New define for K0 register number.
5734 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5735 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5736 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5738 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5739 (I387_XMM16_REGNUM): New define for XMM16 register number.
5740 (I387_YMM0_REGNUM): New define for YMM0 register number.
5741 (I387_KEND_REGNUM): New define for last K register number.
5742 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5743 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5745 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5747 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5749 * features/Makefile: Add AVX512 related files.
5750 * features/i386/32bit-avx512.xml: New file.
5751 * features/i386/64bit-avx512.xml: Likewise.
5752 * features/i386/amd64-avx512-linux.c: Likewise.
5753 * features/i386/amd64-avx512-linux.xml: Likewise.
5754 * features/i386/amd64-avx512.c: Likewise.
5755 * features/i386/amd64-avx512.xml: Likewise.
5756 * features/i386/i386-avx512-linux.c: Likewise.
5757 * features/i386/i386-avx512-linux.xml: Likewise.
5758 * features/i386/i386-avx512.c: Likewise.
5759 * features/i386/i386-avx512.xml: Likewise.
5760 * features/i386/x32-avx512-linux.c: Likewise.
5761 * features/i386/x32-avx512-linux.xml: Likewise.
5762 * features/i386/x32-avx512.c: Likewise.
5763 * features/i386/x32-avx512.xml: Likewise.
5764 * regformats/i386/amd64-avx512-linux.dat: New file.
5765 * regformats/i386/amd64-avx512.dat: Likewise.
5766 * regformats/i386/i386-avx512-linux.dat: Likewise.
5767 * regformats/i386/i386-avx512.dat: Likewise.
5768 * regformats/i386/x32-avx512-linux.dat: Likewise.
5769 * regformats/i386/x32-avx512.dat: Likewise.
5770 * NEWS: Add note about new support for AVX512.
5773 2014-04-23 Pedro Alves <palves@redhat.com>
5775 * breakpoint.c (insert_bp_location): Tolerate errors if the
5776 breakpoint is set in a user-loaded objfile.
5777 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5778 location is marked shlib_disabled. If the breakpoint is set in a
5779 user-loaded objfile is a GDB-side memory breakpoint, validate it
5780 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5781 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5783 * mem-break.c (memory_validate_breakpoint): New function.
5784 * objfiles.c (userloaded_objfile_contains_address_p): New
5786 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5787 * target.h (memory_validate_breakpoint): New declaration.
5789 2014-04-23 Pedro Alves <palves@redhat.com>
5791 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5792 the breakpoint is set in a shared library, only suppress
5793 errors for software breakpoints, not hardware breakpoints.
5795 2014-04-22 Pedro Alves <palves@redhat.com>
5797 * infrun.c (schedlock_applies): New function, factored out from
5798 find_thread_needs_step_over.
5799 (find_thread_needs_step_over): Use it.
5800 (switch_back_to_stepped_thread): Always clear trap_expected if the
5801 step over is finished. Return early if scheduler locking applies.
5802 Look for the stepping thread and a potential step-over thread with
5804 (currently_stepping_or_nexting_callback): Delete.
5806 2014-04-22 Nick Clifton <nickc@redhat.com>
5808 * NEWS: Mention that ARM sim now supports tracing.
5810 2014-04-22 Yao Qi <yao@codesourcery.com>
5812 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5814 * tracefile.c (tracefile_fetch_registers): ... it. New
5816 * tracefile.h (tracefile_fetch_registers): Declare.
5817 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5818 tracefile_fetch_registers.
5820 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5823 * windows-nat.c (thread_rec): Don't display a warning when
5824 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5825 fails for any reason, set th->suspended to -1, so that we don't
5826 try to resume such a thread. Also, don't return NULL in these
5827 cases, to avoid completely ruin the session due to "PC register is
5828 not available" error.
5829 (do_windows_fetch_inferior_registers): Check errors in
5830 GetThreadContext call.
5831 (windows_continue): Accept an additional argument KILLED; if not
5832 zero, ignore errors in the SetThreadContext call, since the
5833 inferior was killed and is shutting down.
5834 (windows_resume, get_windows_debug_event)
5835 (windows_create_inferior, windows_mourn_inferior)
5836 (windows_kill_inferior): All callers of windows_continue changed
5837 to adjust to its new calling sequence.
5839 2014-04-19 Yao Qi <yao@codesourcery.com>
5841 * ctf.c (ctf_open): Call post_create_inferior.
5843 2014-04-19 Yao Qi <yao@codesourcery.com>
5845 * ctf.c (handle_id): New static variable.
5846 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5847 value. Get the declaration of event "register" and get length
5848 of field "contents".
5850 2014-04-19 Yao Qi <yao@codesourcery.com>
5852 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5854 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5856 * valops.c (oload_method_static): Remove unnecessary argument
5857 METHOD. Update all callers.
5859 2014-04-18 Pedro alves <palves@redhat.com>
5860 Tom Tromey <tromey@redhat.com>
5863 * frame.c (get_prev_frame_1): Rename to ...
5864 (get_prev_frame_always): ... this, and make extern. Adjust.
5865 (skip_artificial_frames): Use get_prev_frame_always.
5866 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5867 (get_frame_unwind_stop_reason): Adjust to rename.
5868 * frame.h (get_prev_frame_always): Declare.
5869 * inline-frame.c: Include frame.h.
5870 (inline_frame_this_id): Use get_prev_frame_always.
5872 2014-04-18 Tristan Gingold <gingold@adacore.com>
5874 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5875 code by using bfd_mach_o_get_base_address.
5877 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5879 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5880 (spu_ax_pseudo_register_collect): New function.
5881 (spu_ax_pseudo_register_push_stack): Likewise.
5882 (spu_dwarf_reg_to_regnum): Likewise.
5883 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5885 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5887 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5888 Replace FRAME argument with FRAME_ID.
5889 * gdbarch.c, gdbarch.h: Regenerate.
5890 * findvar.c (default_value_from_register): Add GDBARCH argument;
5891 replace FRAME by FRAME_ID. No longer call get_frame_id.
5892 (value_from_register): Update call to gdbarch_value_from_register.
5893 * value.h (default_value_from_register): Update prototype.
5894 * s390-linux-tdep.c (s390_value_from_register): Update interface
5895 and call to default_value_from_register.
5896 * spu-tdep.c (spu_value_from_register): Likewise.
5898 * findvar.c (address_from_register): Remove TYPE argument.
5899 Do not call value_from_register; use gdbarch_value_from_register
5900 with null_frame_id instead.
5901 * value.h (address_from_register): Update prototype.
5902 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5903 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5904 address_from_register interface change.
5906 2014-04-17 Yao Qi <yao@codesourcery.com>
5908 * gdbtypes.h: Update comments to link to types and macros'
5911 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5913 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5915 2014-04-16 Keith Seitz <keiths@redhat.com>
5918 * dwarf2read.c (skip_one_die): Check that all relative-offset
5919 sibling DIEs fall within range of the current reader's buffer.
5920 (read_partial_die): Likewise.
5922 2014-04-16 Keith Seitz <keiths@redhat.com>
5925 * cp-namespace.c (lookup_symbol_file): If the type name of
5926 `this' is NULL, return immediately.
5928 2014-04-14 Keith Seitz <keiths@redhat.com>
5931 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5932 from symbol_matches_domain in symtab.c. All local callers
5933 of symbol_matches_domain updated.
5934 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5935 search STRUCT_DOMAIN.
5936 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5937 independently. standard_lookup will do that automatically.
5938 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5939 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5940 (cp_lookup_symbol_in_namespace): Likewise.
5941 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5942 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5943 may return a STRUCT_DOMAIN match.
5944 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5945 * cp-support.c: Include language.h.
5946 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5948 * psymtab.c (match_partial_symbol): Compare the requested
5949 domain with the symbol's domain directly.
5950 (lookup_partial_symbol): Likewise.
5951 * symtab.c (lookup_symbol_in_language): Explain when/why
5952 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5953 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5954 appropriate languages.
5955 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5956 and moved to ada-lang.c
5957 (lookup_block_symbol): Explain that this function only returns
5958 symbol matching the requested DOMAIN.
5959 Compare the requested domain with the symbol's domain directly.
5960 (iterate_over_symbols): Compare the requested domain with the
5961 symbol's domain directly.
5962 * symtab.h (symbol_matches_domain): Remove.
5964 2014-04-14 Tom Tromey <tromey@redhat.com>
5967 * c-exp.y (type_aggregate_p): New function.
5968 (qualified_name, classify_inner_name): Use it.
5969 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5970 and TYPE_TARGET_TYPE of an enum type.
5971 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5973 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5974 handle TYPE_DECLARED_CLASS.
5975 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5977 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5978 * valops.c (enum_constant_from_type): New function.
5979 (value_aggregate_elt): Use it.
5980 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5983 2014-04-14 Tom Tromey <tromey@redhat.com>
5985 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5986 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5988 * value.h (value_aggregate_elt): Update.
5990 2014-04-14 Tom Tromey <tromey@redhat.com>
5992 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5994 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5996 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5997 (evaluate_subexp_standard): Pass noside argument.
5998 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5999 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6000 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6001 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6002 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6004 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6006 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6007 points to a constant blob.
6009 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6011 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6012 property and store it as the high bound and flag the range accordingly.
6013 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6014 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6015 * gdbtypes.h (enum range_flags): New enum.
6016 (struct range_bounds): Add flags member.
6018 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6020 * c-typeprint.c (c_type_print_varspec_suffix): Added
6021 check for not yet resolved high bound. If unresolved, print
6022 "variable length" string to the console instead of random
6025 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6027 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6029 (ada_template_to_fixed_record_type_1): Likewise.
6030 (ada_to_fixed_type_1): Likewise.
6031 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6032 (cp_print_value): Likewise.
6033 * d-valprint.c (dynamic_array_type): Likewise.
6034 * findvar.c (address_of_variable): Likewise.
6035 * jv-valprint.c (java_value_print): Likewise.
6036 * valops.c (value_ind): Likewise.
6037 * value.c (coerce_ref): Likewise.
6039 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6041 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6042 value and retrieve the dynamic type size.
6044 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6046 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6047 passed to sizeof is dynamic evaluate the argument to compute the length.
6049 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6050 Joel Brobecker <brobecker@adacore.com>
6052 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6053 (dwarf2_evaluate_property): New function.
6054 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6055 * dwarf2read.c (attr_to_dynamic_prop): New function.
6056 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6058 * gdbtypes.c: Include dwarf2loc.h.
6059 (is_dynamic_type): New function.
6060 (resolve_dynamic_type): New function.
6061 (resolve_dynamic_bounds): New function.
6062 (get_type_length): New function.
6063 (check_typedef): Use get_type_length to compute type length.
6064 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6065 (TYPE_LOW_BOUND_KIND): New macro.
6066 (is_dynamic_type): New function prototype.
6067 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6068 to resolve dynamic properties of the type. Update comment.
6069 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6071 2014-04-14 Richard Henderson <rth@redhat.com>
6073 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6075 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6076 Doug Evans <xdje42@gmail.com>
6078 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6079 dereference TYPE_CODE_REF values.
6081 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6083 Revert the following changes due to regressions:
6085 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6086 (dwarf2_evaluate_property): New function.
6087 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6088 * dwarf2read.c (attr_to_dynamic_prop): New function.
6089 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6091 * gdbtypes.c: Include dwarf2loc.h.
6092 (is_dynamic_type): New function.
6093 (resolve_dynamic_type): New function.
6094 (resolve_dynamic_bounds): New function.
6095 (get_type_length): New function.
6096 (check_typedef): Use get_type_length to compute type length.
6097 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6098 (TYPE_LOW_BOUND_KIND): New macro.
6099 (is_dynamic_type): New function prototype.
6100 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6101 to resolve dynamic properties of the type. Update comment.
6102 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6104 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6105 passed to sizeof is dynamic evaluate the argument to compute the length.
6107 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6108 value and retrieve the dynamic type size.
6110 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6111 (ada_template_to_fixed_record_type_1): Likewise.
6112 (ada_to_fixed_type_1): Likewise.
6113 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6114 (cp_print_value): Likewise.
6115 * d-valprint.c (dynamic_array_type): Likewise.
6116 * eval.c (evaluate_subexp_with_coercion): Likewise.
6117 * findvar.c (address_of_variable): Likewise.
6118 * jv-valprint.c (java_value_print): Likewise.
6119 * valops.c (value_ind): Likewise.
6120 * value.c (coerce_ref): Likewise.
6122 * c-typeprint.c (c_type_print_varspec_suffix): Added
6123 check for not yet resolved high bound. If unresolved, print
6124 "variable length" string to the console instead of random
6127 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6128 property and store it as the high bound and flag the range accordingly.
6129 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6130 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6131 * gdbtypes.h (enum range_flags): New enum.
6132 (struct range_bounds): Add flags member.
6134 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6135 points to a constant blob.
6137 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6138 (evaluate_subexp_standard): Pass noside argument.
6139 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6140 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6141 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6142 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6143 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6145 2014-04-11 Keith Seitz <keiths@redhat.com>
6148 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6149 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6152 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6154 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6155 (evaluate_subexp_standard): Pass noside argument.
6156 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6157 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6158 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6159 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6160 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6162 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6164 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6165 points to a constant blob.
6167 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6169 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6170 property and store it as the high bound and flag the range accordingly.
6171 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6172 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6173 * gdbtypes.h (enum range_flags): New enum.
6174 (struct range_bounds): Add flags member.
6176 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6178 * c-typeprint.c (c_type_print_varspec_suffix): Added
6179 check for not yet resolved high bound. If unresolved, print
6180 "variable length" string to the console instead of random
6183 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6185 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6186 (ada_template_to_fixed_record_type_1): Likewise.
6187 (ada_to_fixed_type_1): Likewise.
6188 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6189 (cp_print_value): Likewise.
6190 * d-valprint.c (dynamic_array_type): Likewise.
6191 * eval.c (evaluate_subexp_with_coercion): Likewise.
6192 * findvar.c (address_of_variable): Likewise.
6193 * jv-valprint.c (java_value_print): Likewise.
6194 * valops.c (value_ind): Likewise.
6195 * value.c (coerce_ref): Likewise.
6197 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6199 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6200 value and retrieve the dynamic type size.
6202 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6204 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6205 passed to sizeof is dynamic evaluate the argument to compute the length.
6207 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6209 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6210 (dwarf2_evaluate_property): New function.
6211 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6212 * dwarf2read.c (attr_to_dynamic_prop): New function.
6213 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6215 * gdbtypes.c: Include dwarf2loc.h.
6216 (is_dynamic_type): New function.
6217 (resolve_dynamic_type): New function.
6218 (resolve_dynamic_bounds): New function.
6219 (get_type_length): New function.
6220 (check_typedef): Use get_type_length to compute type length.
6221 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6222 (TYPE_LOW_BOUND_KIND): New macro.
6223 (is_dynamic_type): New function prototype.
6224 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6225 to resolve dynamic properties of the type. Update comment.
6226 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6228 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6230 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6231 declaring high/low bounds and change uses accordingly. Call
6232 create_range_type instead of create_static_range_type.
6233 * gdbtypes.c (create_range_type): New function.
6234 (create_range_type): Convert bounds into struct bound_prop and pass
6235 them to create_range_type.
6236 * gdbtypes.h (struct bound_prop): New struct.
6237 (create_range_type): New function prototype.
6238 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6239 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6240 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6242 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6244 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6246 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6247 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6248 * ada-lang.c: All uses of create_range_type updated.
6249 * coffread.c: All uses of create_range_type updated.
6250 * dwarf2read.c: All uses of create_range_type updated.
6251 * f-exp.y: All uses of create_range_type updated.
6252 * m2-valprint.c: All uses of create_range_type updated.
6253 * mdebugread.c: All uses of create_range_type updated.
6254 * stabsread.c: All uses of create_range_type updated.
6255 * valops.c: All uses of create_range_type updated.
6256 * valprint.c: All uses of create_range_type updated.
6258 2014-04-10 Pedro Alves <palves@redhat.com>
6260 * breakpoint.c (single_step_breakpoints)
6261 (single_step_gdbarch): Move up in the file.
6262 (one_breakpoint_xfer_memory): New function, factored out from ...
6263 (breakpoint_xfer_memory): ... here. Also process single-step
6266 2014-04-09 Tristan Gingold <gingold@adacore.com>
6268 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6270 (darwin_decode_exception_message): Free port only after use.
6272 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6274 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6275 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6276 when setting the size of call_length.
6278 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6280 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6281 dereference TYPE_CODE_REF values.
6283 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6285 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6286 end of warning message.
6288 2014-04-03 Doug Evans <dje@google.com>
6290 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6291 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6293 2014-04-02 Alan Modra <amodra@gmail.com>
6295 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6296 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6297 (struct symbol_file_add_from_memory_args): Add size field.
6298 (find_vdso_size): New function.
6299 (add_vsyscall_page): Attempt to find vdso size.
6301 2014-04-01 Doug Evans <dje@google.com>
6303 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6305 2014-04-01 Tristan Gingold <gingold@adacore.com>
6307 * darwin-nat.c (darwin_encode_reply): Add prototype.
6308 (darwin_decode_exception_message): Reply to unknown inferiors.
6309 (darwin_decode_message): Handle message by id. Ignore message
6310 to unknown inferior.
6311 (darwin_wait): Discard unknown messages, add debug trace.
6313 2014-03-31 Doug Evans <dje@google.com>
6315 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6318 2014-03-31 Doug Evans <dje@google.com>
6320 New option "set print symbol-loading".
6322 * solib.c (solib_read_symbols): Only print symbol loading messages
6324 (solib_add): If symbol loading is in "brief" mode, notify user
6325 symbols are being loaded.
6326 (reload_shared_libraries_1): Ditto.
6327 * symfile.c (print_symbol_loading_off): New static global.
6328 (print_symbol_loading_brief): New static global.
6329 (print_symbol_loading_full): New static global.
6330 (print_symbol_loading_enums): New static global.
6331 (print_symbol_loading): New static global.
6332 (print_symbol_loading_p): New function.
6333 (symbol_file_add_with_addrs): Only print symbol loading messages
6335 (_initialize_symfile): Register "print symbol-loading" set/show
6337 * symfile.h (print_symbol_loading_p): Declare.
6339 2014-03-30 Doug Evans <xdje42@gmail.com>
6341 * infrun.c (set_last_target_status): New function.
6342 (handle_inferior_event): Call it.
6344 2014-03-30 Doug Evans <xdje42@gmail.com>
6346 * inferior.h (enum stop_kind): Improve comment.
6348 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6350 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6351 a reference, strip the reference layer before calling
6352 the lang_ops value_has_mutated callback.
6354 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6356 Remove some globals from our parser.
6357 * language.c (unk_lang_parser): Add "struct parser_state"
6359 * language.h (struct language_defn) <la_parser>: Likewise.
6360 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6361 (initialize_expout): Add "struct parser_state" argument.
6362 Rewrite function to use the parser state.
6363 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6364 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6365 write_exp_elt_longcst, write_exp_elt_dblcst,
6366 write_exp_elt_decfloatcst, write_exp_elt_type,
6367 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6368 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6369 write_dollar_variable): Likewise.
6370 (parse_exp_in_context_1): Use parser state.
6371 (insert_type_address_space): Add "struct parser_state" argument.
6373 (increase_expout_size): New function.
6374 * parser-defs.h: Forward declare "struct language_defn" and
6375 "struct parser_state".
6376 (expout, expout_size, expout_ptr): Remove extern declarations.
6377 (parse_gdbarch, parse_language): Rewrite macro declarations to
6378 accept the parser state.
6379 (struct parser_state): New struct.
6380 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6381 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6382 write_exp_elt_decfloatcst, write_exp_elt_type,
6383 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6384 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6385 write_exp_msymbol, write_dollar_variable,
6386 mark_struct_expression, insert_type_address_space): Add "struct
6387 parser_state" argument.
6388 (increase_expout_size): New function.
6389 * utils.c (do_clear_parser_state): New function.
6390 (make_cleanup_clear_parser_state): Likewise.
6391 * utils.h (make_cleanup_clear_parser_state): New function
6393 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6394 Update calls to write_exp* in order to pass the parser state.
6395 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6396 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6397 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6398 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6399 * stap-probe.c (stap_parse_register_operand): Likewise.
6400 (stap_parse_single_operand): Likewise.
6401 (stap_parse_argument_1): Likewise.
6402 (stap_parse_argument): Use parser state.
6403 * stap-probe.h: Include "parser-defs.h".
6404 (struct stap_parse_info) <pstate>: New field.
6405 * c-exp.y (parse_type): Rewrite to use parser state.
6406 (yyparse): Redefine to c_parse_internal.
6407 (pstate): New global variable.
6408 (parse_number): Add "struct parser_state" argument.
6409 (write_destructor_name): Likewise.
6410 (type_exp): Update calls to write_exp* and similars in order to
6412 (exp1, exp, variable, qualified_name, space_identifier,
6413 typename, typebase): Likewise.
6414 (write_destructor_name, parse_number, lex_one_token,
6415 classify_name, classify_inner_name, c_parse): Add "struct
6416 parser_state" argument. Update function to use parser state.
6417 * c-lang.h: Forward declare "struct parser_state".
6418 (c_parse): Add "struct parser_state" argument.
6419 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6420 (yyparse): Redefine macro to ada_parse_internal.
6421 (pstate): New variable.
6422 (write_int, write_object_renaming, write_var_or_type,
6423 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6424 type_int, type_long, type_long_long, type_float, type_double,
6425 type_long_double, type_char, type_boolean, type_system_address):
6426 Add "struct parser_state" argument.
6427 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6428 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6429 var_or_type, aggregate, aggregate_component_list,
6430 positional_list, others, component_group,
6431 component_associations): Update calls to write_exp* and similar
6432 functions in order to use parser state.
6433 (ada_parse, write_var_from_sym, write_int,
6434 write_exp_op_with_string, write_object_renaming,
6435 find_primitive_type, write_selectors, write_ambiguous_var,
6436 write_var_or_type, write_name_assoc, type_int, type_long,
6437 type_long_long, type_float, type_double, type_long_double,
6438 type_char, type_boolean, type_system_address): Add "struct
6439 parser_state" argument. Adjust function to use parser state.
6440 * ada-lang.c (parse): Likewise.
6441 * ada-lang.h: Forward declare "struct parser_state".
6442 (ada_parse): Add "struct parser_state" argument.
6443 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6444 calls to both functions.
6445 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6447 (yyparse): Redefine macro to f_parse_internal.
6448 (pstate): New variable.
6449 (parse_number): Add "struct parser_state" argument.
6450 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6451 and similars in order to use parser state.
6452 (parse_number): Adjust code to use parser state.
6454 (f_parse): New function.
6455 * f-lang.h: Forward declare "struct parser_state".
6456 (f_parse): Add "struct parser_state" argument.
6457 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6459 (yyparse): Redefine macro for java_parse_internal.
6460 (pstate): New variable.
6461 (push_expression_name, push_expression_name, insert_exp): Add
6462 "struct parser_state" argument.
6463 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6464 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6465 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6466 PostIncrementExpression, PostDecrementExpression,
6467 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6468 UnaryExpressionNotPlusMinus, CastExpression,
6469 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6470 RelationalExpression, EqualityExpression, AndExpression,
6471 ExclusiveOrExpression, InclusiveOrExpression,
6472 ConditionalAndExpression, ConditionalOrExpression,
6473 ConditionalExpression, Assignment, LeftHandSide): Update
6474 calls to write_exp* and similars in order to use parser state.
6475 (parse_number): Ajust code to use parser state.
6477 (java_parse): New function.
6478 (push_variable): Add "struct parser_state" argument. Adjust
6479 code to user parser state.
6480 (push_fieldnames, push_qualified_expression_name,
6481 push_expression_name, insert_exp): Likewise.
6482 * jv-lang.h: Forward declare "struct parser_state".
6483 (java_parse): Add "struct parser_state" argument.
6484 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6486 (yyparse): Redefine macro to m2_parse_internal.
6487 (pstate): New variable.
6488 (type_exp, exp, fblock, variable, type): Update calls to
6489 write_exp* and similars to use parser state.
6491 (m2_parse): New function.
6492 * m2-lang.h: Forward declare "struct parser_state".
6493 (m2_parse): Add "struct parser_state" argument.
6494 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6495 * objc-lang.h: Forward declare "struct parser_state".
6496 (end_msglist): Add "struct parser_state" argument.
6497 * p-exp.y (parse_type): Rewrite macro to use parser state.
6498 (yyparse): Redefine macro to pascal_parse_internal.
6499 (pstate): New variable.
6500 (parse_number): Add "struct parser_state" argument.
6501 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6502 write_exp* and similars in order to use parser state.
6503 (parse_number, yylex): Adjust code to use parser state.
6504 (pascal_parse): New function.
6505 * p-lang.h: Forward declare "struct parser_state".
6506 (pascal_parse): Add "struct parser_state" argument.
6507 * go-exp.y (parse_type): Rewrite macro to use parser state.
6508 (yyparse): Redefine macro to go_parse_internal.
6509 (pstate): New variable.
6510 (parse_number): Add "struct parser_state" argument.
6511 (type_exp, exp1, exp, variable, type): Update calls to
6512 write_exp* and similars in order to use parser state.
6513 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6514 to use parser state.
6515 (go_parse): Likewise.
6516 * go-lang.h: Forward declare "struct parser_state".
6517 (go_parse): Add "struct parser_state" argument.
6519 2014-03-27 Doug Evans <dje@google.com>
6521 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6523 2014-03-27 Doug Evans <dje@google.com>
6525 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6526 Remove argument abbrev_section. All callers updated.
6528 2014-03-27 Doug Evans <dje@google.com>
6530 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6531 addr_base, ranges_base.
6533 2014-03-26 Keith Seitz <keiths@redhat.com>
6535 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6536 types, not VAR_DOMAIN.
6538 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6540 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6542 * features/nios2-linux.c: Regenerated.
6543 * features/nios2.c: Regenerated.
6545 2014-03-25 Pedro Alves <palves@redhat.com>
6547 * cli/cli-script.c (script_from_file): Force the interpreter to
6550 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6552 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6553 small stack allocation.
6555 2014-03-24 Tristan Gingold <gingold@adacore.com>
6557 * darwin-nat.c (exc_server): Remove unused prototype.
6558 (darwin_dump_message): Correctly display data on x86_64.
6559 (darwin_encode_reply): Fix style.
6560 Add comments and fix indentation.
6562 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6564 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6566 2014-03-22 Doug Evans <xdje42@gmail.com>
6568 * infcmd.c: Whitespace fixes.
6569 (interrupt_command): Merge two function comments into one.
6571 2014-03-22 Doug Evans <xdje42@gmail.com>
6573 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6576 2014-03-22 Yao Qi <yao@codesourcery.com>
6578 * remote.c (target_read_live_memory): Remove.
6579 (memory_xfer_live_readonly_partial): Rename it to
6580 remote_xfer_live_readonly_partial. Remove argument 'object'.
6581 All callers updated. Call remote_read_bytes_1
6582 instead of target_read_live_memory.
6583 * tracepoint.c (set_traceframe_number): Remove.
6584 (make_cleanup_restore_traceframe_number): Likewise .
6585 * tracepoint.h (set_traceframe_number): Remove declaration.
6586 (make_cleanup_restore_traceframe_number): Likewise.
6588 2014-03-22 Yao Qi <yao@codesourcery.com>
6590 * remote.c (remote_read_bytes): Move code on reading from the
6592 (remote_read_bytes_1): ... here. New function.
6594 2014-03-22 Yao Qi <yao@codesourcery.com>
6596 * ctf.c (ctf_xfer_partial): Check the return value of
6597 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6598 return TARGET_XFER_UNAVAILABLE.
6599 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6600 * target.c (target_read_live_memory): Move it to remote.c.
6601 (memory_xfer_live_readonly_partial): Likewise.
6602 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6603 * remote.c (target_read_live_memory): Moved from target.c.
6604 (memory_xfer_live_readonly_partial): Likewise.
6605 (remote_read_bytes): Factored out from
6606 memory_xfer_partial_1.
6608 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6610 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6613 2014-03-21 Pedro Alves <palves@redhat.com>
6615 * infrun.c (normal_stop): Extend comment.
6617 2014-03-21 Hui Zhu <hui@codesourcery.com>
6618 Pedro Alves <palves@redhat.com>
6620 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6622 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6623 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6624 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6626 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6628 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6629 `z' formatted output modifier.
6631 2014-03-20 Tom Tromey <tromey@redhat.com>
6632 Sergio Durigan Junior <sergiodj@redhat.com>
6634 * probe.c (parse_probes): Turn assert into an ordinary error.
6635 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6636 exceptions when parsing probes. Rearrange the code for clarity.
6638 2014-03-20 Tom Tromey <tromey@redhat.com>
6641 * top.c (execute_command): Only dispatch events if the command
6644 2014-03-20 Tom Tromey <tromey@redhat.com>
6647 * infcall.c: Include event-top.h.
6648 (run_inferior_call): Call async_disable_stdin if needed.
6650 2014-03-20 Pedro Alves <palves@redhat.com>
6652 * infrun.c (prepare_to_proceed): Delete.
6653 (thread_still_needs_step_over): New function.
6654 (find_thread_needs_step_over): New function.
6655 (proceed): If the current thread needs a step-over, set its
6656 steping_over_breakpoint flag. Adjust to use
6657 find_thread_needs_step_over instead of prepare_to_proceed.
6658 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6659 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6661 (switch_back_to_stepped_thread): Step over breakpoints of all
6662 threads not the stepping thread, before switching back to the
6665 2014-03-20 Pedro Alves <palves@redhat.com>
6667 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6669 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6670 * infrun.c (saved_singlestep_ptid)
6671 (stepping_past_singlestep_breakpoint): Delete.
6672 (resume): Remove stepping_past_singlestep_breakpoint handling.
6673 (proceed): Store the prev_pc of the stepping thread too.
6674 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6676 (enum infwait_states): Delete infwait_thread_hop_state.
6677 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6679 (handle_inferior_event): Adjust.
6680 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6681 handling and the thread-hop code. Before removing single-step
6682 breakpoints, check whether the thread hit a single-step breakpoint
6683 of another thread. If it did, the trap is not a random signal.
6684 (switch_back_to_stepped_thread): If the event thread hit a
6685 single-step breakpoint, unblock it before switching to the
6686 stepping thread. Handle the case of the stepped thread having
6688 (keep_going): Handle the case of the current thread moving past a
6689 single-step breakpoint.
6691 2014-03-20 Pedro Alves <palves@redhat.com>
6694 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6695 are being stepped over.
6696 (breakpoint_address_match): Make extern.
6697 * breakpoint.h (breakpoint_address_match): New declaration.
6698 * inferior.h (stepping_past_instruction_at): New declaration.
6699 * infrun.c (struct step_over_info): New type.
6700 (step_over_info): New global.
6701 (set_step_over_info, clear_step_over_info)
6702 (stepping_past_instruction_at): New functions.
6703 (handle_inferior_event): Clear the step-over info when
6704 trap_expected is cleared.
6705 (resume): Remove now stale comment.
6706 (clear_proceed_status): Clear step-over info.
6707 (proceed): Adjust step-over handling to set or clear the step-over
6708 info instead of removing all breakpoints.
6709 (handle_signal_stop): When setting up a thread-hop, don't remove
6711 (stop_stepping): Clear step-over info.
6712 (keep_going): Adjust step-over handling to set or clear step-over
6713 info and then always inserting breakpoints, instead of removing
6714 all breakpoints when stepping over one.
6716 2014-03-20 Pedro Alves <palves@redhat.com>
6718 * infrun.c (previous_inferior_ptid): Adjust comment.
6719 (deferred_step_ptid): Delete.
6720 (infrun_thread_ptid_changed, prepare_to_proceed)
6721 (init_wait_for_inferior): Adjust.
6722 (handle_signal_stop): Delete deferred_step_ptid handling.
6724 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6727 * defs.h (sync_quit_force_run): New declaration.
6728 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6729 * event-top.c (async_sigterm_handler): New declaration.
6730 (async_sigterm_token): New variable.
6731 (async_init_signals): Create also async_sigterm_token.
6732 (async_sigterm_handler): New function.
6733 (sync_quit_force_run): New variable.
6734 (handle_sigterm): Replace quit_force call by other calls.
6735 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6737 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6739 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6740 offset into SPE pseudo registers.
6742 2014-03-18 Pedro Alves <palves@redhat.com>
6745 * inferior.h (print_stop_event): Declare.
6746 * infrun.c (print_stop_event): New, factored out from ...
6747 (normal_stop): ... this.
6748 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6749 of bpstat_print/print_stack_frame.
6751 2014-03-17 Tom Tromey <tromey@redhat.com>
6753 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6755 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6757 * ada-lang.c (decode_constrained_packed_array): Perform a
6758 minimal coercion for reference with coerce_ref instead of
6761 2014-03-17 Tristan Gingold <gingold@adacore.com>
6763 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6764 (darwin_solib_create_inferior_hook): Emit a warning if version
6767 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6769 * python/py-value.c (get_field_flag): Cast flag_name argument to
6770 PyObject_GetAttrString to support Python 2.4.
6772 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6774 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6775 (Global Maintainers): Remove Jan Kratochvil.
6777 2014-03-14 Pedro Alves <palves@redhat.com>
6779 * inferior.h (terminal_ours_for_output): Rename to ...
6780 (child_terminal_ours_for_output): ... this.
6781 (terminal_save_ours): Rename to ...
6782 (child_terminal_save_ours): ... this.
6783 (terminal_ours): Rename to ...
6784 (child_terminal_ours): ... this.
6785 (terminal_inferior): Rename to ...
6786 (child_terminal_inferior): ... this.
6787 (terminal_init_inferior): Rename to ...
6788 (child_terminal_init_inferior): ... this.
6789 (terminal_init_inferior_with_pgrp): Rename to ...
6790 (child_terminal_init_inferior_with_pgrp): ... this.
6791 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6792 (child_terminal_init_with_pgrp): ... this.
6793 (terminal_save_ours): Rename to ...
6794 (child_terminal_save_ours): ... this.
6795 (terminal_init_inferior): Rename to ...
6796 (child_terminal_init): ... this. Adjust.
6797 (terminal_inferior): Rename to ...
6798 (child_terminal_inferior): ... this.
6799 (terminal_ours_for_output): Rename to ...
6800 (child_terminal_ours_for_output): ... this. Adjust.
6801 (terminal_ours): Rename to ...
6802 (child_terminal_ours): ... this.
6803 (terminal_ours_1): Rename to ...
6804 (child_terminal_ours_1): ... this. Adjust.
6805 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6806 * windows-nat.c (do_initial_windows_stuff): Adjust.
6807 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6808 (gnu_terminal_init): ... this. Adjust.
6809 (gnu_target): Adjust.
6810 * inf-child.c (inf_child_target): Adjust.
6812 2014-03-13 Doug Evans <xdje42@gmail.com>
6815 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6818 2014-03-13 Doug Evans <xdje42@gmail.com>
6820 * value.c (record_latest_value): Call release_value_or_incref
6821 instead of release_value.
6823 2014-03-13 Pedro Alves <palves@redhat.com>
6825 * procfs.c (procfs_target): Don't override to_shortname,
6826 to_longname or to_doc.
6828 2014-03-13 Pedro Alves <palves@redhat.com>
6830 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6831 Unix in user visible strings.
6833 2014-03-12 Stan Shebs <stan@codesourcery.com>
6835 * gdbtypes.h: Annotate comments for Doxygen, add a page
6836 block comment with some general info.
6838 2014-03-12 Pedro Alves <palves@redhat.com>
6840 * infcmd.c (prepare_execution_command): New function, factored out
6841 from several execution commands.
6842 (run_command_1, continue_command, step_1, jump_command)
6843 (signal_command, until_command, advance_command, finish_command)
6844 (attach_command): Use prepare_execution_command.
6846 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6848 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6851 (struct arm_linux_thread_points): Removed.
6852 (struct arm_linux_process_info): New.
6853 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6854 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6855 (arm_linux_find_breakpoints_by_tid): Removed.
6856 (struct arch_lwp_info): New.
6857 (arm_linux_find_process_pid): New functions.
6858 (arm_linux_add_process): New functions.
6859 (arm_linux_process_info_get): New functions.
6860 (arm_linux_forget_process): New function.
6861 (arm_linux_get_debug_reg_state): New function.
6862 (struct update_registers_data): New.
6863 (update_registers_callback): New function.
6864 (arm_linux_insert_hw_breakpoint1): Updated.
6865 (arm_linux_remove_hw_breakpoint1): Updated.
6866 (arm_linux_insert_hw_breakpoint): Updated.
6867 (arm_linux_remove_hw_breakpoint): Updated.
6868 (arm_linux_insert_watchpoint): Updated.
6869 (arm_linux_remove_watchpoint): Updated.
6870 (arm_linux_new_thread): Updated.
6871 (arm_linux_prepare_to_resume): New function.
6872 (arm_linux_new_fork): New function.
6873 (_initialize_arm_linux_nat): Updated.
6875 2014-03-12 Pedro Alves <palves@redhat.com>
6877 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6879 2014-03-12 Tom Tromey <tromey@redhat.com>
6881 * inf-child.c (return_zero): New function.
6882 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6883 * aix-thread.c (aix_thread_inferior_created): New function.
6884 (aix_thread_attach): Remove.
6885 (init_aix_thread_ops): Don't set to_attach.
6886 (_initialize_aix_thread): Register inferior_created observer.
6887 * corelow.c (init_core_ops): Don't set to_attach or
6889 * exec.c (init_exec_ops): Don't set to_attach or
6891 * infcmd.c (run_command_1): Use find_run_target. Make direct
6893 (attach_command): Use find_attach_target. Make direct target
6895 * record-btrace.c (init_record_btrace_ops): Don't set
6897 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6899 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6900 set to_create_inferior.
6901 * target.c (complete_target_initialization): Add assertion.
6902 (target_create_inferior): Remove.
6903 (find_default_attach, find_default_create_inferior): Remove.
6904 (find_attach_target, find_run_target): New functions.
6905 (find_default_is_async_p, find_default_can_async_p)
6906 (target_supports_non_stop, target_attach): Remove.
6907 (init_dummy_target): Don't set to_create_inferior or
6908 to_supports_non_stop.
6909 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6910 TARGET_DEFAULT_FUNC.
6911 <to_create_inferior>: Add comment.
6912 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6913 TARGET_DEFAULT_RETURN.
6914 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6915 (find_attach_target, find_run_target): Declare.
6916 (target_create_inferior): Remove.
6917 (target_has_execution_1): Update comment.
6918 (target_supports_non_stop): Remove.
6919 * target-delegates.c: Rebuild.
6921 2014-03-12 Pedro Alves <palves@redhat.com>
6923 * inf-child.h: Update comment to not mention Unix.
6925 2014-03-12 Pedro Alves <palves@redhat.com>
6927 * inf-child.c: Update top comment to not mention Unix. Add
6928 generic comment describing how this target is meant to be used.
6929 (inf_child_post_attach, inf_child_post_startup_inferior)
6930 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6933 2014-03-12 Pedro Alves <palves@redhat.com>
6935 * nto-procfs.c: Include inf-child.h.
6936 (procfs_ops): Delete global.
6937 (procfs_can_run): Delete method.
6938 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6939 target pointer instead of referencing procfs_ops.
6940 (procfs_prepare_to_store): Delete.
6941 (init_procfs_ops): Delete function.
6942 (procfs_target): New function, based on init_procfs_ops, but
6943 inherit inf_child_target.
6944 (_initialize_procfs): Use procfs_target.
6946 2014-03-12 Pedro Alves <palves@redhat.com>
6948 * windows-nat.c: Include inf-child.h.
6949 (windows_ops): Delete global.
6950 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6952 (init_windows_ops): Delete function.
6953 (windows_target): New function, based on init_windows_ops, but
6954 inherit inf_child_target.
6955 (_initialize_windows_nat): Use windows_target. Install x86
6956 specific target methods here.
6958 2014-03-10 Doug Evans <xdje42@gmail.com>
6960 * guile/guile.c (call_initialize_gdb_module): New function.
6961 (initialize_guile): Replace call to scm_init_guile with call to
6964 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6966 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6967 in call to TYPE_CODE macro.
6969 2014-03-10 Jerome Guitton <guitton@adacore.com>
6971 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6972 Resolve tagged types to full view.
6974 2014-03-10 Hui Zhu <hui@codesourcery.com>
6976 * target.h (target_insert_breakpoint): Remove "hardware" from its
6979 2014-03-07 Doug Evans <dje@google.com>
6981 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6983 2014-03-07 Doug Evans <dje@google.com>
6985 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6986 Remove unused local comp_dir_attr. Assert exactly one of
6987 stub_comp_unit_die, stub_comp_dir is non-NULL.
6989 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6991 * target.h (complete_target_initialization, add_target):
6994 2014-03-07 Pedro Alves <palves@redhat.com>
6996 * go32-nat.c: Include inf-child.h.
6997 (go32_ops): Delete global.
6998 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7000 (go32_create_inferior): Push the passed in target pointer instead
7001 of referencing go32_ops.
7002 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7003 (go32_target): New function, based on init_go32_ops, but inherit
7005 (_initialize_go32_nat): Use go32_target. Move parts of
7008 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7010 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7011 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7012 SYMBOL_VALUE_ADDRESS.
7013 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7015 2014-03-06 Yao Qi <yao@codesourcery.com>
7017 * breakpoint.c (get_tracepoint_by_number): Remove argument
7018 optional_p. All callers updated. Adjust comments. Update
7020 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7022 2014-03-06 Yao Qi <yao@codesourcery.com>
7024 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7025 early if get_number returns zero. Use 'p' instead of 'args'.
7027 2014-03-06 Yao Qi <yao@codesourcery.com>
7029 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7032 2014-03-06 Yao Qi <yao@codesourcery.com>
7034 PR breakpoints/16508
7035 * tracepoint.c (check_trace_running): New function.
7036 (trace_find_command): Move code to check_trace_running and
7037 call check_trace_running.
7038 (trace_find_pc_command): Likewise.
7039 (trace_find_tracepoint_command): Likewise.
7040 (trace_find_line_command): Likewise.
7041 (trace_find_range_command): Likewise.
7042 * tracepoint.h (check_trace_running): Likewise.
7043 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7045 2014-03-06 Yao Qi <yao@codesourcery.com>
7047 * target.h (struct target_ops) <to_traceframe_info>: Use
7048 TARGET_DEFAULT_NORETURN (tcomplain ()).
7049 * target-delegates.c: Regenerated.
7051 2014-03-05 Pedro Alves <palves@redhat.com>
7054 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7055 void. Update comment.
7056 (dcache_xfer_memory): Delete.
7057 (dcache_read_memory_partial): New, based on the read bits of
7059 (dcache_update): Add status parameter. Use ULONGEST for len, and
7060 adjust. Discard cache lines if the reason for the update was
7062 * dcache.h (dcache_xfer_memory): Delete declaration.
7063 (dcache_read_memory_partial): New declaration.
7064 (dcache_update): Update prototype.
7065 * target.c (raw_memory_xfer_partial): Update the dcache here.
7066 (memory_xfer_partial_1): Don't handle dcache writes here.
7068 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7070 * remote-sim.c (gdbsim_load): Add const to prog.
7072 2014-03-03 Tom Tromey <tromey@redhat.com>
7074 * elfread.c (probe_key): Change to bfd_data.
7075 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7076 now per-BFD, not per-objfile.
7077 * stap-probe.c (stap_probe_destroy): Update comment.
7078 (handle_stap_probe): Allocate on the per-BFD obstack.
7080 2014-03-03 Tom Tromey <tromey@redhat.com>
7082 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7083 * breakpoint.c (create_longjmp_master_breakpoint): Use
7085 (add_location_to_breakpoint, bkpt_probe_insert_location)
7086 (bkpt_probe_remove_location): Update.
7087 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7088 * elfread.c (elf_symfile_relocate_probe): Remove.
7089 (elf_probe_fns): Update.
7090 (insert_exception_resume_breakpoint): Change type of "probe"
7091 parameter to bound_probe.
7092 (check_exception_resume): Update.
7093 * objfiles.c (objfile_relocate1): Don't relocate probes.
7094 * probe.c (bound_probe_s): New typedef.
7095 (parse_probes): Use get_probe_address. Set sal's objfile.
7096 (find_probe_by_pc): Return a bound_probe.
7097 (collect_probes): Return a VEC(bound_probe_s).
7098 (compare_probes): Update.
7099 (gen_ui_out_table_header_info): Change type of "probes"
7101 (info_probes_for_ops): Update.
7102 (get_probe_address): New function.
7103 (probe_safe_evaluate_at_pc): Update.
7104 * probe.h (struct probe_ops) <get_probe_address>: New field.
7105 <set_semaphore, clear_semaphore>: Add objfile parameter.
7106 (struct probe) <objfile>: Remove field.
7108 <address>: Update comment.
7109 (struct bound_probe): New.
7110 (find_probe_by_pc): Return a bound_probe.
7111 (get_probe_address): Declare.
7112 * solib-svr4.c (struct probe_and_action) <address>: New field.
7113 (hash_probe_and_action, equal_probe_and_action): Update.
7114 (register_solib_event_probe): Add address parameter.
7115 (solib_event_probe_at): Update.
7116 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7118 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7119 (stap_get_probe_address): New function.
7120 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7121 (compile_probe_arg): Update.
7122 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7124 (handle_stap_probe): Don't relocate the probe.
7125 (stap_relocate): Remove.
7126 (stap_gen_info_probes_table_values): Update.
7127 (stap_probe_ops): Remove stap_relocate.
7128 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7129 (debug_sym_probe_fns): Update.
7130 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7131 * symtab.c (init_sal): Use memset.
7132 * symtab.h (struct symtab_and_line) <objfile>: New field.
7133 * tracepoint.c (start_tracing, stop_tracing): Update.
7135 2014-03-03 Tom Tromey <tromey@redhat.com>
7137 * probe.h (parse_probes, find_probe_by_pc)
7138 (find_probes_in_objfile): Fix comments.
7140 2014-03-02 Doug Evans <xdje42@gmail.com>
7142 * infrun.c (handle_signal_stop): Replace test for
7143 TARGET_WAITKIND_STOPPED with an assert.
7145 2014-03-02 Doug Evans <xdje42@gmail.com>
7147 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7149 2014-03-02 Doug Evans <xdje42@gmail.com>
7151 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7153 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7155 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7157 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7159 * i386obsd-nat.c: Include "obsd-nat.h".
7160 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7162 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7164 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7166 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7168 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7170 * mips64obsd-nat.c: Include "obsd-nath".
7171 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7173 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7175 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7177 * amd64obsd-nat.c: Include "obsd-nat,h.
7178 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7180 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7182 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7184 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7185 (find_overload_match): Update call to find_oload_champ.
7186 (find_oload_champ_namespace_loop): Likewise
7188 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7190 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7192 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7193 * config/sparc/obsd64.mh: New file.
7194 * sparc64obsd-nat.c: New file.
7196 * obsd-nat.h: New file.
7197 * obsd-nat.c: New file.
7198 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7199 (ALLDEPFILES): Add obsd-nat.c.
7201 2014-02-28 Tom Tromey <tromey@redhat.com>
7203 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7204 * cli-out.h (cli_ui_out_impl): Now const.
7205 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7206 * ui-out.c (struct ui_out) <impl>: Now const.
7207 (default_ui_out_impl): Now const.
7208 (ui_out_new): Make 'impl' parameter const.
7209 * ui-out.h (ui_out_new): Update.
7211 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7213 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7215 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7217 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7219 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7221 Additional PR 8882 fix.
7222 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7224 2014-02-27 Pedro Alves <palves@redhat.com>
7226 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7229 2014-02-27 Pedro Alves <palves@redhat.com>
7232 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7233 * nat/linux-waitpid.c: Include string.h.
7234 (status_to_str): Moved here and made extern.
7235 * nat/linux-waitpid.h (status_to_str): New declaration.
7237 2014-02-27 Hui Zhu <hui@codesourcery.com>
7240 * infrun.c (ptid_match): Move ...
7241 * common/ptid.c (ptid_match): ... here.
7242 * inferior.h (ptid_match): Move ...
7243 * common/ptid.h (ptid_match): ... here.
7245 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7247 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7248 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7251 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7253 * obsd-tdep.c (obsd_auxv_parse): New function.
7254 (obsd_init_abi): Set auxv_parse.
7256 * gdbarch.sh (auxv_parse): New.
7257 * gdbarch.h: Regenerated.
7258 * gdbarch.c: Regenerated.
7259 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7261 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7263 * guile/scm-value.c (gdbscm_history_append_x): New function.
7264 (value_functions): Add it.
7266 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7268 * dwarf2read.c (attr_value_as_address): New function.
7269 (dwarf2_find_base_address, read_call_site_scope): Use
7270 attr_value_as_address in place of DW_ADDR.
7271 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7272 the low and high addresses. Slight rework of the handling
7273 of the high pc being a constant form, and limit it to
7274 DWARF verson 4 or higher.
7275 (dwarf2_record_block_ranges): Likewise.
7276 (read_partial_die): Likewise.
7277 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7279 2014-02-26 Tom Tromey <tromey@redhat.com>
7281 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7283 2014-02-26 Tom Tromey <tromey@redhat.com>
7285 * elfread.c (elf_read_minimal_symbols): Return early if
7286 minimal symbols have already been read. Add "ei" parameter.
7287 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7288 * minsyms.c (prim_record_minimal_symbol_full): Update.
7289 * objfiles.h (struct objstats) <n_minsyms>: Move...
7290 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7291 * symmisc.c (print_objfile_statistics): Update.
7293 2014-02-26 Tom Tromey <tromey@redhat.com>
7295 * elfread.c (elf_read_minimal_symbols): New function, from
7297 (elf_symfile_read): Call it.
7299 2014-02-26 Tom Tromey <tromey@redhat.com>
7301 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7302 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7303 (lookup_minimal_symbol_solib_trampoline)
7304 (lookup_minimal_symbol_by_pc_section_1)
7305 (lookup_minimal_symbol_and_objfile): Update.
7306 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7307 Don't allocate a minimal symbol if minsyms have already been read.
7308 (build_minimal_symbol_hash_tables): Update.
7309 (install_minimal_symbols): Do nothing if minsyms already read.
7310 Use the per-BFD obstack.
7311 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7312 * objfiles.c (allocate_objfile): Call
7313 terminate_minimal_symbol_table later.
7314 (have_minimal_symbols): Update.
7315 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7316 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7317 Move from struct objfile.
7318 <minsyms_read>: New field.
7319 (struct objfile) <msymbols, minimal_symbol_count,
7320 msymbol_hash, msymbol_demangled_hash>: Move.
7321 (ALL_OBJFILE_MSYMBOLS): Update.
7322 * symfile.c (read_symbols): Set minsyms_read.
7323 (reread_symbols): Update.
7324 * symmisc.c (dump_objfile, dump_msymbols): Update.
7326 2014-02-26 Tom Tromey <tromey@redhat.com>
7328 * minsyms.c (msymbols_sort): Remove.
7329 * minsyms.h (msymbols_sort): Remove.
7330 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7331 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7332 * elfread.c (elf_symtab_read): Don't add section offsets.
7333 * xcoffread.c (record_minimal_symbol): Don't add section offset
7334 to minimal symbol address.
7335 * somread.c (text_offset, data_offset): Remove.
7336 (som_symtab_read): Don't add section offsets to minimal symbol
7338 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7339 Don't add section offsets to minimal symbols.
7340 * coffread.c (coff_symtab_read): Don't add section offsets
7341 to minimal symbol addresses.
7342 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7343 to minimal symbol addresses.
7344 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7345 section offset to minimal symbol addresses.
7346 * mdebugread.c (parse_partial_symbols): Don't add section
7347 offset to minimal symbol addresses.
7348 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7349 offset to minimal symbol addresses.
7351 2014-02-26 Tom Tromey <tromey@redhat.com>
7353 * ada-lang.c (ada_main_name): Update.
7354 (ada_add_standard_exceptions): Update.
7355 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7356 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7357 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7358 * auxv.c (ld_so_xfer_auxv): Update.
7359 * avr-tdep.c (avr_scan_prologue): Update.
7360 * ax-gdb.c (gen_var_ref): Update.
7361 * blockframe.c (get_pc_function_start)
7362 (find_pc_partial_function_gnu_ifunc): Update.
7363 * breakpoint.c (create_overlay_event_breakpoint)
7364 (create_longjmp_master_breakpoint)
7365 (create_std_terminate_master_breakpoint)
7366 (create_exception_master_breakpoint): Update.
7367 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7368 * c-valprint.c (c_val_print): Update.
7369 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7370 * common/agent.c (agent_look_up_symbols): Update.
7371 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7372 * dwarf2loc.c (call_site_to_target_addr): Update.
7373 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7374 * elfread.c (elf_gnu_ifunc_record_cache)
7375 (elf_gnu_ifunc_resolve_by_got): Update.
7376 * findvar.c (default_read_var_value): Update.
7377 * frame.c (inside_main_func): Update.
7378 * frv-tdep.c (frv_frame_this_id): Update.
7379 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7380 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7382 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7383 (hppa_hpux_find_dummy_bpaddr): Update.
7384 * hppa-tdep.c (hppa_symbol_address): Update.
7385 * infcmd.c (until_next_command): Update.
7386 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7388 * linespec.c (minsym_found, add_minsym): Update.
7389 * linux-nat.c (get_signo): Update.
7390 * linux-thread-db.c (inferior_has_bug): Update.
7391 * m32c-tdep.c (m32c_return_value)
7392 (m32c_m16c_address_to_pointer): Update.
7393 * m32r-tdep.c (m32r_frame_this_id): Update.
7394 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7395 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7396 * maint.c (maintenance_translate_address): Update.
7397 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7398 (frob_address): New function.
7399 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7400 frob_address. Rename parameter to "pc_in".
7401 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7403 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7405 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7406 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7407 * objc-lang.c (find_objc_msgsend): Update.
7408 * objfiles.c (objfile_relocate1): Update.
7409 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7410 * p-valprint.c (pascal_val_print): Update.
7411 * parse.c (write_exp_msymbol): Update.
7412 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7413 (ppc_elfv2_skip_entrypoint): Update.
7414 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7415 * printcmd.c (build_address_symbolic, msym_info)
7416 (address_info): Update.
7417 * proc-service.c (ps_pglobal_lookup): Update.
7418 * psymtab.c (find_pc_sect_psymtab_closer)
7419 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7420 Change msymbol parameter to bound_minimal_symbol.
7421 * ravenscar-thread.c (get_running_thread_id): Update.
7422 * remote.c (remote_check_symbols): Update.
7423 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7425 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7426 * solib-dsbt.c (lm_base): Update.
7427 * solib-frv.c (lm_base, main_got): Update.
7428 * solib-irix.c (locate_base): Update.
7429 * solib-som.c (som_solib_create_inferior_hook)
7430 (link_map_start): Update.
7431 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7432 * solib-svr4.c (elf_locate_base, enable_break): Update.
7433 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7434 (flush_ea_cache): Update.
7435 * stabsread.c (define_symbol, scan_file_globals): Update.
7436 * stack.c (find_frame_funname): Update.
7437 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7438 (debug_qf_find_pc_sect_symtab): Update.
7439 * symfile.c (simple_read_overlay_table)
7440 (simple_overlay_update): Update.
7441 * symfile.h (struct quick_symbol_functions)
7442 <find_pc_sect_symtab>: Change type of msymbol to
7443 bound_minimal_symbol.
7444 * symmisc.c (dump_msymbols): Update.
7445 * symtab.c (find_pc_sect_symtab_via_partial)
7446 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7447 (search_symbols, print_msymbol_info): Update.
7448 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7449 (MSYMBOL_VALUE_ADDRESS): Redefine.
7450 (BMSYMBOL_VALUE_ADDRESS): New macro.
7451 * tracepoint.c (scope_info): Update.
7452 * tui/tui-disasm.c (tui_find_disassembly_address)
7453 (tui_get_begin_asm_address): Update.
7454 * valops.c (find_function_in_inferior): Update.
7455 * value.c (value_static_field, value_fn_field): Update.
7457 2014-02-26 Tom Tromey <tromey@redhat.com>
7459 * ada-lang.c (ada_update_initial_language): Update.
7460 (ada_main_name, ada_has_this_exception_support): Update.
7461 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7462 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7463 * arm-tdep.c (arm_skip_stub): Update.
7464 * auxv.c (ld_so_xfer_auxv): Update.
7465 * avr-tdep.c (avr_scan_prologue): Update.
7466 * ax-gdb.c (gen_var_ref): Update.
7467 * breakpoint.c (struct breakpoint_objfile_data)
7468 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7469 type to bound_minimal_symbol.
7470 (create_overlay_event_breakpoint)
7471 (create_longjmp_master_breakpoint)
7472 (create_std_terminate_master_breakpoint)
7473 (create_exception_master_breakpoint): Update.
7474 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7475 * c-exp.y (classify_name): Update.
7476 * coffread.c (coff_symfile_read): Update.
7477 * common/agent.c (agent_look_up_symbols): Update.
7478 * d-lang.c (d_main_name): Update.
7479 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7480 * dec-thread.c (enable_dec_thread): Update.
7481 * dwarf2loc.c (call_site_to_target_addr): Update.
7482 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7483 * eval.c (evaluate_subexp_standard): Update.
7484 * findvar.c (struct minsym_lookup_data) <result>: Change type
7485 to bound_minimal_symbol.
7487 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7488 * frame.c (inside_main_func): Update.
7489 * frv-tdep.c (frv_frame_this_id): Update.
7490 * gcore.c (call_target_sbrk): Update.
7491 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7492 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7494 * go-lang.c (go_main_name): Update.
7495 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7496 (hppa_hpux_find_import_stub_for_addr): Update.
7497 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7498 Update. Change return type.
7499 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7501 * jit.c (jit_breakpoint_re_set_internal): Update.
7502 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7504 * linux-nat.c (get_signo): Update.
7505 * linux-thread-db.c (inferior_has_bug): Update
7506 * m32c-tdep.c (m32c_return_value)
7507 (m32c_m16c_address_to_pointer): Update.
7508 * m32r-tdep.c (m32r_frame_this_id): Update.
7509 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7510 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7511 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7512 lookup_minimal_symbol. Change return type.
7513 (lookup_minimal_symbol): Remove.
7514 (lookup_bound_minimal_symbol): Update.
7515 (lookup_minimal_symbol_text): Change return type.
7516 (lookup_minimal_symbol_solib_trampoline): Change return type.
7517 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7518 (lookup_minimal_symbol_solib_trampoline): Change return type.
7519 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7520 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7521 (value_nsstring, find_imps): Update.
7522 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7523 * p-lang.c (pascal_main_name): Update.
7524 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7525 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7526 * proc-service.c (ps_pglobal_lookup): Update.
7527 * ravenscar-thread.c (get_running_thread_msymbol): Change
7529 (has_ravenscar_runtime, get_running_thread_id): Update.
7530 * remote.c (remote_check_symbols): Update.
7531 * sol-thread.c (ps_pglobal_lookup): Update.
7532 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7533 * solib-dsbt.c (lm_base): Update.
7534 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7536 * solib-irix.c (locate_base): Update.
7537 * solib-som.c (som_solib_create_inferior_hook)
7538 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7540 * solib-spu.c (spu_enable_break): Update.
7541 * solib-svr4.c (elf_locate_base, enable_break): Update.
7542 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7543 (flush_ea_cache): Update.
7544 * stabsread.c (define_symbol): Update.
7545 * symfile.c (simple_read_overlay_table): Update.
7546 * symtab.c (find_pc_sect_line): Update.
7547 * tracepoint.c (scope_info): Update.
7548 * tui-disasm.c (tui_get_begin_asm_address): Update.
7549 * value.c (value_static_field): Update.
7551 2014-02-26 Tom Tromey <tromey@redhat.com>
7553 * minsyms.c (prim_record_minimal_symbol_full): Use
7554 SET_MSYMBOL_VALUE_ADDRESS.
7555 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7556 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7557 SET_MSYMBOL_VALUE_ADDRESS.
7558 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7559 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7561 2014-02-26 Tom Tromey <tromey@redhat.com>
7563 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7564 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7565 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7566 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7567 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7568 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7569 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7570 * ada-lang.c (ada_main_name): Update.
7571 (ada_lookup_simple_minsym): Update.
7572 (ada_make_symbol_completion_list): Update.
7573 (ada_add_standard_exceptions): Update.
7574 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7575 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7576 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7577 * arm-tdep.c (skip_prologue_function): Update.
7578 (arm_skip_stack_protector, arm_skip_stub): Update.
7579 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7580 (arm_wince_skip_main_prologue): Update.
7581 * auxv.c (ld_so_xfer_auxv): Update.
7582 * avr-tdep.c (avr_scan_prologue): Update.
7583 * ax-gdb.c (gen_var_ref): Update.
7584 * block.c (call_site_for_pc): Update.
7585 * blockframe.c (get_pc_function_start): Update.
7586 (find_pc_partial_function_gnu_ifunc): Update.
7587 * breakpoint.c (create_overlay_event_breakpoint): Update.
7588 (create_longjmp_master_breakpoint): Update.
7589 (create_std_terminate_master_breakpoint): Update.
7590 (create_exception_master_breakpoint): Update.
7591 (resolve_sal_pc): Update.
7592 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7593 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7595 * c-valprint.c (c_val_print): Update.
7596 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7597 * coffread.c (coff_symfile_read): Update.
7598 * common/agent.c (agent_look_up_symbols): Update.
7599 * dbxread.c (find_stab_function_addr): Update.
7600 (end_psymtab): Update.
7601 * dwarf2loc.c (call_site_to_target_addr): Update.
7602 (func_verify_no_selftailcall): Update.
7603 (tailcall_dump): Update.
7604 (call_site_find_chain_1): Update.
7605 (dwarf_expr_reg_to_entry_parameter): Update.
7606 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7607 (elf_gnu_ifunc_resolve_by_got): Update.
7608 * f-valprint.c (info_common_command): Update.
7609 * findvar.c (read_var_value): Update.
7610 * frame.c (get_prev_frame_1): Update.
7611 (inside_main_func): Update.
7612 * frv-tdep.c (frv_skip_main_prologue): Update.
7613 (frv_frame_this_id): Update.
7614 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7615 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7616 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7617 (gnuv3_skip_trampoline): Update.
7618 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7619 (hppa64_hpux_in_solib_call_trampoline): Update.
7620 (hppa_hpux_skip_trampoline_code): Update.
7621 (hppa64_hpux_search_dummy_call_sequence): Update.
7622 (hppa_hpux_find_import_stub_for_addr): Update.
7623 (hppa_hpux_find_dummy_bpaddr): Update.
7624 * hppa-tdep.c (hppa_symbol_address)
7625 (hppa_lookup_stub_minimal_symbol): Update.
7626 * i386-tdep.c (i386_skip_main_prologue): Update.
7627 (i386_pe_skip_trampoline_code): Update.
7628 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7629 * infcall.c (get_function_name): Update.
7630 * infcmd.c (until_next_command): Update.
7631 * jit.c (jit_breakpoint_re_set_internal): Update.
7632 (jit_inferior_init): Update.
7633 * linespec.c (minsym_found): Update.
7634 (add_minsym): Update.
7635 * linux-fork.c (info_checkpoints_command): Update.
7636 * linux-nat.c (get_signo): Update.
7637 * linux-thread-db.c (inferior_has_bug): Update.
7638 * m32c-tdep.c (m32c_return_value): Update.
7639 (m32c_m16c_address_to_pointer): Update.
7640 (m32c_m16c_pointer_to_address): Update.
7641 * m32r-tdep.c (m32r_frame_this_id): Update.
7642 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7643 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7644 * maint.c (maintenance_translate_address): Update.
7645 * minsyms.c (add_minsym_to_hash_table): Update.
7646 (add_minsym_to_demangled_hash_table): Update.
7647 (msymbol_objfile): Update.
7648 (lookup_minimal_symbol): Update.
7649 (iterate_over_minimal_symbols): Update.
7650 (lookup_minimal_symbol_text): Update.
7651 (lookup_minimal_symbol_by_pc_name): Update.
7652 (lookup_minimal_symbol_solib_trampoline): Update.
7653 (lookup_minimal_symbol_by_pc_section_1): Update.
7654 (lookup_minimal_symbol_and_objfile): Update.
7655 (prim_record_minimal_symbol_full): Update.
7656 (compare_minimal_symbols): Update.
7657 (compact_minimal_symbols): Update.
7658 (build_minimal_symbol_hash_tables): Update.
7659 (install_minimal_symbols): Update.
7660 (terminate_minimal_symbol_table): Update.
7661 (find_solib_trampoline_target): Update.
7662 (minimal_symbol_upper_bound): Update.
7663 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7664 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7665 (mips_skip_pic_trampoline_code): Update.
7666 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7667 * objc-lang.c (selectors_info): Update.
7668 (classes_info): Update.
7669 (find_methods): Update.
7670 (find_imps): Update.
7671 (find_objc_msgsend): Update.
7672 * objfiles.c (objfile_relocate1): Update.
7673 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7674 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7675 * p-valprint.c (pascal_val_print): Update.
7676 * parse.c (write_exp_msymbol): Update.
7677 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7678 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7679 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7680 * printcmd.c (build_address_symbolic): Update.
7682 (address_info): Update.
7683 * proc-service.c (ps_pglobal_lookup): Update.
7684 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7685 (find_pc_sect_psymtab): Update.
7686 * python/py-framefilter.c (py_print_frame): Update.
7687 * ravenscar-thread.c (get_running_thread_id): Update.
7688 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7690 * remote.c (remote_check_symbols): Update.
7691 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7692 (rs6000_skip_trampoline_code): Update.
7693 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7694 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7695 * solib-dsbt.c (lm_base): Update.
7696 * solib-frv.c (lm_base): Update.
7698 * solib-irix.c (locate_base): Update.
7699 * solib-som.c (som_solib_create_inferior_hook): Update.
7700 (som_solib_desire_dynamic_linker_symbols): Update.
7701 (link_map_start): Update.
7702 * solib-spu.c (spu_enable_break): Update.
7703 (ocl_enable_break): Update.
7704 * solib-svr4.c (elf_locate_base): Update.
7705 (enable_break): Update.
7706 * spu-tdep.c (spu_get_overlay_table): Update.
7707 (spu_catch_start): Update.
7708 (flush_ea_cache): Update.
7709 * stabsread.c (define_symbol): Update.
7710 (scan_file_globals): Update.
7711 * stack.c (find_frame_funname): Update.
7712 (frame_info): Update.
7713 * symfile.c (simple_read_overlay_table): Update.
7714 (simple_overlay_update): Update.
7715 * symmisc.c (dump_msymbols): Update.
7716 * symtab.c (fixup_section): Update.
7717 (find_pc_sect_line): Update.
7718 (skip_prologue_sal): Update.
7719 (search_symbols): Update.
7720 (print_msymbol_info): Update.
7721 (rbreak_command): Update.
7722 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7723 (completion_list_objc_symbol): Update.
7724 (default_make_symbol_completion_list_break_on): Update.
7725 * tracepoint.c (scope_info): Update.
7726 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7727 (tui_get_begin_asm_address): Update.
7728 * valops.c (find_function_in_inferior): Update.
7729 * value.c (value_static_field): Update.
7730 (value_fn_field): Update.
7732 2014-02-26 Tom Tromey <tromey@redhat.com>
7734 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7735 bound minimal symbols. Move code that knows about minsym
7737 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7739 * minsyms.h (minimal_symbol_upper_bound): Declare.
7740 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7741 minimal_symbol_upper_bound.
7743 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7745 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7746 Use the type's name if its basic type does not have a tag.
7748 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7750 * dwarf2read.c (read_subrange_type): Add comment.
7752 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7754 * dwarf2read.c (update_enumeration_type_from_children): New
7755 function, mostly extracted from process_structure_scope.
7756 (read_enumeration_type): Call update_enumeration_type_from_children.
7757 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7758 and flag_flag_enum fields.
7760 2014-02-26 Pedro Alves <palves@redhat.com>
7762 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7763 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7764 to_xfer_partial method.
7766 2014-02-26 Pedro Alves <palves@redhat.com>
7768 * target.c (complete_target_initialization): Don't install
7769 default_xfer_partial as to_xfer_partial hook.
7771 (update_current_target): Don't INHERIT nor de_fault
7772 deprecated_xfer_memory. Delete de_fault macro.
7773 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7774 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7775 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7778 2014-02-26 Pedro Alves <palves@redhat.com>
7780 * go32-nat.c (my_write_child): New function.
7781 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7782 (go32_xfer_partial): New function.
7783 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7784 Instead install a to_xfer_partial hook.
7786 2014-02-26 Pedro Alves <palves@redhat.com>
7788 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7789 to_xfer_partial helper. Rewrite.
7790 (procfs_xfer_partial): New function.
7791 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7792 Install a to_xfer_partial hook.
7794 2014-02-26 Pedro Alves <palves@redhat.com>
7796 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7797 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7798 (m32r_xfer_partial): New function.
7799 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7800 Install a to_xfer_partial hook.
7802 2014-02-26 Pedro Alves <palves@redhat.com>
7804 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7806 (mips_xfer_partial): New function.
7807 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7808 hook. Install a to_xfer_partial hook.
7810 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7812 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7813 * gdbtypes.c (create_array_type_with_stride): New function,
7814 renaming create_array_type, but with an added parameter
7815 called "bit_stride".
7816 (create_array_type): Re-implement using
7817 create_array_type_with_stride.
7818 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7819 and DW_AT_bit_stride attributes.
7821 2014-02-26 Pedro Alves <palves@redhat.com>
7823 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7824 task-specific breakpoints.
7826 2014-02-25 Pedro Alves <palves@redhat.com>
7828 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7829 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7831 2014-02-25 Stan Shebs <stan@codesourcery.com>
7833 * defs.h: Annotate comments for Doxygen.
7835 2014-02-25 Tom Tromey <tromey@redhat.com>
7837 * target.h (target_ignore): Don't declare.
7838 * target.c (target_ignore): Remove.
7840 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7843 * auto-load.c (auto_load_objfile_script_1): Change filename to
7846 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7848 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7849 documentation. Adjust prototype to match the target_ops
7850 to_xfer_partial method. Adjust implementation accordingly.
7852 2014-02-25 Hui Zhu <hui@codesourcery.com>
7854 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7857 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7859 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7860 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7861 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7862 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7863 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7864 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7865 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7866 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7868 (rl78_register_type): Use a data pointer type for SP and
7869 new pseudo registers mentioned above. Use a 16 bit integer
7870 type for all other register pairs.
7871 (rl78_register_name, rl78_g10_register_name): Update for
7872 new pseudo registers.
7873 (rl78_pseudo_register_read): Likewise.
7874 (rl78_pseudo_register_write): Likewise.
7875 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7876 to the newly added pseudo registers.
7878 2014-02-24 Doug Evans <dje@google.com>
7880 * value.c (record_latest_value): Fix comment.
7881 * printcmd.c (print_command_1): Remove code to handle -1 return from
7882 record_latest_value.
7884 2014-02-24 Pedro Alves <palves@redhat.com>
7886 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7887 deprecated_xfer_memory hook.
7888 (procfs_xfer_partial): Call procfs_xfer_memory instead
7889 of the deprecated_xfer_memory target hook.
7890 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7893 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7895 * windows-nat.c (windows_xfer_shared_libraries): Return
7896 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7897 requested object is TARGET_OBJECT_LIBRARIES.
7899 2014-02-24 Yao Qi <yao@codesourcery.com>
7901 * target.h (enum target_xfer_status)
7902 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7903 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7905 * corefile.c (memory_error_message): User updated.
7906 * exec.c (section_table_read_available_memory): Likewise.
7907 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7908 * target.c (target_xfer_status_to_string): Likewise.
7909 (raw_memory_xfer_partial): Likewise.
7910 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7911 * valops.c (read_value_memory): Likewise.
7912 * exec.h: Update comments.
7914 2014-02-24 Yao Qi <yao@codesourcery.com>
7916 * target.c (target_xfer_status_to_string): Rename argument err
7918 * target.h (target_xfer_status_to_string): Update declaration.
7919 Replace target_xfer_error_to_string with
7920 target_xfer_status_to_string in comment.
7922 2014-02-24 Yao Qi <yao@codesourcery.com>
7924 * mips-linux-nat.c (super_close): Update its type.
7925 (mips_linux_close): Pass 'self' to super_close.
7927 2014-02-24 Yao Qi <yao@codesourcery.com>
7929 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7930 * corefile.c (read_memory): Adjusted.
7931 * target.c (target_write_with_progress): Adjusted.
7933 2014-02-23 Yao Qi <yao@codesourcery.com>
7937 2013-10-25 Yao Qi <yao@codesourcery.com>
7939 * remote.c (remote_traceframe_info): Return early if
7940 traceframe is not selected.
7942 2013-07-19 Yao Qi <yao@codesourcery.com>
7944 * target.c (update_current_target): Change the default action
7945 of 'to_traceframe_info' from tcomplain to return_zero.
7946 * target.h (struct target_ops) <to_traceframe_info>: Add more
7949 2014-02-23 Yao Qi <yao@codesourcery.com>
7951 * valops.c (read_value_memory): Rewrite it. Call
7952 target_xfer_partial in a loop.
7953 * exec.h (section_table_available_memory): Remove declaration.
7954 Move comments to ...
7955 * exec.c (section_table_available_memory): ... here. Make it
7958 2014-02-23 Yao Qi <yao@codesourcery.com>
7960 * exec.c (section_table_read_available_memory): New function.
7961 * exec.h (section_table_read_available_memory): Declare.
7962 * ctf.c (ctf_xfer_partial): Call
7963 section_table_read_available_memory.
7964 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7966 2014-02-23 Yao Qi <yao@codesourcery.com>
7968 * ctf.c (ctf_xfer_partial): Move code to ...
7969 * exec.c (exec_read_partial_read_only): ... it. New function.
7970 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7971 * tracefile.c: Include "exec.h".
7972 * exec.h (exec_read_partial_read_only): Declare.
7974 2014-02-23 Yao Qi <yao@codesourcery.com>
7976 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7977 (tfile_has_memory): Remove.
7978 (init_tfile_ops): Don't set fields to_has_all_memory and
7979 to_has_memory of tfile_ops.
7980 * tracefile.c (tracefile_has_all_memory): New function.
7981 (tracefile_has_memory): New function.
7982 (init_tracefile_ops): Initialize fields to_has_all_memory and
7983 to_has_memory of 'ops'.
7985 2014-02-23 Yao Qi <yao@codesourcery.com>
7987 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7988 (ctf_thread_alive, ctf_get_trace_status): Remove.
7989 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7991 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7992 (tfile_has_stack, tfile_has_registers): Remove.
7993 (tfile_thread_alive): Remove.
7994 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7996 * tracefile.c (tracefile_has_stack): New function.
7997 (tracefile_has_registers): New function.
7998 (tracefile_thread_alive): New function.
7999 (tracefile_get_trace_status): New function.
8000 (init_tracefile_ops): New function.
8001 * tracefile.h (init_tracefile_ops): Declare.
8003 2014-02-23 Yao Qi <yao@codesourcery.com>
8005 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8006 (O_LARGEFILE): Likewise.
8007 (tfile_ops): Likewise.
8008 (TRACE_HEADER_SIZE): Likewise.
8009 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8010 (cur_data_size): Likewise.
8011 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8012 (tfile_close, tfile_files_info): Likewise.
8013 (tfile_get_trace_status): Likewise.
8014 (tfile_get_tracepoint_status): Likewise.
8015 (tfile_get_traceframe_address): Likewise.
8016 (tfile_trace_find, match_blocktype): Likewise.
8017 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8018 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8019 (tfile_get_trace_state_variable_value): Likewise.
8020 (tfile_has_all_memory, tfile_has_memory): Likewise.
8021 (tfile_has_stack, tfile_has_registers): Likewise.
8022 (tfile_thread_alive, build_traceframe_info): Likewise.
8023 (tfile_traceframe_info, init_tfile_ops): Likewise.
8024 (_initialize_tracepoint): Don't call init_tfile_ops
8025 and add_target_with_completer.
8026 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8027 exec.h, completer.h and filenames.h.
8028 (_initialize_tracefile_tfile): New function.
8030 2014-02-23 Yao Qi <yao@codesourcery.com>
8032 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8034 (HFILES_NO_SRCDIR): Add tracefile.h.
8035 * ctf.c: Include "tracefile.h".
8036 * tracefile.h: New file.
8037 * tracefile.c: New file
8038 * tracefile-tfile.c: New file.
8039 * tracepoint.c: Include "tracefile.h".
8040 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8041 (stop_reason_names): Add const.
8042 (trace_file_writer_xfree): Move it to tracefile.c.
8043 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8044 (trace_save_ctf): Likewise.
8045 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8046 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8047 (tfile_write_header, tfile_write_regblock_type): Likewise.
8048 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8049 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8050 (tfile_write_raw_data, tfile_end): Likewise.
8051 (tfile_trace_file_writer_new): Likewise.
8052 (free_uploaded_tp): Make it extern.
8053 (free_uploaded_tsv): Make it extern.
8054 (_initialize_tracepoint): Move code to register command 'tsave'
8056 * tracepoint.h (stop_reason_names): Declare.
8057 (struct trace_frame_write_ops): Move it to tracefile.h.
8058 (struct trace_file_write_ops): Likewise.
8059 (struct trace_file_writer): Likewise.
8060 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8062 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8065 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8067 (get_cores_used_by_process): New parameter num_cores, use it.
8068 (linux_xfer_osdata_processes): Pass num_cores to it.
8069 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8072 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8074 * target.c (memory_xfer_partial): Fix length arg in call to
8075 breakpoint_xfer_memory.
8077 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8080 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8081 number comes after the + or - signs. Adjust length of register
8082 name to be extracted.
8084 2014-02-20 Tom Tromey <tromey@redhat.com>
8086 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8087 (ada_varobj_ops): Mark "extern".
8089 2014-02-20 Tom Tromey <tromey@redhat.com>
8091 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8093 2014-02-20 Doug Evans <xdje42@gmail.com>
8095 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8096 All callers updated.
8097 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8098 All callers updated.
8099 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8100 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8102 2014-02-20 lin zuojian <manjian2006@gmail.com>
8103 Joel Brobecker <brobecker@adacore.com>
8104 Doug Evans <xdje42@gmail.com>
8107 * dwarf2read.c (struct die_info): New member in_process.
8108 (reset_die_in_process): New function.
8109 (process_die): Set it at the start, reset when returning.
8110 (inherit_abstract_dies): Only call process_die if origin_child_die
8111 not already being processed.
8113 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8115 * windows-nat.c (handle_unload_dll): Add function documentation.
8116 (do_initial_windows_stuff): Add comment explaining why we wait
8117 until after inferior initialization has finished before
8118 processing all DLLs.
8120 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8122 * windows-nat.c (get_module_name): Delete.
8123 (windows_get_exec_module_filename): New function, mostly
8124 inspired from get_module_name.
8125 (windows_pid_to_exec_file): Replace call to get_module_name
8126 by call to windows_get_exec_module_filename.
8128 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8130 * windows-nat.c (handle_load_dll): Rewrite this function's
8131 introductory comment. Remove code using get_module_name
8132 to get the DLL's name.
8134 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8136 * windows-nat.c (get_windows_debug_event): Ignore
8137 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8138 if windows_initialization_done == 0.
8139 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8140 Adjust implementation to always load all DLLs.
8141 (do_initial_windows_stuff): Replace call to
8142 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8144 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8146 * windows-nat.c (_initialize_windows_nat): Deprecate the
8147 "dll-symbols" command. Turn the "add-shared-symbol-files"
8148 and "assf" aliases into commands, and deprecate them as well.
8149 * NEWS: Add entry explaining that "dll-symbols" and its two
8150 aliases are now deprecated.
8152 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8154 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8155 new-line in debug string. Remove trailing spaces.
8157 2014-02-19 Stan Shebs <stan@codesourcery.com>
8159 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8161 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8163 * NEWS: Add entry for the new feature
8164 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8167 2014-02-19 Stan Shebs <stan@codesourcery.com>
8169 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8171 2014-02-19 Pedro Alves <palves@redhat.com>
8173 * common/ptid.h (struct ptid): Mention that process_stratum
8174 targets should prefer ptid.lwp.
8176 2014-02-19 Pedro Alves <palves@redhat.com>
8178 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8179 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8180 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8181 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8182 store remote thread ids rather than ptid.tid.
8183 (_initialize_remote): Adjust.
8185 2014-02-19 Tom Tromey <tromey@redhat.com>
8187 * target.c (target_get_unwinder): Rewrite.
8188 (target_get_tailcall_unwinder): Rewrite.
8189 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8190 (record_btrace_to_get_tailcall_unwinder): New function.
8191 (init_record_btrace_ops): Update.
8192 * target.h (struct target_ops) <to_get_unwinder,
8193 to_get_tailcall_unwinder>: Now function pointers. Use
8194 TARGET_DEFAULT_RETURN.
8196 2014-02-19 Tom Tromey <tromey@redhat.com>
8198 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8200 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8202 2014-02-19 Tom Tromey <tromey@redhat.com>
8204 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8206 * target-delegates.c: Rebuild.
8207 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8208 TARGET_DEFAULT_FUNC.
8209 * target.c (default_target_decr_pc_after_break): Rename from
8210 forward_target_decr_pc_after_break. Simplify.
8211 (target_decr_pc_after_break): Rely on delegation.
8213 2014-02-19 Tom Tromey <tromey@redhat.com>
8215 * target.c (update_current_target): Do not INHERIT to_doc or
8216 to_magic. Do not de_fault to_open or to_close.
8218 2014-02-19 Tom Tromey <tromey@redhat.com>
8220 * gcore.h (objfile_find_memory_regions): Declare.
8221 * gcore.c (objfile_find_memory_regions): No longer static. Add
8223 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8224 * exec.c: Include gcore.h.
8225 (exec_set_find_memory_regions): Remove.
8226 (exec_find_memory_regions): Remove.
8227 (exec_do_find_memory_regions): Remove.
8228 (init_exec_ops): Update.
8229 * defs.h (exec_set_find_memory_regions): Remove.
8231 2014-02-19 Tom Tromey <tromey@redhat.com>
8233 * target-delegates.c: Rebuild.
8234 * target.h (struct target_ops) <to_extra_thread_info,
8235 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8236 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8237 not 0, in TARGET_DEFAULT_RETURN.
8239 2014-02-19 Tom Tromey <tromey@redhat.com>
8241 * target.c (complete_target_initialization): Remove casts. Use
8242 return_zero_has_execution.
8243 (return_zero): Add "ignore" argument.
8244 (return_zero_has_execution): New function.
8245 (init_dummy_target): Remove casts. Use
8246 return_zero_has_execution.
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target.c (update_current_target): Update comments. Do not
8253 2014-02-19 Tom Tromey <tromey@redhat.com>
8255 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8257 * corelow.c (core_read_description): Delegate when needed.
8258 * remote.c (remote_read_description): Delegate when needed.
8259 * target-delegates.c: Rebuild.
8260 * target.c (target_read_description): Rewrite.
8261 * target.h (struct target_ops) <to_read_description>: Update
8262 comment. Use TARGET_DEFAULT_RETURN.
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8266 * target-delegates.c: Rebuild.
8267 * target.c (update_current_target): Don't inherit or default
8269 (find_default_run_target): Check against delegate_can_run.
8270 * target.h (struct target_ops) <to_can_run>: Use
8271 TARGET_DEFAULT_RETURN.
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8275 * target-delegates.c: Rebuild.
8276 * target.c (target_disconnect): Unconditionally delegate.
8277 * target.h (struct target_ops) <to_disconnect>: Use
8278 TARGET_DEFAULT_NORETURN.
8280 2014-02-19 Tom Tromey <tromey@redhat.com>
8282 * record.c (record_stop): Unconditionally delegate.
8283 * target-delegates.c: Rebuild.
8284 * target.c (target_stop_recording): Unconditionally delegate.
8285 * target.h (struct target_ops) <to_stop_recording>: Use
8286 TARGET_DEFAULT_IGNORE.
8288 2014-02-19 Tom Tromey <tromey@redhat.com>
8290 * target-delegates.c: Rebuild.
8291 * target.c (target_enable_btrace): Unconditionally delegate.
8292 * target.h (struct target_ops) <to_enable_btrace>: Use
8293 TARGET_DEFAULT_NORETURN.
8295 2014-02-19 Tom Tromey <tromey@redhat.com>
8297 * target-delegates.c: Rebuild.
8298 * target.c (target_read_btrace): Unconditionally delegate.
8299 * target.h (struct target_ops) <to_read_btrace>: Use
8300 TARGET_DEFAULT_NORETURN.
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8304 * target-delegates.c: Rebuild.
8305 * target.c (target_teardown_btrace): Unconditionally delegate.
8306 * target.h (struct target_ops) <to_teardown_btrace>: Use
8307 TARGET_DEFAULT_NORETURN.
8309 2014-02-19 Tom Tromey <tromey@redhat.com>
8311 * target-delegates.c: Rebuild.
8312 * target.c (target_disable_btrace): Unconditionally delegate.
8313 * target.h (struct target_ops) <to_disable_btrace>: Use
8314 TARGET_DEFAULT_NORETURN.
8316 2014-02-19 Tom Tromey <tromey@redhat.com>
8318 * target-delegates.c: Rebuild.
8319 * target.c (default_search_memory): New function.
8320 (simple_search_memory): Update comment.
8321 (target_search_memory): Unconditionally delegate.
8322 * target.h (struct target_ops) <to_search_memory>: Use
8323 TARGET_DEFAULT_FUNC.
8325 2014-02-19 Tom Tromey <tromey@redhat.com>
8327 * auxv.c (default_auxv_parse): No longer static.
8328 (target_auxv_parse): Unconditionally delegate.
8329 * auxv.h (default_auxv_parse): Declare.
8330 * target-delegates.c: Rebuild.
8331 * target.c: Include auxv.h.
8332 * target.h (struct target_ops) <to_auxv_parse>: Use
8333 TARGET_DEFAULT_FUNC.
8335 2014-02-19 Tom Tromey <tromey@redhat.com>
8337 * target-delegates.c: Rebuild.
8338 * target.c (target_memory_map): Unconditionally delegate.
8339 * target.h (struct target_ops) <to_memory_map>: Use
8340 TARGET_DEFAULT_RETURN.
8342 2014-02-19 Tom Tromey <tromey@redhat.com>
8344 * target-delegates.c: Rebuild.
8345 * target.c (target_thread_alive): Unconditionally delegate.
8346 * target.h (struct target_ops) <to_thread_alive>: Use
8347 TARGET_DEFAULT_RETURN.
8349 2014-02-19 Tom Tromey <tromey@redhat.com>
8351 * target-delegates.c: Rebuild.
8352 * target.c (target_save_record): Unconditionally delegate.
8353 * target.h (struct target_ops) <to_save_record>: Use
8354 TARGET_DEFAULT_NORETURN.
8356 2014-02-19 Tom Tromey <tromey@redhat.com>
8358 * target-delegates.c: Rebuild.
8359 * target.c (target_delete_record): Unconditionally delegate.
8360 * target.h (struct target_ops) <to_delete_record>: Use
8361 TARGET_DEFAULT_NORETURN.
8363 2014-02-19 Tom Tromey <tromey@redhat.com>
8365 * target-delegates.c: Rebuild.
8366 * target.c (target_record_is_replaying): Unconditionally
8368 * target.h (struct target_ops) <to_record_is_replaying>: Use
8369 TARGET_DEFAULT_RETURN.
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target-delegates.c: Rebuild.
8374 * target.c (target_goto_record_begin): Unconditionally delegate.
8375 * target.h (struct target_ops) <to_goto_record_begin>: Use
8376 TARGET_DEFAULT_NORETURN.
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8380 * target-delegates.c: Rebuild.
8381 * target.c (target_goto_record_end): Unconditionally delegate.
8382 * target.h (struct target_ops) <to_goto_record_end>: Use
8383 TARGET_DEFAULT_NORETURN.
8385 2014-02-19 Tom Tromey <tromey@redhat.com>
8387 * target-delegates.c: Rebuild.
8388 * target.c (target_goto_record): Unconditionally delegate.
8389 * target.h (struct target_ops) <to_goto_record>: Use
8390 TARGET_DEFAULT_NORETURN.
8392 2014-02-19 Tom Tromey <tromey@redhat.com>
8394 * target-delegates.c: Rebuild.
8395 * target.c (target_insn_history): Unconditionally delegate.
8396 * target.h (struct target_ops) <to_insn_history>: Use
8397 TARGET_DEFAULT_NORETURN.
8399 2014-02-19 Tom Tromey <tromey@redhat.com>
8401 * target-delegates.c: Rebuild.
8402 * target.c (target_insn_history_from): Unconditionally delegate.
8403 * target.h (struct target_ops) <to_insn_history_from>: Use
8404 TARGET_DEFAULT_NORETURN.
8406 2014-02-19 Tom Tromey <tromey@redhat.com>
8408 * target-delegates.c: Rebuild.
8409 * target.c (target_insn_history_range): Unconditionally delegate.
8410 * target.h (struct target_ops) <to_insn_history_range>: Use
8411 TARGET_DEFAULT_NORETURN.
8413 2014-02-19 Tom Tromey <tromey@redhat.com>
8415 * target-delegates.c: Rebuild.
8416 * target.c (target_call_history): Unconditionally delegate.
8417 * target.h (struct target_ops) <to_call_history>: Use
8418 TARGET_DEFAULT_NORETURN.
8420 2014-02-19 Tom Tromey <tromey@redhat.com>
8422 * target-delegates.c: Rebuild.
8423 * target.c (target_call_history_from): Unconditionally delegate.
8424 * target.h (struct target_ops) <to_call_history_from>: Use
8425 TARGET_DEFAULT_NORETURN.
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8429 * target-delegates.c: Rebuild.
8430 * target.c (target_call_history_range): Unconditionally delegate.
8431 * target.h (struct target_ops) <to_call_history_range>: Use
8432 TARGET_DEFAULT_NORETURN.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target-delegates.c: Rebuild.
8437 * target.c (target_verify_memory): Unconditionally delegate.
8438 * target.h (struct target_ops) <to_verify_memory>: Use
8439 TARGET_DEFAULT_NORETURN.
8441 2014-02-19 Tom Tromey <tromey@redhat.com>
8443 * target-delegates.c: Rebuild.
8444 * target.c (target_core_of_thread): Unconditionally delegate.
8445 * target.h (struct target_ops) <to_core_of_thread>: Use
8446 TARGET_DEFAULT_RETURN.
8448 2014-02-19 Tom Tromey <tromey@redhat.com>
8450 * target-delegates.c: Rebuild.
8451 * target.c (target_flash_done): Unconditionally delegate.
8452 * target.h (struct target_ops) <to_flash_done>: Use
8453 TARGET_DEFAULT_NORETURN.
8455 2014-02-19 Tom Tromey <tromey@redhat.com>
8457 * target-delegates.c: Rebuild.
8458 * target.c (target_flash_erase): Unconditionally delegate.
8459 * target.h (struct target_ops) <to_flash_erase>: Use
8460 TARGET_DEFAULT_NORETURN.
8462 2014-02-19 Tom Tromey <tromey@redhat.com>
8464 * target-delegates.c: Rebuild.
8465 * target.c (target_get_section_table): Unconditionally delegate.
8466 * target.h (struct target_ops) <to_get_section_table>: Use
8467 TARGET_DEFAULT_RETURN.
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8471 * target-delegates.c: Rebuild.
8472 * target.c (target_pid_to_str): Unconditionally delegate.
8473 (init_dummy_target): Don't initialize to_pid_to_str.
8474 (default_pid_to_str): Rename from dummy_pid_to_str.
8475 * target.h (struct target_ops) <to_pid_to_str>: Use
8476 TARGET_DEFAULT_FUNC.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target-delegates.c: Rebuild.
8481 * target.c (target_find_new_threads): Unconditionally delegate.
8482 * target.h (struct target_ops) <to_find_new_threads>: Use
8483 TARGET_DEFAULT_RETURN.
8485 2014-02-19 Tom Tromey <tromey@redhat.com>
8487 * target-delegates.c: Rebuild.
8488 * target.c (target_program_signals): Unconditionally delegate.
8489 * target.h (struct target_ops) <to_program_signals>: Use
8490 TARGET_DEFAULT_IGNORE.
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8494 * target-delegates.c: Rebuild.
8495 * target.c (target_pass_signals): Unconditionally delegate.
8496 * target.h (struct target_ops) <to_pass_signals>: Use
8497 TARGET_DEFAULT_IGNORE.
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8501 * target-delegates.c: Rebuild.
8502 * target.c (default_mourn_inferior): New function.
8503 (target_mourn_inferior): Unconditionally delegate.
8504 * target.h (struct target_ops) <to_mourn_inferior>: Use
8505 TARGET_DEFAULT_FUNC.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * target-delegates.c: Rebuild.
8510 * target.c (default_follow_fork): New function.
8511 (target_follow_fork): Unconditionally delegate.
8512 * target.h (struct target_ops) <to_follow_fork>: Use
8513 TARGET_DEFAULT_FUNC.
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target-delegates.c: Rebuild.
8518 * target.c (target_kill): Unconditionally delegate.
8519 * target.h (struct target_ops) <to_kill>: Use
8520 TARGET_DEFAULT_NORETURN.
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8524 * target-delegates.c: Rebuild.
8525 * target.c (target_masked_watch_num_registers): Unconditionally
8527 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8528 Use TARGET_DEFAULT_RETURN.
8530 2014-02-19 Tom Tromey <tromey@redhat.com>
8532 * target-delegates.c: Rebuild.
8533 * target.c (target_remove_mask_watchpoint): Unconditionally
8535 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8536 TARGET_DEFAULT_RETURN.
8538 2014-02-19 Tom Tromey <tromey@redhat.com>
8540 * target-delegates.c: Rebuild.
8541 * target.c (target_insert_mask_watchpoint): Unconditionally
8543 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8544 TARGET_DEFAULT_RETURN.
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8548 * target-delegates.c: Rebuild.
8549 * target.c (target_ranged_break_num_registers): Unconditionally
8551 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8552 Use TARGET_DEFAULT_RETURN.
8554 2014-02-19 Tom Tromey <tromey@redhat.com>
8556 * target-delegates.c: Rebuild.
8557 * target.c (target_fetch_registers): Unconditionally delegate.
8558 * target.h (struct target_ops) <to_fetch_registers>: Use
8559 TARGET_DEFAULT_NORETURN.
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8563 * target-delegates.c: Rebuild.
8564 * target.c (update_current_target): Don't inherit or default
8566 * target.h (struct target_ops) <to_stop>: Use
8567 TARGET_DEFAULT_IGNORE.
8569 2014-02-19 Tom Tromey <tromey@redhat.com>
8571 * target-delegates.c: Rebuild.
8572 * target.c (update_current_target): Don't inherit or default
8573 to_can_run_breakpoint_commands.
8574 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8575 Use TARGET_DEFAULT_RETURN.
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8579 * target-delegates.c: Rebuild.
8580 * target.c (update_current_target): Don't inherit or default
8581 to_supports_evaluation_of_breakpoint_conditions.
8582 * target.h (struct target_ops)
8583 <to_supports_evaluation_of_breakpoint_conditions>: Use
8584 TARGET_DEFAULT_RETURN.
8586 2014-02-19 Tom Tromey <tromey@redhat.com>
8588 * target-delegates.c: Rebuild.
8589 * target.c (update_current_target): Don't inherit or default
8590 to_augmented_libraries_svr4_read.
8591 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8592 Use TARGET_DEFAULT_RETURN.
8594 2014-02-19 Tom Tromey <tromey@redhat.com>
8596 * target-delegates.c: Rebuild.
8597 * target.c (update_current_target): Don't inherit or default
8599 * target.h (struct target_ops) <to_can_use_agent>: Use
8600 TARGET_DEFAULT_RETURN.
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target-delegates.c: Rebuild.
8605 * target.c (update_current_target): Don't inherit or default
8607 * target.h (struct target_ops) <to_use_agent>: Use
8608 TARGET_DEFAULT_NORETURN.
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8612 * target-delegates.c: Rebuild.
8613 * target.c (update_current_target): Don't inherit or default
8615 (return_null): Remove.
8616 * target.h (struct target_ops) <to_traceframe_info>: Use
8617 TARGET_DEFAULT_RETURN.
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8621 * target-delegates.c: Rebuild.
8622 * target.c (update_current_target): Don't inherit or default
8623 to_static_tracepoint_markers_by_strid.
8624 * target.h (struct target_ops)
8625 <to_static_tracepoint_markers_by_strid>: Use
8626 TARGET_DEFAULT_NORETURN.
8628 2014-02-19 Tom Tromey <tromey@redhat.com>
8630 * target-delegates.c: Rebuild.
8631 * target.c (update_current_target): Don't inherit or default
8632 to_static_tracepoint_marker_at.
8633 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8634 Use TARGET_DEFAULT_RETURN.
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target-delegates.c: Rebuild.
8639 * target.c (update_current_target): Don't inherit or default
8641 * target.h (struct target_ops) <to_set_permissions>: Use
8642 TARGET_DEFAULT_IGNORE.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target-delegates.c: Rebuild.
8647 * target.c (update_current_target): Don't inherit or default
8649 * target.h (struct target_ops) <to_get_tib_address>: Use
8650 TARGET_DEFAULT_NORETURN.
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8654 * target-delegates.c: Rebuild.
8655 * target.c (update_current_target): Don't inherit or default
8657 * target.h (struct target_ops) <to_set_trace_notes>: Use
8658 TARGET_DEFAULT_RETURN.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target-delegates.c: Rebuild.
8663 * target.c (update_current_target): Don't initialize
8664 to_set_trace_buffer_size.
8665 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8666 TARGET_DEFAULT_IGNORE.
8668 2014-02-19 Tom Tromey <tromey@redhat.com>
8670 * target-delegates.c: Rebuild.
8671 * target.c (update_current_target): Don't inherit or default
8672 to_set_circular_trace_buffer.
8673 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8674 TARGET_DEFAULT_IGNORE.
8676 2014-02-19 Tom Tromey <tromey@redhat.com>
8678 * target-delegates.c: Rebuild.
8679 * target.c (update_current_target): Don't inherit or default
8680 to_set_disconnected_tracing.
8681 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8682 TARGET_DEFAULT_IGNORE.
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8686 * target-delegates.c: Rebuild.
8687 * target.c (update_current_target): Don't inherit or default
8688 to_get_min_fast_tracepoint_insn_len.
8689 (return_minus_one): Remove.
8690 * target.h (struct target_ops)
8691 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_get_raw_trace_data.
8698 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8699 TARGET_DEFAULT_NORETURN.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_upload_trace_state_variables.
8706 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8707 Use TARGET_DEFAULT_RETURN.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_upload_tracepoints.
8714 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8715 TARGET_DEFAULT_RETURN.
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8722 * target.h (struct target_ops) <to_save_trace_data>: 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_get_trace_state_variable_value.
8730 * target.h (struct target_ops)
8731 <to_get_trace_state_variable_value>: 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): Use TARGET_DEFAULT_RETURN.
8740 2014-02-19 Tom Tromey <tromey@redhat.com>
8742 * target-delegates.c: Rebuild.
8743 * target.c (update_current_target): Don't inherit or default
8745 * target.h (struct target_ops) <to_trace_stop>: Use
8746 TARGET_DEFAULT_NORETURN.
8748 2014-02-19 Tom Tromey <tromey@redhat.com>
8750 * target-delegates.c: Rebuild.
8751 * target.c (update_current_target): Don't inherit or default
8752 to_get_tracepoint_status.
8753 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8754 TARGET_DEFAULT_NORETURN.
8756 2014-02-19 Tom Tromey <tromey@redhat.com>
8758 * target-delegates.c: Rebuild.
8759 * target.c (update_current_target): Don't inherit or default
8760 to_get_trace_status.
8761 * target.h (struct target_ops) <to_get_trace_status>: Use
8762 TARGET_DEFAULT_RETURN.
8764 2014-02-19 Tom Tromey <tromey@redhat.com>
8766 * target-delegates.c: Rebuild.
8767 * target.c (update_current_target): Don't inherit or default
8769 * target.h (struct target_ops) <to_trace_start>: Use
8770 TARGET_DEFAULT_NORETURN.
8772 2014-02-19 Tom Tromey <tromey@redhat.com>
8774 * target-delegates.c: Rebuild.
8775 * target.c (update_current_target): Don't inherit or default
8776 to_trace_set_readonly_regions.
8777 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8778 Use TARGET_DEFAULT_NORETURN.
8780 2014-02-19 Tom Tromey <tromey@redhat.com>
8782 * target-delegates.c: Rebuild.
8783 * target.c (update_current_target): Don't inherit or default
8784 to_disable_tracepoint.
8785 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8786 TARGET_DEFAULT_NORETURN.
8788 2014-02-19 Tom Tromey <tromey@redhat.com>
8790 * target-delegates.c: Rebuild.
8791 * target.c (update_current_target): Don't inherit or default
8792 to_enable_tracepoint.
8793 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8794 TARGET_DEFAULT_NORETURN.
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target-delegates.c: Rebuild.
8799 * target.c (update_current_target): Don't inherit or default
8800 to_download_trace_state_variable.
8801 * target.h (struct target_ops) <to_download_trace_state_variable>:
8802 Use TARGET_DEFAULT_NORETURN.
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8806 * target-delegates.c: Rebuild.
8807 * target.c (update_current_target): Don't inherit or default
8808 to_can_download_tracepoint.
8809 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8810 TARGET_DEFAULT_RETURN.
8812 2014-02-19 Tom Tromey <tromey@redhat.com>
8814 * target-delegates.c: Rebuild.
8815 * target.c (update_current_target): Don't inherit or default
8816 to_download_tracepoint.
8817 * target.h (struct target_ops) <to_download_tracepoint>: Use
8818 TARGET_DEFAULT_NORETURN.
8820 2014-02-19 Tom Tromey <tromey@redhat.com>
8822 * target-delegates.c: Rebuild.
8823 * target.c (update_current_target): Don't inherit or default
8825 * target.h (struct target_ops) <to_trace_init>: Use
8826 TARGET_DEFAULT_RETURN.
8828 2014-02-19 Tom Tromey <tromey@redhat.com>
8830 * target-delegates.c: Rebuild.
8831 * target.c (update_current_target): Don't inherit or default
8832 to_supports_string_tracing.
8833 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8834 TARGET_DEFAULT_RETURN.
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8838 * target-delegates.c: Rebuild.
8839 * target.c (update_current_target): Don't inherit or default
8840 to_supports_enable_disable_tracepoint.
8841 * target.h (struct target_ops)
8842 <to_supports_enable_disable_tracepoint>: Use
8843 TARGET_DEFAULT_RETURN.
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_supports_multi_process.
8850 * target.h (struct target_ops) <to_supports_multi_process>: Use
8851 TARGET_DEFAULT_RETURN.
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_ada_task_ptid.
8858 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8859 TARGET_DEFAULT_FUNC.
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
8865 to_thread_architecture.
8866 * target.h (struct target_ops) <to_thread_architecture>: Use
8867 TARGET_DEFAULT_FUNC.
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_execution_direction.
8874 * target.h (struct target_ops) <to_execution_direction>: Use
8875 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
8882 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8883 TARGET_DEFAULT_RETURN.
8884 (target_can_execute_reverse): Unconditionally delegate.
8886 2014-02-19 Tom Tromey <tromey@redhat.com>
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8891 (dummy_goto_bookmark): Remove.
8892 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8893 * target.h (struct target_ops) <to_goto_bookmark>: Use
8894 TARGET_DEFAULT_NORETURN.
8896 2014-02-19 Tom Tromey <tromey@redhat.com>
8898 * target-delegates.c: Rebuild.
8899 * target.c (update_current_target): Don't inherit or default
8901 (dummy_get_bookmark): Remove.
8902 (init_dummy_target): Don't inherit or default to_get_bookmark.
8903 * target.h (struct target_ops) <to_get_bookmark>: Use
8904 TARGET_DEFAULT_NORETURN
8906 2014-02-19 Tom Tromey <tromey@redhat.com>
8908 * target-delegates.c: Rebuild.
8909 * target.c (update_current_target): Don't inherit or default
8910 to_make_corefile_notes.
8911 (init_dummy_target): Don't initialize to_make_corefile_notes.
8912 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8913 TARGET_DEFAULT_FUNC.
8915 2014-02-19 Tom Tromey <tromey@redhat.com>
8917 * target-delegates.c: Rebuild.
8918 * target.c (update_current_target): Don't inherit or default
8919 to_find_memory_regions.
8920 (init_dummy_target): Don't initialize to_find_memory_regions.
8921 * target.h (struct target_ops) <to_find_memory_regions>: Use
8922 TARGET_DEFAULT_FUNC.
8924 2014-02-19 Tom Tromey <tromey@redhat.com>
8926 * target-delegates.c: Rebuild.
8927 * target.c (update_current_target): Don't inherit or default
8929 * target.h (struct target_ops) <to_log_command>: Use
8930 TARGET_DEFAULT_IGNORE.
8931 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
8938 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8939 TARGET_DEFAULT_RETURN.
8941 2014-02-19 Tom Tromey <tromey@redhat.com>
8943 * target-delegates.c: Rebuild.
8944 * target.c (update_current_target): Don't inherit or default
8946 (target_thread_name): Unconditionally delegate.
8947 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
8955 * target.h (struct target_ops) <to_extra_thread_info>: Use
8956 TARGET_DEFAULT_RETURN.
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
8963 * target.h (struct target_ops) <to_has_exited>: Use
8964 TARGET_DEFAULT_RETURN..
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_set_syscall_catchpoint.
8971 (return_one): Remove.
8972 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8973 TARGET_DEFAULT_RETURN.
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8977 * target-delegates.c: Rebuild.
8978 * target.c (update_current_target): Don't inherit or default
8979 to_insert_exec_catchpoint.
8980 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8981 TARGET_DEFAULT_RETURN.
8983 2014-01-08 Tom Tromey <tromey@redhat.com>
8985 * target-delegates.c: Rebuild.
8986 * target.c (update_current_target): Don't inherit or default
8987 to_insert_exec_catchpoint.
8988 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8989 TARGET_DEFAULT_RETURN.
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8993 * target-delegates.c: Rebuild.
8994 * target.c (update_current_target): Don't inherit or default
8995 to_remove_vfork_catchpoint.
8996 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8997 TARGET_DEFAULT_RETURN.
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9001 * target-delegates.c: Rebuild.
9002 * target.c (update_current_target): Don't inherit or default
9003 to_insert_vfork_catchpoint.
9004 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9005 TARGET_DEFAULT_RETURN.
9007 2014-02-19 Tom Tromey <tromey@redhat.com>
9009 * target-delegates.c: Rebuild.
9010 * target.c (update_current_target): Don't inherit or default
9011 to_remove_fork_catchpoint.
9012 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9013 TARGET_DEFAULT_RETURN.
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9017 * target-delegates.c: Rebuild.
9018 * target.c (update_current_target): Don't inherit or default
9019 to_insert_fork_catchpoint.
9020 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9021 TARGET_DEFAULT_RETURN.
9023 2014-02-19 Tom Tromey <tromey@redhat.com>
9025 * target-delegates.c: Rebuild.
9026 * target.c (update_current_target): Don't inherit or default
9027 to_post_startup_inferior.
9028 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9029 TARGET_DEFAULT_IGNORE.
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target-delegates.c: Rebuild.
9034 * target.c (update_current_target): Don't inherit or default
9036 * target.h (struct target_ops) <to_load>: Use
9037 TARGET_DEFAULT_NORETURN.
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9041 * target-delegates.c: Rebuild.
9042 * target.c (update_current_target): Don't inherit or default
9044 * target.h (struct target_ops) <to_terminal_info>: Use
9045 TARGET_DEFAULT_FUNC.
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_terminal_save_ours.
9052 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9053 TARGET_DEFAULT_IGNORE.
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_terminal_ours>: Use
9061 TARGET_DEFAULT_IGNORE.
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_terminal_ours_for_output.
9068 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9069 TARGET_DEFAULT_IGNORE.
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9073 * target-delegates.c: Rebuild.
9074 * target.c (update_current_target): Don't inherit or default
9075 to_terminal_inferior.
9076 * target.h (struct target_ops) <to_terminal_inferior>: Use
9077 TARGET_DEFAULT_IGNORE.
9079 2014-02-19 Tom Tromey <tromey@redhat.com>
9081 * target-delegates.c: Rebuild.
9082 * target.c (update_current_target): Don't inherit or default
9084 * target.h (struct target_ops) <to_terminal_init>: Use
9085 TARGET_DEFAULT_IGNORE.
9087 2014-02-19 Tom Tromey <tromey@redhat.com>
9089 * target-delegates.c: Rebuild.
9090 * target.c (update_current_target): Don't inherit or default
9091 to_can_accel_watchpoint_condition.
9092 * target.h (struct target_ops)
9093 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9097 * target-delegates.c: Rebuild.
9098 * target.c (update_current_target): Don't inherit or default
9099 to_region_ok_for_hw_watchpoint.
9100 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9101 Use TARGET_DEFAULT_FUNC.
9103 2014-02-19 Tom Tromey <tromey@redhat.com>
9105 * target-delegates.c: Rebuild.
9106 * target.c (update_current_target): Don't inherit or default
9107 to_watchpoint_addr_within_range.
9108 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9109 Use TARGET_DEFAULT_FUNC.
9111 2014-02-19 Tom Tromey <tromey@redhat.com>
9113 * target-delegates.c: Rebuild.
9114 * target.c (update_current_target): Don't inherit or default
9115 to_remove_watchpoint.
9116 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9117 TARGET_DEFAULT_NORETURN.
9119 2014-02-19 Tom Tromey <tromey@redhat.com>
9121 * target-delegates.c: Rebuild.
9122 * target.c (update_current_target): Don't inherit or default
9123 to_insert_watchpoint.
9124 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9125 TARGET_DEFAULT_RETURN.
9127 2014-02-19 Tom Tromey <tromey@redhat.com>
9129 * target-delegates.c: Rebuild.
9130 * target.c (update_current_target): Don't inherit or default
9131 to_remove_hw_breakpoint.
9132 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9133 TARGET_DEFAULT_RETURN.
9135 2014-02-19 Tom Tromey <tromey@redhat.com>
9137 * target-delegates.c: Rebuild.
9138 * target.c (update_current_target): Don't inherit or default
9139 to_insert_hw_breakpoint.
9140 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9141 TARGET_DEFAULT_RETURN.
9143 2014-02-19 Tom Tromey <tromey@redhat.com>
9145 * target-delegates.c: Rebuild.
9146 * target.c (update_current_target): Don't inherit or default
9147 to_can_use_hw_breakpoint.
9148 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9149 TARGET_DEFAULT_RETURN.
9151 2014-02-19 Tom Tromey <tromey@redhat.com>
9153 * target-delegates.c: Rebuild.
9154 * target.c (update_current_target): Don't inherit or default
9156 * target.h (struct target_ops) <to_files_info>: Use
9157 TARGET_DEFAULT_IGNORE.
9159 2014-02-19 Tom Tromey <tromey@redhat.com>
9161 * target-delegates.c: Rebuild.
9162 * target.c (update_current_target): Don't inherit or default
9164 * target.h (struct target_ops) <to_store>: Use
9165 TARGET_DEFAULT_NORETURN.
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9169 * target-delegates.c: Rebuild.
9170 * target.c (update_current_target): Don't inherit or default
9172 * target.h (struct target_ops) <to_post_attach>: Use
9173 TARGET_DEFAULT_IGNORE.
9175 2014-02-19 Tom Tromey <tromey@redhat.com>
9177 * target-delegates.c: Rebuild.
9178 * target.c (update_current_target): Don't inherit or default
9180 (default_rcmd): New function.
9181 (do_monitor_command): Unconditionally delegate.
9182 * target.h (struct target_ops) <to_rmcd>: Use
9183 TARGET_DEFAULT_FUNC.
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * target-delegates.c: Rebuild.
9188 * target.c (init_dummy_target): Don't initialize to_attach.
9189 (target_attach): Unconditionally delegate.
9190 * target.h (struct target_ops) <to_attach>: Use
9191 TARGET_DEFAULT_FUNC.
9193 2014-02-19 Tom Tromey <tromey@redhat.com>
9195 * target-delegates.c: Rebuild.
9196 * target.c (target_detach): Unconditionally delegate.
9197 (init_dummy_target): Don't initialize to_detach.
9198 * target.h (struct target_ops) <to_detach>: Use
9199 TARGET_DEFAULT_IGNORE.
9201 2014-02-19 Tom Tromey <tromey@redhat.com>
9203 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9205 (target_augmented_libraries_svr4_read): Add argument.
9206 * target.c (update_current_target): Update.
9207 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target.h (struct target_ops) <to_call_history_range>: Add
9214 * target.c (target_call_history_range): Add argument.
9215 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9217 (record_btrace_call_history_from): Update.
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target.h (struct target_ops) <to_call_history_from>: Add
9223 * target.c (target_call_history_from): Add argument.
9224 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9227 2014-02-19 Tom Tromey <tromey@redhat.com>
9229 * target.h (struct target_ops) <to_call_history>: Add argument.
9230 * target.c (target_call_history): Add argument.
9231 * record-btrace.c (record_btrace_call_history): Add 'self'
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9236 * target.h (struct target_ops) <to_insn_history_range>: Add
9238 * target.c (target_insn_history_range): Add argument.
9239 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9241 (record_btrace_insn_history_from): Update.
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9245 * target.h (struct target_ops) <to_insn_history_from>: Add
9247 * target.c (target_insn_history_from): Add argument.
9248 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9253 * target.h (struct target_ops) <to_insn_history>: Add argument.
9254 * target.c (target_insn_history): Add argument.
9255 * record-btrace.c (record_btrace_insn_history): Add 'self'
9258 2014-02-19 Tom Tromey <tromey@redhat.com>
9260 * target.h (struct target_ops) <to_goto_record>: Add argument.
9261 * target.c (target_goto_record): Add argument.
9262 * record-full.c (record_full_goto): Add 'self' argument.
9263 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9265 2014-02-19 Tom Tromey <tromey@redhat.com>
9267 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9268 * target.c (target_goto_record_end): Add argument.
9269 * record-full.c (record_full_goto_end): Add 'self' argument.
9270 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9272 2014-02-19 Tom Tromey <tromey@redhat.com>
9274 * target.h (struct target_ops) <to_goto_record_begin>: Add
9276 * target.c (target_goto_record_begin): Add argument.
9277 * record-full.c (record_full_goto_begin): Add 'self' argument.
9278 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9281 2014-02-19 Tom Tromey <tromey@redhat.com>
9283 * target.h (struct target_ops) <to_record_is_replaying>: Add
9285 * target.c (target_record_is_replaying): Add argument.
9286 * record-full.c (record_full_is_replaying): Add 'self' argument.
9287 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9289 (record_btrace_xfer_partial, record_btrace_store_registers)
9290 (record_btrace_prepare_to_store, record_btrace_resume)
9291 (record_btrace_wait, record_btrace_decr_pc_after_break)
9292 (record_btrace_find_new_threads, record_btrace_thread_alive):
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * target.h (struct target_ops) <to_delete_record>: Add argument.
9298 * target.c (target_delete_record): Add argument.
9299 * record-full.c (record_full_delete): Add 'self' argument.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * target.h (struct target_ops) <to_save_record>: Add argument.
9304 * target.c (target_save_record): Add argument.
9305 * record-full.c (record_full_save): Add 'self' argument.
9306 (record_full_save): Add 'self' argument.
9308 2014-02-19 Tom Tromey <tromey@redhat.com>
9310 * target.h (struct target_ops) <to_info_record>: Add argument.
9311 * target.c (target_info_record): Add argument.
9312 * record.c (info_record_command): Add argument.
9313 * record-full.c (record_full_info): Add 'self' argument.
9314 * record-btrace.c (record_btrace_info): Add 'self' argument.
9316 2014-02-19 Tom Tromey <tromey@redhat.com>
9318 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9319 * target.c (target_stop_recording): Add argument.
9320 * record.c (record_stop): Add argument.
9321 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9326 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9327 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9328 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9330 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9331 (_initialize_amd64_linux_nat): Use it.
9332 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9333 (_initialize_i386_linux_nat): Use it.
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9337 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9338 * target.c (target_teardown_btrace): Add argument.
9339 * remote.c (remote_teardown_btrace): Add 'self' argument.
9340 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9342 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9347 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9348 * target.c (target_disable_btrace): Add argument.
9349 * remote.c (remote_disable_btrace): Add 'self' argument.
9350 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9352 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9357 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9358 * target.c (target_enable_btrace): Add argument.
9359 * remote.c (remote_enable_btrace): Add 'self' argument.
9360 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9362 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9367 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9368 (target_can_use_agent): Add argument.
9369 * target.c (update_current_target): Update.
9370 * remote.c (remote_can_use_agent): Add 'self' argument.
9371 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9373 2014-02-19 Tom Tromey <tromey@redhat.com>
9375 * target.h (struct target_ops) <to_use_agent>: Add argument.
9376 (target_use_agent): Add argument.
9377 * target.c (update_current_target): Update.
9378 * remote.c (remote_use_agent): Add 'self' argument.
9379 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9381 2014-02-19 Tom Tromey <tromey@redhat.com>
9383 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9384 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9385 (target_traceframe_info): Add argument.
9386 * target.c (update_current_target): Update.
9387 * remote.c (remote_traceframe_info): Add 'self' argument.
9388 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target.h (target_static_tracepoint_markers_by_strid): Add
9394 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9396 * target.c (update_current_target): Update.
9397 * remote.c (struct target_ops)
9398 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9399 * linux-nat.c (struct target_ops)
9400 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9402 2014-02-19 Tom Tromey <tromey@redhat.com>
9404 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9406 (target_static_tracepoint_marker_at): Add argument.
9407 * target.c (update_current_target): Update.
9408 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9413 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9414 (target_set_permissions): Add argument.
9415 * target.c (update_current_target): Update.
9416 * remote.c (remote_set_permissions): Add 'self' argument.
9417 (remote_start_remote): Update.
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9422 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9423 (target_get_tib_address): Add argument.
9424 * target.c (update_current_target): Update.
9425 * remote.c (remote_get_tib_address): Add 'self' argument.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9430 (target_set_trace_notes): Add argument.
9431 * target.c (update_current_target): Update.
9432 * remote.c (remote_set_trace_notes): Add 'self' argument.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9438 (target_set_trace_buffer_size): Add argument.
9439 * target.c (update_current_target): Update.
9440 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9442 2014-02-19 Tom Tromey <tromey@redhat.com>
9444 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9446 (target_set_circular_trace_buffer): Add argument.
9447 * target.c (update_current_target): Update.
9448 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9451 2014-02-19 Tom Tromey <tromey@redhat.com>
9453 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9455 (target_set_disconnected_tracing): Add argument.
9456 * target.c (update_current_target): Update.
9457 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9461 * target.h (struct target_ops)
9462 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9463 (target_get_min_fast_tracepoint_insn_len): Add argument.
9464 * target.c (update_current_target): Update.
9465 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9472 (target_get_raw_trace_data): Add argument.
9473 * target.c (update_current_target): Update.
9474 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9480 (target_upload_trace_state_variables): Add argument.
9481 * target.c (update_current_target): Update.
9482 * remote.c (remote_upload_trace_state_variables): Add 'self'
9484 (remote_start_remote): Update.
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9488 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9490 (target_upload_tracepoints): Add argument.
9491 * target.c (update_current_target): Update.
9492 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9493 (remote_start_remote): Update.
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9497 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9498 (target_save_trace_data): Add argument.
9499 * target.c (update_current_target): Update.
9500 * remote.c (remote_save_trace_data): Add 'self' argument.
9502 2014-02-19 Tom Tromey <tromey@redhat.com>
9504 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9506 * target.h (struct target_ops)
9507 <to_get_trace_state_variable_value>: Add argument.
9508 (target_get_trace_state_variable_value): Add argument.
9509 * target.c (update_current_target): Update.
9510 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9512 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9516 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9517 * target.h (struct target_ops) <to_trace_find>: Add argument.
9518 (target_trace_find): Add argument.
9519 * target.c (update_current_target): Update.
9520 * remote.c (remote_trace_find): Add 'self' argument.
9521 * ctf.c (ctf_trace_find): Add 'self' argument.
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9525 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9526 (target_trace_stop): Add argument.
9527 * target.c (update_current_target): Update.
9528 * remote.c (remote_trace_stop): Add 'self' argument.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9533 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9535 (target_get_tracepoint_status): Add argument.
9536 * target.c (update_current_target): Update.
9537 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9542 * target.h (struct target_ops) <to_get_trace_status>: Add
9544 (target_get_trace_status): Add argument.
9545 * target.c (update_current_target): Update.
9546 * remote.c (remote_get_trace_status): Add 'self' argument.
9547 (remote_start_remote, remote_can_download_tracepoint): Update.
9548 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9552 * target.h (struct target_ops) <to_trace_start>: Add argument.
9553 (target_trace_start): Add argument.
9554 * target.c (update_current_target): Update.
9555 * remote.c (remote_trace_start): Add 'self' argument.
9557 2014-02-19 Tom Tromey <tromey@redhat.com>
9559 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9561 (target_trace_set_readonly_regions): Add argument.
9562 * target.c (update_current_target): Update.
9563 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9566 2014-02-19 Tom Tromey <tromey@redhat.com>
9568 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9570 (target_disable_tracepoint): Add argument.
9571 * target.c (update_current_target): Update.
9572 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9578 (target_enable_tracepoint): Add argument.
9579 * target.c (update_current_target): Update.
9580 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9584 * target.h (struct target_ops) <to_download_trace_state_variable>:
9586 (target_download_trace_state_variable): Add argument.
9587 * target.c (update_current_target): Update.
9588 * remote.c (remote_download_trace_state_variable): Add 'self'
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9593 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9595 (target_can_download_tracepoint): Add argument.
9596 * target.c (update_current_target): Update.
9597 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target.h (struct target_ops) <to_download_tracepoint>: Add
9603 (target_download_tracepoint): Add argument.
9604 * target.c (update_current_target): Update.
9605 * remote.c (remote_download_tracepoint): Add 'self' argument.
9607 2014-02-19 Tom Tromey <tromey@redhat.com>
9609 * target.h (struct target_ops) <to_trace_init>: Add argument.
9610 (target_trace_init): Add argument.
9611 * target.c (update_current_target): Update.
9612 * remote.c (remote_trace_init): Add 'self' argument.
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9616 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9617 * target.c (target_fileio_readlink): Add argument.
9618 * remote.c (remote_hostio_readlink): Add 'self' argument.
9619 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9621 2014-02-19 Tom Tromey <tromey@redhat.com>
9623 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9624 * target.c (target_fileio_unlink): Add argument.
9625 * remote.c (remote_hostio_unlink): Add 'self' argument.
9626 (remote_file_delete): Update.
9627 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9629 2014-02-19 Tom Tromey <tromey@redhat.com>
9631 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9632 * target.c (target_fileio_close): Add argument.
9633 * remote.c (remote_hostio_close): Add 'self' argument.
9634 (remote_hostio_close_cleanup): Update.
9635 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9637 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9641 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9642 * target.c (target_fileio_pread): Add argument.
9643 * remote.c (remote_hostio_pread): Add 'self' argument.
9644 (remote_bfd_iovec_pread, remote_file_get): Update.
9645 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9647 2014-02-19 Tom Tromey <tromey@redhat.com>
9649 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9650 * target.c (target_fileio_pwrite): Add argument.
9651 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9652 (remote_file_put): Update.
9653 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9657 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9658 * target.c (target_fileio_open): Add argument.
9659 * remote.c (remote_hostio_open): Add 'self' argument.
9660 (remote_bfd_iovec_open): Add 'self' argument.
9661 (remote_file_put): Add 'self' argument.
9662 (remote_file_get): Add 'self' argument.
9663 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9667 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9669 (target_can_run_breakpoint_commands): Add argument.
9670 * target.c (update_current_target): Update.
9671 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9673 (remote_insert_breakpoint): Add 'self' argument.
9674 (remote_insert_hw_breakpoint): Add 'self' argument.
9675 (remote_can_run_breakpoint_commands): Add 'self' argument.
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9679 * target.h (struct target_ops)
9680 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9681 (target_supports_evaluation_of_breakpoint_conditions): Add
9683 * target.c (update_current_target): Update.
9684 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9686 (remote_insert_breakpoint): Add 'self' argument.
9687 (remote_insert_hw_breakpoint): Add 'self' argument.
9688 (remote_supports_cond_breakpoints): Add 'self' argument.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9694 (target_supports_string_tracing): Add argument.
9695 * target.c (update_current_target): Update.
9696 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9698 2014-02-19 Tom Tromey <tromey@redhat.com>
9700 * target.h (struct target_ops)
9701 <to_supports_disable_randomization>: Add argument.
9702 * target.c (find_default_supports_disable_randomization): Add
9704 (target_supports_disable_randomization): Add argument.
9705 (find_default_supports_disable_randomization): Add 'self'
9707 * remote.c (extended_remote_supports_disable_randomization): Add
9709 (remote_supports_disable_randomization): Add 'self' argument.
9710 (extended_remote_create_inferior): Update.
9711 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9714 2014-02-19 Tom Tromey <tromey@redhat.com>
9716 * target.h (struct target_ops)
9717 <to_supports_enable_disable_tracepoint>: Add argument.
9718 (target_supports_enable_disable_tracepoint): Add argument.
9719 * target.c (update_current_target): Update.
9720 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target.h (struct target_ops) <to_supports_multi_process>: Add
9727 (target_supports_multi_process): Add argument.
9728 * target.c (update_current_target): Update.
9729 * remote.c (remote_supports_multi_process): Add 'self' argument.
9730 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9732 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9735 2014-02-19 Tom Tromey <tromey@redhat.com>
9737 * target.h (struct target_ops) <to_execution_direction>: Add
9739 (target_execution_direction): Add argument.
9740 * target.c (default_execution_direction): Add 'self' argument.
9741 * record-full.c (record_full_execution_direction): Add 'self'
9744 2014-02-19 Tom Tromey <tromey@redhat.com>
9746 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9748 (target_can_execute_reverse): Add argument.
9749 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9750 * record-full.c (record_full_can_execute_reverse): Add 'self'
9752 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9755 2014-02-19 Tom Tromey <tromey@redhat.com>
9757 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9758 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9760 (target_get_ada_task_ptid): Add argument.
9761 * target.c (update_current_target): Update.
9762 (default_get_ada_task_ptid): Add 'self' argument.
9763 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9764 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9765 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9767 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9769 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9771 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9773 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9774 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9779 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9780 (target_goto_bookmark): Add argument.
9781 * target.c (dummy_goto_bookmark): Add 'self' argument.
9782 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9786 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9787 (target_get_bookmark): Add argument.
9788 * target.c (dummy_get_bookmark): Add 'self' argument.
9789 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9791 2014-02-19 Tom Tromey <tromey@redhat.com>
9793 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9795 (target_make_corefile_notes): Add argument.
9796 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9797 * procfs.c (procfs_make_note_section): Add 'self' argument.
9798 (procfs_make_note_section): Add 'self' argument.
9799 (procfs_make_note_section): Add 'self' argument.
9800 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9802 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9803 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9804 * exec.c (exec_make_note_section): Add 'self' argument.
9805 (exec_make_note_section): Add 'self' argument.
9807 2014-02-19 Tom Tromey <tromey@redhat.com>
9809 * target.h (struct target_ops) <to_find_memory_regions>: Add
9811 (target_find_memory_regions): Add argument.
9812 * target.c (dummy_find_memory_regions): Add 'self' argument.
9813 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9814 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9815 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9816 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9817 * exec. (exec_do_find_memory_regions): New global.
9818 (exec_set_find_memory_regions): Rewrite.
9819 (exec_find_memory_regions): New function.
9820 (init_exec_ops): Use exec_find_memory_regions.
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9824 * target.h (struct target_ops) <to_supports_non_stop>: Add
9826 * target.c (find_default_supports_non_stop): Add argument.
9827 (target_supports_non_stop): Add argument.
9828 (find_default_supports_non_stop): Add 'self' argument.
9829 * remote.c (remote_supports_non_stop): Add 'self' argument.
9830 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9834 * target.h (struct target_ops) <to_log_command>: Add argument.
9835 (target_log_command): Add argument.
9836 * serial.h (serial_log_command): Add 'self' argument.
9837 * serial.c (serial_log_command): Add 'self' argument.
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9841 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9842 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9844 (target_pid_to_exec_file): Add argument.
9845 * target.c (debug_to_pid_to_exec_file): Add argument.
9846 (update_current_target): Update.
9847 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9848 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9849 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9850 (linux_handle_extended_wait): Update.
9851 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9852 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9853 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9854 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * target.h (struct target_ops) <to_rcmd>: Add argument.
9859 (target_rcmd): Add argument.
9860 * target.c (debug_to_rcmd): Add argument.
9861 (update_current_target, do_monitor_command): Update.
9862 * remote.c (remote_rcmd): Add 'self' argument.
9863 * monitor.c (monitor_rcmd): Add 'self' argument.
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9867 * windows-nat.c (windows_stop): Add 'self' argument.
9868 * target.h (struct target_ops) <to_stop>: Add argument.
9869 * target.c (target_stop): Add argument.
9870 (debug_to_stop): Add argument.
9871 (update_current_target): Update.
9872 * remote.c (remote_stop): Add 'self' argument.
9873 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9874 (gdbsim_cntrl_c): Update.
9875 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9876 * procfs.c (procfs_stop): Add 'self' argument.
9877 * nto-procfs.c (procfs_stop): Add 'self' argument.
9878 * monitor.c (monitor_stop): Add 'self' argument.
9879 (monitor_open): Update.
9880 * linux-nat.c (linux_nat_stop): Add argument.
9881 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9882 * gnu-nat.c (gnu_stop): Add 'self' argument.
9883 * darwin-nat.c (darwin_stop): Add 'self' argument.
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9887 * target.h (struct target_ops) <to_thread_name>: Add argument.
9888 * target.c (target_thread_name): Add argument.
9889 (update_current_target): Update.
9890 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9892 2014-02-19 Tom Tromey <tromey@redhat.com>
9894 * target.h (struct target_ops) <to_extra_thread_info>: Add
9896 (target_extra_thread_info): Add argument.
9897 * target.c (update_current_target): Update.
9898 * remote.c (remote_threads_extra_info): Add 'self' argument.
9899 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9901 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9902 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9903 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9905 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9907 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9909 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9912 2014-02-19 Tom Tromey <tromey@redhat.com>
9914 * target.h (struct target_ops) <to_program_signals>: Add argument.
9915 * target.c (target_program_signals): Add argument.
9916 * remote.c (remote_program_signals): Add 'self' argument.
9918 2014-02-19 Tom Tromey <tromey@redhat.com>
9920 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9921 * target.c (target_pass_signals): Add argument.
9922 * remote.c (remote_pass_signals): Add 'self' argument.
9923 (remote_start_remote): Update.
9924 * procfs.c (procfs_pass_signals): Add 'self' argument.
9925 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9926 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9927 (linux_nat_create_inferior, linux_nat_attach): Update.
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9931 * windows-nat.c (windows_can_run): Add 'self' argument.
9932 * target.h (struct target_ops) <to_can_run>: Add argument.
9933 (target_can_run): Add argument.
9934 * target.c (debug_to_can_run): Add argument.
9935 (update_current_target): Update.
9936 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9937 * inf-child.c (inf_child_can_run): Add 'self' argument.
9938 * go32-nat.c (go32_can_run): Add 'self' argument.
9940 2014-02-19 Tom Tromey <tromey@redhat.com>
9942 * target.h (struct target_ops) <to_has_exited>: Add argument.
9943 (target_has_exited): Add argument.
9944 * target.c (debug_to_has_exited): Add argument.
9945 (update_current_target): Update.
9947 2014-02-19 Tom Tromey <tromey@redhat.com>
9949 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9951 (target_set_syscall_catchpoint): Add argument.
9952 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9954 * target.c (update_current_target): Update.
9956 2014-02-19 Tom Tromey <tromey@redhat.com>
9958 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9960 (target_remove_exec_catchpoint): Add argument.
9961 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9962 (update_current_target): Update.
9963 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9966 2014-02-19 Tom Tromey <tromey@redhat.com>
9968 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9970 (target_insert_exec_catchpoint): Add argument.
9971 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9972 (update_current_target): Update.
9973 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9976 2014-02-19 Tom Tromey <tromey@redhat.com>
9978 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9980 (target_remove_vfork_catchpoint): Add argument.
9981 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9982 (update_current_target): Update.
9983 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9986 2014-02-19 Tom Tromey <tromey@redhat.com>
9988 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9990 (target_insert_vfork_catchpoint): Add argument.
9991 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9992 (update_current_target): Update.
9993 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9996 2014-02-19 Tom Tromey <tromey@redhat.com>
9998 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10000 (target_remove_fork_catchpoint): Add argument.
10001 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10002 (update_current_target): Update.
10003 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10006 2014-02-19 Tom Tromey <tromey@redhat.com>
10008 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10010 (target_insert_fork_catchpoint): Add argument.
10011 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10012 (update_current_target): Update.
10013 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10020 (target_post_startup_inferior): Add argument.
10021 * target.c (debug_to_post_startup_inferior): Add argument.
10022 (update_current_target): Update.
10023 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10025 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10027 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10029 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10031 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10033 (super_post_startup_inferior): Likewise.
10034 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10036 (super_post_startup_inferior): Likewise.
10037 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10038 Add 'self' argument.
10039 (super_post_startup_inferior): Likewise.
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10043 * target.h (struct target_ops) <to_load>: Add argument.
10044 * target.c (target_load): Add argument.
10045 (debug_to_load): Add argument.
10046 (update_current_target): Update.
10047 * remote.c (remote_load): Add 'self' argument.
10048 * remote-sim.c (gdbsim_load): Add 'self' argument.
10049 * remote-mips.c (mips_load): Add 'self' argument.
10050 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10051 * monitor.c (monitor_load): Add 'self' argument.
10052 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10054 2014-02-19 Tom Tromey <tromey@redhat.com>
10056 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10057 (target_terminal_info): Add argument.
10058 * target.c (debug_to_terminal_info): Add argument.
10059 (default_terminal_info): Likewise.
10060 * inflow.c (child_terminal_info): Add 'self' argument.
10061 * inferior.h (child_terminal_info): Add 'self' argument.
10062 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10068 (target_terminal_save_ours): Add argument.
10069 * target.c (debug_to_terminal_save_ours): Add argument.
10070 (update_current_target): Update.
10071 * inflow.c (terminal_save_ours): Add 'self' argument.
10072 * inferior.h (terminal_save_ours): Add 'self' argument.
10074 2014-02-19 Tom Tromey <tromey@redhat.com>
10076 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10077 (target_terminal_ours): Add argument.
10078 * target.c (debug_to_terminal_ours): Add argument.
10079 (update_current_target): Update.
10080 * remote.c (remote_terminal_ours): Add 'self' argument.
10081 (remote_close): Update.
10082 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10083 * inflow.c (terminal_ours): Add 'self' argument.
10084 * inferior.h (terminal_ours): Add 'self' argument.
10085 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10087 2014-02-19 Pedro Alves <palves@redhat.com>
10088 Tom Tromey <tromey@redhat.com>
10090 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10092 (target_terminal_ours_for_output): Add argument.
10093 * target.c (debug_to_terminal_ours_for_output): Add argument.
10094 (update_current_target): Update.
10095 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10096 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10097 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10099 2014-02-19 Tom Tromey <tromey@redhat.com>
10101 * target.h (struct target_ops) <to_terminal_inferior>: Add
10103 * target.c (target_terminal_inferior): Add argument.
10104 (update_current_target): Update.
10105 * remote.c (remote_terminal_inferior): Add 'self' argument.
10106 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10107 * inflow.c (terminal_inferior): Add 'self' argument.
10108 * inferior.h (terminal_inferior): Add 'self' argument.
10109 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10110 (go32_terminal_inferior): Add 'self' argument.
10112 2014-02-19 Tom Tromey <tromey@redhat.com>
10114 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10115 (target_terminal_init): Add argument.
10116 * target.c (debug_to_terminal_init): Add argument.
10117 (update_current_target): Update.
10118 * inflow.c (terminal_init_inferior): Add 'self' argument.
10119 * inferior.h (terminal_init_inferior): Add 'self' argument.
10120 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10121 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10123 2014-02-19 Tom Tromey <tromey@redhat.com>
10125 * target.h (struct target_ops)
10126 <to_can_accel_watchpoint_condition>: Add argument.
10127 (target_can_accel_watchpoint_condition): Add argument.
10128 * target.c (debug_to_can_accel_watchpoint_condition): Add
10130 (update_current_target): Update.
10131 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10134 2014-02-19 Tom Tromey <tromey@redhat.com>
10136 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10138 (target_region_ok_for_hw_watchpoint): Add argument.
10139 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10140 (default_region_ok_for_hw_watchpoint): Add argument.
10141 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10142 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10144 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10146 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10148 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10150 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10152 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10154 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10155 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10157 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10158 Add 'self' argument.
10160 2014-02-19 Tom Tromey <tromey@redhat.com>
10162 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10164 (target_insert_watchpoint): Add argument.
10165 * target.c (debug_to_insert_watchpoint): Add argument.
10166 (update_current_target): Update.
10167 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10168 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10169 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10170 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10171 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10172 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10174 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10175 (procfs_insert_hw_watchpoint): Add 'self' argument.
10176 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10178 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10180 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10182 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10183 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10185 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10188 2014-02-19 Tom Tromey <tromey@redhat.com>
10190 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10192 (target_remove_watchpoint): Add argument.
10193 * target.c (debug_to_remove_watchpoint): Add argument.
10194 (update_current_target): Update.
10195 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10196 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10197 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10198 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10199 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10200 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10202 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10203 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10205 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10207 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10209 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10210 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10212 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10215 2014-02-19 Tom Tromey <tromey@redhat.com>
10217 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10219 (target_remove_hw_breakpoint): Add argument.
10220 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10221 (update_current_target): Update.
10222 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10223 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10225 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10226 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10228 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10231 2014-02-19 Tom Tromey <tromey@redhat.com>
10233 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10235 (target_insert_hw_breakpoint): Add argument.
10236 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10237 (update_current_target): Update.
10238 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10239 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10241 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10242 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10243 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10245 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10248 2014-02-19 Tom Tromey <tromey@redhat.com>
10250 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10252 (target_can_use_hardware_watchpoint): Add argument.
10253 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10254 (update_current_target): Update.
10255 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10257 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10259 * remote.c (remote_check_watch_resources): Add 'self' argument.
10260 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10261 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10263 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10264 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10266 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10268 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10270 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10272 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10274 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10276 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10277 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10279 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10282 2014-02-19 Tom Tromey <tromey@redhat.com>
10284 * target.h (struct target_ops) <to_post_attach>: Add argument.
10285 (target_post_attach): Add argument.
10286 * target.c (debug_to_post_attach): Add argument.
10287 (update_current_target): Update.
10288 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10289 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10290 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10291 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10292 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10294 2014-02-19 Tom Tromey <tromey@redhat.com>
10296 * windows-nat.c (windows_close): Add 'self' argument.
10297 * tracepoint.c (tfile_close): Add 'self' argument.
10298 * target.h (struct target_ops) <to_close>: Add argument.
10299 * target.c (target_close): Add argument.
10300 (update_current_target): Update.
10301 * remote.c (remote_close): Add 'self' argument.
10302 * remote-sim.c (gdbsim_close): Add 'self' argument.
10303 * remote-mips.c (mips_close): Add 'self' argument.
10304 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10305 * record-full.c (record_full_close): Add 'self' argument.
10306 * record-btrace.c (record_btrace_close): Add 'self' argument.
10307 * monitor.h (monitor_close): Add 'self' argument.
10308 * monitor.c (monitor_close): Add 'self' argument.
10309 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10310 * linux-nat.c (linux_nat_close): Add argument.
10311 * go32-nat.c (go32_close): Add 'self' argument.
10312 * exec.c (exec_close_1): Add 'self' argument.
10313 * ctf.c (ctf_close): Add 'self' argument.
10314 * corelow.c (core_close): Add 'self' argument.
10315 (core_close_cleanup): Update.
10316 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10317 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * remote.c (remote_load): New function.
10322 (init_remote_ops): Use it.
10324 2014-02-19 Tom Tromey <tromey@redhat.com>
10326 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10328 * common/linux-btrace.h (linux_supports_btrace): Update.
10329 * remote.c (remote_supports_btrace): Add "self" argument.
10330 * target-delegates.c: Rebuild.
10331 * target.c (target_supports_btrace): Remove.
10332 * target.h (struct target_ops) <to_supports_btrace>: Add
10333 target_ops argument.
10334 (target_supports_btrace): New define.
10336 2014-02-19 Tom Tromey <tromey@redhat.com>
10338 * record-full.c (record_full_beneath_to_resume_ops)
10339 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10340 (record_full_beneath_to_wait)
10341 (record_full_beneath_to_store_registers_ops)
10342 (record_full_beneath_to_store_registers)
10343 (record_full_beneath_to_xfer_partial_ops)
10344 (record_full_beneath_to_xfer_partial)
10345 (record_full_beneath_to_insert_breakpoint_ops)
10346 (record_full_beneath_to_insert_breakpoint)
10347 (record_full_beneath_to_remove_breakpoint_ops)
10348 (record_full_beneath_to_remove_breakpoint)
10349 (record_full_beneath_to_stopped_by_watchpoint)
10350 (record_full_beneath_to_stopped_data_address)
10351 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10352 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10353 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10354 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10355 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10356 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10357 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10358 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10359 (record_full_resume, record_full_wait_1)
10360 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10361 (record_full_store_registers, record_full_xfer_partial)
10362 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10363 (record_full_async, record_full_core_xfer_partial): Use target
10365 * target-delegates.c: Rebuild.
10366 * target.c (current_xfer_partial): Remove.
10367 (update_current_target): Do not INHERIT or de_fault
10368 to_insert_breakpoint, to_remove_breakpoint,
10369 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10370 to_is_async_p, to_async. Do not set to_xfer_partial field.
10371 (default_xfer_partial): Simplify.
10372 (current_xfer_partial): Remove.
10373 (target_wait, target_resume): Simplify.
10374 (find_default_can_async_p, find_default_is_async_p): Update.
10375 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10376 to_xfer_partial, to_stopped_by_watchpoint,
10377 to_stopped_data_address.
10378 (target_store_registers): Simplify.
10379 (forward_target_remove_breakpoint)
10380 (forward_target_insert_breakpoint): Remove.
10381 (target_remove_breakpoint, target_insert_breakpoint)
10382 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10383 * target.h (struct target_ops) <to_resume, to_wait,
10384 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10385 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10386 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10388 (forward_target_remove_breakpoint)
10389 (forward_target_insert_breakpoint): Remove.
10390 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10392 (record_btrace_insert_breakpoint): Delegate directly.
10394 2014-02-19 Tom Tromey <tromey@redhat.com>
10397 * target-delegates.c: New file.
10398 * target.c: Include target-delegates.c.
10399 (init_dummy_target): Call install_dummy_methods.
10400 (complete_target_initialization): Call install_delegators.
10401 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10402 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10403 * make-target-delegates: New file.
10405 2014-02-19 Tom Tromey <tromey@redhat.com>
10407 * record.c (find_record_target): Use find_target_at.
10408 * target.c (find_target_at): New function.
10409 * target.h (find_target_at): Declare.
10411 2014-02-19 Tom Tromey <tromey@redhat.com>
10413 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10414 Add 'ops' argument.
10415 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10417 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10418 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10420 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10422 * linux-nat.c (save_sigtrap): Update.
10423 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10424 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10425 (linux_nat_close): Update.
10426 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10428 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10430 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10431 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10432 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10433 (tmp_to_async): Add 'ops' argument.
10434 (record_full_stopped_by_watchpoint, record_full_async)
10435 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10437 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10438 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10439 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10440 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10441 (remote_is_async_p, remote_async): Add 'ops' argument.
10442 (remote_stopped_data_address): Update.
10443 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10444 * target.c (update_current_target)
10445 (find_default_can_async_p, find_default_is_async_p): Update.
10446 (init_dummy_target): Update.
10447 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10448 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10449 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10450 (target_can_async_p, target_is_async_p, target_async)
10451 (target_stopped_by_watchpoint): Update.
10453 2014-02-19 Yao Qi <yao@codesourcery.com>
10456 * gdbarch.sh: Remove startup_gdbarch.
10457 * gdbarch.c: Regenerated.
10458 * gdbarch.h: Likewise.
10460 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10462 * rl78-tdep.c (rl78_g10_register_name): New function.
10463 (rl78_return_value): Add g10 support.
10464 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10467 2014-02-17 Doug Evans <xdje42@gmail.com>
10469 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10470 (SUBDIR_GUILE_SRCS): Ditto.
10471 (scm-gsmob.o): Ditto.
10473 2014-02-17 Yao Qi <yao@codesourcery.com>
10475 * gnu-nat.c (ILL_RPC): Declare defined function.
10477 2014-02-17 Yao Qi <yao@codesourcery.com>
10479 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10480 mach_msg_type_number_t.
10481 (gnu_write_inferior): Likewise.
10483 2014-02-17 Yao Qi <yao@codesourcery.com>
10485 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10487 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10488 (inf_validate_procs, inf_signal): Likewise.
10489 (S_exception_raise_request): Likewise.
10490 (do_mach_notify_dead_name): Likewise.
10491 (steal_exc_port): Likewise.
10492 (gnu_read_inferior): Change 'copy_count''s type to
10493 mach_msg_type_number_t.
10494 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10497 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10499 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10500 flag. Adjust all users; in particular...
10501 (gnu_wait): ..., don't decrement its value in here...
10502 (gnu_create_inferior): ..., and instead set the flag in here,
10503 around the startup_inferior call, and call that one with
10504 START_INFERIOR_TRAPS_EXPECTED.
10506 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10507 (ILL_RPC): ... new macro.
10508 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10509 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10510 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10511 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10512 functions with ILL_RPC macro.
10513 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10514 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10515 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10516 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10517 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10518 (S_proc_getlogin_reply, S_proc_getsid_reply)
10519 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10520 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10521 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10522 (S_proc_getnports_reply, S_proc_is_important_reply)
10523 (S_proc_get_code_reply): New stub functions, generated with
10526 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10527 collected the type check structures.
10529 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10531 2014-02-14 Doug Evans <dje@google.com>
10533 * target.c (target_write_partial): Fix result type.
10535 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10537 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10538 the proper offsets to access fpregset_t.
10540 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10542 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10543 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10544 * h8300-tdep.c (setmachinelist): Remove global.
10545 * hppa-tdep.c (hppa_sigtramp): Remove global.
10546 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10547 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10548 * ravenscar-thread.c (update_target_observer): Remove global.
10549 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10551 2014-02-12 Tom Tromey <tromey@redhat.com>
10553 * common/rsp-low.c: Update comments.
10554 * common/rsp-low.h: Update comments.
10556 2014-02-12 Tom Tromey <tromey@redhat.com>
10558 * common/rsp-low.c (convert_ascii_to_int): Remove.
10559 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10561 2014-02-12 Tom Tromey <tromey@redhat.com>
10563 * common/rsp-low.h (unhexify): Don't declare.
10564 * common/rsp-low.c (unhexify): Remove.
10566 2014-02-12 Tom Tromey <tromey@redhat.com>
10568 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10569 * common/rsp-low.c (convert_int_to_ascii): Remove.
10571 2014-02-12 Tom Tromey <tromey@redhat.com>
10573 * common/rsp-low.h (hexify): Don't declare.
10574 * common/rsp-low.c (hexify): Remove.
10576 2014-02-12 Tom Tromey <tromey@redhat.com>
10578 * common/rsp-low.c (hexify): Never take strlen of argument.
10580 2014-02-12 Tom Tromey <tromey@redhat.com>
10582 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10583 * remote.c (extended_remote_run, remote_rcmd)
10584 (remote_download_trace_state_variable, remote_save_trace_data)
10585 (remote_set_trace_notes): Update.
10586 * tracepoint.c (encode_source_string, tfile_write_status)
10587 (tfile_write_uploaded_tsv): Update.
10589 2014-02-12 Tom Tromey <tromey@redhat.com>
10591 * tracepoint.c: Include rsp-low.h.
10592 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10593 * remote.c: Include rsp-low.h.
10594 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10595 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10596 (remote_unescape_input): Move to common/rsp-low.c.
10597 * common/rsp-low.h: New file.
10598 * common/rsp-low.c: New file.
10599 * Makefile.in (SFILES): Add common/rsp-low.c.
10600 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10601 (COMMON_OBS): Add rsp-low.o.
10602 (rsp-low.o): New target.
10604 2014-02-12 Tom Tromey <tromey@redhat.com>
10606 * utils.h: Include print-utils.h.
10607 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10608 (int_string, core_addr_to_string, core_addr_to_string_nz)
10609 (hex_string, hex_string_custom): Don't declare.
10610 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10611 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10612 (hex_string_custom, int_string, core_addr_to_string)
10613 (core_addr_to_string_nz, host_address_to_string): Move to
10614 common/print-utils.c.
10615 * common/print-utils.h: New file.
10616 * common/print-utils.c: New file
10617 * Makefile.in (SFILES): Add common/print-utils.c.
10618 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10619 (COMMON_OBS): Add print-utils.o.
10620 (print-utils.o): New target.
10622 2014-02-12 Tom Tromey <tromey@redhat.com>
10624 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10626 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10628 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10630 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10632 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10633 if a PT_IO ptrace request returns sucessfully but indicates that 0
10634 bytes were transferred.
10636 2014-02-12 Pedro Alves <palves@redhat.com>
10637 Kevin Buettner <kevinb@redhat.com>
10639 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10640 TYPE_INSTANCE_FLAG_CODE_SPACE.
10642 2014-02-12 Pedro Alves <palves@redhat.com>
10644 * h8300-tdep.c (pseudo_from_raw_register)
10645 (raw_from_pseudo_register): New functions.
10646 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10649 2014-02-12 Pedro Alves <palves@redhat.com>
10651 * h8300-tdep.c (h8300_register_sim_regno): New function.
10652 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10653 gdbarch_register_sim_regno hook.
10655 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10657 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10659 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10661 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10663 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10665 * obsd-tdep.h (obsd_init_abi): New prototype.
10666 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10667 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10668 (obsd_init_abi): New functions.
10669 * i386obsd-tdep.c: Include "obsd-tdep.h".
10670 (i386obsd_init_abi): Call obsd_init_abi.
10671 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10672 (amd64obsd_init_abi): Call obsd_init_abi.
10673 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10674 obsd-tdep.c to gdb_target_obs.
10676 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10678 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10679 double float arguments to 16-byte in the argument slots.
10681 2014-02-11 Doug Evans <xdje42@gmail.com>
10683 * configure.ac: Don't crash if pkg-config is not found and guile
10684 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10686 * configure: Regenerate.
10688 2014-02-11 Yao Qi <yao@codesourcery.com>
10690 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10691 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10692 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10693 * gnu-nat.c (gnu_xfer_memory): Likewise.
10694 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10695 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10696 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10697 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10699 2014-02-11 Yao Qi <yao@codesourcery.com>
10701 * target.h (enum target_xfer_error): Rename to ...
10702 (enum target_xfer_status): ... it. New. All users updated.
10703 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10705 (TARGET_XFER_STATUS_ERROR_P): New macro.
10706 (target_xfer_error_to_string): Remove declaration.
10707 (target_xfer_status_to_string): Declare.
10708 (target_xfer_partial_ftype): Adjust it.
10709 (struct target_ops) <to_xfer_partial>: Return
10710 target_xfer_status. Add argument xfered_len. Update
10712 * target.c (target_xfer_error_to_string): Rename to ...
10713 (target_xfer_status_to_string): ... it. New. All callers
10715 (target_read_live_memory): Likewise. Call target_xfer_partial
10716 instead of target_read.
10717 (memory_xfer_live_readonly_partial): Return
10718 target_xfer_status. Add argument xfered_len.
10719 (raw_memory_xfer_partial): Likewise.
10720 (memory_xfer_partial_1): Likewise.
10721 (memory_xfer_partial): Likewise.
10722 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10723 properly. Update debug message.
10724 (default_xfer_partial, current_xfer_partial): Likewise.
10725 (target_write_partial): Likewise.
10726 (target_read_partial): Likewise. All callers updated.
10727 (read_whatever_is_readable): Likewise.
10728 (target_write_with_progress): Likewise.
10729 (target_read_alloc_1): Likewise.
10731 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10732 * auxv.c (procfs_xfer_auxv): Likewise.
10733 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10734 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10735 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10736 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10737 * corefile.c (read_memory): Adjust.
10738 * corelow.c (core_xfer_partial): Likewise.
10739 * ctf.c (ctf_xfer_partial): Likewise.
10740 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10742 (darwin_xfer_partial): Likewise.
10743 * exec.c (section_table_xfer_memory_partial): Likewise. All
10745 (exec_xfer_partial): Likewise.
10746 * exec.h (section_table_xfer_memory_partial): Update
10748 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10750 (gnu_xfer_partial): Likewise.
10751 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10752 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10753 (ia64_hpux_xfer_solib_got): Likewise.
10754 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10755 type of 'partial_len' to ULONGEST.
10756 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10757 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10758 (linux_nat_xfer_partial): Likewise.
10759 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10760 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10761 * monitor.c (monitor_xfer_memory): Likewise.
10762 (monitor_xfer_partial): Likewise.
10763 * procfs.c (procfs_xfer_partial): Likewise.
10764 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10765 * record-full.c (record_full_xfer_partial): Likewise.
10766 (record_full_core_xfer_partial): Likewise.
10767 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10768 (gdbsim_xfer_partial): Likewise.
10769 * remote.c (remote_write_bytes_aux): Likewise. All callers
10771 (remote_write_bytes, remote_read_bytes): Likewise. All
10773 (remote_flash_erase): Likewise. All callers updated.
10774 (remote_write_qxfer): Likewise. All callers updated.
10775 (remote_read_qxfer): Likewise. All callers updated.
10776 (remote_xfer_partial): Likewise.
10777 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10778 (rs6000_xfer_shared_libraries): Likewise.
10779 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10780 (sol_thread_xfer_partial): Likewise.
10781 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10782 (sparc_xfer_partial): Likewise.
10783 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10785 (spu_xfer_partial): Likewise.
10786 * spu-multiarch.c (spu_xfer_partial): Likewise.
10787 * tracepoint.c (tfile_xfer_partial): Likewise.
10788 * windows-nat.c (windows_xfer_memory): Likewise.
10789 (windows_xfer_shared_libraries): Likewise.
10790 (windows_xfer_partial): Likewise.
10791 * valprint.c: Replace 'target_xfer_error' with
10792 'target_xfer_status' in comments.
10794 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10796 Checked in by Joel Brobecker <brobecker@adacore.com>.
10797 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10799 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10801 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10802 function parameters.
10804 2014-02-10 Will Newton <will.newton@linaro.org>
10806 * elfread.c (elf_rel_plt_read): Look for a .got section if
10807 looking up .got.plt fails.
10808 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10809 on address passed to elf_gnu_ifunc_record_cache.
10810 (elf_gnu_ifunc_resolve_addr): Likewise.
10811 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10813 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10815 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10816 (X_RETTURN): New macro.
10817 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10819 * sparc64-tdep.c (sparc64_init_abi): Hook
10820 sparc_in_function_epilogue_p.
10822 2014-02-10 Gary Benson <gbenson@redhat.com>
10824 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10825 Rename name_matcher to symbol_matcher.
10827 2014-02-10 Gary Benson <gbenson@redhat.com>
10829 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10830 Use expand_symtabs_file_matcher_ftype and
10831 expand_symtabs_symbol_matcher_ftype.
10833 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10835 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10836 (struct ada_symbol_cache): New.
10837 (ada_free_symbol_cache): Forward declare.
10838 (struct ada_pspace_data): New.
10839 (ada_pspace_data_handle): New static global.
10840 (get_ada_pspace_data, ada_pspace_data_cleanup)
10841 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10842 (cache_space, cache): Delete, now folded inside struct
10844 (ada_get_symbol_cache): New function.
10845 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10847 (_initialize_ada_language): Remove initialization of cache_space.
10848 Move call to observer_attach_inferior_exit up, grouping it
10849 with the other observer registrations inside this function.
10850 Rename command to be more general. Add call to
10851 register_program_space_data_with_cleanup.
10853 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10855 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10856 ada_new_objfile_observer.
10857 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10858 (_initialize_tasks): Update uses of ada_new_objfile_observer
10859 and ada_tasks_normal_stop_observer.
10861 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10863 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10864 returned by the 'Length attribute to integer.
10866 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10868 * ada-lang.c (_initialize_ada_language): Initialize
10869 cache_space obstack.
10871 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10873 * ada-lang.c (HASH_SIZE): New macro.
10874 (struct cache_entry): New type.
10875 (cache_space, cache): New static globals.
10876 (ada_clear_symbol_cache, find_entry): New functions.
10877 (lookup_cached_symbol, cache_symbol): Implement.
10878 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10879 (_initialize_ada_language): Attach ada_new_objfile_observer
10880 and ada_free_objfile_observer.
10882 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10884 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10885 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10886 struct block * parameter.
10887 (ada_lookup_symbol_list_worker): Constify local variable "block".
10888 Remove cast which is no longer necessary.
10890 2014-02-10 Doug Evans <xdje42@gmail.com>
10892 Add Guile as an extension language.
10893 * NEWS: Mention Guile scripting.
10894 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10895 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10896 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10897 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10898 (CLIBS): Add GUILE_LIBS.
10899 (install-guile): New rule.
10900 (guile.o): New rule.
10901 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10902 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10903 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10904 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10905 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10906 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10907 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10908 * configure.ac: New option --with-guile.
10909 * configure: Regenerate.
10910 * config.in: Regenerate.
10911 * auto-load.c: Remove #include "python/python.h". Add #include
10912 "gdb/section-scripts.h".
10913 (source_section_scripts): Handle Guile scripts.
10914 (_initialize_auto_load): Add name of Guile objfile script to
10915 scripts-directory help text.
10916 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10917 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10918 (struct breakpoint): New member scm_bp_object.
10919 * defs.h (enum command_control_type): New value guile_control.
10920 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10922 (show_user): Update comment.
10923 (_initialize_cli_cmds): Update help text for "show user". Update help
10924 text for max-user-call-depth.
10925 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10927 (multi_line_command_p): Add guile_control.
10928 (print_command_lines): Handle guile_control.
10929 (execute_control_command, recurse_read_control_structure): Ditto.
10930 (process_next_line): Recognize "guile" commands.
10931 * disasm.c (gdb_disassemble_info): Make non-static.
10932 * disasm.h: #include "dis-asm.h".
10933 (struct gdbarch): Add forward decl.
10934 (gdb_disassemble_info): Declare.
10935 * extension.c: #include "guile/guile.h".
10936 (extension_languages): Add guile.
10937 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10938 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10939 * gdbtypes.c (get_unsigned_type_max): New function.
10940 (get_signed_type_minmax): New function.
10941 * gdbtypes.h (get_unsigned_type_max): Declare.
10942 (get_signed_type_minmax): Declare.
10943 * guile/README: New file.
10944 * guile/guile-internal.h: New file.
10945 * guile/guile.c: New file.
10946 * guile/guile.h: New file.
10947 * guile/scm-arch.c: New file.
10948 * guile/scm-auto-load.c: New file.
10949 * guile/scm-block.c: New file.
10950 * guile/scm-breakpoint.c: New file.
10951 * guile/scm-disasm.c: New file.
10952 * guile/scm-exception.c: New file.
10953 * guile/scm-frame.c: New file.
10954 * guile/scm-gsmob.c: New file.
10955 * guile/scm-iterator.c: New file.
10956 * guile/scm-lazy-string.c: New file.
10957 * guile/scm-math.c: New file.
10958 * guile/scm-objfile.c: New file.
10959 * guile/scm-ports.c: New file.
10960 * guile/scm-pretty-print.c: New file.
10961 * guile/scm-safe-call.c: New file.
10962 * guile/scm-string.c: New file.
10963 * guile/scm-symbol.c: New file.
10964 * guile/scm-symtab.c: New file.
10965 * guile/scm-type.c: New file.
10966 * guile/scm-utils.c: New file.
10967 * guile/scm-value.c: New file.
10968 * guile/lib/gdb.scm: New file.
10969 * guile/lib/gdb/boot.scm: New file.
10970 * guile/lib/gdb/experimental.scm: New file.
10971 * guile/lib/gdb/init.scm: New file.
10972 * guile/lib/gdb/iterator.scm: New file.
10973 * guile/lib/gdb/printing.scm: New file.
10974 * guile/lib/gdb/types.scm: New file.
10975 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10976 (VPATH): Add $(GUILE_SRCDIR).
10977 (GUILE_DIR): New variable.
10978 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10979 (all): Add stamp-guile dependency.
10980 (stamp-guile): New rule.
10981 (clean-guile, install-guile, uninstall-guile): New rules.
10982 (install-only): Add install-guile dependency.
10983 (uninstall): Add uninstall-guile dependency.
10984 (clean): Add clean-guile dependency.
10986 2014-02-09 Doug Evans <xdje42@gmail.com>
10988 Revert this patch (which I approved, mea culpa).
10990 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10992 * Makefile.in (all-lib): Remove.
10993 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10995 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10997 Fix Python stack corruption.
10998 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11001 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11003 * Makefile.in (all-lib): Remove.
11004 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11006 2014-02-07 Doug Evans <dje@google.com>
11008 * extension-priv.h (extension_language_script_ops): Add comment.
11009 (extension_language_ops): Add comment.
11010 (active_ext_lang_state): Fix typo in comment.
11012 2014-02-07 Pedro Alves <palves@redhat.com>
11014 PR breakpoints/16292
11015 * infrun.c (handle_signal_stop) <signal arrives while stepping
11016 over a breakpoint>: Switch back to the stepping thread.
11018 2014-02-07 Yao Qi <yao@codesourcery.com>
11020 * target.c (target_xfer_partial): Return zero if LEN is zero.
11022 2014-02-07 Yao Qi <yao@codesourcery.com>
11024 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11025 (ld_so_xfer_auxv): Likewise.
11026 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11027 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11028 * corelow.c (core_xfer_partial): Likewise.
11029 * ctf.c (ctf_xfer_partial): Likewise.
11030 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11031 (darwin_xfer_partial): Likewise.
11032 * exec.c (exec_xfer_partial): Likewise.
11033 * gnu-nat.c (gnu_xfer_partial): Likewise.
11034 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11035 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11036 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11037 * linux-nat.c (linux_xfer_siginfo): Likewise.
11038 (linux_proc_xfer_spu): Likewise.
11039 * procfs.c (procfs_xfer_partial): Likewise.
11040 * record-full.c (record_full_xfer_partial): Likewise.
11041 (record_full_core_xfer_partial): Likewise.
11042 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11043 * remote.c (remote_write_qxfer): Likewise.
11044 (remote_write_qxfer, remote_read_qxfer): Likewise.
11045 (remote_xfer_partial): Likewise.
11046 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11047 (rs6000_xfer_shared_libraries): Likewise.
11048 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11049 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11050 (spu_xfer_partial): Likewise.
11051 * target.c (memory_xfer_partial_1): Likewise.
11052 * tracepoint.c (tfile_xfer_partial): Likewise.
11053 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11054 (windows_xfer_partial): Likewise.
11056 2014-02-07 Yao Qi <yao@codesourcery.com>
11058 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11060 (core_xfer_shared_libraries_aix): Likewise.
11061 * gdbarch.c, gdbarch.h: Regenerated.
11062 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11063 ULONGEST. Change 'len_avail' type to ULONGEST.
11064 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11065 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11067 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11069 2014-02-07 Yao Qi <yao@codesourcery.com>
11071 * corefile.c (memory_error): Get 'exception' from ERR and pass
11072 'exception' to throw_error.
11074 2014-02-06 Doug Evans <xdje42@gmail.com>
11076 * configure.ac (libpython checking): Remove all but python.o from
11077 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11078 * configure: Regenerate.
11080 * Makefile.in (SFILES): Add extension.c.
11081 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11082 (COMMON_OBS): Add extension.o.
11083 * extension.h: New file.
11084 * extension-priv.h: New file.
11085 * extension.c: New file.
11087 * python/python-internal.h: #include "extension.h".
11088 (gdbpy_auto_load_enabled): Declare.
11089 (gdbpy_apply_val_pretty_printer): Declare.
11090 (gdbpy_apply_frame_filter): Declare.
11091 (gdbpy_preserve_values): Declare.
11092 (gdbpy_breakpoint_cond_says_stop): Declare.
11093 (gdbpy_breakpoint_has_cond): Declare.
11094 (void source_python_script_for_objfile): Delete.
11095 * python/python.c: #include "extension-priv.h".
11096 Delete inclusion of "observer.h".
11097 (extension_language_python): Moved here and renamed from
11098 script_language_python in py-auto-load.c.
11099 Redefined to be of type extension_language_defn.
11100 (python_extension_script_ops): New global.
11101 (python_extension_ops): New global.
11102 (struct python_env): New member previous_active.
11103 (restore_python_env): Call restore_active_ext_lang.
11104 (ensure_python_env): Call set_active_ext_lang.
11105 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11107 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11109 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11111 (gdbpy_eval_from_control_command): Renamed from
11112 eval_python_from_control_command, made static. New arg extlang.
11113 (gdbpy_source_script) Renamed from source_python_script, made static.
11115 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11116 result to int. New arg extlang.
11117 (gdbpy_source_objfile_script): Renamed from
11118 source_python_script_for_objfile, made static. New arg extlang.
11119 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11120 static. New args extlang, extlang_printers. Change result type to
11122 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11123 static. New arg extlang. Rename arg printers to extlang_printers
11124 and change type to ext_lang_type_printers *.
11125 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11126 static. Replace argument arg with extlang, extlang_printers.
11127 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11128 (!HAVE_PYTHON, source_python_script): Delete.
11129 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11130 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11131 (!HAVE_PYTHON, start_type_printers): Delete.
11132 (!HAVE_PYTHON, apply_type_printers): Delete.
11133 (!HAVE_PYTHON, free_type_printers): Delete.
11134 (_initialize_python): Delete call to observer_attach_before_prompt.
11135 (finalize_python): Set/restore active extension language.
11136 (gdbpy_finish_initialization) Renamed from
11137 finish_python_initialization, made static. New arg extlang.
11138 (gdbpy_initialized): New function.
11139 * python/python.h: #include "extension.h". Delete #include
11140 "value.h", "mi/mi-cmds.h".
11141 (extension_language_python): Declare.
11142 (GDBPY_AUTO_FILE_NAME): Delete.
11143 (enum py_bt_status): Moved to extension.h and renamed to
11144 ext_lang_bt_status.
11145 (enum frame_filter_flags): Moved to extension.h.
11146 (enum py_frame_args): Moved to extension.h and renamed to
11147 ext_lang_frame_args.
11148 (finish_python_initialization): Delete.
11149 (eval_python_from_control_command): Delete.
11150 (source_python_script): Delete.
11151 (apply_val_pretty_printer): Delete.
11152 (apply_frame_filter): Delete.
11153 (preserve_python_values): Delete.
11154 (gdbpy_script_language_defn): Delete.
11155 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11156 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11158 * auto-load.c: #include "extension.h".
11159 (GDB_AUTO_FILE_NAME): Delete.
11160 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11161 (script_language_gdb): Delete, moved to extension.c and renamed to
11162 extension_language_gdb.
11163 (source_gdb_script_for_objfile): Delete.
11164 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11165 (loaded_script): Change type of language member to
11166 struct extension_language_defn *.
11167 (init_loaded_scripts_info): Initialize
11168 unsupported_script_warning_printed.
11169 (maybe_add_script): Make static. Change type of language arg to
11170 struct extension_language_defn *.
11171 (clear_section_scripts): Reset unsupported_script_warning_printed.
11172 (auto_load_objfile_script_1): Rewrite to use extension language API.
11173 (auto_load_objfile_script): Make public. Remove support-compiled-in
11174 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11175 (source_section_scripts): Rewrite to use extension language API.
11176 (load_auto_scripts_for_objfile): Rewrite to use
11177 auto_load_scripts_for_objfile.
11178 (collect_matching_scripts_data): Change type of language member to
11179 struct extension_language_defn *.
11180 (auto_load_info_scripts): Change type of language arg to
11181 struct extension_language_defn *.
11182 (unsupported_script_warning_print): New function.
11183 (script_not_found_warning_print): Make static.
11184 (_initialize_auto_load): Rewrite construction of scripts-directory
11186 * auto-load.h (struct objfile): Add forward decl.
11187 (struct script_language): Delete.
11188 (struct auto_load_pspace_info): Add forward decl.
11189 (struct extension_language_defn): Add forward decl.
11190 (maybe_add_script): Delete.
11191 (auto_load_objfile_script): Declare.
11192 (script_not_found_warning_print): Delete.
11193 (auto_load_info_scripts): Update prototype.
11194 (auto_load_gdb_scripts_enabled): Declare.
11195 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11196 auto_load_python_scripts_enabled and made public.
11197 (script_language_python): Delete, moved to python.c.
11198 (gdbpy_script_language_defn): Delete.
11199 (info_auto_load_python_scripts): Update to use
11200 extension_language_python.
11202 * breakpoint.c (condition_command): Replace call to
11203 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11204 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11205 with call to breakpoint_ext_lang_cond_says_stop.
11206 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11207 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11208 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11209 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11211 (local_setattro): Print name of extension language with existing
11214 * valprint.c (val_print, value_print): Update to call
11215 apply_ext_lang_val_pretty_printer.
11216 * cp-valprint.c (cp_print_value): Update call to
11217 apply_ext_lang_val_pretty_printer.
11218 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11219 (gdbpy_apply_val_pretty_printer): Renamed from
11220 apply_val_pretty_printer. New arg extlang.
11221 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11223 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11224 extension language API.
11225 * cli/cli-script.c (execute_control_command): Update to call
11226 eval_ext_lang_from_control_command.
11228 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11229 enum ext_lang_bt_status values. Update call to
11230 apply_ext_lang_frame_filter.
11231 (mi_cmd_stack_list_locals): Ditto.
11232 (mi_cmd_stack_list_args): Ditto.
11233 (mi_cmd_stack_list_variables): Ditto.
11234 * mi/mi-main.c: Delete #include "python/python-internal.h".
11235 Add #include "extension.h".
11236 (mi_cmd_list_features): Replace reference to python internal variable
11237 gdb_python_initialized with call to ext_lang_initialized_p.
11239 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11240 Update to use enum ext_lang_frame_args. Update to call
11241 apply_ext_lang_frame_filter.
11242 * python/py-framefilter.c (extract_sym): Update to use enum
11243 ext_lang_bt_status.
11244 (extract_value, py_print_type, py_print_value): Ditto.
11245 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11246 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11247 (py_print_frame): Ditto.
11248 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11249 New arg extlang. Update to use enum ext_lang_bt_status.
11251 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11252 finish_python_initialization. Replace with call to
11253 finish_ext_lang_initialization.
11255 * typeprint.c (do_free_global_table): Update to call
11256 free_ext_lang_type_printers.
11257 (create_global_typedef_table): Update to call
11258 start_ext_lang_type_printers.
11259 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11260 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11261 (type_print_options): Change type of global_printers from "void *"
11262 to "struct ext_lang_type_printers *".
11264 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11265 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11266 (gdbpy_preserve_values): Renamed from preserve_python_values.
11268 (!HAVE_PYTHON, preserve_python_values): Delete.
11270 * utils.c (quit_flag): Delete, moved to extension.c.
11271 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11274 * eval.c: Delete #include "python/python.h".
11275 * main.c: Delete #include "python/python.h".
11277 * defs.h: Update comment.
11279 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11283 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11285 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11288 2014-02-05 Yao Qi <yao@codesourcery.com>
11290 * remote.c (remote_pass_signals): Remove local 'buf' and use
11292 (remote_program_signals): Likewise.
11294 2014-02-05 Yao Qi <yao@codesourcery.com>
11296 * ctf.c: Include "inferior.h" and "gdbthread.h".
11297 (CTF_PID): A new macro.
11298 (ctf_open): Call inferior_appeared and add_thread_silent.
11299 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11300 (ctf_thread_alive): New function.
11301 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11303 2014-02-05 Yao Qi <yao@codesourcery.com>
11307 2013-05-24 Yao Qi <yao@codesourcery.com>
11309 * tracepoint.c (TFILE_PID): Remove.
11310 (tfile_open): Don't add thread and inferior.
11311 (tfile_close): Don't set 'inferior_ptid'. Don't call
11312 exit_inferior_silent.
11313 (tfile_thread_alive): Remove.
11314 (init_tfile_ops): Don't set field 'to_thread_alive' of
11317 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11319 * remote.c (remote_start_remote): Call remote_check_symbols even
11320 if only symbol-file (not file) has been given.
11322 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11324 * gdbarch.sh (skip_entrypoint): New callback.
11325 * gdbarch.c, gdbarch.h: Regenerate.
11326 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11327 * infrun.c (fill_in_stop_func): Likewise.
11328 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11329 (ppc_elfv2_elf_make_msymbol_special): New function.
11330 (ppc_elfv2_skip_entrypoint): Likewise.
11331 (ppc_linux_init_abi): Install them for ELFv2.
11333 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11335 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11336 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11337 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11338 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11339 structures returned in GPRs.
11341 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11343 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11344 offset to the stack parameter list for the ELFv2 ABI.
11346 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11348 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11349 set_gdbarch_convert_from_func_ptr_addr and
11350 set_gdbarch_elf_make_msymbol_special for ELFv1.
11351 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11352 function descriptors on ELFv1.
11353 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11354 set up r12 at function entry.
11356 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11358 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11359 (struct gdbarch_tdep): New member elf_abi.
11361 * rs6000-tdep.c: Include "elf/ppc64.h".
11362 (rs6000_gdbarch_init): Detect ELF ABI version.
11364 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11366 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11367 within a register pair holding a DFP 128-bit value on little-endian.
11368 (ppc64_sysv_abi_return_value_base): Likewise.
11369 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11370 (dfp_pseudo_register_write): Likewise.
11372 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11374 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11375 offset on little-endian when passing _Decimal32.
11376 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11378 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11380 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11381 of the overlapped FP register within the VSX register on little-
11383 (efpr_pseudo_register_write): Likewise.
11385 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11387 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11388 offset on little-endian when passing small structures.
11390 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11392 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11393 (struct ppc64_sysv_argpos): New data structure.
11394 (ppc64_sysv_abi_push_float): Remove.
11395 (ppc64_sysv_abi_push_val): New function.
11396 (ppc64_sysv_abi_push_integer): Likewise.
11397 (ppc64_sysv_abi_push_freg): Likewise.
11398 (ppc64_sysv_abi_push_vreg): Likewise.
11399 (ppc64_sysv_abi_push_param): Likewise.
11400 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11401 (ppc64_sysv_abi_return_value_base): New function.
11402 (ppc64_sysv_abi_return_value): Refactor to use it.
11404 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11406 * NEWS: Document new target powerpc64le-*-linux*.
11408 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11410 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11411 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11413 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11414 register set used in ELF core dumps. Add floating-point register set.
11416 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11418 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11419 dwarf2_to_gdb[] table using symbolic constants. Adjust
11420 penultimate entry from number representing the PC register
11421 to symbolic constant representing the MDR register. Add
11422 constant for the PC register to the end of the table.
11424 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11426 * bsd-kvm.c: Include <sys/param.h>
11428 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11430 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11432 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11434 * ada-lang.h (clear_ada_sym_cache): Delete.
11436 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11438 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11440 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11442 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11443 the sigreturn register save area only if the syscall is
11446 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11448 * valops.c (value_slice): Minor reformatting.
11450 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11452 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11454 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11456 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11457 New static globals.
11458 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11459 (ada_ignore_descriptive_types_p): New static global.
11460 (find_parallel_type_by_descriptive_type): Return immediately
11461 if ada_ignore_descriptive_types_p is set.
11462 (_initialize_ada_language): Register new commands "maintenance
11463 set ada", "maintenance show ada", "maintenance set ada
11464 ignore-descriptive-types" and "maintenance show ada
11465 ignore-descriptive-types".
11466 * NEWS: Add entry for new "maint ada set/show
11467 ignore-descriptive-types" commands.
11469 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11471 * record-btrace.c (record_btrace_close): Call btrace_teardown
11474 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11476 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11479 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11481 * ada-typeprint (type_is_full_subrange_of_target_type):
11483 (print_range): Add parameter bounds_prefered_p. If not set,
11484 try printing range types using the name of their base type.
11485 (print_range_type): Add parameter bounds_prefered_p.
11486 Use it in call to print_range.
11487 (print_array_type, ada_print_type): Update calls to print_range
11488 and print_range_type.
11490 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11492 * ada-typeprint.c (print_array_type, print_choices, print_range)
11493 (print_range_bound, print_dynamic_range_bound, print_range_type):
11494 Remove declaration.
11496 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11498 * ada-typeprint.c (print_range): Add missing empty line
11499 after local declaration.
11501 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11503 * ada-valprint.c (print_optional_low_bound): Get index_type's
11504 target type for as long as it is a TYPE_CODE_RANGE.
11506 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11508 * procfs.c (procfs_make_note_section): Remove assertion and
11509 associated comment.
11511 2014-01-24 Yao Qi <yao@codesourcery.com>
11513 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11514 * corelow.c (get_core_siginfo): Likewise.
11516 2014-01-24 Yao Qi <yao@codesourcery.com>
11518 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11519 ULONGEST. Don't check 'len' is negative.
11520 (remote_write_bytes): Change type of 'len' to ULONGEST.
11522 2014-01-23 Tom Tromey <tromey@redhat.com>
11525 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11526 Handle exception from frame.block.
11527 (FrameVars.fetch_frame_locals): Likewise.
11529 2014-01-23 Tom Tromey <tromey@redhat.com>
11532 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11533 on a NULL pointer. Move "goto error" to correct place.
11535 2014-01-23 Tom Tromey <tromey@redhat.com>
11538 * python/py-framefilter.c (apply_frame_filter): Call
11539 ensure_python_env after computing gdbarch.
11541 2014-01-23 Yao Qi <yao@codesourcery.com>
11543 * target.c (raw_memory_xfer_partial): Change argument type
11544 from void * to gdb_byte *.
11545 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11547 2014-01-22 Doug Evans <dje@google.com>
11549 New gdbserver option --debug-format=timestamp.
11550 * NEWS: Mention it.
11552 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11554 * syscalls/s390x-linux.xml: New file.
11555 * syscalls/s390-linux.xml: New file.
11556 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11557 (XML_SYSCALL_FILENAME_S390X): Likewise.
11558 (op_svc): New enum value for SVC opcode.
11559 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11560 (s390_linux_get_syscall_number): New function.
11561 (s390_gdbarch_init): Register '*get_syscall_number' and the
11562 syscall xml file name.
11563 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11564 "s390-linux.xml" and "s390x-linux.xml".
11565 * NEWS: Announce new feature.
11567 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11569 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11571 2014-01-22 Pedro Alves <palves@redhat.com>
11573 * xtensa-config.c: Include defs.h.
11575 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11577 * common/common-utils.h: Add "ARI:" comment beside __func__
11580 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11582 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11583 documentation a bit.
11585 2014-01-21 Roland McGrath <mcgrathr@google.com>
11587 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11588 * configure: Regenerate.
11589 * aclocal.m4: Regenerate.
11590 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11591 New substituted variables.
11592 (install-strip): New target.
11593 (INSTALL_SCRIPT): New substituted variable.
11594 (FLAGS_TO_PASS): Add it.
11595 (install-only): Use $(INSTALL_SCRIPT) rather than
11596 $(INSTALL_PROGRAM) for gcore.
11598 2014-01-20 Tom Tromey <tromey@redhat.com>
11600 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11603 2014-01-20 Tom Tromey <tromey@redhat.com>
11605 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11606 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11607 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11608 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11609 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11610 (struct cmd_list_element) <flags>: Remove.
11611 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11612 doc_allocated>: New fields.
11613 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11615 * maint.c (maintenance_do_deprecate): Update.
11616 * top.c (execute_command): Update.
11618 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11620 * xtensa-linux-nat.c: Include asm/ptrace.h.
11622 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11624 * Makefile.in (SFILES): Add d-support.c.
11625 (COMMON_OBS): Add d-support.o.
11626 * d-lang.h (d_parse_symbol): Add comment, now defined in
11628 * d-lang.c (parse_call_convention)
11629 (parse_attributes, parse_function_types)
11630 (parse_function_args, parse_type, parse_identifier)
11631 (call_convention_p, d_parse_symbol): Move functions to ...
11632 * d-support.c: ... New file.
11634 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11636 * d-lang.h (d_parse_symbol): Add declaration.
11637 * d-lang.c (extract_identifiers)
11638 (extract_type_info): Remove functions.
11639 (parse_call_convention, parse_attributes)
11640 (parse_function_types, parse_function_args)
11641 (parse_type, parse_identifier, call_convention_p)
11642 (d_parse_symbol): New functions.
11643 (d_demangle): Use d_parse_symbol to demangle D symbols.
11645 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11647 * d-lang.h (struct builtin_d_type): New data type.
11648 (builtin_d_type): Add declaration.
11649 * d-lang.c (d_language_arch_info, build_d_types)
11650 (builtin_d_type): New functions.
11651 (enum d_primitive_types): New data type.
11652 (d_language_defn): Change c_language_arch_info to
11653 d_language_arch_info.
11654 (d_type_data): New static variable.
11655 (_initialize_d_language): Initialize d_type_data.
11657 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11659 * d-lang.h (d_main_name): Add declaration.
11660 * d-lang.c (d_main_name): New function.
11661 * symtab.c (find_main_name): Add call to d_main_name.
11663 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11665 * d-lang.c (d_language_defn): Change macro_expansion_c to
11666 macro_expansion_no.
11668 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11670 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11672 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11674 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11675 gdb_exception" declaration.
11676 * remote.c (getpkt_or_notif_sane): Likewise.
11678 2014-01-17 Doug Evans <dje@google.com>
11680 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11681 function, contents of dirnames_to_char_ptr_vec_append moved here.
11682 (delim_string_to_char_ptr_vec): New function.
11683 (dirnames_to_char_ptr_vec_append): Rewrite.
11684 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11686 2014-01-17 Doug Evans <dje@google.com>
11688 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11690 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11691 #include "common-utils.h".
11692 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11693 * common/vec.h (VEC_ASSERT_PASS): Update.
11694 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11695 (MACH_CHECK_ERROR): Update.
11697 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11699 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11701 * gdbarch.h: Regenerate.
11703 2014-01-16 Tom Tromey <tromey@redhat.com>
11705 * value.c (struct value) <regnum>: Move earlier.
11707 2014-01-16 Tom Tromey <tromey@redhat.com>
11709 * remote.c (extended_remote_create_inferior): Rename from
11710 extended_remote_create_inferior_1. Add "ops" argument. Remove
11711 old implementation.
11713 2014-01-16 Pedro Alves <palves@redhat.com>
11715 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11716 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11719 2014-01-16 Doug Evans <dje@google.com>
11721 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11725 * btrace.h (btrace_thread_flag): New.
11726 (struct btrace_thread_info) <flags>: New.
11727 * record-btrace.c (record_btrace_resume_thread)
11728 (record_btrace_find_thread_to_move, btrace_step_no_history)
11729 (btrace_step_stopped, record_btrace_start_replaying)
11730 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11731 (record_btrace_find_resume_thread): New.
11732 (record_btrace_resume, record_btrace_wait): Extend.
11733 (record_btrace_can_execute_reverse): New.
11734 (record_btrace_open): Fail in non-stop mode.
11735 (record_btrace_set_replay): Split into this, ...
11736 (record_btrace_stop_replaying): ... this, ...
11737 (record_btrace_clear_histories): ... and this.
11738 (init_record_btrace_ops): Init to_can_execute_reverse.
11739 * NEWS: Announce it.
11741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11743 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11744 (forward_target_decr_pc_after_break)
11745 (target_decr_pc_after_break): New.
11746 * target.c (forward_target_decr_pc_after_break)
11747 (target_decr_pc_after_break): New.
11748 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11749 instead of gdbarch_decr_pc_after_break.
11750 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11751 instead of gdbarch_decr_pc_after_break.
11752 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11753 instead of gdbarch_decr_pc_after_break.
11754 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11755 instead of gdbarch_decr_pc_after_break.
11756 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11757 instead of gdbarch_decr_pc_after_break.
11758 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11759 instead of gdbarch_decr_pc_after_break.
11761 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11763 * btrace.c: Include regcache.h.
11764 (btrace_add_pc): New.
11765 (btrace_enable): Call btrace_add_pc.
11766 (btrace_is_empty): New.
11767 * btrace.h (btrace_is_empty): New.
11768 * record-btrace.c (require_btrace, record_btrace_info): Call
11771 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11773 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11774 Support delta reads.
11775 (linux_disable_btrace): Change return type.
11776 * common/linux-btrace.h (linux_read_btrace): Change parameters
11777 and return type to allow error reporting. Update users.
11778 (linux_disable_btrace): Change return type. Update users.
11779 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11781 (btrace_error): New.
11782 (btrace_block) <begin>: Comment on BEGIN == 0.
11783 * btrace.c (btrace_compute_ftrace): Start from the end of
11785 (btrace_stitch_trace, btrace_clear_history): New.
11786 (btrace_fetch): Read delta trace, return if replaying.
11787 (btrace_clear): Move clear history code to btrace_clear_history.
11788 (parse_xml_btrace): Throw an error if parsing failed.
11789 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11790 and return type to allow error reporting.
11791 (target_read_btrace): Change parameters and return type to allow
11793 * target.c (target_read_btrace): Update.
11794 * remote.c (remote_read_btrace): Support delta reads. Pass
11796 * NEWS: Announce it.
11798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11800 * record.h (record_btrace_frame_unwind)
11801 (record_btrace_tailcall_frame_unwind): New declarations.
11802 * dwarf2-frame: Include record.h
11803 (dwarf2_frame_cfa): Throw an error for btrace frames.
11804 * record-btrace.c: Include hashtab.h.
11805 (btrace_get_bfun_name): New.
11806 (btrace_call_history): Call btrace_get_bfun_name.
11807 (struct btrace_frame_cache): New.
11809 (bfcache_hash, bfcache_eq, bfcache_new): New.
11810 (btrace_get_frame_function): New.
11811 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11812 (record_btrace_frame_this_id): Compute own id.
11813 (record_btrace_frame_prev_register): Provide PC, throw_error
11814 for all other registers.
11815 (record_btrace_frame_sniffer): Detect btrace frames.
11816 (record_btrace_tailcall_frame_sniffer): New.
11817 (record_btrace_frame_dealloc_cache): New.
11818 (record_btrace_frame_unwind): Add new functions.
11819 (record_btrace_tailcall_frame_unwind): New.
11820 (_initialize_record_btrace): Allocate cache.
11821 * btrace.c (btrace_clear): Call reinit_frame_cache.
11822 * NEWS: Announce it.
11824 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11826 * record-btrace.c (record_btrace_set_replay)
11827 (record_btrace_goto_begin, record_btrace_goto_end)
11828 (record_btrace_goto): New.
11829 (init_record_btrace_ops): Initialize them.
11830 * NEWS: Announce it.
11832 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11834 * record-btrace.c (record_btrace_find_new_threads)
11835 (record_btrace_thread_alive): New.
11836 (init_record_btrace_ops): Initialize to_find_new_threads and
11839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11841 * record-btrace.c (record_btrace_resume): New.
11842 (record_btrace_wait): New.
11843 (init_record_btrace_ops): Initialize to_wait and to_resume.
11845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11847 * record-btrace.c (record_btrace_xfer_partial)
11848 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11849 (record_btrace_allow_memory_access): New.
11850 (init_record_btrace_ops): Initialize new methods.
11851 * target.c (raw_memory_xfer_partial): Bail out if target reports
11852 that this memory is not available.
11854 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11856 * target.h (target_ops) <to_insert_breakpoint>
11857 <to_remove_breakpoint>: Add target_ops parameter.
11858 (forward_target_insert_breakpoint): New.
11859 (forward_target_remove_breakpoint): New.
11860 (memory_remove_breakpoint, memory_insert_breakpoint):
11861 Add target_ops parameter.
11862 * target.c (target_insert_breakpoint): Split into this and ...
11863 (forward_target_insert_breakpoint): ... this.
11864 (target_remove_breakpoint): Split into this and ...
11865 (forward_target_remove_breakpoint): ... this.
11866 (debug_to_insert_breakpoint): Add target_ops parameter.
11867 Call forward_target_insert_breakpoint.
11868 (debug_to_remove_breakpoint): Add target_ops parameter.
11869 Call forward_target_remove_breakpoint.
11870 (update_current_target): Do not inherit or default to_insert_breakpoint
11871 and to_remove_breakpoint.
11872 * corelow.c (ignore): Add target_ops parameter.
11873 * exec.c (ignore): Add target_ops parameter.
11874 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11875 Add target_ops parameter.
11876 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11877 Add target_ops parameter.
11878 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11879 Add target_ops parameter.
11880 * record-full.c (record_full_beneath_to_insert_breakpoint)
11881 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11882 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11883 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11884 (record_full_core_remove_breakpoint): Add target_ops parameter.
11886 (record_full_beneath_to_insert_breakpoint_ops)
11887 (record_full_beneath_to_remove_breakpoint_ops)
11888 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11889 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11890 tmp_to_remove_breakpoint_ops,
11891 record_full_beneath_to_insert_breakpoint_ops, and
11892 record_full_beneath_to_remove_breakpoint_ops.
11893 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11894 (m32r_remove_breakpoint): Add target_ops parameter.
11895 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11896 Add target_ops parameter.
11897 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11898 Add target_ops parameter.
11900 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11901 Markus Metzger <markus.t.metzger@intel.com>
11903 * record-btrace.c: Include frame-unwind.h.
11904 (record_btrace_frame_unwind_stop_reason)
11905 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11906 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11908 (init_record_btrace_ops): Install it.
11910 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11912 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11915 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11917 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11920 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11922 * frame-unwind.c: Include target.h.
11923 (frame_unwind_try_unwinder): New function with code from ...
11924 (frame_unwind_find_by_frame): ... here. New variable
11925 unwinder_from_target, call also target_get_unwinder)
11926 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11927 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11928 * target.h (struct target_ops): New fields to_get_unwinder and
11929 to_get_tailcall_unwinder.
11930 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11932 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11934 * record-btrace.c (record_btrace_fetch_registers)
11935 (record_btrace_store_registers)
11936 (record_btrace_to_prepare_to_store): New.
11937 (init_record_btrace_ops): Add the above.
11939 2014-01-16 Tom Tromey <tromey@redhat.com>
11941 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11942 * target.h (struct target_ops) <to_prepare_to_store>: Add
11944 (target_prepare_to_store): Add argument.
11945 * target.c (debug_to_prepare_to_store): Add argument.
11946 (update_current_target): Update.
11947 * remote.c (remote_prepare_to_store): Add 'self' argument.
11948 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11949 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11950 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11951 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11953 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11954 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11955 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11956 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11957 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11959 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11961 * btrace.h (replay) <replay>: New.
11962 (btrace_is_replaying): New.
11963 * btrace.c (btrace_clear): Free replay iterator.
11964 (btrace_is_replaying): New.
11965 * record-btrace.c (record_btrace_is_replaying): New.
11966 (record_btrace_info): Print insn number if replaying.
11967 (record_btrace_insn_history): Start at replay position.
11968 (record_btrace_call_history): Start at replay position.
11969 (init_record_btrace_ops): Init to_record_is_replaying.
11971 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11973 * record-btrace.c (record_btrace_insn_history_range): Include
11975 (record_btrace_insn_history_from): Adjust range.
11976 (record_btrace_call_history_range): Include
11978 (record_btrace_call_history_from): Adjust range.
11979 * NEWS: Announce changes.
11981 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11983 * record.h (enum record_print_flag)
11984 <record_print_indent_calls>: New.
11985 * record.c (get_call_history_modifiers): Recognize /c modifier.
11986 (_initialize_record): Document /c modifier.
11987 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11988 Reorder fields. Optionally indent the function name. Update
11990 * NEWS: Announce changes.
11992 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11994 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11996 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11998 * btrace.c (ftrace_new_function): Start counting at one.
11999 * record-btrace.c (record_btrace_info): Adjust number of calls
12001 * NEWS: Announce it.
12003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12005 * record-btrace.c (btrace_call_history_insn_range): Print
12006 insn range as [begin, end].
12008 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12010 * btrace.h (struct btrace_func_link): New.
12011 (enum btrace_function_flag): New.
12012 (struct btrace_inst): Rename to ...
12013 (struct btrace_insn): ...this. Update all users.
12014 (struct btrace_func) <ibegin, iend>: Remove.
12015 (struct btrace_func_link): New.
12016 (struct btrace_func): Rename to ...
12017 (struct btrace_function): ...this. Update all users.
12018 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12019 (number, level, flags>: New.
12020 (struct btrace_insn_iterator): Rename to ...
12021 (struct btrace_insn_history): ...this.
12023 (struct btrace_insn_iterator, btrace_call_iterator): New.
12024 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12025 (struct btrace_target_info) <begin, end, level>
12026 <insn_history, call_history>: New.
12027 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12028 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12029 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12030 (btrace_call_number, btrace_call_begin, btrace_call_end)
12031 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12032 (btrace_find_function_by_number, btrace_set_insn_history)
12033 (btrace_set_call_history): New.
12034 * btrace.c (btrace_init_insn_iterator)
12035 (btrace_init_func_iterator, compute_itrace): Remove.
12036 (ftrace_print_function_name, ftrace_print_filename)
12037 (ftrace_skip_file): Change
12038 parameter to const.
12039 (ftrace_init_func): Remove.
12040 (ftrace_debug): Use new btrace_function fields.
12041 (ftrace_function_switched): Also consider gaining and
12042 losing symbol information).
12043 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12044 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12045 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12047 (ftrace_new_function): Move. Remove debug print.
12048 (ftrace_update_lines, ftrace_update_insns): New.
12049 (ftrace_update_function): Check for call, ret, and jump.
12050 (compute_ftrace): Renamed to ...
12051 (btrace_compute_ftrace): ...this. Rewritten to compute call
12053 (btrace_fetch, btrace_clear): Updated.
12054 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12055 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12056 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12057 (btrace_call_number, btrace_call_begin, btrace_call_end)
12058 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12059 (btrace_find_function_by_number, btrace_set_insn_history)
12060 (btrace_set_call_history): New.
12061 * record-btrace.c (require_btrace): Use new btrace thread
12063 (record_btrace_info, btrace_insn_history)
12064 (record_btrace_insn_history, record_btrace_insn_history_range):
12065 Use new btrace thread info fields and new iterator.
12066 (btrace_func_history_src_line): Rename to ...
12067 (btrace_call_history_src_line): ...this. Use new btrace
12068 thread info fields.
12069 (btrace_func_history): Rename to ...
12070 (btrace_call_history): ...this. Use new btrace thread info
12071 fields and new iterator.
12072 (record_btrace_call_history, record_btrace_call_history_range):
12073 Use new btrace thread info fields and new iterator.
12075 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12077 * frame.h (frame_id_build_unavailable_stack_special): New.
12078 * frame.c (frame_id_build_unavailable_stack_special): New.
12080 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12082 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12083 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12084 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12086 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12087 (i386_insn_is_jump, i386_jmp_p): New.
12088 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12089 insn_is_jump to gdbarch.
12090 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12091 * gdbarch.h: Regenerated.
12092 * gdbarch.c: Regenerated.
12093 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12094 (default_insn_is_jump): New.
12095 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12096 (default_insn_is_jump): New.
12098 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12100 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12102 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12103 (btrace_read_type) <btrace_read_new>: Change to ...
12104 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12106 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12108 * common/linux-btrace.c (linux_read_btrace): Free trace from
12109 previous iteration.
12111 2014-01-15 Doug Evans <dje@google.com>
12113 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12116 2014-01-15 Tom Tromey <tromey@redhat.com>
12118 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12119 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12120 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12121 (set_objfile_main_name): New function.
12122 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12123 language_of_main>: New fields.
12124 (set_objfile_main_name): Declare.
12125 * symtab.c (find_main_name): Loop over objfiles to find the main
12127 (set_main_name): Now static.
12128 (get_main_info): Add comment.
12129 * symtab.h (set_main_name): Don't declare.
12131 2014-01-15 Tom Tromey <tromey@redhat.com>
12133 * symtab.c (main_progspace_key): New global.
12134 (struct main_info): New.
12135 (name_of_main, language_of_main): Remove.
12136 (get_main_info, main_info_cleanup): New function.
12137 (set_main_name, main_name, main_language): Use get_main_info.
12138 (_initialize_symtab): Initialize main_progspace_key.
12140 2014-01-15 Tom Tromey <tromey@redhat.com>
12142 * dbxread.c (process_one_symbol): Update.
12143 * dwarf2read.c (read_partial_die): Update.
12144 * symfile.c (set_initial_language): Call main_language.
12145 * symtab.c (language_of_main): Now static.
12146 (set_main_name): Add 'lang' parameter.
12147 (find_main_name): Update.
12148 (main_language): New function.
12149 (symtab_observer_executable_changed): Update.
12150 * symtab.h (set_main_name): Update.
12151 (language_of_main): Remove.
12152 (main_language): Declare.
12154 2014-01-15 Tom Tromey <tromey@redhat.com>
12156 * symfile.c (init_entry_point_info): Use new "initialized" field.
12158 * objfiles.h (struct entry_point) <initialized>: New field.
12159 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12160 (struct objfile) <ei>: ...here. Remove.
12161 * objfiles.c (entry_point_address_query): Update.
12163 2014-01-15 Tom Tromey <tromey@redhat.com>
12165 * objfiles.c (entry_point_address_query): Relocate entry point
12167 (objfile_relocate1): Do not relocate entry point address.
12168 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12169 <the_bfd_section_index>: New field.
12170 * symfile.c (init_entry_point_info): Find the entry point's
12173 2014-01-15 Tom Tromey <tromey@redhat.com>
12175 * solib-frv.c (enable_break): Use entry_point_address_query.
12177 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12179 * NEWS: Add note on improved process record-replay on
12180 arm*-linux* targets.
12182 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12184 * arm-tdep.c (enum arm_record_result): New enum.
12185 (arm_record_unsupported_insn): New function.
12186 (arm_record_coproc_data_proc): Removed.
12187 (thumb2_record_ld_st_multiple): New function.
12188 (thumb2_record_ld_st_dual_ex_tbb): New function.
12189 (thumb2_record_data_proc_sreg_mimm): New function.
12190 (thumb2_record_ps_dest_generic): New function.
12191 (thumb2_record_branch_misc_cntrl): New function.
12192 (thumb2_record_str_single_data): New function.
12193 (thumb2_record_ld_mem_hints): New function.
12194 (thumb2_record_ld_word): New function.
12195 (thumb2_record_lmul_lmla_div): New function.
12196 (thumb2_record_decode_insn_handler): New function.
12197 (decode_insn): Add thumb32 instruction handlers.
12199 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12201 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12202 (struct arm_linux_record_tdep): Declare.
12203 (arm_canonicalize_syscall): New function.
12204 (arm_all_but_pc_registers_record): New function.
12205 (arm_linux_syscall_record): New function.
12206 (arm_linux_init_abi): Add syscall recording constructs.
12207 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12208 decoding. (arm_record_coproc_data_proc): Update arm syscall
12210 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12211 <arm_syscall_record>: New field.
12212 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12215 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12217 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12218 register for push instruction recording.
12220 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12222 * arm-tdep.c (thumb_record_misc): Update to correct logical
12223 error while recording ldm, ldmia and pop instructions.
12225 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12227 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12229 2014-01-15 Pedro Alves <palves@redhat.com>
12231 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12232 (go32_resume, go32_fetch_registers, store_register)
12233 (go32_store_registers, go32_prepare_to_store)
12234 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12235 (go32_create_inferior, go32_can_run, go32_terminal_init)
12236 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12239 2014-01-15 Tom Tromey <tromey@redhat.com>
12241 * target.h (async_callback_ftype): New typedef.
12242 (struct target_ops) <to_async>: Use it.
12244 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12246 * python/py-value.c (get_field_type): Remove unnecessary curly
12247 braces for single-statement if block.
12249 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12251 * python/py-type.c (convert_field): Add missing empty line
12252 after declarations.
12254 2014-01-14 Doug Evans <dje@google.com>
12256 * symfile.h (expand_symtabs_matching): Renamed from
12257 expand_partial_symbol_names. Update prototype.
12258 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12259 * symfile.c (expand_symtabs_matching): Renamed from
12260 expand_partial_symbol_names. New args file_matcher, kind.
12261 Rename arg fun to symbol_matcher.
12262 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12263 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12264 ada_expand_partial_symbol_name.
12265 (ada_make_symbol_completion_list): Update to call
12266 expand_symtabs_matching.
12267 (ada_add_global_exceptions): Call expand_symtabs_matching.
12268 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12269 call map_symbol_filenames.
12270 * symtab.c (sources_info): Update to call map_symbol_filenames.
12271 (search_symbols): Call expand_symtabs_matching.
12272 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12273 (default_make_symbol_completion_list_break_on): Update to call
12274 expand_symtabs_matching.
12275 (make_source_files_completion_list): Update to call
12276 map_symbol_filenames.
12278 2014-01-14 Doug Evans <dje@google.com>
12280 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12281 (expand_symtabs_symbol_matcher_ftype): New typedef.
12282 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12283 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12284 * symfile.c (expand_partial_symbol_names): Update to use
12285 expand_symtabs_symbol_matcher_ftype.
12286 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12287 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12288 Arg name_matcher renamed to symbol_matcher.
12289 * psymtab.c (recursively_search_psymtabs): Update to use
12290 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12292 (expand_symtabs_matching_via_partial): Update to use
12293 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12294 Arg name_matcher renamed to symbol_matcher.
12296 2014-01-14 Doug Evans <dje@google.com>
12298 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12299 (map_partial_symbol_filenames): Ditto.
12300 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12301 (map_partial_symbol_filenames): Ditto.
12302 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12303 (map_partial_symbol_filenames): Ditto.
12304 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12305 (map_partial_symbol_filenames): Ditto.
12306 * symtab.c: Delete #include "psymtab.h".
12308 2014-01-14 Pedro Alves <palves@redhat.com>
12309 Tom Tromey <tromey@redhat.com>
12311 * infrun.c (use_displaced_stepping): Use find_record_target
12312 instead of RECORD_IS_USED.
12313 (adjust_pc_after_break): Use record_full_is_used instead of
12315 * record-btrace.c (record_btrace_open): Call record_preopen
12316 instead of checking RECORD_IS_USED.
12317 * record-full.c (record_full_shortname)
12318 (record_full_core_shortname): New globals.
12319 (record_full_is_used): New function.
12320 (find_full_open): Call record_preopen instead of checking
12322 (init_record_full_ops): Set the target's shortname to
12323 record_full_shortname.
12324 (init_record_full_core_ops): Set the target's shortname to
12325 record_full_core_shortname.
12326 * record-full.h (record_full_is_used): Declare.
12327 * record.c (find_record_target): Make extern.
12328 (record_preopen): New function.
12329 * record.h (RECORD_IS_USED): Delete macro.
12330 (find_record_target, record_preopen): Declare functions.
12332 2014-01-14 Yao Qi <yao@codesourcery.com>
12334 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12335 'len''s type to ULONGEST.
12336 (core_xfer_shared_libraries_aix): Likewise.
12337 * gdbarch.c, gdbarch.h: Regenerated.
12338 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12339 Change type of 'len' to ULONGEST.
12340 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12341 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12343 2014-01-14 Yao Qi <yao@codesourcery.com>
12345 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12346 type of 'len' to ULONGEST.
12347 (linux_xfer_osdata_processgroups): Likewise.
12348 (linux_xfer_osdata_threads): Likewise.
12349 (linux_xfer_osdata_fds): Likewise.
12350 (linux_xfer_osdata_isockets): Likewise.
12351 (linux_xfer_osdata_shm): Likewise.
12352 (linux_xfer_osdata_sem): Likewise.
12353 (linux_xfer_osdata_msg): Likewise.
12354 (linux_common_xfer_osdata): Likewise.
12355 (struct osdata_type) <getter>: Likewise.
12356 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12359 2014-01-14 Yao Qi <yao@codesourcery.com>
12361 * target.h (target_xfer_partial_ftype): Update.
12362 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12364 * aix-thread.c (aix_thread_xfer_partial): Change type of
12365 argument 'len' to ULONGEST.
12366 * auxv.c (procfs_xfer_auxv): Likewise.
12367 (ld_so_xfer_auxv): Likewise.
12368 (memory_xfer_auxv): Likewise.
12369 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12370 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12371 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12372 * corelow.c (core_xfer_partial): Likewise.
12373 * ctf.c (ctf_xfer_partial): Likewise.
12374 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12376 (darwin_read_dyld_info): Likewise.
12377 (darwin_xfer_partial): Likewise.
12378 * exec.c (section_table_xfer_memory_partial): Likewise.
12379 (exec_xfer_partial): Likewise.
12380 * exec.h (section_table_xfer_memory_partial): Update
12382 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12383 instead of plongest.
12384 (gnu_xfer_partial): Likewise.
12385 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12386 (ia64_hpux_xfer_solib_got): Likewise.
12387 (ia64_hpux_xfer_partial): Likewise.
12388 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12389 * inf-ptrace.c (inf_ptrace_xfer_partial):
12390 * inf-ttrace.c (inf_ttrace_xfer_partial):
12391 * linux-nat.c (linux_xfer_siginfo): Likewise.
12392 (linux_nat_xfer_partial): Likewise.
12393 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12394 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12395 * monitor.c (monitor_xfer_memory): Likewise.
12396 (monitor_xfer_partial): Likewise.
12397 * procfs.c (procfs_xfer_partial): Likewise.
12398 * record-full.c (record_full_xfer_partial): Likewise.
12399 (record_full_core_xfer_partial): Likewise.
12400 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12401 instead of plongest.
12402 (gdbsim_xfer_partial): Likewise.
12403 * remote.c (remote_xfer_partial): Likewise.
12404 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12405 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12407 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12408 (rs6000_xfer_shared_libraries): Likewise.
12409 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12410 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12411 (sparc_xfer_partial): Likewise.
12412 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12413 (spu_xfer_partial): Likewise.
12414 * spu-multiarch.c (spu_xfer_partial): Likewise.
12415 * target.c (target_read_live_memory): Likewise.
12416 (memory_xfer_live_readonly_partial): Likewise.
12417 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12418 (target_xfer_partial, default_xfer_partial): Likewise.
12419 (current_xfer_partial): Likewise.
12420 * tracepoint.c (tfile_xfer_partial): Likewise.
12421 * windows-nat.c (windows_xfer_memory): Likewise. Call
12422 pulongest instead of plongest.
12423 (windows_xfer_partial): Likewise.
12424 (windows_xfer_shared_libraries): Likewise.
12426 2014-01-14 Yao Qi <yao@codesourcery.com>
12428 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12429 target_xfer_partial_ftype.
12431 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12435 * valops.c (value_struct_elt_bitpos): New function
12436 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12437 object to 'None' if the field name is an empty string ("").
12438 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12439 attribute to look for a field when 'name' is 'None'.
12440 (get_field_type): New function
12442 2014-01-13 Doug Evans <dje@google.com>
12445 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12446 (try_open_dwop_file): Ditto.
12447 * gdb_bfd.c: #include "vec.h".
12448 (bfdp): New typedef.
12449 (struct gdb_bfd_data): New member included_bfds.
12450 (gdb_bfd_unref): Unref all included bfds.
12451 (gdb_bfd_record_inclusion): New function.
12452 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12454 2014-01-13 Tom Tromey <tromey@redhat.com>
12456 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12458 2014-01-13 Tom Tromey <tromey@redhat.com>
12460 * defs.h (use_windows): Remove.
12461 * gdb.c (main): Update.
12462 * main.c (captured_main, gdb_main): Update.
12463 * main.h (struct captured_main_args) <use_windows>: Remove.
12464 * top.c (use_windows): Remove.
12466 2014-01-13 Tom Tromey <tromey@redhat.com>
12468 * defs.h (deprecated_flush_hook): Remove.
12470 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12473 * linux-thread-db.c (try_thread_db_load): Add parameter
12474 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12475 (try_thread_db_load_from_pdir_1): Move it there from here.
12476 (try_thread_db_load_from_sdir): Update caller.
12477 (try_thread_db_load_from_dir): Move it there from here.
12479 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12481 * regformats/regdat.sh: Always rewrite the register file.
12483 2014-01-13 Pedro Alves <palves@redhat.com>
12485 * Makefile.in (CHECK_HEADERS): New variable.
12486 (check-headers:): New rule.
12488 2014-01-13 Tom Tromey <tromey@redhat.com>
12490 * cli/cli-setshow.c (do_set_command): Update.
12491 * defs.h (deprecated_set_hook): Remove.
12492 * top.c (deprecated_set_hook): Remove.
12494 2014-01-13 Pedro Alves <palves@redhat.com>
12496 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12497 the tracepoint if the PC is a pseudo-register.
12499 2014-01-13 Tom Tromey <tromey@redhat.com>
12501 * defs.h (XCALLOC): Remove.
12502 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12503 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12504 * dwarf2loc.c (allocate_piece_closure): Likewise.
12505 * elfread.c (elf_symfile_segments): Likewise.
12506 (elf_symfile_segments): Likewise.
12507 * gdbtypes.c (copy_type_recursive): Likewise.
12508 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12509 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12510 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12512 * mt-tdep.c (mt_gdbarch_init): Likewise.
12513 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12515 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12516 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12517 * registry.c (registry_alloc_data): Likewise.
12518 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12519 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12520 * serial.c (serial_fdopen_ops): Likewise.
12521 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12523 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12524 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12527 2014-01-13 Tom Tromey <tromey@redhat.com>
12529 * defs.h (XMALLOC): Remove.
12530 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12531 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12532 * cli-out.c (struct ui_out *): Likewise.
12533 * cli/cli-dump.c (add_dump_command): Likewise.
12534 (add_dump_command): Likewise.
12535 * complaints.c (get_complaints): Likewise.
12536 (find_complaint): Likewise.
12537 * dwarf2-frame.c (execute_cfa_program): Likewise.
12538 * dwarf2read.c (abbrev_table_read_table): Likewise.
12539 * gdbarch.sh: Likewise.
12540 * gdbarch.c: Rebuild.
12541 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12542 * interps.c (interp_new): Likewise.
12543 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12544 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12545 * mi/mi-console.c (mi_console_file_new): Likewise.
12546 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12547 * mi/mi-out.c (mi_out_new): Likewise.
12548 * mi/mi-parse.c (mi_parse): Likewise.
12549 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12550 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12551 * observer.c (xalloc_observer_list_node): Likewise.
12552 * regcache.c (regcache_xmalloc_1): Likewise.
12553 * reggroups.c (reggroup_new): Likewise.
12554 (_initialize_reggroup): Likewise.
12555 * registry.c (register_data_with_cleanup): Likewise.
12556 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12557 * ser-base.c (serial_ttystate): Likewise.
12558 * ser-mingw.c (make_pipe_state): Likewise.
12559 * ser-pipe.c (pipe_open): Likewise.
12560 * serial.c (serial_open): Likewise.
12561 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12562 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12563 (tui_alloc_win_info): Likewise.
12564 (tui_add_content_elements): Likewise.
12565 * tui/tui-file.c (tui_file_new): Likewise.
12566 * tui/tui-out.c (tui_out_new): Likewise.
12567 * ui-file.c (mem_file_new): Likewise.
12568 * ui-out.c (push_level): Likewise.
12569 (make_cleanup_ui_out_end): Likewise.
12570 (append_header_to_list): Likewise.
12571 (ui_out_new): Likewise.
12572 * user-regs.c (user_reg_add_builtin): Likewise.
12574 2014-01-13 Tom Tromey <tromey@redhat.com>
12576 * defs.h (XZALLOC): Remove.
12577 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12578 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12579 (get_ada_tasks_inferior_data): Likewise.
12580 * auto-load.c (get_auto_load_pspace_data): Likewise.
12581 * auxv.c (get_auxv_inferior_data): Likewise.
12582 * bfd-target.c (target_bfd_reopen): Likewise.
12583 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12584 (deprecated_insert_raw_breakpoint): Likewise.
12585 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12586 * corelow.c (core_open): Likewise.
12587 * darwin-nat.c (darwin_check_new_threads): Likewise.
12588 (darwin_attach_pid): Likewise.
12589 * dummy-frame.c (dummy_frame_push): Likewise.
12590 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12591 * dwarf2loc.c (allocate_piece_closure): Likewise.
12592 * elfread.c (elf_symfile_segments): Likewise.
12593 * eval.c (ptrmath_type_p): Likewise.
12594 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12595 * gdbtypes.c (alloc_type_arch): Likewise.
12596 (alloc_type_instance): Likewise.
12597 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12598 * inf-child.c (inf_child_can_use_agent): Likewise.
12599 * inflow.c (get_inflow_inferior_data): Likewise.
12600 * infrun.c (save_infcall_suspend_state): Likewise.
12601 * jit.c (jit_reader_load): Likewise.
12602 (get_jit_objfile_data): Likewise.
12603 (get_jit_program_space_data): Likewise.
12604 (jit_object_open_impl): Likewise.
12605 (jit_symtab_open_impl): Likewise.
12606 (jit_block_open_impl): Likewise.
12607 (jit_frame_sniffer): Likewise.
12608 * linux-fork.c (add_fork): Likewise.
12609 * maint.c (make_command_stats_cleanup): Likewise.
12610 * objfiles.c (get_objfile_pspace_data): Likewise.
12611 * opencl-lang.c (struct lval_closure): Likewise.
12612 * osdata.c (osdata_start_osdata): Likewise.
12613 * progspace.c (new_address_space): Likewise.
12614 (add_program_space): Likewise.
12615 * remote-sim.c (get_sim_inferior_data): Likewise.
12616 * sh-tdep.c (sh_gdbarch_init): Likewise.
12617 * skip.c (Ignore): Likewise.
12618 (skip_delete_command): Likewise.
12619 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12620 (library_list_start_library): Likewise.
12621 (solib_aix_current_sos): Likewise.
12622 * solib-darwin.c (get_darwin_info): Likewise.
12623 (darwin_current_sos): Likewise.
12624 * solib-dsbt.c (get_dsbt_info): Likewise.
12625 * solib-ia64-hpux.c (new_so_list): Likewise.
12626 (ia64_hpux_get_solib_linkage_addr): Likewise.
12627 * solib-spu.c (append_ocl_sos): Likewise.
12628 (spu_current_sos): Likewise.
12629 * solib-svr4.c (get_svr4_info): Likewise.
12630 (svr4_keep_data_in_core): Likewise.
12631 (library_list_start_library): Likewise.
12632 (svr4_default_sos): Likewise.
12633 (svr4_read_so_list): Likewise.
12634 * solib-target.c (library_list_start_library): Likewise.
12635 (solib_target_current_sos): Likewise.
12636 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12637 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12638 * symfile.c (default_symfile_segments): Likewise.
12639 * target-descriptions.c (tdesc_data_init): Likewise.
12640 (tdesc_create_reg): Likewise.
12641 (struct tdesc_type *): Likewise.
12642 (tdesc_create_vector): Likewise.
12643 (tdesc_set_struct_size): Likewise.
12644 (struct tdesc_type *): Likewise.
12645 (tdesc_free_feature): Likewise.
12646 (tdesc_create_feature): Likewise.
12647 * windows-nat.c (windows_add_thread): Likewise.
12648 (windows_make_so): Likewise.
12649 * xml-support.c (gdb_xml_body_text): Likewise.
12650 (gdb_xml_create_parser_and_cleanup): Likewise.
12651 (xml_process_xincludes): Likewise.
12652 * xml-syscall.c (allocate_syscalls_info): Likewise.
12653 (syscall_create_syscall_desc): Likewise.
12655 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12657 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12658 function, with code from i386_stap_parse_special_token.
12659 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12660 (i386_stap_parse_special_token): Move code to the two functions
12661 above; simplify it.
12663 2014-01-09 Pedro Alves <palves@redhat.com>
12664 Hui Zhu <hui@codesourcery.com>
12667 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12668 bp_err_string. Don't mark the location shlib_disabled if the
12669 error thrown wasn't a generic or memory error. Catch errors
12670 thrown while inserting breakpoints in overlayed code. Output
12671 error message of software breakpoints.
12672 * remote.c (remote_insert_breakpoint): If this breakpoint has
12673 target-side commands but this stub doesn't support Z0 packets,
12674 throw NOT_SUPPORTED_ERROR error.
12675 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12676 * target.h (target_insert_breakpoint): Extend comment.
12677 (target_insert_hw_breakpoint): Add comment.
12679 2014-01-08 Pedro Alves <palves@redhat.com>
12681 * remote.c (remote_add_thread): Add threads silently if starting
12683 (remote_notice_new_inferior): If in all-stop, and starting up,
12684 don't call notice_new_inferior.
12685 (get_current_thread): New function, factored out from ...
12686 (add_current_inferior_and_thread): ... this. Adjust.
12687 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12688 found any thread, then select the remote's current thread as GDB's
12689 current thread too.
12691 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12693 * NEWS: Create a new section for the next release branch.
12694 Rename the section of the current branch, now that it has
12697 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12699 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12700 * version.in: Bump version to 7.7.50.DATE-cvs.
12702 2014-01-08 Yao Qi <yao@codesourcery.com>
12704 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12705 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12706 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12708 2014-01-08 Yao Qi <yao@codesourcery.com>
12710 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12711 return value of bfd_get_filename to symbol_file_add_from_bfd.
12713 2014-01-08 Pierre Muller <muller@sourceware.org>
12716 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12717 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12718 to prim_record_mininal_symbol_and_info.
12719 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12720 in call to prim_record_minimal_symbol_and_info.
12721 (read_pe_exported_syms): Set index field of section_data.
12723 2014-01-07 Andrew Pinski <apinski@cavium.com>
12725 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12726 * features/aarch64.c: Regenerate.
12728 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12730 * target.c (return_null): Define.
12731 (update_current_target): Use it instead of return_zero for
12732 functions that return a pointer.
12734 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12736 * source.c (add_path): Fix check for duplicated paths in the previously
12739 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12741 * ada-lang.c: Remove duplicated include statements.
12742 * alphabsd-nat.c: Ditto.
12743 * amd64-darwin-tdep.c: Ditto.
12744 * amd64fbsd-nat.c: Ditto.
12745 * auto-load.c: Ditto.
12747 * breakpoint.c: Ditto.
12748 * dbxread.c: Ditto.
12749 * fork-child.c: Ditto.
12750 * gdb_usleep.c: Ditto.
12751 * i386-darwin-tdep.c: Ditto.
12752 * i386fbsd-nat.c: Ditto.
12754 * inferior.c: Ditto.
12755 * jv-lang.c: Ditto.
12756 * linux-nat.c: Ditto.
12757 * linux-tdep.c: Ditto.
12758 * m68kbsd-nat.c: Ditto.
12759 * m68klinux-nat.c: Ditto.
12760 * microblaze-tdep.c: Ditto.
12761 * mips-linux-tdep.c: Ditto.
12762 * mn10300-tdep.c: Ditto.
12763 * nto-tdep.c: Ditto.
12764 * opencl-lang.c: Ditto.
12766 * printcmd.c: Ditto.
12767 * regcache.c: Ditto.
12768 * remote-m32r-sdi.c: Ditto.
12770 * symfile.c: Ditto.
12772 * tilegx-linux-nat.c: Ditto.
12773 * tilegx-tdep.c: Ditto.
12774 * tracepoint.c: Ditto.
12776 * vaxbsd-nat.c: Ditto.
12777 * windows-nat.c: Ditto.
12778 * xtensa-tdep.c: Ditto.
12780 2014-01-07 Yao Qi <yao@codesourcery.com>
12782 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12784 2014-01-07 Yao Qi <yao@codesourcery.com>
12785 Joel Brobecker <brobecker@adacore.com>
12787 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12788 (pdc_write_regs): Likewise.
12789 (fetch_regs_kernel_thread): Likewise.
12790 (store_regs_kernel_thread): Likewise.
12792 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12794 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12795 tagged type objects to their actual type.
12797 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12799 * ada-valprint.c (print_field_values): Add "language" parameter.
12800 Update calls to print_field_values and print_variant_part.
12801 Pass new parameter "language" in call to val_print instead
12802 of "current_language". Replace call to ada_val_print by call
12804 (print_variant_part): Add "language" parameter.
12805 (ada_val_print_struct_union): Update call to print_field_values.
12807 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12809 * ada-valprint.c (ui_memcpy): Delete.
12810 (ada_print_floating): Update documentation. Add empty line
12811 between between function documentation and implementation.
12812 Delete variable "buffer". Use ui_file_xstrdup in place of
12813 ui_file_put. Minor adjustments following this change.
12815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12817 * ada-valprint.c (ada_val_print_string): New function,
12818 extracted from ada_val_print_array.
12819 (ada_val_print_array): Replace extracted code by call
12820 to ada_val_print_string followed by a return. Move
12821 "else" branch to the function's top block.
12823 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12825 * ada-valprint.c (ada_val_print_array): Move implementation
12826 down. Rename parameter "offset" and "val" into "offset_aligned"
12827 and "original_value" respectively. Add parameter "offset".
12829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12831 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12832 re-organizing the code. Change the "???" message printed
12833 when target type is a TYPE_CODE_UNDEF into
12834 "<ref to undefined type>".
12836 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12838 * ada-valprint.c (print_record): Delete, implementation inlined...
12839 (ada_val_print_struct_union): ... here. Remove call to
12840 ada_check_typedef in inlined implementation.
12842 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12844 * ada-valprint.c (ada_val_print_gnat_array): New function,
12845 extracted from ada_val_print_1;
12846 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12847 (ada_val_print_flt, ada_val_print_struct_union)
12848 (ada_val_print_ref): Likewise.
12849 (ada_val_print_1): Delete variables i and elttype.
12850 Replace extracted-out code by call to corresponding
12853 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12855 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12857 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12859 * ada-valprint.c (ada_val_print_1): Replace calls to
12860 ada_val_print_1 by calls to val_print.
12862 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12864 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12865 Update calls to self accordingly. Replace calls to c_val_print
12866 by calls to val_print.
12868 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12870 * ada-valprint.c (print_record): Delete declaration.
12871 (adjust_type_signedness, ada_val_print_1): Likewise.
12872 (ada_val_print): Move function implementation down.
12873 (print_variant_part, print_field_values, print_record):
12874 Move function implementation up.
12876 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12878 * python/py-type.c (typy_get_name): New function.
12879 (type_object_getset): Add entry for attribute "name".
12880 * NEWS: Add entry mentioning this new attribute.
12882 2014-01-07 Yao Qi <yao@codesourcery.com>
12884 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12887 2014-01-07 Yao Qi <yao@codesourcery.com>
12889 * gnu-nat.c (info_port_rights): Add qualifier const to
12892 2014-01-07 Yao Qi <yao@codesourcery.com>
12894 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12896 2014-01-07 Yao Qi <yao@codesourcery.com>
12898 * gnu-nat.c (make_inf) Update declaration.
12899 (make_inf): Make it static.
12900 (inf_set_traced): Likewise.
12901 (inf_port_to_thread, inf_task_died_status): Likewise.
12903 2014-01-07 Yao Qi <yao@codesourcery.com>
12905 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12907 2014-01-07 Yao Qi <yao@codesourcery.com>
12909 * gnu-nat.c (_initialize_gnu_nat): Declare.
12911 2014-01-07 Yao Qi <yao@codesourcery.com>
12913 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12915 (struct gdbarch_info) <byte_order>: Change type to
12917 <byte_order_for_code>: Likewise.
12918 * gdbarch.c, gdbarch.h: Regenerated.
12920 2014-01-06 Sasha Smundak <asmundak@google.com>
12922 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12924 2014-01-06 Tom Tromey <tromey@redhat.com>
12926 * doublest.c (convert_doublest_to_floatformat): Use const, not
12928 * somread.c (som_symtab_read): Likewise.
12930 2014-01-07 Hui Zhu <hui@codesourcery.com>
12932 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12933 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12934 (gdb_bfd_fopen): Ditto.
12935 (gdb_bfd_openr): Ditto.
12936 (gdb_bfd_openw): Ditto.
12937 (gdb_bfd_openr_iovec): Ditto.
12938 (gdb_bfd_fdopenr): Ditto.
12939 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12940 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12942 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12944 * symfile-mem.c (symbol_file_add_from_memory): Removed
12945 gdb_bfd_stash_filename.
12947 2014-01-03 Doug Evans <dje@google.com>
12949 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12952 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12954 Update year range in copyright notice of all files.
12956 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12958 * top.c (print_gdb_version): Set copyright year to 2014.
12960 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12962 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12964 For older changes see ChangeLog-2013.
12970 version-control: never